Introduction: [Arduino] Arbike - a Interactive Bike Lighting System
Arbike v5.1
This code is based on Arduino, is about an interactive bike's lighting system.
---
Main Feature :
Speedometer — Current speed / Trip distance
Thermometer — Current temperature
hygrometer — Current humidity
Front — Strong LED headlights
Back — Emotional "Useless Box" combine with tail lights (base on LED matrix)
Automation on/off — Detect brightness / people
Switching modes — switch system to auto or off
---
Source code is on Github !
— the features are continuously update and open to change by anyone.
---
Inspire by :
1. Pimpmybike:http://jdeboi.com/portfolio/pimpmybike/
2. Useless machine(Kairoshi):https://www.youtube.com/watch?v=bOD2-mRphTI
Step 1: Video Demo
Simple demo video:
Step 2: Hardware Required
1. Arduino nano *1
2. LED matrix(16*24) with HT1632C *1 https://goo.gl/fACroy
3. LCD with I2C *1
4. HC-SR04 *1
5. SG90 servo motor *2
6. Photoresist *1
7. DHT11 *1
8. Breadboard *1
9. Reed switch
10. Button *4
11. Resistance 10k *2
12. Cables / Wires / *n
13. LED *3
14. Power bank *1 (for power supply)
15. USB Type A to USB Mini-B wire *1
Step 3: Hardware Connections
Follow the photos and wire up your system !
Attachments
Step 4: Software Library Required:
1. Download the libraries below:
(git clone or enter the link, and click clone or download, download zip)
"Timer.h" -> https://github.com/JChristensen/Timer
"LiquidCrystal_I2C.h" -> https://bitbucket.org/fmalpartida/new-liquidcrysta...
"DHT.h" -> https://github.com/adafruit/DHT-sensor-library
"Adafruit_GFX.h" -> https://github.com/adafruit/Adafruit-GFX-Library
"Adafruit_HT1632.h" -> https://github.com/adafruit/HT1632
modified by myself to fit my LED matrix:
(please use this two version below, instead of the original version.)
"Adafruit_GFX.h" -> https://github.com/shannon112/arduino_Arbike/tree/...
"Adafruit_HT1632.h" -> https://github.com/shannon112/arduino_Arbike/tree/...
2. Decompressed the files you downloaded.
3. Move them to Arduino library.
For MacOS, move all folders to
/Users/shannon/Documents/Arduino/libraries
remember change shannon to your user name.
Step 5: Code
Go to my Github get the latest code.
https://github.com/shannon112/arduino_Arbike/tree/new-master
Click branch to change the branch to new-master or the latest tag version.
Click clone or download to download.
Decompressed the file you downloaded.
---
Enter the Arbike_main folder,
Open the Arbike_main.ino,
Compile and upload to your Arduino nano by Arduino IDE !
Step 6: (NOT NECESSARY) Change Arbike Face by Yourself !
Through the excel in package you can change Arbike face whatever you want !
Face.xls
copy the column in excel to the code.
const uint16_t slow[] PROGMEM = {<br> B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B00010000, B00000000, B00001000, B00100000, B00000000, B00000100, B01000000, B00000000, B00000010, B10000000, B00000000, B00000001, B00111100, B00000000, B00111100, B00111100, B00000000, B00111100, B00000000, B00000000, B00000000, B00000000, B01000100, B00000000, B00000000, B10010010, B00000000, B01111000, B10010010, B00011110, B00000000, B01101100, B00000000, B01111000, B00000000, B00011110, B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, };
Step 7: It's Work!
This is a really fun project, I had a lot of fun creating it. If you also think so, please give me a favorite or visit my site.
Blogger:https://shannon112.blogspot.tw/
Github:https://github.com/shannon112/
Instructables:https://www.instructables.com/member/Shannon112/