Not sure if this is the right place to ask. I've done this tutorial with the Teensy 3.1 from a starter kit using the L293D chip with a DC motor and a potentiometer I read on an analog input pin. It's all powered through the USB port (Vin pin of the teensy).
It works but I noticed that the range of the potentiometer changes. If I turn the potentiometer way down the motor is supposed to turn full speed backwards, but the potentiometer only reads about 10% instead of 0% (or 1%). It seems either the motor or the L293D H bridge is interfering with the analog pin. It seems rather obvious really that something like a motor could do this (maybe 5V voltage drops a little? Or electromagnetic interference through induction or something?).
But I'm an electronics noob. How would I go about to avoid such interference? Thanks.
It works but I noticed that the range of the potentiometer changes. If I turn the potentiometer way down the motor is supposed to turn full speed backwards, but the potentiometer only reads about 10% instead of 0% (or 1%). It seems either the motor or the L293D H bridge is interfering with the analog pin. It seems rather obvious really that something like a motor could do this (maybe 5V voltage drops a little? Or electromagnetic interference through induction or something?).
But I'm an electronics noob. How would I go about to avoid such interference? Thanks.