![]() That was pretty easy, but the connection was not persistent and kept dropping out. Having done that, I modified the sketch to read the TMP-36 and report the results when accessed. You use the Arduino IDE’s serial monitor to get the Wemos’s ip address, then and toggle the LED on and off. It enables you to type a URL into your browser to switch the onboard LED on and off. The only modification you have to make is to add your WiFi login credentials. ![]() The first sketch I tried was the WiFiWebserver sketch. You can even update them wirelessly, although I haven’t tried that yet (it screams “security hazard” to me, but would be OK if done well). If you are familiar with the Arduino IDE, these boards are a breeze to use. PinMode(2, OUTPUT) //do the same thing as If you use just the integers, it defaults to the ESP8266’s GPIO numbers. For digital pins you need to use D1, D2, D3 instead of just the 1, 2, 3 for your digitalRead() and digitalWrite() commands. The only caveat is that the port numbering is a bit confusing. You can have them working as web client, web server, or access point (to name but three modes). There are quite a lot of them (each of the items in the screenshot is a menu), but it gives you a flavour of what these boards can do. Looking through the examples is quite an eye-opening experience. There’s also a link you can copy into the Arduino IDE to install all the relevant libraries and examples specific to these boards. A driver for the CH340 USB interface is provided (I already had this installed from previous Arduino nano clone usage). So a little ‘playtime’ was very welcome.) Installation (I’ve been heavily into a development cycle on a top-secret new project that I hope to be able to announce within the next few weeks. ![]() They arrived recently and I took a little time to have a play. Has an ADC input (I love my TMP-36 sensors).On inspection, it ticked all my boxes for this project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |