Skip to content

TimHanewich/motorcycle-data-display

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motorcycle Data Display

This project features a 3D printed dashboard-like system mounted on a motorcycle, using a Raspberry Pi Pico to monitor and display real-time motorcycle battery voltage, ambient temperature, and humidity. It uses a 16x2 LCD and is powered directly by the motorcycle's battery.

example

Required Hardware

Wiring Diagram

I provide the full wiring diagram as wiring.drawio in this repository. Visit draw.io to open this file.

wiring

Source Code

Once you get your hardware wired up according to the diagram above, you can load the code directly onto the Raspberry Pi Pico.

All three files are required to be placed directly in the root directory.

3D Printed Enclosure

I designed and 3D-printed the enclosure for this project. You can find the STL files available for download for free on Thingiverse here.

This enclosure will contain all hardware:

  • 16x2 LCD Display
  • Power Switch
  • Raspberry Pi Pico
  • Voltage divider
  • LM2596 Voltage Converter (drops battery's voltage down to a stable 5v supply for Raspberry Pi, display, and sensors)

The enclosure will have five wires running in/out of it (a hole in the enclosure accomodates this):

  • Motorcycle Battery +
  • Motorcycle Battery -
  • DHT22 Power Supply +
  • DHT22 Power Supply -
  • DHT22 data line

Voltage Divider

A voltage divider must be used to drop the battery voltage (around 12v for a standard motorcycle battery) to a range in which the Raspberry Pi Pico can safely read, between 0.0 and 3.3 volts. You can read more about voltage dividers here.

I purchased this package of resistors and made a voltage divider using a 22,000 ohm R1 resistor and a 5,600 ohm R2 resistor. This drops the voltage down to 20.29% of itself.

Voltage Divided
15 3.04
10 2.029

As seen above, the effects of this voltage divider effectively drop the input voltage down to something that is safe to provide to the Pi.

IMPORTANT: With this voltage divider configuration, the absolute MAXIMUM supply voltage is approximately 16 volts. Beyond this, the divided voltage will exceed 3.3 volts, the maximum the Raspberry Pi can handle on the ADC pins. Exceeding this value may cause damage to the Pi!

Other Resources

About

Basic sensor data display for a motorcycle or two-wheel vehicle

Topics

Resources

License

Stars

Watchers

Forks

Languages