0

I have a fried Pie :(

I used a 12 V power supply to this setup. Can you tell me what I did wrong.

Here is my sample code in python: IN1- gpio18 / IN2 - gpio27 / EN - gpio5

GPIO.setmode(GPIO.BCM)
GPIO.setup(IN1, GPIO.OUT)
GPIO.setup(IN2, GPIO.OUT)
GPIO.setup(EN, GPIO.OUT)
GPIO.output(IN1, GPIO.LOW)
GPIO.output(IN2, GPIO.LOW)
p = GPIO.PWM(EN, 1000)  # set GPIO pin as PWM output, with 1000Hz frequency
try:
    p.start(25)
    p.ChangeDutyCycle(25)
    GPIO.output(IN1, GPIO.LOW)
    GPIO.output(IN2, GPIO.HIGH)
except KeyboardInterrupt:
p.stop()
GPIO.output(IN1, GPIO.LOW)
GPIO.output(IN2, GPIO.LOW)
GPIO.cleanup()

enter image description here

0

I can't see anything obviously wrong with the schematic.

Likely causes.

  • connecting more than 3V3 to a GPIO
  • connecting more than 3V3 to a 3V3 pin
  • connecting more than 5V to a 5V pin
0

Question

Pie fired - Why?

Answer

There is 50% chance that the pins 1, 2, 3 labelled below are hardwired to Gnd or Vcc. These pins are used for dry run, without Rpi connected. You use a jumper to short the pair of pins to check out if the motor can move.

But if you connect your Rpi GPIO pins to these dry run test pins, Pi fried instantly.

You might use a multimeter to measure the voltages at these pins, or give me the link to the motor driver to check out the schematics to confirm.

motor driver

motor driver 2

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.