go_away

Author Topic: Hall Effect Tachometer  (Read 6250 times)

0 Members and 1 Guest are viewing this topic.

Offline CommanderbobTopic starter

  • Robot Overlord
  • ****
  • Posts: 146
  • Helpful? 2
  • Embeddedmicro.com
Hall Effect Tachometer
« on: November 18, 2008, 11:16:54 PM »
I am trying to make a tachometer with an AVR, a magnet, and a hall effect sensor. The hall effect sensor I have is this one. When there is no magnetic field it outputs around 2V that goes up or down if there is a positive or negative field applied.

Originally I though of using an opamp and the AVR ADC to check when the magnet went by.  The problem with this is I will be polling the hall effect sensor. Do you think it would be better to use a comparator and a pin change interrupt? If I used a comparator then I would have to use two and a OR gate to detect both + and - fields so I don't have to worry about which way I install the magnet. The magnet will not pass the sensor more then 450 times per second (~27,000 RPM), usually under 250.

Is it better to use one opamp and the AVR ADC, comparators and a OR gate, or something I have not mentioned?

Thanks,
Justin
« Last Edit: November 18, 2008, 11:18:30 PM by Commanderbob »

Offline hudbrog

  • Jr. Member
  • **
  • Posts: 40
  • Helpful? 0
Re: Hall Effect Tachometer
« Reply #1 on: November 19, 2008, 01:15:47 AM »
Imho AVR internal comporator is the way to go

Offline CommanderbobTopic starter

  • Robot Overlord
  • ****
  • Posts: 146
  • Helpful? 2
  • Embeddedmicro.com
Re: Hall Effect Tachometer
« Reply #2 on: November 19, 2008, 09:12:42 AM »
Can you set the voltage to compare it with to anything you want? I read that it uses the same reference as the BOD. Does that mean you can only use the voltages the BOD can be set to?

Offline omkar

  • Jr. Member
  • **
  • Posts: 46
  • Helpful? 1
Re: Hall Effect Tachometer
« Reply #3 on: January 23, 2012, 05:42:13 PM »
A bit late to reply to this post but to anyone who finds it on google search ... here is the link to something I did and worked:
http://www.societyofrobots.com/robotforum/index.php?topic=14973.0

There are links to the Hall effect sensor I used and the arduino program related to it.

Hope it helps.

 


Get Your Ad Here

data_list