I am trying to drive current back and forth through a solenoid by holding the PWM pin high and toggling the DIR pin from an Arduino Nano.
The issue is that toggling the direction pin does not make current go in reverse like I hoped it would. Instead it seems like toggling it to reverse just makes less current go in the same direction.
Take a look at my connections and voltage across a series resistor when I toggle the DIR pin for 1 sec high and low. Note: The sleep pin is pulled high to 5V just for redundancy, I know it is default pulled high by the board.
Thanks,
Nick
![thumbnail_Image (3)](https://forum.pololu.com/uploads/default/original/2X/3/3614fd57a74d7a4095638ea7d123041c8a90ac51.jpeg)
![thumbnail_Image (2)](https://forum.pololu.com/uploads/default/original/2X/5/59e984326b9ba1c2b5d3f06c1684142f17135a43.jpeg)
![thumbnail_Image (1)](https://forum.pololu.com/uploads/default/original/2X/6/6348dfa6fae73e262aa57e21d8ca4e51c8758e75.jpeg)
Hello, Nick.
The soldering on the logic side of the board looks okay, but I cannot actually follow the connections on the 24v13 or check the soldering on the power side of the board with the pictures you posted. Can you also post some more pictures, one that can let me follow the logic connections, one that shows the solder joints for the terminal blocks, and another that shows where you are connecting your oscilloscope probes?
By the way, it is not clear if you are using something like a differential probe to measure across the motor terminals with your oscilloscope. Please note that a single standard oscilloscope probe is not appropriate for measuring a signal like that. The ground clip on a standard probe must always be connected to your system’s ground. Connecting it to any other voltage (like one of the motor terminals) could result in damage to your system or your oscilloscope. If you only have standard probes, I recommend looking at the signal on each motor output with separate probes.
- Patrick
Hello Patrick,
Thanks for pointing out my mistake with the probe! I read up on the difference between a differential and standard probe and I now can see that it works.
Nick