Pages

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 http://www.seeedstudio.com/wiki/G3/4_Water_Flow_sensor

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

Code

Notes
  • read risk disclaimer
  • excuse my bad english

15 comments:

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

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

    ReplyDelete
    Replies
    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: http://www.engbedded.com/fusecalc/

      Delete
  3. This comment has been removed by a blog administrator.

    ReplyDelete
  4. This comment has been removed by a blog administrator.

    ReplyDelete
  5. This comment has been removed by a blog administrator.

    ReplyDelete
  6. This comment has been removed by a blog administrator.

    ReplyDelete
  7. This comment has been removed by a blog administrator.

    ReplyDelete
    Replies
    1. This comment has been removed by a blog administrator.

      Delete
  8. This comment has been removed by a blog administrator.

    ReplyDelete
  9. This comment has been removed by a blog administrator.

    ReplyDelete
  10. This comment has been removed by a blog administrator.

    ReplyDelete
  11. This comment has been removed by a blog administrator.

    ReplyDelete
  12. This comment has been removed by a blog administrator.

    ReplyDelete