{"id":389,"date":"2017-06-10T08:08:17","date_gmt":"2017-06-10T07:08:17","guid":{"rendered":"http:\/\/chewett.co.uk\/blog\/?p=389"},"modified":"2017-06-10T15:35:57","modified_gmt":"2017-06-10T14:35:57","slug":"light-intensity-sensor-module-5528-photo-resistor-arduino-review-code","status":"publish","type":"post","link":"https:\/\/chewett.co.uk\/blog\/389\/light-intensity-sensor-module-5528-photo-resistor-arduino-review-code\/","title":{"rendered":"Light Intensity Sensor Module 5528 Photo Resistor Arduino review and code"},"content":{"rendered":"<p>This post is a review of the &#8220;Light Intensity Sensor Module 5528 Photo Resistor&#8221; and includes code and images to use the sensor.<\/p>\n<p>There are a couple variants of this light sensor sold by different companies but all have similar components and designs.\u00a0This model is sold by\u00a0HiLetgo CN and is available on amazon (link below)<b>.<\/b><\/p>\n<h2>Comments about the Sensor<\/h2>\n<figure id=\"attachment_418\" aria-describedby=\"caption-attachment-418\" style=\"width: 400px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_1-1.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"418\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/389\/light-intensity-sensor-module-5528-photo-resistor-arduino-review-code\/light_sensor_1-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_1-1.jpg?fit=500%2C452&amp;ssl=1\" data-orig-size=\"500,452\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"light_sensor_1\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_1-1.jpg?fit=300%2C271&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_1-1.jpg?fit=500%2C452&amp;ssl=1\" class=\"wp-image-418\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_1-1.jpg?resize=400%2C362\" alt=\"\" width=\"400\" height=\"362\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_1-1.jpg?w=500&amp;ssl=1 500w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_1-1.jpg?resize=300%2C271&amp;ssl=1 300w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_1-1.jpg?resize=50%2C45&amp;ssl=1 50w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><figcaption id=\"caption-attachment-418\" class=\"wp-caption-text\">Top down view of the sensor<\/figcaption><\/figure>\n<p>This sensor\u00a0is built around a light dependant resistor. This is a component whose resistances changes depending on the light level.<\/p>\n<p>Normally if you are using a light dependant resistor you need to measure the current resistance\u00a0of the component.\u00a0However this isn&#8217;t required as the circuitry takes care of this.<\/p>\n<figure id=\"attachment_419\" aria-describedby=\"caption-attachment-419\" style=\"width: 400px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_2-1.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"419\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/389\/light-intensity-sensor-module-5528-photo-resistor-arduino-review-code\/light_sensor_2-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_2-1.jpg?fit=500%2C304&amp;ssl=1\" data-orig-size=\"500,304\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"light_sensor_2\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_2-1.jpg?fit=300%2C182&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_2-1.jpg?fit=500%2C304&amp;ssl=1\" class=\"wp-image-419\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_2-1.jpg?resize=400%2C243\" alt=\"\" width=\"400\" height=\"243\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_2-1.jpg?w=500&amp;ssl=1 500w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_2-1.jpg?resize=300%2C182&amp;ssl=1 300w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_2-1.jpg?resize=50%2C30&amp;ssl=1 50w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><figcaption id=\"caption-attachment-419\" class=\"wp-caption-text\">Side view of the sensor<\/figcaption><\/figure>\n<p>The sensor has three pins marked as GND, VCC and SIG. GND is where you would connect your ground signal. VCC will be your &#8220;high voltage&#8221;, the data sheet recommends 5\u00a0volts. SIG is the current value of the sensor in volts. With 5 volts provided to its VCC connection the range of SIG will be between 0 and 5\u00a0volts. 5 volts will represent a high light intensity and 0 volts will represent a low light intensity.<\/p>\n<p>The light readings obtained from this are only relative light levels. This means that if you read 3 volts at one time, and 4 volts later you know that the light intensity has gone up. However you cannot turn this into a specific light intensity (typically measured in lumens).<\/p>\n<h2>Testing the light sensor<\/h2>\n<p>To test the sensor I wired it up to\u00a0an Arduino Uno as shown below in the schematic \u00a0and image.<\/p>\n<figure id=\"attachment_416\" aria-describedby=\"caption-attachment-416\" style=\"width: 400px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/ldr_test_bb_part.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"416\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/389\/light-intensity-sensor-module-5528-photo-resistor-arduino-review-code\/ldr_test_bb_part-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/ldr_test_bb_part.jpg?fit=600%2C680&amp;ssl=1\" data-orig-size=\"600,680\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ldr_test_bb_part\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/ldr_test_bb_part.jpg?fit=265%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/ldr_test_bb_part.jpg?fit=600%2C680&amp;ssl=1\" class=\"wp-image-416\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/ldr_test_bb_part.jpg?resize=400%2C453\" alt=\"\" width=\"400\" height=\"453\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/ldr_test_bb_part.jpg?w=600&amp;ssl=1 600w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/ldr_test_bb_part.jpg?resize=265%2C300&amp;ssl=1 265w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/ldr_test_bb_part.jpg?resize=44%2C50&amp;ssl=1 44w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><figcaption id=\"caption-attachment-416\" class=\"wp-caption-text\">Wiring the sensor up to an arduino<\/figcaption><\/figure>\n<p><a href=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_3-2.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"420\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/389\/light-intensity-sensor-module-5528-photo-resistor-arduino-review-code\/light_sensor_3-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_3-2.jpg?fit=800%2C493&amp;ssl=1\" data-orig-size=\"800,493\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"light_sensor_3\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_3-2.jpg?fit=300%2C185&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_3-2.jpg?fit=678%2C418&amp;ssl=1\" class=\"alignleft wp-image-420 size-full\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_3-2.jpg?resize=678%2C418\" alt=\"\" width=\"678\" height=\"418\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_3-2.jpg?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_3-2.jpg?resize=300%2C185&amp;ssl=1 300w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_3-2.jpg?resize=768%2C473&amp;ssl=1 768w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_sensor_3-2.jpg?resize=50%2C31&amp;ssl=1 50w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/a><\/p>\n<p>Once it has been wired up I wrote the below code to read the value of the sensor every 2 seconds and print it out on the serial port. This was logged by my computer and stored in a file.<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n#define ANALOG_IN_PIN 0\r\nint sensorVal = 0;\r\n\r\nvoid setup() {\r\n  Serial.begin(115200);\r\n}\r\n\r\nvoid loop() {\r\n  sensorVal = analogRead(ANALOG_IN_PIN);\r\n  Serial.println(sensorVal);\r\n  delay(2000);\r\n}\r\n\r\n<\/pre>\n<p>Once I had stored the data I was able to process it into a graph for better review. On the graph below I plotted the sensor value in red. In addition to this I plotted the maximum sensor value (1023) and the minimum sensor value (0). The final line plotted is the base sensor light level. When testing the sensor it was placed in a room with LED lights at a constant brightness. This ensured that the light level would not change due to outside interference.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_intensity_module_5528_plot.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"417\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/389\/light-intensity-sensor-module-5528-photo-resistor-arduino-review-code\/light_intensity_module_5528_plot\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_intensity_module_5528_plot.jpg?fit=815%2C615&amp;ssl=1\" data-orig-size=\"815,615\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"light_intensity_module_5528_plot\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_intensity_module_5528_plot.jpg?fit=300%2C226&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_intensity_module_5528_plot.jpg?fit=678%2C512&amp;ssl=1\" class=\"alignleft wp-image-417 size-full\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_intensity_module_5528_plot.jpg?resize=678%2C512\" alt=\"\" width=\"678\" height=\"512\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_intensity_module_5528_plot.jpg?w=815&amp;ssl=1 815w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_intensity_module_5528_plot.jpg?resize=300%2C226&amp;ssl=1 300w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_intensity_module_5528_plot.jpg?resize=768%2C580&amp;ssl=1 768w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/light_intensity_module_5528_plot.jpg?resize=50%2C38&amp;ssl=1 50w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/a><\/p>\n<p>By reviewing the graph above\u00a0you can see that the base light level remains stable during the experiment. The sensor quickly returned to the initial light level after changing the brightness it was exposed to. This also shows that the sensor is reliable at returning to the same values after changing light levels.<\/p>\n<p>I was able to easily reach quite close to the maximum and minimum by using a strong light source and covering the sensor completely. In addition by changing the amount of light the sensor was exposed to I was able to reach a variety of different light levels.<\/p>\n<p>When maintaining the same light level the sensor appears quite stable and there is a minimum amount of noise in the readings. I have observed that it is also very fast to return to normal light readings.<\/p>\n<h2>Overall Review &#8211; Would buy again<\/h2>\n<p>For the price of the sensor this is a great pick to measure relative light levels. The circuitry to provide a simple signal wire to read the light level \u00a0eases the implementation of the sensor. This also reduces the requirements compared to a standard light dependant resistor. The range of values the sensor can produce is definitely sufficient for general light level monitoring. Although it cannot measure a specific lumen value no sensors at this price range can so this is not a great loss.<\/p>\n<p>Overall I would definitely recommend this sensor to use it in your project.<\/p>\n<p>The product I purchased to test is available on <a href=\"https:\/\/www.amazon.co.uk\/gp\/product\/B00Q6X05EG\/\">Amazon<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post is a review of the &#8220;Light Intensity Sensor Module 5528 Photo Resistor&#8221; and includes code and images to use the sensor. There are a couple variants of this light sensor sold by different companies but all have similar components and designs.\u00a0This model is sold by\u00a0HiLetgo CN and is available on amazon (link below). [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[97,122],"tags":[132,131,129,128,130],"class_list":["post-389","post","type-post","status-publish","format-standard","hentry","category-electronics","category-raspberry-pi-cluster","tag-arduino","tag-arduino-sensor","tag-electronics","tag-ldr","tag-light-dependant-resistor"],"wppr_data":{"cwp_meta_box_check":"No"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2toWX-6h","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":311,"url":"https:\/\/chewett.co.uk\/blog\/311\/dht22-sensor-review-code-examples\/","url_meta":{"origin":389,"position":0},"title":"DHT22 Sensor review and code examples","author":"Chewett","date":"October 18, 2017","format":false,"excerpt":"The DHT22 sensor works as a duel temperature and humidity sensor. In this post I will review the sensor, show how it can be used and give a final judgement on it. What can the DHT22 do? The DHT22 sensor is actually a slightly more accurate and powerful version of\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/dht22_post_icon.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/dht22_post_icon.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/dht22_post_icon.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/dht22_post_icon.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":309,"url":"https:\/\/chewett.co.uk\/blog\/309\/dht11-sensor-review-code-examples\/","url_meta":{"origin":389,"position":1},"title":"DHT11 Sensor Review and code examples","author":"Chewett","date":"August 12, 2017","format":false,"excerpt":"The DHT11 sensor works as a basic temperature and humidity sensor at a low price. In this post I will review the sensor, show how it can be used and give a final judgement on it. What can the DHT11 do? The DHT11 sensor is a basic sensor that lets\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/dht11_text.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/dht11_text.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/dht11_text.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/08\/dht11_text.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1412,"url":"https:\/\/chewett.co.uk\/blog\/1412\/using-the-ds18b20-temperature-sensor-with-a-wemos-d1-mini-esp8266\/","url_meta":{"origin":389,"position":2},"title":"Using the DS18B20 Temperature Sensor with a WeMos D1 Mini (ESP8266)","author":"Chewett","date":"November 21, 2018","format":false,"excerpt":"In this blog post I talk about the additional steps needed to use the DS18B20 onewire temperature sensor with a WeMos D1 Mini (ESP8266) using the Arduino IDE. Important differences compared to using the DS18B20 on an Arduino There is one major difference to bear in mind when using the\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/11\/wd18b20_on_wemos_d1_mini.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/11\/wd18b20_on_wemos_d1_mini.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/11\/wd18b20_on_wemos_d1_mini.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/11\/wd18b20_on_wemos_d1_mini.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2520,"url":"https:\/\/chewett.co.uk\/blog\/2520\/junlinto-45mm-push-arcade-button-12v-power-led-for-arduino-review-and-code\/","url_meta":{"origin":389,"position":3},"title":"Junlinto 45mm Push Arcade Button 12V Power LED For Arduino Review and Code","author":"Chewett","date":"August 1, 2020","format":false,"excerpt":"This post talks about how you can use the Junlinto 45mm Push Arcade Button 12V Power LED with an Arduino. Junlinto 45mm Push Arcade Button 12V Power LED This 45mm push button is a relatively standard button for an arcade machine. Inside of the button is a white LED which\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/06\/Junlinto-45mm-Push-Arcade-Button-12V-Power-LED_post_icon.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/06\/Junlinto-45mm-Push-Arcade-Button-12V-Power-LED_post_icon.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/06\/Junlinto-45mm-Push-Arcade-Button-12V-Power-LED_post_icon.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/06\/Junlinto-45mm-Push-Arcade-Button-12V-Power-LED_post_icon.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1405,"url":"https:\/\/chewett.co.uk\/blog\/1405\/using-the-dht11-temperature-sensor-with-a-wemos-d1-mini-esp8266\/","url_meta":{"origin":389,"position":4},"title":"Using the DHT11 Temperature Sensor with a WeMos D1 Mini (ESP8266)","author":"Chewett","date":"August 18, 2018","format":false,"excerpt":"In this blog post I talk about the additional steps needed to use the DHT11 temperature sensor with a WeMos D1 Mini (ESP8266) with the Arduino IDE. Differences from running a DHT11 on an Arduino There are two major differences to bear in mind when using the DHT11 on a\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/08\/dht11_on_wemos_d1_mini.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/08\/dht11_on_wemos_d1_mini.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/08\/dht11_on_wemos_d1_mini.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/08\/dht11_on_wemos_d1_mini.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1476,"url":"https:\/\/chewett.co.uk\/blog\/1476\/using-the-dht22-temperature-sensor-with-a-wemos-d1-mini-esp8266\/","url_meta":{"origin":389,"position":5},"title":"Using the DHT22 Temperature Sensor with a WeMos D1 Mini (ESP8266)","author":"Chewett","date":"September 22, 2018","format":false,"excerpt":"In this blog post I talk about the additional steps needed to use the DHT22 temperature sensor with a WeMos D1 Mini (ESP8266) with the Arduino IDE. Differences from running a DHT22 on an Arduino There are two major differences to bear in mind when using the DHT22 on a\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/dht22_on_wemos_d1_mini.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/dht22_on_wemos_d1_mini.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/dht22_on_wemos_d1_mini.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/09\/dht22_on_wemos_d1_mini.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=389"}],"version-history":[{"count":7,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/389\/revisions"}],"predecessor-version":[{"id":422,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/389\/revisions\/422"}],"wp:attachment":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}