winter project? - adding a Tachometer
Post Reply    Forum -> Project Reports
Author Message
Addicted
2018 LIBERTY 150S
Joined: 26 Jul 2013
Posts: 966
Location: Ohio
Tue Dec 17, 2019 6:31 am quote
Trail Tech 72-A00
$28.78 - Amazon

I installed this on my 2012 Kymco in 2013.
I used 2 sided Red 3M tape. (No drilling in the scooter)
Fished the wires without removing any panels - except for the battery cover.


I check it every now and then after a ride - to see what my max RPM's were. or, while riding to see what I'm turning while on a country road cruise. It also records engine hours.
After 6 years it is still working fine.

Removed the seat bucket & wrapped as close to the spark plug cap as possible, then enclosed it loosely.



O.S.
Enthusiast
Aprilia Scarabeo 500
Joined: 02 Oct 2019
Posts: 98
Location: Florida
Fri Dec 20, 2019 9:46 am quote
It appears that model you have has been discontinued. I found model# 742-A00 on Amazon for $39/shipped. Maybe looking to try it out on my Scarabeo 500. Looks like a nice compact unit.
Molto Verboso
GTS 300 Super ABS/ASR
Joined: 07 Jun 2014
Posts: 1043
Location: Washington DC
Sat Dec 28, 2019 9:16 am quote
Nice! The Piaggio PMP app has a tachometer...
Member
Derbi Boulevard 125 4t
Joined: 05 Feb 2020
Posts: 7
Location: Lithuania
Wed Feb 05, 2020 11:08 pm quote
Hi,

Was using something similar, but decided to go next level and created this


It has ressetable trip function, shows rpm, exact speed and has two colour schemes: one like in picture and another high contrast black on white for sunny days. It hooks up to pickup coil via optocoupler for rpm and i have added hall sensor into original speedo for speed. Based on esp8266 chip and 2.2 inch TFT display.
Next step is to add this screen in place of original needle speedometer. Also display has enough room left for fuel level indicator, but not sure if i need it.
Hooked
Joined: 14 Aug 2019
Posts: 114
Location: Bermuda
Wed Feb 12, 2020 8:30 am quote
So...are you going to tell us how we can get a kit like that from you, or source it on our own, or are you just going to leave us in suspense like this?
Member
Derbi Boulevard 125 4t
Joined: 05 Feb 2020
Posts: 7
Location: Lithuania
Wed Feb 12, 2020 10:53 pm quote
Don't have much time at the moment, but will try to put schematics, code, partlist etc. together soon
Member
Derbi Boulevard 125 4t
Joined: 05 Feb 2020
Posts: 7
Location: Lithuania
Thu Feb 13, 2020 12:31 am quote
OK, lets start.

PARTLIST

Main processing unit is ESP8266 in form of "D1 mini" with ProtoBoard shield. Both can be found at ebay for cheap



Screen is also from ebay, 2.2 inch tft ili9341 320x240, there are several variations of them, mine has 3.3v logic level (no logic level shifter chip). As i use 3.3v to power it, J1 should be shorted by solder.


Step down converter 12V to 5V.


4N35 optocoupler to get RPM from pickup coil.

A3144 hall sensor to get speed. Placed inside original speedometer near spinning magnetic disk.


1M, 10k, 4.7k resistors

2x 1N4007 diodes. I think one would do the job, but i'm too lazy to remove it and do tests.

25V 10000uF electrolytic capacitor or several in parallel, i have used 6 capacitors 2200uF each. This will provide enough power for D1 mini to save odometer and trip to memory after switching ignition off.

Pushbutton. Short press switches between color schemes, long press (over 3s)- resets trip.
It is possible to use capacitive sensor placed behind plastic trim, so no hole drilling etc.
Member
Derbi Boulevard 125 4t
Joined: 05 Feb 2020
Posts: 7
Location: Lithuania
Thu Feb 13, 2020 12:52 am quote
Hand drawn schematic




Pins GND, 5V, 3.3V, RST, A0, D1-D7 are on D1 mini board

Screen connection:
Screen -> D1 mini
Vcc to 3.3V
GND to GND
CS to GND
Reset to RST
RS to D3
SCK to D5
SDI to D7
LED to Vcc
SDO not connected

Different screens have different names for pins.

Member
Derbi Boulevard 125 4t
Joined: 05 Feb 2020
Posts: 7
Location: Lithuania
Thu Feb 13, 2020 1:08 am quote
Coding part

I need to add lots of comments and do translation of code i have created (some parts are borrowed ). Once done, i will upload it for your access.


I will not teach you how to configure Arduino IDE to work with D1 mini, there are plenty tutorials online.
https://averagemaker.com/2018/03/wemos-d1-mini-setup.html
https://gist.github.com/carljdp/e6a3f5a11edea63c2c14312b534f4e53


Code depends on library TFT_ESPi which has specific configurations for each screen/setup
https://github.com/Bodmer/TFT_eSPI

Later i will also attach zipped library from my PC with correct config and fonts to work this specific display.
Member
Derbi Boulevard 125 4t
Joined: 05 Feb 2020
Posts: 7
Location: Lithuania
Thu Feb 13, 2020 2:21 am quote
https://github.com/rverzinkevicius/tacho_speedo

main code is in tacho_speedo.ino

You will nedd to extract TFT_eSPI-master-20200213T100157Z-001.zip to Documents\Arduino\libraries on your PC


There are few things to mention. First you will need to change wheel circumference to reflect your wheel size in centimeters in line 41
int wheel=156;

Next you will need to uncomment (remove //) two lines 83 and 84 in code
// dispodo=0.1;
// allodo=5660.2;
Change allodo to mileage you have on your scooter, upload code to D1 mini, then comment/delete those two lines and again upload code.


To change km to miles, i think it should be enough to multiply your wheel size by 0.621371, for example line 41
int wheel=156;
should be
int wheel=97;
and change line 328
tft.drawString("km/h",236,290);
to
tft.drawString("m/h",236,290);
Member
Derbi Boulevard 125 4t
Joined: 05 Feb 2020
Posts: 7
Location: Lithuania
Thu Feb 13, 2020 2:38 am quote
Should be it
Addicted
2010 gts 300 super. 09 MP3 500 lite
Joined: 02 Apr 2013
Posts: 525
Location: tampa
Thu Feb 13, 2020 6:11 am quote
cool project. thanks for posting that info.
Team Scooter Trash for Petfinder Foundation   Vespa Wasp Pin Badges   Scooter Parts Company
Post Reply    Forum -> Project Reports
[ Time: 0.1272s ][ Queries: 23 (0.0218s) ][ Debug on ]