scripts for tachometer design on thingiverse
also pin wiring reference
Original post on thingiverse: https://www.thingiverse.com/thing:5447004
Technical instructions:
-
Get Raspberry Pi Imager and an SD card (8GB is enough)
-
Go to Choose OS -> Raspberry Pi OS Lite Legacy (Debian Buster)
-
Choose your SD card in Storage and press Write
-
Insert the card into your PI, connect it to HDMI and USB keyboard
It's also possible through SSH without needing mini-HDMI adapter and USB OTG cable, however you'll have to find instructions online
-
Boot your Pi and let it expand the filesystem
-
When you're done and in the terminal, first type "sudo raspi-config"
-
Go to System Options -> Wireless LAN
-
Enter your SSID (wi-fi name) and password
-
Then go to System Options -> Boot / Auto Login -> Console Autologin
-
Exit the config tool
-
Now type "sudo apt-get update" and wait for update
-
Type "sudo apt-get install python3-pigpio" and wait for installation
-
Now type the following commands
wget https://raw.githubusercontent.com/hellgames1/3dprinted-tachometer/main/mai2n.py
wget https://raw.githubusercontent.com/hellgames1/3dprinted-tachometer/main/showip.py
wget https://raw.githubusercontent.com/hellgames1/3dprinted-tachometer/main/bshut.py
-
Type "sudo nano /boot/config.txt"
-
Go to the bottom of the file and add the line "enable_uart=1"
-
Save and exit with Ctrl+X
-
Type "sudo nano /etc/rc.local"
-
Go to the bottom but ABOVE the "exit 0" line!
-
Add these 3 lines and make sure to include the & symbols
sudo pigpiod
sudo python3 /home/pi/bshut.py &
sudo python3 /home/pi/mai2n.py &
-
Save and exit again with Ctrl+X
-
Type "sudo shutdown 0" to shut down the Pi
-
Unplug the power, HDMI and keyboard
-
Wire up the servo, LEDs, display, button and power switch using the png reference images provided.
-
Assemble everything as in the Youtube video https://www.youtube.com/watch?v=_IPluKo3RjY
How to set up Dirt Rally 2.0
- Go to Documents\My Games\DiRT Rally 2.0\hardwaresettings\
- Edit hardware_settings_config.xml, make sure it's set like in the picture (6-dirtrally2.png)
Works best with delay at 5. The tachometer will display the IP address when it boots. Check this video out as well https://www.youtube.com/watch?v=Hg7oHDs2x3s