Skip to content

mampersat/morse_pixel

Repository files navigation

Morse Pixel

Button + NeoPixels + MQTT

Simple control of neopixel lights using MQTT protocol. Get the device online and witness folks turning their lights on and off on your device.

  • Button publishes MQTT message
  • Light 1 responds to button clicks
  • Light 2 responds to MQTT messages

Not included: A broker, we lean on HiveMQ's public broker. So anyone can see your messages, and subscribe to anyone elses.

Raspberry PI Pico + Morse Code key

BOM (Bill of Materials)

  • Pico PI
  • NeoPixels
  • Switch
  • Wires

Assembly

  1. Bent the pins on the PI to reduce required wiring
  2. Wires can go to any kind of (normally open) button/switch

Provision software to Pico

  1. Flash micropython firmware (plug it in and drag/drop this file to it) : After doing this I see the device as /dev/ttyACM2 on my system (ubuntu 22), yours will probably be different
  2. Install umqtt on pico (multple ways to do this... here is one)
    1. ampy -p /dev/ttyACM2 put install_libraries.py main.py
    2. Turn it off and back on again
  3. Upload code using apmy
    1. ampy -p /dev/ttyACM2 put wifi.py
    2. ampy -p /dev/ttyACM2 put main.py
    3. Turn it off and back on again
  4. Press your button

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published