Upgrade your bike with LEDs, raibows and turn signals.
Project description
Upgrade your bike with LEDs, raibows and turn signals.
Want your bike getting upgraded by me or do you have some ideas for the project? Fill out this contact form.
Want to support the development and stay updated?
Click here to see photos of the bike.
Features
- Turn left & right animation
- Rainbow animation
- Safe driving animation
Requirements
Hardware
- your bike
- 1x ESP8266 or ESP32 (for example NodeMCU)
- 3x WS2812B LED strips with waterproof protection
- 3x USB to MicroUSB cables with switch to turn on/off power
- 2x Toggle switches
- 1x external battery with 3 or more USB ports
- a bunch of longer cable ties
- tape
- soldering iron, solder
- cables, to connect LED strips, Toggle switches, USB power cables and ESP
- fur fabric
Software
How to test the code
pip install glowingbike
sudo python
from glowingbike import Bike
Bike(test=True).on()
How to upgrade your bike
Software
- Install MicroPython on your ESP8266 or your ESP32
- copy latest neopixel_plus.py to the main directory of your ESP using the WebREPL.
- create 'functions' folder on ESP, with all files from the 'functions' folder of The Glowing Bike Project
- copy 'main.py' and 'bike.py' to main directory
Electronics overview
Hardware
- tape one LED strip to the back of your bike, one to the center part and one at the front of your bike
- for each LED strip solder the LED strip power and ground to the power and ground of one of the USB cables with a switch in the middle (on Micro USB side) - and connect the power and ground of the ESP to the USB cable with the least amount of LEDs connected
- solder the data cables of the LED strips to the ESP (GPIO 13 for the front LEDs, GPIO 12 for the center LEDs and GPIO 14 for the back LEDs)
- connect the USB cables with the external battery and fix the battery on the back of your bike
- fix the toggle switches to your bike handlebar at the front (using tape and cable ties) and solder it to the ESP (use GPIO 3 for the data pin of the left switch, GPIO 1 for the right switch)
- once you connected all the electronics, cut out pieces of fabric to cover the cables connecting the front LED strip and switches, cover the bike with your fabric and make sure the LEDs aren't covered with the fabric
- fix the fabric, LED strips and wires using cable ties
Done! Turn on all three switches and you are ready to drive:)
Photos
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
glowingbike-1.0.10.tar.gz
(7.4 kB
view details)
Built Distribution
File details
Details for the file glowingbike-1.0.10.tar.gz
.
File metadata
- Download URL: glowingbike-1.0.10.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f3843ead0f119b5f117d8e5b029dc71b4f4e272f4c19abb640fcd7b9e84208a |
|
MD5 | 59a41fd7a8b4fd9f1167a920032270f7 |
|
BLAKE2b-256 | 7df617b484a7d8cde8f8dc1111e952e9870e05d68c084850756763017a642702 |
File details
Details for the file glowingbike-1.0.10-py3-none-any.whl
.
File metadata
- Download URL: glowingbike-1.0.10-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f602502e58992487ac82c92d9634466707d4a3de20e77b0934909bc575b610c6 |
|
MD5 | fa9cbf6c284b162456690d13107d87b3 |
|
BLAKE2b-256 | 629e1b6962b75d1a79d3d78317fce1eea8a67a009ed591c0edecd5d761b7707c |