I am working in a project which requires me to read the velocity of a DC motor with a quadrature encoder. I am using the Arduino UNO board and for some weird reason the motor just works if it is connected to the pins 2 and 3. However this pins are reserved for the interruption (where I intended to connect the encoder). How could I solve this problem?
Asked
Active
Viewed 100 times
-1
-
6Can you post some code? – Sandesh K Feb 03 '17 at 04:32
-
4And the schematic... – frarugi87 Feb 03 '17 at 10:19
1 Answers
0
Assuming the arduino can provide enough current, you should be able to run the motor from any output pin, check out this diagram for reference. You should also make sure you have the necessary protection circuits in place. This is a good starting point: https://create.arduino.cc/projecthub/licensedGeek/controlling-a-dc-motor-from-an-arduino-101-board-f4954b

Arturo Jumpa
- 13
- 2