Jump to content

MOD: added RGB LED bar for STOP light and animation related to speed


Recommended Posts

Please read more on the project page: https://github.com/EGG-electric-unicycle/documentation/wiki/MicroWorks-30B4-controller-board-RGB-LED-strip

---

MicroWorks 30B4 controller board RGB LED strip

With this MOD, an EUC using MicroWorks 30B4 controller board will have a RGB LED strip that will turn red when the rides brakes (STOP light) and will make an animation with color that increases in speed when the EUC speed increases - please see the video:

Video "EGG Electric Unicycle - promotion at Makerfaire Lisbon 2016":https://youtu.be/OFdzoj7q6qY
687474703a2f2f696d672e796f75747562652e63 

Philosophy

Riding an EUC during the night is much more cool if it has lights (important for safety reasons!) but is is even more cool if the lights have color and they can work as a brake STOP light, increase the animation speed with the EUC speed, etc.

How to build

The MicroWorks 30B4 board have a Bluetooth module and the EUC information like speed, battery voltage e motor current is always sent out every 2ms, to the module, by UART. We can read the information at the TX pin of UART and use it for our needs.

On this MOD I used an cheap Arduino Pro Mini to read and process the data from TX pin of UART. Then I controlled a cheap RGB LED strip model WS2812b with 15 RGB LEDs.

For the power supply, I used the MicroWorks 60V to 12V step down converter (modded to output 5V). As the WS2812b and Arduino need 5V, I used the step down converter with 5V output. The max current the WS2812b with the 15 LEDs and the Arduino sink should be under 1A and so is ok for step down converter that can handle max of 2A.
I used a switch to turn on/off the power supply (at the input of the step down converter).

As showing on the following picture, I used a small board to fix the original Bluetooth module (from the 30B4 controller board) together with the Arduino and the step down converter. I also added 3 connectors: 1 for the 60V power supply coming from the main board; 1 for the on/off switch and the last one for the WS2812b RGB LED strip:
EGG_EUC-RGB_LED_strip-02-800x.jpg

The following picture shows the final assembly on the EGG EUC, including the WS2812b RGB LED strip that were glued with hotmelt glue to the plastic shell:
EGG_EUC-RGB_LED_strip-01-800x.jpg

Please find the firmware for the Arduino here: https://github.com/EGG-electric-unicycle/RGB_LED_bar/blob/master/RGB_led_bar/RGB_led_bar.ino

You can see more information about the MicroWorks 30B4 controller board here: MicroWorks-30B4---30km-h-controller-board-with-bluetooth

Part list

Component Units Price Unit ($) Link Notes
Arduino Pro Mini 1 1.5 http://www.ebay.com  
ws2812b RGB LED strip (15 LED) 1 12 http://www.ebay.com  
MicroWorks 60V to 12V step down converter 1 12 http://wholesaler.alibaba.com/product-detail/converter-DC-60V-to-12V-output_60461417441.html  
TOTAL $25.5 - -  
Link to comment
Share on other sites

The MOD is now finished (but sure, the Arduino code can be improved, like showing the battery state/voltage on the RGB LEDs). I documented the MOD on the github wiki:

Please read more on the project page: https://github.com/EGG-electric-unicycle/documentation/wiki/MicroWorks-30B4-controller-board-RGB-LED-strip

---

MicroWorks 30B4 controller board RGB LED strip

With this MOD, an EUC using MicroWorks 30B4 controller board will have a RGB LED strip that will turn red when the rides brakes (STOP light) and will make an animation with color that increases in speed when the EUC speed increases - please see the video:

Video "EGG Electric Unicycle - promotion at Makerfaire Lisbon 2016":https://youtu.be/OFdzoj7q6qY
687474703a2f2f696d672e796f75747562652e63 

Philosophy

Riding an EUC during the night is much more cool if it has lights (important for safety reasons!) but is is even more cool if the lights have color and they can work as a brake STOP light, increase the animation speed with the EUC speed, etc.

How to build

The MicroWorks 30B4 board have a Bluetooth module and the EUC information like speed, battery voltage e motor current is always sent out every 2ms, to the module, by UART. We can read the information at the TX pin of UART and use it for our needs.

On this MOD I used an cheap Arduino Pro Mini to read and process the data from TX pin of UART. Then I controlled a cheap RGB LED strip model WS2812b with 15 RGB LEDs.

For the power supply, I used the MicroWorks 60V to 12V step down converter (modded to output 5V). As the WS2812b and Arduino need 5V, I used the step down converter with 5V output. The max current the WS2812b with the 15 LEDs and the Arduino sink should be under 1A and so is ok for step down converter that can handle max of 2A.
I used a switch to turn on/off the power supply (at the input of the step down converter).

As showing on the following picture, I used a small board to fix the original Bluetooth module (from the 30B4 controller board) together with the Arduino and the step down converter. I also added 3 connectors: 1 for the 60V power supply coming from the main board; 1 for the on/off switch and the last one for the WS2812b RGB LED strip:
EGG_EUC-RGB_LED_strip-02-800x.jpg

The following picture shows the final assembly on the EGG EUC, including the WS2812b RGB LED strip that were glued with hotmelt glue to the plastic shell:
EGG_EUC-RGB_LED_strip-01-800x.jpg

Please find the firmware for the Arduino here: https://github.com/EGG-electric-unicycle/RGB_LED_bar/blob/master/RGB_led_bar/RGB_led_bar.ino

You can see more information about the MicroWorks 30B4 controller board here: MicroWorks-30B4---30km-h-controller-board-with-bluetooth

Part list

Component Units Price Unit ($) Link Notes
Arduino Pro Mini 1 1.5 http://www.ebay.com  
ws2812b RGB LED strip (15 LED) 1 12 http://www.ebay.com  
MicroWorks 60V to 12V step down converter 1 12 http://wholesaler.alibaba.com/product-detail/converter-DC-60V-to-12V-output_60461417441.html  
TOTAL $25.5 - -  

 

@Lz Lee

Link to comment
Share on other sites

  • 3 weeks later...

I just got an idea how to show battery state in addition to the current speed and brake indications :-)

IDEA: when the EUC is stopped, instead of being in red brake light, the top 5 LEDs shows the battery state, so I can easily see the battery state everytime I turned on the EUC or when I stop.

2016-07-30 22.23.27 (Medium).jpg

States:

- moving forward: rotation animation that goes faster with speed increase
- braking: when braking, all the LEDs turn red
- no movement: front and back LED turn red and the 5 top LEDs works as a bar indicating battery state
 

 

Link to comment
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...