Model T speedometer: Difference between revisions
No edit summary |
|||
Line 20: | Line 20: | ||
==Operation== | ==Operation== | ||
[[File:Model-t-speed-buttons.jpg|thumb]] | |||
The user interface is operated with 4 buttons, whose locations are shown in the image at right. | |||
==Revisions== | ==Revisions== |
Revision as of 15:02, 4 August 2019
The Ford Model T never had a speedometer or odometer. This can make it more difficult to drive around in 2018 like a normal car. Therefore, using the same technology as my GPS box, I created a small device to perform this function. It has other uses as well.
Device Description
Arduino source code is here: File:Modelt-arduino-v3.1.zip This does not include the needed libraries:
- LiquidCrystal_I2C
- NeoSWSerial
- TinyGPSPlus
- SerialRAM
The device itself consists of an Arduino Pro mini clone (atmega328p microcontroller) as the main cpu/controller. A GY-NEO6MV2 GPS is used to provide location information to the processor, and I use the tinyGPS++ library to extract lat/long, speed, and direction from the GPS module. An 1602 LCD supplies the user interface. Since the LCD characters are too tiny to see from a distance while driving, a larger 2 digit 7 segment display is included, on which is displayed the speed in MPH. An 18650 battery and boost converter module supplies power, which can last many hours. Another module supplies protection circuitry and charging for the battery. All the small module boards are common and inexpensive from various Chinese distributors on eBay or Aliexpress.
To ensure that data is saved when the unit is turned off, I used a Microchip 47C16 EERAM, which is nothing more than an normal Static RAM (which loses its data on power off) that saves itself to a normal EEPROM when power is lost, and loads the data back into RAM on power up. A small capacitor supplies extra power to this chip when the power goes out. This device is critical, because the data needs to be stored often enough to ensure nothing gets lost when the device is suddenly switched off, but not so often that the nonvolatile storage (like EEPROM) would get worn out.
I designed a 3D printed clamshell case that would fit the entire device inside. I made cad models of all the components so I could ensure they would all fit together inside the same case. The case is designed with the LED on the left, so the driver could see it better. Four buttons on the right provide all the user interfacing to the device, and there is just enough space above the holder for the buttons to fit the tiny GPS antenna so that it is facing upwards through the top of the device. On the back, four self tapping screws hold the unit together, and several magnets hold the device onto the flat metal dash of the Model T. I found that painting the back of the device with some liquid electrical tape helps create a non-slip coating that prevents the device from sliding off the dash.
After the device was built, I found that the LED display was not very visible in direct sunlight, so I created a detachable sunshade that is also held onto the dash with magnets.
Operation
The user interface is operated with 4 buttons, whose locations are shown in the image at right.
Revisions
Summer 2019 - added:
- #22 - distance traveled since the unit was powered on
- #23 - High Score (max speed obtained since power on)