-
What do we need for the Logic Board - The BRAIN ESP32 Pico D4
08/22/2021 at 18:10 • 0 commentsSo lets think what we need for our replacement logic Board.
First of all. We need a Brian for the Board.
I choosed an Espressif ESP32. Because of the small space inside the Bike light we need to take care.
Thats why i choosed the smallest possible board for the Mikrocontroller. The ESP32 Pico D4
The Advantages of this Microcontroller:
- Wifi - it comes with an easy to use Wifi Stack
- BLE: Bluetooth. You may use Bluetooth and BLE
- Dualcore: You have 240 MHz Dualcore: So more than enough for a bikelight
- a ultra low Power ULP Co Processor
Now the downside of this Microcontroller are:
- It is not easy to solder by hand.
- limited space: Only 4 Mbytes of Space
So how can we get around these downsides.
Recently a lot of PCB manufacturers offers nowadays Soldering of the boards as well. This helps you to break the hassle of soldering such small Reflow devices.
For my needs this is a perfect solution.
-
What do we need for this Bike light
08/22/2021 at 18:01 • 0 commentsIt is pretty difficult for me to built proper housings.
Thats why I decided to recycle my old bike light and update the inner parts with some new interieur.
I bought a cheap Bike light on Ebay. You may find it still here.
On the bottom it looks like this.
There are two Philips Screws. You may easily unscrew them and open the whole thing up
After that you see the inner parts:
There is not much inside.
2 tacile switches
1 Logic Board
5 RED LEDS
and 2 Red Light Line Lasers
on the other side there is a Battery holder for 2 AAA Batteries.
Looks pretty to integrate a different board in here
-
The Project Goals
08/22/2021 at 17:44 • 0 commentsIn the past I often learnt that it helps to write up some project goals.
Based on that list I can develop and cross out things I have achieved and focus on things that I want to achieve:
So lets make a Userstory what this device shall do:
Basics:
- The Device primary function is a Bike light
- The User shall be able to enable a bike light with a button
- The User shall be able to enable a bike light with a light sensor
- The light shall only switch on if the bike is in motion and ambient brightness is low.
- The light shall switch off if the there is no movement detection for more than 5 min
Battery Warning
- A Battery Warning shall be transmitted to the user if the battery is low
Enhanced function
A) Antitheft Location Detection
- It shall be possible to localize the bike once it is stolen
- The Antitheft method shall not consume a lot of power and
B) Multisensor Support
- The user shall be able to read out multiple sensor readings e.g
- Gyro,
- GSensor,
- Environment Data: Temp, Humidty, Air Quality, Pressure
- Hight Sensor with Pressure readings
C) Multisensor Reading
It shall be possible to read external sensors: e.g Heartbeat sensors, speed sensors.
Captured data shall be stored in a database.
D) Proximity and Distance Sensor
It shall be possible to detect approaching devices and measure the distance and speed
With this idea you can warn the bike users if a car is approaching in the night and adapt the brightness of the light.
E) It shall be possible to update the Bike light via WIFI
- OTA Arduino Method shall be used for easy implementation mtehod