Рет қаралды 626
Instagram: / marteney_moto
I'd had a slight interest in learning what the deal was with arduino microcontrollers, and in the downtime that 2020 caused I decided to pull the trigger. I picked up a starter kit and ran through the basics of building circuits and learning basic coding, with the end goal of building a custom gauge cluster for my SV650 project bike. I spent most of the year stumbling through learning the basics and was finally able to put the pieces together to make a functioning unit, after 30 iterations of the code.
Then, someone took it upon themselves to destroy it this winter. Great. But, it gave me an opportunity to rebuild it and record this video, so while it was frustrating it was no great loss.
The tachometer function measures the frequency of the signal telling the ignition coil to fire, then does some basic math to output it in RPM. This is a 12V signal, so I have the input wire split into a voltage divider, with the ground going to the coil ground wire to minimize wiring at the arduino unit. I used this webpage ( ohmslawcalcula... ) to determine which resistors to use.
The speedometer function pulls data from the GPS unit and updates when new data is available. As I said in the video, the GPS unit is currently using velcro to stick to the back of the number plate, but when I (eventually) design a housing, it will live inside there.
The gear indicator was originally only going to be a neutral light, but once I discovered the signal was nearly 0V to nearly 5V I decided to incorporate a gear indicator. I will update this when I do maintenance and see which plug and pin it connects to on the bike.
The temperature sensor is powered and simply taped to the side of the radiator hose. It works well enough to give me a general idea of the temperature.
The fuel level sensor comes off of the fuel pump wiring harness. I will update this when I do maintenance next and see which plug and pin it connects to on the bike.
The oil pressure wiring comes from the oil pressure wire on the KOSO plug, directly to an analog input on the arduino. The KOSO plug's paperwork shows which wire this is.
The unit is powered by the KOSO plug's switched power wire and ground, which I soldered to a voltage regulator tuned to 5V, then soldered a wire with a power plug going to the 5V input on the arduino. This was to have the power switch with the key, as well as to maintain the USB port available to use the serial monitor to verify functionality, troubleshoot, and determine input levels to control outputs. My original intention was to have all the inputs to the arduino be through the KOSO plug, but most of the data going to the stock gauge unit is serial data sent from the bike's ECU, and parsing that is far beyond my skillset.
I will post a separate video going over the code.
Adruino: smile.amazon.c...
LCD Shield: smile.amazon.c...
GPS Unit: smile.amazon.c...
Voltage Regulator: smile.amazon.c...
Power Plug (to arduino): smile.amazon.c...
Temp Sensor: smile.amazon.c...
KOSO Plug: smile.amazon.c...
Wire Kit: smile.amazon.c...