Pages: [1]   Go Down
Author Topic: Magnetic rotary encoder Code  (Read 637 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


i am new user to the arduino i implement the magnetic encoder and the idea as follows i have disk on the motor shaft fixed on it some magnets in a circular way and i have Hall Ic effector which give a digital pulse when it sense magnets when the desk is rotating so i need an arduino code to read this pulses 10 times which corresponds to one revolution then for example give an output to led

thanks in advance
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i am new user to the arduino i implement the magnetic encoder and the idea as follows i have disk on the motor shaft fixed on it some magnets in a circular way and i have Hall Ic effector which give a digital pulse when it sense magnets when the desk is rotating so i need an arduino code to read this pulses 10 times which corresponds to one revolution then for example give an output to led

thanks in advance
Logged

Sydney, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1285
Big things come in large packages
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

People will be more willing to help if you post the code you have written rather than expecting others to write it for you.

In case you don't know where to start:
1. You will need to sire up the sensor and verify that it works manually (ie, see the transition from 0-1) by either turning on a LED or writing to the serial display.
2. Once you have done this, then test it with the disk and see that you can detect when the disk rotates. Each time the transition from 0 to 1 (or 1 to 0) happens, then add count to some counter.
3. Once the counter reaches your required value, do whatevere you need (in this case turn on a LED).

All these smaller 'projects' are easy if you look for examples in this forum or on the web.
Logged

Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12630
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OK, that sounds like a plan.

Was there a question?
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 210
Posts: 13036
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


@No3man, please do not cross-post.
Logged

Sydney, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1285
Big things come in large packages
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Was there a question?

Actually there was no punctuation at all. I inferred a question  smiley-cool
Logged

Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Pages: [1]   Go Up
Jump to: