I wanted to control a motor using bolt iot and I wanted it to rotate clockwise and anticlockwise. I had written the following code:
FORWARD BACKWARD I put the wires in pin 1 and 0 respectively. however, while trying to execute the program motor does not work. I tried to recheck it using led. The led works perfectly fine. if Led is working then motor should also work. I also tried to run the motor using ground pin and 5V pin and it works by that. Can anyone help me with this problem???