Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Tom-Camp/hutch

Repository files navigation

Hutch Lights

Micropython hutch (cabinet) lighting

A simple program to light a liquor cabinet using a Raspberry Pi Pico a reed switch, and LEDs using Micropython. The code uses the Pico PIO. It probably doesn't need to, but, you know, why not? The light(s) willl go off if the door is closed, but is also on a timer so the light(s) will go out after 60 seconds if the door is left open.

Installing

  • Install Micropython
  • Once Micropython is installed copy the contents of the main.py to main.py on the Pico.
  • Wire the reed switch GPIO pin 2.
    • Wire a 10k ohm pull up resistor from the 3.3V pin to pin 16
  • Wire any LEDs to GPIO pin 6

That's it. Plug it in and call it good.

Built with

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Micropython hutch lighting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages