Author Topic: how to work with MOC 7811 Encoder in arduino 2560 to control dc motor  (Read 2418 times)

0 Members and 1 Guest are viewing this topic.

Offline abdulhafiz7794Topic starter

  • Beginner
  • *
  • Posts: 3
  • Helpful? 0
Hi all,
     I am trying to control the angle of rotation of dc motor using encoder. I have used the attachinterrupt function to get the input from the sensor, and the change in input is taken as count of the angle. The problem is its not detecting the input properly. while checking the input voltage of the sensor is around 0.79V.
please tell me what am i doing wrong, is there any other way to control?

Any kind of help is appreciated. Thanks.

Offline jwatte

  • Supreme Robot
  • *****
  • Posts: 1,345
  • Helpful? 82
Re: how to work with MOC 7811 Encoder in arduino 2560 to control dc motor
« Reply #1 on: April 02, 2014, 07:42:41 PM »
If the encoder only swings 0.79 volt, you will not get good readings from the Arduino that way.
Try conditioning the signal with a properly calibrated Schmitt trigger, perhaps?

 


Get Your Ad Here