PCrnjak / Arduino-Tachometer

Simple arduino tachometer . Project contains all STL files, code, bill of materials,assembly instructions...
5 stars 3 forks source link

Arduino-Tachometer

This is open source tachometer project that is focused on making small ,compact and precise tachometer. In this github repository you will find everything needed to build this , from code to the STL files and building instructions. There are 2 design versions that use same code but cases are slightly different , but that will be discussed elsewhere in this repository.YouTube link of device in action.

tacho gif

Table of contents

  1. Intro
  2. Table of contents
  3. How to use
  4. Bill of materials
  5. Building instructions
  6. Code
  7. Troubleshooting

    How to use

    tacho1

    There are 2 versions of this tachometer . Only difference is in size and boost converters used.Version that worked for me was v2.0 STL v1.0 STL didnt work correctly for me because i think i had defective boost convereter . So V2 uses larger boost convereter and V1 uses smaller boost convereter(THAT MIGHT NOT WORK FOR YOU TOO).There is also version with buttons and without buttons.I used version without buttons( they also have no use in code).

    tacho tape

    To use this tachometer you will need to have some kind of reflective tape( I used aluminium foil) that will cover about 1-1.5 cm of the shaft that will be rotating.Rest of the shaft can be any other colour , but i recommend to make rest of the rotating object black because you will have much less trouble calibrating .After you placed tape on shaft you can check at what distance does sensor trigger .Slowly move side of rotating object with reflective tape closer to the sensor , once bottom led triggers rotate object so that non-reflective side is on sensor , it sould not trigger the sensor .If it does go to Troubleshooting. If it does not trigger you can try to mesure speed of your object.I managed to mesure speeds up to 6000 RPM , but it might be able to mesure higher I just didnt have motors that spin faster.

    Bill of materials

    Name Link Comment
    Arduino pro mini link
    IR sensor Link
    Li ion battery charger Link
    18650 Li-Ion battery Got mine from laptop battery
    Slide switch Link
    15mm M3 screws 2 pieces
    5mm M2 screws 4 pieces
    M3 nuts 2 pieces
    Boost converter V1 Link This one is used in V1 and might not work
    Boost converter V2 Link This is used in V2 and is proven to work
    Female header pins Link
    SMD push button Link OPTIONAL
    Perf board Link OPTIONAL

You will also need FTDI USB to TTL Serial Adapter Module to program your arduino pro mini.

Building instructions

Building instructions can be found on instructables page of this project.

Code

Speed test is code I used to comfirm that my tachometer was mesuring right speed.More about how it works and how to implement the code can be found in the file.RPM tacho display is code used on tachometer to mesure speed.

Troubleshooting

Firstly test if your sensor works correctly.One of its leds should trigger at specific distance that you can tweek by blue pot on board. If it does not trigger at all or stays triggered all the time you maybe have defective sensor. If your sensor on tachometer triggers on both reflective tape and rest of the object try to make rest of the object black. You can print black circle on your printer or 3D print costum part like i did.

TRIGGERED

tacho on

NOT TRIGGERED

tacho off

Other problems i noticed: