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

Both sides previous revisionPrevious revision
Next revision
Previous revision
raspberry-pi-pico-bluetooth-led [2022/02/10 22:06] 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.+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 ===== ===== Wiring =====
Line 8: Line 9:
  
 {{ ::radiopico-bluetooth-led.fzz |}} {{ ::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 93: Line 101:
 https://play.google.com/store/apps/details?id=de.kai_morich.serial_usb_terminal&hl=de&gl=US https://play.google.com/store/apps/details?id=de.kai_morich.serial_usb_terminal&hl=de&gl=US
  
-Turn in LEDs+Turn on 
 + 
 +  {"command": "on", "data": {"r": 255, "g": 255, "b": 255, "brightness": 100}} 
 + 
 +Turn off
  
-  {"command": "state", "state": 0, "r": 0, "g": 0, "b": 0, "brightness": 0}+  {"command": "off"}
  
 +Get LED state:
  
 +  {"command": "status"}
raspberry-pi-pico-bluetooth-led.1644527202.txt.gz · Last modified: 2022/02/10 22:06 by admin