Ive been trying to control a small dc motor 2 ways with arduino and an using a relay to controll it i have to spdt relays
this is how they are connected
the coil pins on the relay are connected to ground and digital pin on arduino
the motor is connected to the fixed leed on the relay and the other leeds are on 5 v and gnd the one on normally closed is ground and for some reason the relays will only work in one way i am using the blink code and have made the necessary modifications to it plz help