Thursday, November 22, 2012

AVR Atmega hall effect water flow sensor FS300A

FS300A is an hall-effect based water flow sensor.

When water flows a rotor rolls and a hall sensor emit the corrisponding pulse signal.
This library implements a way to read the pulse signal and convert it to Litre\Hour.
You have to setup some timer parameters to make this library works.
Setup parameters in fs300a.h

Most of the code taken from

This library was developed on Eclipse, built with avr-gcc on Atmega8 @ 1MHz.


  • read risk disclaimer
  • excuse my bad english


  1. Hey . Can you help me? I'm not running this program. Do you know why?

    1. Hello, are you compiling it with avr-gcc?

  2. hello sir,
    what changes to do with 8Mhz crystal?

    1. Hello. Here I'm using the internal 8Mhz internal RC oscillator. So I've set the low fuse to E4, look at this page as a fuse helper settings:

  3. This is excellent information. Thanks for sharing.
    Manasmicro is best flow meter supplier in pune India. We supply Electromgnetic flow meter, Industrial flow meter, water flow meter, Portable water flow meter, Digital flow meter, and digital water flow meter.
    industrial flow meter - Manasmicro

  4. Thanks for posting the useful information. is best magnetic flow supplier in all over India. It is the best magnetic flow meter manufacturers company in pune India.
    magnetic flow meter - Manasmicro