9 ms·
Even more awesome: Skip the extra Arduino and use the ESP8266 as your Arduino. https://github.com/esp8266/Arduino https://github.com/esp8266/Arduino
by mgraupner 11y ago
Even more awesome: Skip the extra Arduino and use the ESP8266 as your Arduino.
https://github.com/esp8266/Arduino https://github.com/esp8266/Arduino
- TeMPOraL 11y agoGood one, thanks!
- IanCal 11y agoI realise how silly this question may seem but here we go: If I get an ESP8266, I can have something that run code, sit on my home network wirelessly and use it to do things like report on sensor inputs? Am I missing some larger expense that would be required as this seems very cheap compared to other options I've seen.
- bigiain 11y agoYes. At least for limited values of yes. You need to run it on 3.3v which means 3.3v versions of your sensore or external level shifting. You've got limited IO compared to, say, Arduino. But of you've got 3.3v sensors - yeah - all you need is an ESP8266 and some way of providing 3.3v. (And probably some pulldown/up resistors and decoupling caps...)
- makomk 11y agoI'm pretty sure the digital I/O on the ESP8266 is actually 5V tolerant according to the datasheet, though this isn't widely advertised and there's some inaccurate information drifting around from back when the specs weren't fully known. (The same isn't true of some official Arduino boards which should not be exposed to 5V on the I/O pins.) It's a very nice little chip.
- hantusk 11y agoto makomk: No first-hand experience, but entotheteeth on reddit, says that 5v data on the I/O will kill your device in this thread: https://www.reddit.com/r/esp8266/comments/3bm061/5v_board_with_esp8266_or_a_board_i_can_plug_in/ https://www.reddit.com/r/esp8266/comments/3bm061/5v_board_wi...
- IanCal 11y agoFantastic, thanks for the info :)
- Mchl 11y agoSimply put ESP8266 & Co. are awesomeness incorporated. http://www.instructables.com/howto/esp8266/ http://www.instructables.com/howto/esp8266/
- deleted 11y ago[deleted]
- IanCal 11y agoBrilliant, I'll have a look through those. Thanks for the link.
- mgraupner 11y agoThe only other part needed to get this running is a programming cable. The ESP8266 does not have a USB port but a serial one, so you need an adapter to connect and programm it. e.g.: https://www.sparkfun.com/products/12977 https://www.sparkfun.com/products/12977 Just be careful not to connect the 5V VCC to the ESP8266, it will probably kill it.
- IanCal 11y agoThat's fantastic, thanks :)
- extra88 11y agoThe SparkFun ESP8266 Thing Dev Board [0] has a USB-to-serial so you can use a micro USB cable. They're obviously more expensive but ESP8266 breakout boards like SparkFun's Things and Adafruit's Huzzah are more breadboard-friendly an generally easier to work with. [0] https://www.sparkfun.com/products/13711 https://www.sparkfun.com/products/13711
- StavrosK 11y agoThe cost is $4 for a NodeMCU, $2 for the sensors, $1 for a breadboard to stick them on, and $1 for a microUSB cable to power them from. You can power the sensors from the NodeMCU's Vin, since that's the 5V from the USB. I have done exactly this, it sends values to an MQTT server on my NAS every second or so, which the NAS then adds to Graphite and plots them in Grafana. It also has some logic to act on these values and send commands back, like turning lights on and off, etc.
- IanCal 11y agoPerfect, thanks, I'll have a look at the NodeMCU, looks like exactly what I'm after.
- ticklemyelmo 11y agoThe nodemcu is definitely the sweet spot. It saves you the trouble of power management, is breadboard friendly, and integrates the programmer. It's way easier to work with than the base ESP-01.
- Vaanir 11y agoAll that terminology at a really low cost, awesome. I feel like this comment could be turned into a popular blog post.
- StavrosK 11y agoI can write up the sensor setup I have at home, if you want. It has motion, temperature, humidity, light sensors and IR/RF remotes for controlling devices, and a burglar alarm.
- TeMPOraL 11y agoPlease do write about it. Personally, I'll be happy to steal as many ideas as I can for my upcoming home installation :).
- beatboxrevival 11y agoYou may want to wait for the ESP32 https://twitter.com/EspressifSystem/status/662205725125414912 https://twitter.com/EspressifSystem/status/66220572512541491...