Most of us are using the ESP8266 as is. There is a library to allow you to translate your sketches and flash them to the ESP directly. See my HowTo Esp8266 - #20 by kreggly
The ESP modules are not supported yet by Cayenne, however, many of us in the community are gleefully using them (follow the HowTo).
@Ian do you know if anyone has made the Huzzah board work as a wifi slave with the NodeMCU AT command set? There is code to do this in the Blynk library, through the serial port, I’ve just never tried it.
Now there is enough IO on the ESP-12 for you to drive your relays:
There is only one ADC input though. It works up to 3.3V on the ESP-12s, but there can be only one (Highlander reference, if you’re not with the lingo).
You can certainly get the I2C and SPI interfaces going though and chose your sensor.
This would put you into a fairly compact device for under 20 bucks by my estimates.
I did have a fiddle with the Uno and ESP8266 (usual “Wifi temp sensor”), but couldnt get anything stable to work, so gave up and moved onto RPI2…
So, based on your comment above, saying the ESP-12 has enough IO’s to run an 8 channel relay (I’ll only be using 4 channels, plus 2 x DS18B20 ) and the pic in your how to of the ESP connected to a relay, I take it your not saying the ESP8266 can run Cayenne on it’s own?
So, if I get a nano (now discontinued by Arduino it seems), I’d set up wifi access on the ESP8266 via the Arduino, then just install Cayenne as normal, and it just “finds” the wifi connection?
Sorry, bit new to all this, but getting more of an idea since I got the Pi to actually work ;).
You are welcome. That is what we are here for. The ESPs kind of snuck up on us and the fact that some bright bunny integrated it with the Arduino IDE is an amazing breakthrough.
Its interesting to read your posts, I’m going through a similar learning curve seemingly.
I started with Arduino using RPi for Ethernet comms but had a lot of issues. Then I tried RPi on its own which was very solid except its too limiting for my needs. I too am attracted to the small form factor of the Arduino Nano and/or ESP8266 but I have started testing with an UNO and Ethernet shield and don’t find the dashboard as solid and reliable as the RPi and that’s on Ethernet!
So I’m in two minds whether to continue down the Arduino/ESP route or ramp up the IO capabilities of the RPi.
However, the though of a full Rpi sat there “just” running two temp sensors and a relay seems a bit of a waste .
I’ve been watching the ESP’s since they came out, bought one when they first came out, but was rather put off when I couldnt get a damn thing to work… that and my knock-off Uno have been sat in my “bit box” ever since!
Still, if we can make a 1" ESP do what I’m thinking, for a few ££, then just - WOW!
My skills are at best “intelligent bodger” - I’ve been building PC’s for decades, but my electronic skills are at best surprised if something works! However, I like trying projects like this to “push beyong” my comfort zone…
Also, I’m crap at soldering!
I get the idea, just darned if I can get it to what it’s supposed to…
Great to hear. It seems like I’m theoretically more qualified than you but my efforts seem a hell of a lot like “intelligent bodging” most of the time so you aren’t alone there! -
I too think the RPI is total overkill for most of this stuff and especially as I need analogue more than digital IO. I bought a job-lot of dirt cheap Arduino Nano’s and its annoying that they are relatively hard to interface to Cayenne with Ethernet and even more annoying that they could be replaced entirely by a ESP with wifi included!
You can get the modules for like 2 bucks on AliExpress, then a breakout board for another 50 cents, and a really good LDO for another 10 cents (150mV).
NP. All stuff I’ve already played with and tried out. Only the RS232 adapters I haven’t tried as I have an original FTDI one. Only problem is that my FTDI one only outputs 5V so it’s not suitable for powering the ESPs directly, thus the need for a regulator.
I played around with this on the weekend and was able to satisfy the underlying Blynk requirements with an updated esp shield header file, etc, but the Cayenne class does not support the overload of the Cayenne.begin function with the extra parameter for the ESP8266 handle.
Might want to look into this @bestes if the ESP with the NodeMCU firmware is to be supported as a shield on future roadmaps.