Speedometer Using Arduino and Processing

by as-WIN-th in Circuits > Arduino

14323 Views, 23 Favorites, 0 Comments

Speedometer Using Arduino and Processing

Speedometer using arduino and processing
New Bitmap Image.bmp

Hello all, This is my first Instructables publication. I am gonna tell you how to make a Speedometer using Arduino and Processing. The cool thing about using Processing here, is that you can make your speedometer look cool like the one shown above. Also with few changes in the program you can make your android app using processing and display speed on your mobile phone.

The updated mobile phone version of the same can be found here : Arduino Speedometer

I will explain how code on using Arduino and Processing in upcoming steps. If you are not a amateur and just wanna rush up with through this you can jump into my YouTube video shown above.

Lets start with the hardware and software requirements

Hardware Requirements

  1. Arduino (any one will do, I am using a Clone here)
  2. Hall sensor
  3. 10K- Resistor
  4. A small peice of Magnet
  5. A rotating wheel (For testing purpose)
  6. Connecting wires

Software Requiremetns

  1. Arduino
  2. Processing

Getting Things Ready

31I0OfopeiL._SX425_.jpg
connHall.png

In this step lets get ready with the Hardware and Software that we need to get started. The hardware components are easily available online. The download links for software are given below

ARDUINO:https://www.arduino.cc/en/Main/Software

PROCESSING:https://processing.org/download/

If you are installing Arduino software for the first time, please download the suitable driver and install it. Processing does not require any drivers, but it requires JAVA installed on your computer. If not installed do not worry Processing itself will guide you on how and from where to install it.

The Hardware Setup for this project is very simple, as shown in image above. The hall sensor is a three terminal transducer that changes its output based on the magnetic field around it. It is commonly used for speed detection and proximity switching. The first and second pin represents the +5V and Gnd respectively. The last pin is the data pin, which is connected through a pull-up resistor to latch output of the sensor.

Now get a rotating device to measure the speed and stick the magnet over the edge of the wheel and place the hall sensor near the magnet so that the magnet cross over the sensor for each rotation, then follow the image above and connect your sensor to arduino plug it in to your PC through programming cable, Lets start coding.

Programming Your Arduino and Processing

The code is available as an attachment for you to download and burn straight away. Follow the comment lines to know how the code works and what changes are to be made to suit the code for your application.

If you are still confused go back and follow the video :-).