No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-02-09 22:52:55 +01:00
hw/tacho Add a kicad schematic and show the result in a lathe in the README 2025-02-09 22:47:09 +01:00
images Add a kicad schematic and show the result in a lathe in the README 2025-02-09 22:47:09 +01:00
include Initial commit 2025-02-03 14:47:59 +01:00
lib Initial commit 2025-02-03 14:47:59 +01:00
src Add a README and specify the license (GPLv3) 2025-02-07 22:10:05 +01:00
test Initial commit 2025-02-03 14:47:59 +01:00
.gitignore Initial commit 2025-02-03 14:47:59 +01:00
LICENSE Add a README and specify the license (GPLv3) 2025-02-07 22:10:05 +01:00
platformio.ini A version that seems to work OK 2025-02-07 21:47:38 +01:00
README.md Small update of the README file 2025-02-09 22:52:55 +01:00

Basic ATMega8 based tachometer

This is a very simple replacement board for cheap Hall effect sensor tachometers.

These are horrible and unrealiable: refresh rate is horribly slow and it is very sensitive to noise; as soon as I switch my lathe's VFD on, it showed random numbers; hopefully this version will behave a bit better.

It very basic but it allows to configure via the 2 push buttons:

  • the number of magnets,
  • the refresh rate (in steps of 100ms).

The configuration is stored in the EEPROM. To enter the config mode, push the PB_0 button. It will show the current value of the number of magnets which can be increased with the second button (PB_1). Values will rotate up to 10.

A second push on PB_0 will validate the change and allow to set the refresh rate. Similarly, each click on the second button will increase the refresh rate by 100ms (up to 2000 before it goes back to 100).

A third click on the PB_0 button will activate the new values, store them in the EEPROM ang return to normal (rpm counting) operation.

During normal operation, is no signal is detected, "----" will be displayed.

Original board

The original board is very simple and uses an unknown microcontroller, so it cannot be hacked easily.

Original cheap tachometer Original and replacement boards

Replacement board

The new design is basically the same as the original board but using an ATMega8 as microcontroller so it's possible to write an half-decent firmware.

I chose the ATMega8 because I still have a few of them and it good enough for such a simple project. But really, any Arduino clone would do the job.

The protoype has been made using a protoboard and the schematic is the bare minimal:

  • a 7805 and a couple of caps (the ones from the original board),
  • a 16MHz cristal + 2x20pF caps,
  • the ATMega8,
  • the 4x 7 segment display (common anode) from the original board,
  • a few headers and connectors,
  • a pair of push buttons.

Schematic

Replacement design (front) Replacement design (back)

Once installed, compared to the original module, it works much better (fast response time and no issue with the VFD and motor noise).

Tachometer mounted on the lathe

The code of the firmware (src/tacho.ino) is licensed under the GPLv3.