Hi, I'm having a strange issue with a Teensy LC. When I start a dc-motor which is connected via a POLOLU DRV8838 driver (VCC=3.3V (from pin 17); Vm = 5V (from USB)) the Teensy often (not always) resets. It first seemed that the program pin is sensitive to the EMI caused by the motor (with no interference suppression), because when I connected the Prog pin to 3.3V it ran without resetting for a while. Then I removed that cable and tried to get rid of the resets by using capacitors between gnd and prog and alternatively between prog and 3.3V, but that had no success. Then I decided to solder in a (longer) cable between 3.3v and prog again and cut it for programming and connect it to properly run the code. Strangely since then the Teensy WITH PROG CONNECTED TO 3.3V still resets after the motor has been started AND RELOADS THE CODE (when the Teensy loader is active)! To see if there could be a high current issue that leads to a reset I added a cheap USB voltage measuring tool (I don't have an oscilloscope). This shows ~250mA for a very short time when the motor starts and then 130mA.
Any idea how to solve this issue? A software solution would be nice!
Thanks for the answers in advance!
Any idea how to solve this issue? A software solution would be nice!
Thanks for the answers in advance!