User Tools

Site Tools


projects:crazyflie2:expansionboards:ledring

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
projects:crazyflie2:expansionboards:ledring [2015-07-15 16:31]
127.0.0.1 external edit
projects:crazyflie2:expansionboards:ledring [2019-07-02 16:12]
victor
Line 1: Line 1:
-====== LED Ring expansion board ======+====== LED Ring expansion deck ======
  
-The LED ring expansion board contains two powerful front-facing white LEDs and 12 bottom-facing RGB individually addressable LEDs (it uses the same LEDs as used in the NeoPixel products by Adafruit).+The LED ring expansion deck contains two powerful front-facing white LEDs and 12 bottom-facing RGB individually addressable LEDs (it uses the same LEDs as used in the NeoPixel products by Adafruit).
  
-The board is designed to be installed as the last board on the bottom of the Crazyflie 2.0. It does not have pass-through holes for the expansion port connector.+The deck is designed to be installed as the last deck on the bottom of the Crazyflie 2.0. It does not have pass-through holes for the expansion port connector.
  
 {{:projects:crazyflie2:expansionboards:led-ring-topbottom.png?direct&400|}} {{:projects:crazyflie2:expansionboards:led-ring-topbottom.png?direct&400|}}
Line 11: Line 11:
 ===== Specification ===== ===== Specification =====
   * DC-DC step-up/down gives up to 1A at 3.8V from input between 2-5.5V   * DC-DC step-up/down gives up to 1A at 3.8V from input between 2-5.5V
-  * 12 independantly addressable RGB LED modules facing downwards ([[http://www.seeedstudio.com/document/pdf/WS2812B%20Datasheet.pdf|W2812B]])+  * 12 independently addressable RGB LED modules facing downwards ([[http://www.seeedstudio.com/document/pdf/WS2812B%20Datasheet.pdf|W2812B]])
   * 2 strong white LEDs facing forward   * 2 strong white LEDs facing forward
-  * 1-wire memory for automatic expansion board detection+  * 1-wire memory for automatic expansion deck detection
   * Designed for mounting under the Crazyflie facing downwards   * Designed for mounting under the Crazyflie facing downwards
   * Mechanical specification:   * Mechanical specification:
Line 21: Line 21:
 ===== Schematic ===== ===== Schematic =====
  
-Led ring expansion board {{:projects:crazyflie2:expansionboards:led-ring_revb.pdf|schematic}}.+Led ring expansion deck {{:projects:crazyflie2:expansionboards:led-ring_revb.pdf|schematic}}.
  
 +===== Parameters =====
 +
 +^Name^Type^Access^Value (default)^Description^
 +|ring.effect|uint8_t|RW|6|Ring effect (0=off, 1=White spinner, 2=Color spinner, 3=Tilt effect, 4=Brightness effect, 5=Color spinner2, 6=Double spinner, 7=Solid color effect, 8=Factory test, 9=Battery status, 10=Boat lights, 11=Alert, 12=Gravity, 13=N/A)|
 +|ring.emptyCharge|float|RW|3.099..| |
 +|ring.fullCharge|float|RW|4.199..| |
 +|ring.glowstep|float|RW|0.050..| |
 +|ring.headlightEnable|uint8_t|RW|0|Headlight LEDs (0=off, 1=on)|
 +|ring.neffect|uint32_t|RO|13|Number of available ring effects|
 +|ring.solidBlue|uint8_t|RW|20| |
 +|ring.solidGreen|uint8_t|RW|20| |
 +|ring.solidRed|uint8_t|RW|20| |
 +
 +====== Getting started with the LED Ring expansion deck ======
 +
 +To get started with the LED Ring expansion deck you can either control the LEDs using the client, or by code.
 +
 +==== Using the Client ==== 
 +
 +Start the cfclient
 +
 +Connect to your Crazyflie and make sure your //LED// tab is visible.
 +If not, go to View -> Tabs -> LED tab
 +
 +Now you can address each LED individually and set its RGB color.
 +
 +==== Using code ====
 +
 +You can easily control the LEDs by using the [[https://github.com/bitcraze/crazyflie-lib-python|Crazyflie Python lib]]
 +
 +There's two scripts in //Examples// that covers the basics:
 +  * basicLedparamSync.py
 +  * basicLedmemSync.py
 +
 +You can then modify the scripts to your needs by adjusting the color effects, fade effects, RBG values, timings and much more. There's really no limit to what you can do with this!
projects/crazyflie2/expansionboards/ledring.txt · Last modified: 2021-06-24 16:09 by kimberly