








{"id":90,"date":"2020-10-12T21:11:35","date_gmt":"2020-10-12T21:11:35","guid":{"rendered":"https:\/\/osoyoo.info\/?p=90"},"modified":"2020-10-13T22:08:27","modified_gmt":"2020-10-13T22:08:27","slug":"arduino-basic-lesson-14-potentiometer","status":"publish","type":"post","link":"https:\/\/osoyoo.info\/index.php\/2020\/10\/12\/arduino-basic-lesson-14-potentiometer\/","title":{"rendered":"Hardware Programming with Arduino IDE &#8211; Lesson 14: Potentiometer"},"content":{"rendered":"<p><a href=\"https:\/\/osoyoo.info\/index.php\/2020\/10\/12\/arduino-basic-lesson-13-photoresistor\/\"><img loading=\"lazy\" class=\"alignnone\" src=\"https:\/\/osoyoo.com\/picture\/Arduino_Graphical_Programming_Kit\/Previous.png\" alt=\"\" width=\"206\" height=\"59\" \/><\/a>\u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<a href=\"https:\/\/osoyoo.info\/index.php\/2020\/10\/11\/arduino-basic-tutorial-directory\/\"><img loading=\"lazy\" class=\"alignnone\" src=\"https:\/\/osoyoo.com\/picture\/Arduino_Graphical_Programming_Kit\/Tutorial.png\" alt=\"\" width=\"206\" height=\"59\" \/><\/a>\u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<a href=\"https:\/\/osoyoo.info\/index.php\/2020\/10\/12\/arduino-basic-lesson-15-i2c-lcd1602-display\/\"><img loading=\"lazy\" class=\"alignright\" src=\"https:\/\/osoyoo.com\/picture\/Arduino_Graphical_Programming_Kit\/Next.png\" alt=\"\" width=\"206\" height=\"59\" \/><\/a><\/p>\n<div align=\"center\">\n<div align=\"center\"><img class=\"aligncenter\" src=\"https:\/\/osoyoo.com\/picture\/icon\/authorized_retailers.png\" \/><\/div>\n<div align=\"center\"><\/div>\n<table>\n<tbody>\n<tr>\n<td>Buy from US<\/td>\n<td>Buy from UK<\/td>\n<td>Buy from DE<\/td>\n<td>Buy from IT<\/td>\n<td>Buy from FR<\/td>\n<td>Buy from ES<\/td>\n<td>Buy from JP<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/www.amazon.com\/dp\/B08J7DKJK9?ref=myi_title_dp\"><img loading=\"lazy\" class=\"alignnone size-large\" src=\"https:\/\/osoyoo.com\/picture\/icon\/us_buy_now.png\" width=\"150\" height=\"30\" \/><\/a><\/td>\n<td><a href=\"https:\/\/www.amazon.co.uk\/dp\/B08J6BL2P7\"><img loading=\"lazy\" class=\"alignnone\" src=\"https:\/\/osoyoo.com\/picture\/icon\/uk_buy_now.png\" alt=\"\" width=\"150\" height=\"30\" \/><\/a><\/td>\n<td><a href=\"https:\/\/www.amazon.de\/dp\/B08J6BL2P7\"><img loading=\"lazy\" class=\"alignnone size-large\" src=\"https:\/\/osoyoo.com\/picture\/icon\/de_buy_now.png\" width=\"150\" height=\"30\" \/><\/a><\/td>\n<td><a href=\"https:\/\/www.amazon.it\/dp\/B08J6BL2P7\"><img loading=\"lazy\" class=\"alignnone size-large\" src=\"https:\/\/osoyoo.com\/picture\/icon\/it_buy_now.png\" width=\"150\" height=\"30\" \/><\/a><\/td>\n<td><a href=\"https:\/\/www.amazon.fr\/dp\/B08J6BL2P7\"><img loading=\"lazy\" class=\"alignnone size-large\" src=\"https:\/\/osoyoo.com\/picture\/icon\/fr_buy_now.png\" width=\"150\" height=\"30\" \/><\/a><\/td>\n<td><a href=\"https:\/\/www.amazon.es\/dp\/B08J6BL2P7\"><img loading=\"lazy\" class=\"alignnone size-large\" src=\"https:\/\/osoyoo.com\/picture\/icon\/es_buy_now.png\" width=\"150\" height=\"30\" \/><\/a><\/td>\n<td><a href=\"https:\/\/www.amazon.co.jp\/dp\/B08J7TLP48\"><img loading=\"lazy\" class=\"alignnone size-large\" src=\"https:\/\/osoyoo.com\/picture\/icon\/jp_buy_now.png\" width=\"150\" height=\"30\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2><strong>Content<\/strong><\/h2>\n<ol>\n<li><a href=\"#1\">Introduction<\/a><\/li>\n<li><a href=\"#2\">Preparations<\/a>\n<ul>\n<li><a href=\"#2.1\">Hardware<\/a><\/li>\n<li><a href=\"#2.2\">Software<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#3\">About Potentiometer<\/a><\/li>\n<li><a href=\"#4\">Connection<\/a><\/li>\n<li><a href=\"#5\">Upload Sketch<\/a><\/li>\n<li><a href=\"#6\">Running Result<\/a><\/li>\n<\/ol>\n<h1 id=\"1\">Introduction<\/h1>\n<p class=\"ordinary-output target-output clearfix\">In this lesson, we will use a potentiometer module to control the light brightness of LED module. Both modules are connected to Osoyoo Magic I\/O board for Arduino.<\/p>\n<h1 id=\"2\">Preparations<\/h1>\n<h2 id=\"2.1\">Hardware<\/h2>\n<ul>\n<li>Osoyoo UNO Board (Fully compatible with Arduino UNO rev.3) x 1<\/li>\n<li>OSOYOO Magic I\/O Shield for Arduino x1<\/li>\n<li>OSOYOO Potentiometer Module(10k) x 1<\/li>\n<li>OSOYOO LED Module x 1<\/li>\n<li>OSOYOO 3-Pin PNP Cable x 2<\/li>\n<li>USB Cable x 1<\/li>\n<li>PC x 1<\/li>\n<\/ul>\n<h2 id=\"2.2\">Software<\/h2>\n<p>Arduino IDE (version 1.6.4+)<\/p>\n<h1 id=\"3\">About Potentiometer<\/h1>\n<p><img class=\"aligncenter\" src=\"https:\/\/osoyoo.com\/picture\/Arduino_Graphical_Programming_Kit\/lesson6\/lesson6-modules.png\" \/><\/p>\n<p>In this lesson, a potentiometer, or pot, is used to change the PWM current in the circuit so the brightness of the LED will change accordingly. And since the pot is an analog device, the current change is smooth, thus the blink brightness will gradually get bigger or smaller instead of going through an obvious stepwise process.<\/p>\n<p>So what\u2019s the difference between an analog value and a digital one? Simply put, digital means on\/off, high\/low voltage with just two states, i.e. either 0 or 1. But the data state of analog signals is a continuous range, for example, from 1 to 1023; \u00a0Analog signals include those of light intensity, humidity, temperature, and so on.<\/p>\n<p>What we mean by PWM here is the digitalization of analog signals, which is a process of approaching analog signals. Since the potentiometer inputs analog signals, it should be connected to analog ports, i.e. A0-A5, instead of digital ports.<\/p>\n<table class=\"infobox\">\n<tbody>\n<tr>\n<th colspan=\"2\">Electronic symbol<\/th>\n<\/tr>\n<tr>\n<td colspan=\"2\"><a class=\"image\" href=\"https:\/\/en.wikipedia.org\/wiki\/File:Potentiometer_symbol_Europe.svg\"><img loading=\"lazy\" src=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/1\/1c\/Potentiometer_symbol_Europe.svg\/50px-Potentiometer_symbol_Europe.svg.png\" srcset=\"\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/1\/1c\/Potentiometer_symbol_Europe.svg\/75px-Potentiometer_symbol_Europe.svg.png 1.5x, \/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/1\/1c\/Potentiometer_symbol_Europe.svg\/100px-Potentiometer_symbol_Europe.svg.png 2x\" alt=\"Potentiometer symbol Europe.svg\" width=\"50\" height=\"25\" data-file-width=\"64\" data-file-height=\"32\" \/><\/a> (International)<br \/>\n<a class=\"image\" href=\"https:\/\/en.wikipedia.org\/wiki\/File:Potentiometer_symbol.svg\"><img loading=\"lazy\" src=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/1\/19\/Potentiometer_symbol.svg\/50px-Potentiometer_symbol.svg.png\" srcset=\"\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/1\/19\/Potentiometer_symbol.svg\/75px-Potentiometer_symbol.svg.png 1.5x, \/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/1\/19\/Potentiometer_symbol.svg\/100px-Potentiometer_symbol.svg.png 2x\" alt=\"Potentiometer symbol.svg\" width=\"50\" height=\"40\" data-file-width=\"100\" data-file-height=\"80\" \/><\/a> (US\/Canada)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"4\">Connection<\/h1>\n<p>First, please plug Osoyoo Magic I\/O shield into UNO board:<\/p>\n<p><img class=\"aligncenter\" src=\"https:\/\/osoyoo.com\/picture\/Arduino_Graphical_Programming_Kit\/lesson4\/UNO%2BBase-min.png\" \/><\/p>\n<p>Then connect the Potentiometer module to the A9 port of the Magic I\/O shield with a 3-pin PNP cable as below:<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full\" src=\"https:\/\/osoyoo.com\/picture\/OSOYOO_PnP_Kit_for_Arduino\/picture\/magic-potentiometer.jpg\" width=\"1000\" height=\"500\" \/><\/p>\n<h1 id=\"5\">Upload Sketch<\/h1>\n<p>After above operations are completed, connect the Arduino board to your computer using the USB cable. The green power LED (labelled <strong>PWR<\/strong>) should go on.<\/p>\n<h2>Code Program<\/h2>\n<p>You can <a href=\"https:\/\/osoyoo.com\/picture\/OSOYOO_PnP_Kit_for_Arduino\/code\/Lesson15_Potentiometer_control_LED_lightness.rar\" target=\"_blank\" rel=\"noopener noreferrer\">download the sketch from this link<\/a> or copy below code to your Arduino IDE window:<\/p>\n<pre><span style=\"color: #00979c;\">int<\/span> <span style=\"color: #000000;\">potPin<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">A0<\/span><span style=\"color: #000000;\">;<\/span>    <span style=\"color: #434f54;\">\/\/ select the input pin for the potentiometer<\/span>\r\n<span style=\"color: #00979c;\">int<\/span> <span style=\"color: #000000;\">ledPin<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">9<\/span><span style=\"color: #000000;\">;<\/span>   <span style=\"color: #434f54;\">\/\/ select the pin for the LED<\/span>\r\n<span style=\"color: #00979c;\">int<\/span> <span style=\"color: #000000;\">val<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">;<\/span>       <span style=\"color: #434f54;\">\/\/ variable to store the value coming from the sensor<\/span>\r\n\r\n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">setup<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #000000;\">{<\/span>\r\n  <span style=\"color: #d35400;\">pinMode<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">ledPin<\/span><span style=\"color: #434f54;\">,<\/span> <span style=\"color: #00979c;\">OUTPUT<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>  <span style=\"color: #434f54;\">\/\/ declare the ledPin as an OUTPUT<\/span>\r\n<span style=\"color: #000000;\">}<\/span>\r\n\r\n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">loop<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #000000;\">{<\/span>\r\n  <span style=\"color: #000000;\">val<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #d35400;\">analogRead<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">potPin<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>    <span style=\"color: #434f54;\">\/\/ read the value from the sensor<\/span>\r\n  <span style=\"color: #d35400;\">digitalWrite<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">ledPin<\/span><span style=\"color: #434f54;\">,<\/span> <span style=\"color: #00979c;\">HIGH<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>  <span style=\"color: #434f54;\">\/\/ turn the ledPin on<\/span>\r\n  <span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">val<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>                  <span style=\"color: #434f54;\">\/\/ stop the program for some time<\/span>\r\n  <span style=\"color: #d35400;\">digitalWrite<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">ledPin<\/span><span style=\"color: #434f54;\">,<\/span> <span style=\"color: #00979c;\">LOW<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>   <span style=\"color: #434f54;\">\/\/ turn the ledPin off<\/span>\r\n  <span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">val<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>                  <span style=\"color: #434f54;\">\/\/ stop the program for some time<\/span>\r\n<span style=\"color: #000000;\">}<\/span>\r\n<\/pre>\n<p>By turning the shaft of the potentiometer, we change the amount of resistence on either side of the wiper which is connected to the center pin of the potentiometer. This changes the relative &#8220;closeness&#8221; of that pin to 5 volts and ground, giving us a different analog input. When the shaft is turned all the way in one direction, there are 0 volts going to the pin, and we read 0. When the shaft is turned all the way in the other direction, there are 5 volts going to the pin and we read 1023. In between, <strong>analogRead()<\/strong> returns a number between 0 and 1023 that is proportional to the amount of voltage being applied to the pin.<\/p>\n<p>The circuit of this part is same as above.You can <a href=\"https:\/\/osoyoo.com\/picture\/OSOYOO_PnP_Kit_for_Arduino\/code\/Lesson15_Potentiometer_control_LED_lightness.rar\" target=\"_blank\" rel=\"noopener noreferrer\">get the sketch from this link<\/a> or copy below code to your new Arduino IDE window and upload it to your arduino board. Don&#8217;t forget to choose the corresponding board and port for you project!<\/p>\n<pre><span style=\"color: #00979c;\">const<\/span> <span style=\"color: #00979c;\">int<\/span> <span style=\"color: #000000;\">analogPin<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">A0<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #434f54;\">\/\/the analog input pin attach to<\/span>\r\n<span style=\"color: #00979c;\">const<\/span> <span style=\"color: #00979c;\">int<\/span> <span style=\"color: #000000;\">ledPin<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">9<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #434f54;\">\/\/the led attach to<\/span>\r\n<span style=\"color: #00979c;\">int<\/span> <span style=\"color: #000000;\">inputValue<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #434f54;\">\/\/variable to store the value coming from sensor<\/span>\r\n<span style=\"color: #00979c;\">int<\/span> <span style=\"color: #000000;\">outputValue<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #434f54;\">\/\/variable to store the output value<\/span>\r\n\r\n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">setup<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span>\r\n<span style=\"color: #000000;\">{<\/span>\r\n<span style=\"color: #000000;\">}<\/span>\r\n\r\n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">loop<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span>\r\n<span style=\"color: #000000;\">{<\/span>\r\n<span style=\"color: #000000;\">inputValue<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #d35400;\">analogRead<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">analogPin<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #434f54;\">\/\/read the value from the sensor<\/span>\r\n<span style=\"color: #000000;\">outputValue<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #d35400;\">map<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">inputValue<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">1023<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">255<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #434f54;\">\/\/Convert from 0-1023 proportional to the number of a number of from 0 to 255<\/span>\r\n<span style=\"color: #d35400;\">analogWrite<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">ledPin<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">outputValue<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #434f54;\">\/\/turn the led on depend on the output value<\/span>\r\n<span style=\"color: #000000;\">}<\/span><\/pre>\n<h2>Compile and upload<\/h2>\n<p>Open the Arduino IDE and select corresponding board type and port type for your Arduino board.<a href=\"https:\/\/osoyoo.com\/wp-content\/uploads\/2017\/07\/potsketch.jpg\"><img loading=\"lazy\" class=\"size-full wp-image-8002 aligncenter\" src=\"https:\/\/osoyoo.com\/wp-content\/uploads\/2017\/07\/potsketch.jpg\" alt=\"\" width=\"486\" height=\"593\" \/><\/a><\/p>\n<p>After compile this sketch, simply click the \u201cUpload\u201d button in the environment. Wait a few seconds \u2013 you should see the RX and TX leds on the board flashing. If the upload is successful, the message \u201cDone uploading.\u201d will appear in the status bar.<\/p>\n<h1 id=\"6\">Running Result<\/h1>\n<p>As you see, the potentiometer is connected to pin A0 of the Osoyoo Uno board, which can measure voltages from 0V to 5V. The corresponding returned value is from 0 to 1024. The measurement accuracy for voltage change is relatively high.<\/p>\n<p>A few seconds after the upload finishes,rotate the shaft of the potentiometer and you should see the luminance of the LED change.<\/p>\n<div align=\"center\"><iframe src=\"https:\/\/www.youtube.com\/embed\/OqeZWP8Bz_w\" width=\"853\" height=\"480\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<p><a href=\"https:\/\/osoyoo.info\/index.php\/2020\/10\/12\/arduino-basic-lesson-13-photoresistor\/\"><img loading=\"lazy\" class=\"alignnone\" src=\"https:\/\/osoyoo.com\/picture\/Arduino_Graphical_Programming_Kit\/Previous.png\" alt=\"\" width=\"206\" height=\"59\" \/><\/a>\u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<a href=\"https:\/\/osoyoo.info\/index.php\/2020\/10\/11\/arduino-basic-tutorial-directory\/\"><img loading=\"lazy\" class=\"alignnone\" src=\"https:\/\/osoyoo.com\/picture\/Arduino_Graphical_Programming_Kit\/Tutorial.png\" alt=\"\" width=\"206\" height=\"59\" \/><\/a>\u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<a href=\"https:\/\/osoyoo.info\/index.php\/2020\/10\/12\/arduino-basic-lesson-15-i2c-lcd1602-display\/\"><img loading=\"lazy\" class=\"alignright\" src=\"https:\/\/osoyoo.com\/picture\/Arduino_Graphical_Programming_Kit\/Next.png\" alt=\"\" width=\"206\" height=\"59\" \/><\/a><\/p>\n<div align=\"center\">\n<div align=\"center\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 Buy from US Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES Buy from JP Content Introduction Preparations Hardware Software About Potentiometer [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":156,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/osoyoo.info\/index.php\/wp-json\/wp\/v2\/posts\/90"}],"collection":[{"href":"https:\/\/osoyoo.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/osoyoo.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/osoyoo.info\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/osoyoo.info\/index.php\/wp-json\/wp\/v2\/comments?post=90"}],"version-history":[{"count":3,"href":"https:\/\/osoyoo.info\/index.php\/wp-json\/wp\/v2\/posts\/90\/revisions"}],"predecessor-version":[{"id":98,"href":"https:\/\/osoyoo.info\/index.php\/wp-json\/wp\/v2\/posts\/90\/revisions\/98"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/osoyoo.info\/index.php\/wp-json\/wp\/v2\/media\/156"}],"wp:attachment":[{"href":"https:\/\/osoyoo.info\/index.php\/wp-json\/wp\/v2\/media?parent=90"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/osoyoo.info\/index.php\/wp-json\/wp\/v2\/categories?post=90"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/osoyoo.info\/index.php\/wp-json\/wp\/v2\/tags?post=90"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}