Skip to content

works on my machine

¯\_(ツ)_/¯

  • Projects
  • Prototypes
  • Coding
  • HowTos
  • Pinouts
  • Story time

Links

Github
  • About
works on my machine
¯\_(ツ)_/¯

Prototypes

Prototypes examples – most probably on a breadboard and the required software (parts) for it. Here I break down single parts of bigger projects to reuse them when building a combination of them.

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

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

    ByStefan December 22, 2023December 22, 2023

    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…

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

  • Faster than the shadow – an adapting nightlight in MicroPython
    Coding | Prototypes

    Faster than the shadow – an adapting nightlight in MicroPython

    ByStefan December 18, 2023

    This is a continuation of Is it dark yet ? – Measuring brightness with LDR on Pi Pico (W) and ESP8266 (D1 Mini & NodeMCU v3) in MicroPython, but concentrating on a fast and clean code rather than how to use a LDR with MicroControllers in principle. What you need: D1 mini or a similar…

    Read More Faster than the shadow – an adapting nightlight in MicroPythonContinue

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

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

    ByStefan December 15, 2023December 16, 2023

    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…

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

  • Food delivery for the blood sucker – publishing temp/hum values read from DHT22 connected to NodeMCU v3 with MicroPython to Mosquitto MQTT server via WiFi
    Prototypes

    Food delivery for the blood sucker – publishing temp/hum values read from DHT22 connected to NodeMCU v3 with MicroPython to Mosquitto MQTT server via WiFi

    ByStefan January 11, 2023January 26, 2024

    a.k.a. longest post title ever 😛 This is the Python code for a NodeMCU v3 running MicroPython 1.19.1. It will measure temperature and humidity at the connected DHT22 with breakout board every 30 seconds, connect to WiFi and publish to a MQTT server.The first code block will be the necessary as simple and clear as…

    Read More Food delivery for the blood sucker – publishing temp/hum values read from DHT22 connected to NodeMCU v3 with MicroPython to Mosquitto MQTT server via WiFiContinue

  • Know what temp/hum to complain about – a DHT22 sensor on a NodeMCU v3 with very simple MicroPython code
    Prototypes

    Know what temp/hum to complain about – a DHT22 sensor on a NodeMCU v3 with very simple MicroPython code

    ByStefan January 10, 2023January 11, 2023

    My first NodeMCU v3 board. Connected a DHT22 (includes PCB with breakout board) to 3V, ground and data pin to D1 (which is Pin 5). Kept Python code for measuring loop as simple as possible. You will find a fitting pinout at RandomNerdTutorials. This code measures the temperature and humidity every 30 seconds and prints…

    Read More Know what temp/hum to complain about – a DHT22 sensor on a NodeMCU v3 with very simple MicroPython codeContinue

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

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

    ByStefan August 22, 2022August 26, 2022

    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)….

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

  • Who goes where? A motion triggered night light for the Raspberry Pico
    Prototypes

    Who goes where? A motion triggered night light for the Raspberry Pico

    ByStefan March 17, 2022February 3, 2023

    A small helper at night and a nice little excercise on the Pico: an LED that lights up when it is dark and something moves. I used a HC-SR501 as motion sensor, light sensor with digital output, a yellow LED of my Pico project complete kit (330 Ohm resistor with it) and of course the…

    Read More Who goes where? A motion triggered night light for the Raspberry PicoContinue

© 2025 works on my machine

Privacy Policy

Scroll to top
  • Projects
  • Prototypes
  • Coding
  • HowTos
  • Pinouts
  • Story time
Search