In this article, I will explain how I managed to get the WEMOS Lolin32 lite board running for more than a month on a single 1200 mAh LIPO battery. After showing my solution, I will get back on the biggest mistake I made during my tests (SPOILER: error handling is important).
Continue reading “Keeping Lolin32 lite up for more than a month”
Recently, I discovered Platform.io which is a set of tools integrated in Atom editor. It allows the VERY easy management of tool chains for multiple boards. Here is my first program.
Continue reading “Using Platform.io to blink a NodeMCU’s LED.”
Continue reading “Enabling and using WebSockets on Mosquitto”
In this post I’ll explore how to install Mosquitto (MQTT Broker) and test it is working.
Continue reading “Setting up Mosquitto on Raspbian Jessie”
This is the code to blink a LED on a GPIO on an ESP8266-1 loaded with NodeMCU. What is of particular interest is the GPIO0 and GPIO2 values.
pin = GPIO0
if lighton==0 then
-- 512/1024, 50% duty cycle
When I received my two NodeMCU boards, I rapidly tried to update the firmware … and broke the firmware of one of the board. So here is the correct way to flash a firmware on a NodeMCU board which allowed me to save it.
Image by Vowstar (Own work) [CC BY-SA 4.0 (http://creativecommons.org/licenses/by-sa/4.0)], via Wikimedia Commons.
Continue reading “Flashing NodeMCU using Ubuntu”
My last project uses a Digispark (ATtiny85) as an USB keyboard to send the lock screen shortcut (Ctrl-Alt-L) when a single button is pressed. To bring some fun, I bundled the whole in an emergency stop push button.
Continue reading “Emergency Lock Button”
Arduino IDE is great, however, some times I enjoy a simple C program and a simple Makefile. Here is a simple application skeleton allowing to blink a LED of course.
Continue reading “Blinking a DigiSpark without Arduino IDE”
I challenged a friend to connect a micro-controller to a Raspberry Pi. I chose to use an ATMega168 programmed in C while he preferred to use a Microchip PIC programmed in ASM. Not that I don’t like ASM, but it took me only 45 minutes to get all the material together and blink some LEDs from a shell. To get thinks up very fast, I used a BugOne board. This is clearly an advantage for me since it is already assembled with an ISP connector and ready to use.
Continue reading “Connecting BugOne and Raspberry Pi”