nodeMCU ESP82 Tripwire Episode 1

I recently picked up a nodeMCUv3 from AliExpress for real-cheap, and I’ve been looking at adding MQTT to my resume. I’ve also been wanting to make a wireless tripwire/movement sensor, so now seems like the perfect time to build one. I initially chose ThingSpeak as my cloud MQTT broker, but I recently found Adafruit IO (AIO), which allows a much faster update period (1 POST per 2 seconds vs. 1 POST per 30s for ThingSpeak). AIO also seemed to be a lot more intuitive and easy to use. Since the motion sensor is transmitting very simple data (“0” for heartbeat every so often, “1” when the sensor gets tripped), a complex data display/trigger setup isn’t required. AIO also uses a night theme, where ThingSpeak is blinding white. The choice was obvious.1

Read More

Configuring PyCharm as an Arduino IDE

This will be a simple tutorial post, showing how I got my IDE setup to be a suitable replacement for the default Arduino IDE. If you’re working on a project where your Python code will be interacting with an Arduino, you may want the Arduino sketch Built + Uploaded before you run your main code. You will also probably want to change your Arduino code without having to open another editor/IDE. This tutorial will cover all these concerns.

Read More