0

enter image description here

This is an image of how I had it routed up, it was working just fine until I attempted to add a rocker switch.

I used the 2 pin on/off rocker switch that came with my smart car kit (https://www.ebay.com/itm/2WD-Smart-Motor-Robot-Car-Chassis-Battery-Box-Kit-Speed-Encoder-for-Arduino-W7H7/263186900317?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649). I connected the red wire to one of the pins, and another wire to the other pin. The rocker switch was "on" and i connected the wire to the L298N, the red LED flashed and now it wont work anymore.

How i connected my rocker switch

EDIT:

  • When i google "rocker switch circuit" i see that Ground is connected, is this where i went wrong? – Maiki Mar 23 at 17:27
  • No idea. You mention two pins but give no clue as to which pins you mean. – joan Mar 23 at 18:37
  • @joan I am referring to the two pins on the on/off rocker switch, maybe they are not pins? – Maiki Mar 24 at 15:10
  • So you have two wires coming from the rocker switch. Where did you connect them? Please don't say you connected them to the Pi, or the L298N, where? Which red LED flashed and won't work anymore? – joan Mar 24 at 15:20
  • @joan The red LED that flashed was on the L298N board. I connected the red wire from the battery pack to the rocker switch, and another wire from the other pin on the rocker switch to L298N +12V input. Added an image, i guess it would be easier if i added it in the original post. – Maiki Mar 24 at 15:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.