I thought I would start a thread up here to detail a project that myself and my father in law are putting together.
We both ride motorbikes, and we both do track days, and we both have IT backgrounds.
Modern sports bikes are all coming with data loggers and traction control, we thought it would be fun to see if we can develop something ourselves for our aging but very capable bikes.
This is our first Arduino build, so we have split it up into a number of phases.
Phase 1. Basic Data logger.
The aim of this phase is to get the arduino to create log entries 20 times per second and record onto a CSV file the following information:
- GPS position
- Lean Angle
- Engine Speed
The hardware we are using for the above is a arduino Mega board, an adafruit ultimate GPS module with external antenna, and an MPU6050 6 axis gyroscope and accelerometer.
Phase 2 - Extended Logging.
The second phase includes logging extra information including
- Front wheel Speed
- Rear Wheel Speed
- Throttle Position
This phase we want to start to introduce some sort of feedback to the rider. I want to display a wheel slip gauge. maybe a row of LED's that light up as the level of slip increases. Something we can see visually and play about with.
The hardware we have for this so far is an external IC (SN74LV8154 linking to a 8 bit PISO shift register SN74LV165APWR ) for counting each rotational sensor for sampling the values by the Mega. There's more to this that I will pad out later.
Phase 3 - Traction Control
The third phase builds on the data gathered by the first 2 phases, and introduces some form of traction control strategy, yet to be decided but we are talking about monitoring wheel slip and based on the data gathered previous setting a slip threshold that will trigger the traction control. we will hopefully be able to build a number of adjustment maps for a given lean angle, engine speed, throttle position etc.
We are initially going to cut the engine power by way of a pulsed ignition cut on 1 cylinder. We will need to experiment with the severity of the cut.