User Tools

Site Tools


raspberry-pi-pico-bluetooth-led

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
raspberry-pi-pico-bluetooth-led [2022/02/10 21:43] – created adminraspberry-pi-pico-bluetooth-led [2022/02/10 23:42] (current) – [Raspbery Pi Pico Bluetooth LED] admin
Line 1: Line 1:
 ====== Raspbery Pi Pico Bluetooth LED ====== ====== Raspbery Pi Pico Bluetooth LED ======
  
 +Control LEDs over Bluetooth. You can set RGB values and brightness.
 +Brightness is calculated which is not perfect but does the job for now.
  
 +===== Wiring =====
 +
 +{{:radiopico-bluetooth-led.png?400|}}
 +
 +{{ ::radiopico-bluetooth-led.fzz |}}
 +
 +===== Parts =====
 +
 +  * [[https://amzn.to/3BfSTuM|Bluetooth Module]]
 +  * [[https://amzn.to/3uDsENh|Pi Pico]]
 +  * [[https://amzn.to/3uDsENh|Pi Pico]]
 +  * [[https://amzn.to/3uDsENh|LED Strip WS2812B]]
  
 ===== The Code ===== ===== The Code =====
Line 83: Line 97:
 Download the [[https://github.com/micropython/micropython/blob/master/drivers/neopixel/neopixel.py|neopixel.py]] module. Download the [[https://github.com/micropython/micropython/blob/master/drivers/neopixel/neopixel.py|neopixel.py]] module.
  
 +===== Send commands =====
 +
 +https://play.google.com/store/apps/details?id=de.kai_morich.serial_usb_terminal&hl=de&gl=US
 +
 +Turn on
 +
 +  {"command": "on", "data": {"r": 255, "g": 255, "b": 255, "brightness": 100}}
 +
 +Turn off
 +
 +  {"command": "off"}
 +
 +Get LED state:
  
 +  {"command": "status"}
raspberry-pi-pico-bluetooth-led.1644525806.txt.gz · Last modified: 2022/02/10 21:43 by admin