4 ms·
The 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 sensor
by StavrosK 11y ago
The 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 :).
- StavrosK 11y agoGreat, I'll give it a shot tomorrow. I also have a mini-ecosystem of Python scripts to communicate with the sensors over serial and to read values, etc. I'll post that as well.
- TeMPOraL 11y agoGreat! :). Will be refreshing /new/ tomorrow.
- StavrosK 11y agoHmm, it looks like I open-sourced most of it a while ago (way to go, past me!): https://github.com/skorokithakis/ArduiRC https://github.com/skorokithakis/ArduiRC I'll write up the details, but this is a good chunk of it.
- comrh 11y agoI JUST started this exact functionality to communicate with a wireless scale, thanks for sharing!
- StavrosK 11y agoYou're welcome, I'm working on some NodeMCU-based designs now, with IR as well.
- TeMPOraL 11y agoSo, where's the Show HN? ;).
- StavrosK 11y agoMan, I spent all day yesterday trying to reimplement the sensor for the ESP8266, as I thought it would be better to have it report over MQTT, but the damn thing keeps crashing in seconds. I literally cannot keep it working for more than a few seconds, no matter what I do. I'm pretty disheartened, I'll try some more and either succeed or go back to an Arduino over serial... Do you have any experience with making it not crash?