![]() adding 220uF electrolytic caps between Vin/Gnd and 5V/Gnd.increase distance between motor and sensor leads. ![]() I was trying to get a better idea of what the induced noise looks like, but of course as soon as I connect my oscilloscope's ground lead to the circuit ground the problem goes away. As soon as I unplug the USB cable the circuit becomes highly unreliable, with analog values fluctuating a lot and correspondingly the motor jittering around the set position. ![]() When connected to my PC via USB cable everything works flawlessly with me moving the pot to the desired values. A 10V DC converter powers the motor driver and is also connected to the Arduino Vin. The Arduino reads the pot's resistance using analogRead() and then drives the motor using a TB6612FNG motor driver until the measured resistance matches the desired value (within a certain epsilon of course). I am trying to drive a motorized potentiometer from an Arduino Nano.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |