Society of Robots - Robot Forum
|
Robot Tutorials
|
FAQ
|
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Squirrels have fuzzy tails.
Home
Help
Search
Login
Register
Society of Robots - Robot Forum
»
Electronics
»
Electronics
»
Measuring the angle of motor rotation using Encoder shaft and PIC 16f877a
Print
Author
Topic: Measuring the angle of motor rotation using Encoder shaft and PIC 16f877a (Read 3298 times)
0 Members and 1 Guest are viewing this topic.
mohamed
Full Member
Posts: 88
Helpful? 0
Measuring the angle of motor rotation using Encoder shaft and PIC 16f877a
«
on:
June 17, 2011, 11:15:05 AM »
i want to know the the angle of rotation of a motor using the pulses coming from an encoder by using microcontroller PIC 16f877a
thank you
Logged
waltr
Supreme Robot
Posts: 1,944
Helpful? 99
Re: Measuring the angle of motor rotation using Encoder shaft and PIC 16f877a
«
Reply #1 on:
June 17, 2011, 12:25:52 PM »
Count the pulses and the angle is #count / #ticks per rev * 360°.
Logged
growler
Jr. Member
Posts: 24
Helpful? 0
Re: Measuring the angle of motor rotation using Encoder shaft and PIC 16f877a
«
Reply #2 on:
June 18, 2011, 12:36:24 AM »
Encoder pulses represent rotational translation, time is well, time.
So measure encoder pulses and time, then divide one by the other as said above and you get a speed value. Hell, with quadrature encoders you get a velocity.
Logged
Print
Society of Robots - Robot Forum
»
Electronics
»
Electronics
»
Measuring the angle of motor rotation using Encoder shaft and PIC 16f877a
SMF spam
blocked by CleanTalk