loading

ESP8266 modules are great low cost stand alone controllers with built in Wi-Fi, and I already made a simple Blink instructable with ESP8266 NodeMCU module.

The advantage of the ESP8266 over Arduino and other controllers is the builtin Wi-Fi. In this Instructable I will show you how with the help of Visuino you can use two ESP8266 modules to make a remote LCD Display for Temperature and Humidity DHT11 sensor.

In the Instructable, I will use 2 NodeMCU modules. One version 0.9, and the other 1.0. The NodeMCU are the easiest way to program and experiment with ESP8266 controllers. This Instructable however can easily be done with other modules, and the Sensor module can even use ESP-01 module as it needs only one GPIO pin to connect to the DHT11 sensor.

Step 1: Components

  1. 2 NodeMCU ESP8266 boards (I used both NodeMCU 0.9, and NodeMCU 1.0 versions, but any other combination, or even stand alone ESP-12 will work)
  2. One DHT11 Sensor module I got from this cheap 37 sensors set
  3. One I2C 16x2 LCD Display (Back side of the LCD with the I2C adapter showed on Picture 2)
  4. 7 Female-Female jumper wires
<p>I've been trying (and failing) to use this great tutorial to use the BME280 sensor instead of the DHT11. I've used the BME280 I2C and replaced the sensor signal connector with the I2C. I'm not receiving any data at the LCD.</p><p>I was successful using the DHT11 but its resolution isn't great so just wanted to replace it with the BME280. ...and I already have the same BME280 unit up and working on one of your other tutorials where the BME directly writes to a 20x2 LCD.</p><p>I've attched a screenshot of the Visuino sensor-end design but if you need more info then please let me know. I have a full visuino license, so please advise if this request needs to be put elsewhere.</p>
<p>Great tutorial! You can use easily DHT11 or DHT22 sensor with only two (2) wires. Here is a useful link: </p><p><a href="https://www.facebook.com/spectrasrl/photos/p.635952796529390/635952796529390" rel="nofollow">https://www.facebook.com/spectrasrl/photos/p.635952796529390/635952796529390</a></p><p>Here is one tech video with DS18S20 and DHT11 sensors designing an industrial temperature monitoring system, Raspberry Pi based:</p><p><a href="https://youtu.be/Knis6KReK1A" rel="nofollow">https://youtu.be/Knis6KReK1A</a></p>
<p>Cool :-) Thank you! It requires power injector and splitter circuitry that I don't have at the moment, and most people don't have either, but is a very cool approach for remotely powering the sensors :-)</p><p>I tried to make Instructable with ready, easily accessible off the shelf components.</p>
<p>I am still learning Visuino and still impressed with it.. I am still a little confused on adding programming or sending data. Could you do this with 2 nanos and two NRFL2401's for an example?</p>
Thank you!<br>The NRFL2401 is not yet supported, but I am working to add support for it. Will post tutorials too. For now the connection between Nanos can be done with Wi-Fi, although I prefer to directly program NodeMCUs instead ;-)
<p>Thanks. I have a ton of NRF that I got cheap. It will take a while for esp8266 to arrive</p>
<p>great little project, learned lots from it :)</p>
<p>Thank you! Congratulations on making it! Your version looks great! :-)</p>
<p>Anyone just got the code as I do not want to use Visuino </p>
<p>Hello ! <br><br>I just finished my first project with ESP8266 ! It's fantastic !</p><p><br>I would like to thank BoianM for the help with the errors i was facing.</p>
<p>Looks nice :-) Enjoy!</p>
<p>Hello,</p><p>Could this be done using only one ESP8266 ? I mean, connecting the LCD + DHT11 in one ESP8266 and as an extra feature, display the temp and humidity also on a Website?</p><p>Kind Regards,</p><p>PedroM.</p>
<p>You can even combine the 2 Instructables and do both :-)</p>
<p>I already made a few changes:</p><p>I only used one ESP8266 and i attached the LCD + DHT11 and made it online to monitor the Temps. I noticed that the Temps and Humidity, specially the humidity takes a few seconds longer to update.. why is that? Too much charge for one ESP8266? Maybe the humidity and temp are stable in the room.. but i will make a few tests and post them.</p><p>Next objectives:<br><br>- Make it portable (Using AA? Solar power?) Any ideas?<br>- Making a better Website without the 5 sec refresh page (Whats the impact of not having refresh and having a live timing temperature monitor?)</p><p>-Buy more sensors and put them in other places, outside my house, other divisions and have a central website with all the information.</p>
<p>If you want good sensor, the DHT22 is a much better sensor, although somewhat more expensive. You should use it if you can get one.</p><p>I am working to make it easier to implement web services. It may be best if the sensor works with REST web service to communicate with a web site running JavaScript. I will try to make Instructable for this too ASAP</p>
<p>Yes:</p><p><a href="https://www.instructables.com/id/ESP8266-and-Visuino-DHT11-Temperature-and-Humidity/">https://www.instructables.com/id/ESP8266-and-Visuin...</a></p><p>:-D</p>
<p>Nice, so basically you are saying i can attach the LCD + DHT11 sensor to one single NodeMCU ESP8266? instead of using two like in this tutorial?<br><br>But i will need to change the schematic and Visuino and re-compile :) </p><p>I guess i will give it a try hehe and i will post the updates soon :)</p>
<p>You can also still have 2 modules, but one can also work as web server. There are many options ;-)</p>
<p>Yeah..., but by now you should know how to change the schematic I hope ;-)</p>
<p>Hehe i just putted inside an old box.</p>
<p>Neat :-)</p>
<p>Hello,</p><p>Im trying to verify and to write to the NODEMCU 0.9 but im getting the following error:</p><p>In file included from C:\Users\Pedro Maia\Documents\Visuino\Generated\Generated.ino:17:0:</p><p>C:\Users\Pedro Maia\Documents\Arduino\libraries\Mitov/Mitov_FormattedSerial.h:18:8: error: 'SerialConfig' does not name a type</p><p> const SerialConfig CSerialInits[] = </p><p> ^</p><p>In file included from C:\Users\Pedro Maia\Documents\Visuino\Generated\Generated.ino:17:0:</p><p>C:\Users\Pedro Maia\Documents\Arduino\libraries\Mitov/Mitov_FormattedSerial.h: In member function 'virtual void Mitov::SerialPort&lt;T_SERIAL_TYPE, T_SERIAL&gt;::StartPort()':</p><p>C:\Users\Pedro Maia\Documents\Arduino\libraries\Mitov/Mitov_FormattedSerial.h:123:40: error: 'CSerialInits' was not declared in this scope</p><p> T_SERIAL-&gt;begin( inherited::Speed, CSerialInits[ AIndex ], SERIAL_FULL );</p><p> ^</p><p>C:\Users\Pedro Maia\Documents\Arduino\libraries\Mitov/Mitov_FormattedSerial.h:126:40: error: 'CSerialInits' was not declared in this scope</p><p> T_SERIAL-&gt;begin( inherited::Speed, CSerialInits[ AIndex ], SERIAL_RX_ONLY );</p><p> ^</p><p>C:\Users\Pedro Maia\Documents\Arduino\libraries\Mitov/Mitov_FormattedSerial.h:129:40: error: 'CSerialInits' was not declared in this scope</p><p> T_SERIAL-&gt;begin( inherited::Speed, CSerialInits[ AIndex ], SERIAL_TX_ONLY );<br><br>What should i do? </p><p><br>INFORMATION:</p><p>Windows 10 64 Bits</p><p>Arduino 1.6.7 (Package version: 2.1.0 RC2)</p><p>Visuino 7.7.0.74</p>
Hello PedroM104,<br><br>Update to the &quot;Stable&quot; 2.1.0.<br>The Stable 2.1.0 is not compatible with the 2.1.0 RC2 and this is the reason for the error. Visuino was updated to be compatible with the Stable &quot;2.1.0&quot; version.<br>To update:<br>1. Uninstall 2.1.0 RC2<br>2. Delete manually the &quot;C:\Users\[USER_NAME]\AppData\Local\Arduino15\packages\esp8266&quot; !<br>3. Change the preferences to point to the &quot;stable&quot; release as described here : https://www.instructables.com/id/Setting-Up-the-Arduino-IDE-to-Program-ESP8266/<br>4. Install the stable 2.1.0<br><br>Make sure you do step 2! Otherwise you will have errors, and will not be able to compile any ESP 8266 projects!
<p>It worked, i managed to pass a few errors after this, i changed to COM5 and recompiled everything and its working ! YES ! My first Projected completed ! Thanks a lot !!!</p>
<p>Great! :-) You can post a picture of it ;-) . There is the &quot;I made it&quot; button on the top. It will be cool :-)</p>
<p>I will :) Thanks for the help.</p><p>You got any advice to make this a more portable device? <br>Currently im using two Smartphone Chargers connected to the devices.</p><p>Tomorrow i will take a further look, to tweak, make a few changes to learn more about this :) </p>
<p>I will :) Thanks for the help.</p><p>You got any advice to make this a more portable device? <br>Currently im using two Smartphone Chargers connected to the devices.</p><p>Tomorrow i will take a further look, to tweak, make a few changes to learn more about this :) </p>
<p>I will :) Thanks for the help.</p><p>You got any advice to make this a more portable device? <br>Currently im using two Smartphone Chargers connected to the devices.</p><p>Tomorrow i will take a further look, to tweak, make a few changes to learn more about this :) </p>
<p>I will :) Thanks for the help.</p><p>You got any advice to make this a more portable device? <br>Currently im using two Smartphone Chargers connected to the devices.</p><p>Tomorrow i will take a further look, to tweak, make a few changes to learn more about this :) </p>
<p>I will :) Thanks for the help.</p><p>You got any advice to make this a more portable device? <br>Currently im using two Smartphone Chargers connected to the devices.</p><p>Tomorrow i will take a further look, to tweak, make a few changes to learn more about this :) </p>
<p>If I read this corectly then it only reads Celcius and only goes to 0 degree or 32 F is there a F sensor?</p>
<p>The DHT11 component in Visuino has &quot;InFahrenheit&quot; boolean property ;-) . Check it, and you are in F ;-)</p>
<p>ets Jan 8 2013,rst cause:2, boot mode:(3,7)</p><p>load 0x4010f000, len 1264, room 16 </p><p>tail 0</p><p>chksum 0x42</p><p>csum 0x42</p><p>~ld</p><p>get this error on the sensor board any help would be great</p>
What sensor board you use? DHT11?
<p>Arduino: 1.6.7 (Windows 10), Board: &quot;NodeMCU 0.9 (ESP-12 Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)&quot;</p><p>After uploading to arduino and verifying, I get the following error:</p><p><em>Board nodemcu (platform esp8266, package esp8266) is unknown<br></em></p><p><em>Error compiling.</em></p><p>Any ideas?</p>
<p>I think you will need to reinstall the Arduino and the ESP libraries. It happened to few people and was fixed after reinstall. Seems to be bad install of the ESP support somehow...</p>
<p>I want to use this or some thing like it to monitor temps in a green house can it be set up for more than one sensor array? I want some under ground to monitor the geothermal I will install</p><p>thanks</p>
<p>Yes, you can easily do that :-)</p>
<p>I want to use this or some thing like it to monitor temps in a green house can it be set up for more than one sensor array? I want some under ground to monitor the geothermal I will install</p><p>thanks</p>
<p>You can very easily set it up for many sensors and many ESP8266 connected together. It should be extremely easy. Assign different IPs to the different ESPs and if you want more sensors to a single ESP, just add more elements to the Make/Split structure. Should take just few minutes to setup with Visuino :-)</p>
Thank you. Job will have to wait for spring but will tell you what turned out<br>
<p>Can this be installed in a truck and if so any hints on how?</p>
<p>The radio waves will be no problem it is the powering I am concerned about. Can it be powered out of a cigarette lighter?</p>
<p>Yes, it can, with a USB adapter as example rough the USB port.</p>
<p>Where in the truck you want to install it? If the compartment allows radio waves to go trough, it should work. You also will have to decide how to power it.</p>
<p>I'd love to be able to modify this a bit... it'd be my first project.</p><p>I want to measure the temp of my pool, save the data, then display it on a web page I could view on my phone. The web design/layout I can do... but the waterproof temp sensor and the moving/storing of the data is my stumbling block....</p><p>Thanks for this inspiration</p>
<p>Hello bsmith5.</p><p>You can use the code in the description here - <a href="https://thingspeak.com/channels/42236" rel="nofollow">https://thingspeak.com/channels/42236</a></p><p>To do just that, you'd need a waterproof sensor but you can then parse any data fields you wish to display any way you wish directly from thingspeak. Mine display via a home screen widget on a tablet.</p><p>Hope this helps.</p>
<p>You are Welcome! Enjoy :-)<br>I will see to also post a version with built it Web server sometime soon :-)</p>
<p>Hello again..! I had success with your other Visuino instructables with the temp and humidity sensor and a LCD display. I managed to combine this with your other instructable regardig displaying the data through the serial port and in the serial monitor included in the Visuino. </p><p> But I am a bit confused about this OpenWire library. Do I have to install this first ? You dont mention this in this instructable. And I cant find it in Github either. </p><p> And, thanks again for this great project :) Keep up the good work.. ! </p><p> I like that you take your time explaining how things are connected, and why it have to be done this way. I find it really difficult, but in a way I understand the basics. So please keep it simple and understandable for us &quot;dummies&quot; </p>
<p>Thank you!</p><p>All you need to do is install Visuino. It has the OpenWire.h file.</p><p>This is a special slim down OpenWire design for Arduino type boards.</p><p>The OpenWire project is a much larger library and more complex architecture. It is used internally in Visuino, but you don't need it to program Arduino or ESP8266.</p><p>Probably your problems ware related with some path not being properly set or something.</p>

About This Instructable

44,061views

509favorites

License:

More by BoianM:Arduino Nano and Visuino: Animate the Colors of RGB LED Arduino Nano and Visuino: Convert Acceleration to Angle From Accelerometer and Gyroscope MPU6050 I2C Sensor Assembling Pan and Tilt Camera Mount 
Add instructable to: