Always look on the bright side of life: An adaptive night light for RGB LED stripes in MicroPython
|

Always look on the bright side of life: An adaptive night light for RGB LED stripes in MicroPython

This covers a very configurable and more complex variant of measuring brightness and turning on LEDs.If you are looking for a more basic variant: It all began with a LDR and curiosity. The result is a night light for a ESP8266 like D1 Mini or Raspberry Pi Pico (W) which compensates darkness with many configurable…

Is it dark yet ? – Measuring brightness with LDR on Pi Pico (W) and ESP8266 (D1 Mini & NodeMCU v3) in MicroPython

Is it dark yet ? – Measuring brightness with LDR on Pi Pico (W) and ESP8266 (D1 Mini & NodeMCU v3) in MicroPython

Materials you need for this: LDRs (I am using 5528), breadboard, jumper wires, resistor (I used 56k) and a 5V power supply. The MicroPython code has been written for and tested on Pi Pico, Pi Pico W, D1 Mini and NodeMCU v3 ESP8266 .I bought it at berrybase.de and az-delivery.de (not referral links). The microcontrollers…

I don’t like grilled cheese – a thresholded IoT (MQTT) DHT22 sensor on with a D1 mini written in MicroPython with circuit diagram, casing and installation

I don’t like grilled cheese – a thresholded IoT (MQTT) DHT22 sensor on with a D1 mini written in MicroPython with circuit diagram, casing and installation

TLDR: An IoT sensor for temperature and humidity sending its values to a local MQTT server. Measuring interval and thresholding easy to configure. So much to write about a pretty small device and less than 100 lines of code including configuration, prints and comments. Hope you enjoy it! 🙂 I really like building and writing…

YFNWG – your friendly neighbourhood washroom guard. IoT thresholded Temp/Hum/Open sensor with MicroPython on a D1 mini

YFNWG – your friendly neighbourhood washroom guard. IoT thresholded Temp/Hum/Open sensor with MicroPython on a D1 mini

It measures the temperature, humidity and open status of a window and send the values to the local MQTT broker if the values have changed (enough). The D1 got a nice housing on a solderable breadboard. The sensor cables can be plugged and unplugged into sockets on the breadboard. So I can easily exchange the…

Knock-knock- a door or window sensor prototype in (Micro)Python on the Pico, D1 mini and Pi Zero

Knock-knock- a door or window sensor prototype in (Micro)Python on the Pico, D1 mini and Pi Zero

Jump to: Pico – D1 mini – Pi Zero Raspberry Pico A short Python implementation of a magnetic switch turning on a LED when it is not connected (e.g. window is opened). For simplicity reasons I used the builtin LED on the Pico. You have to use the pull=Pin.PULL_DOWN parameter for the input pin (sensor)….

Gordon knows how: Flashing Micropython on D1 mini and D1 mini lite

Gordon knows how: Flashing Micropython on D1 mini and D1 mini lite

As I really prefer Python for my little projects over C++, I flashed my Wemos boards with Micropython and wanted to share how I did it (it was pretty easy). You have to connect your board with USB to your computer, have Thonny installed and the desired micropython image downloaded. (You can do it with…