1

I already followed the steps listed in this answer: Connecting Raspberry Pi3 to L9110S H-Bridge

But it seems I must be doing something wrong because it still doesn't work.

I have a 12V battery 4800mAh (http://es.aliexpress.com/item/Free-Ship-Lipo-Battery-Portable-4800mAh-DC-12V-12-6V-Super-Rechargeable-Pack-EU-US-plug/32584864714.html?spm=2114.13010608.0.93.A2l9Zd)

These 12V motors: http://es.aliexpress.com/item/ROT-1-New-tracked-vehicle-chassis-metal-buggy-robot-tanks-video-show/32278263918.html?spm=2114.13010608.0.61.A2l9Zd

And this H bridge: http://es.aliexpress.com/item/Smart-Electronics-5Pcs-lot-L9110S-DC-Stepper-Motor-Driver-Board-H-Bridge-best-prices/32512498164.html?spm=2114.13010608.0.69.DbnLzz

I connected the battery to the H bridge using a power jack, then the battery to the raspberry pi ground, then the h bridge to the raspberry gpio ports and the H bridge to the motors.

I'm using GPIO 23 and 24, using the gpio command line utility, but nothing works.

Any ideas?

enter image description here enter image description here

  • Are you using Broadcom GPIO numbers or pin numbers or wiringPi numbers? By default I think the gpio utility uses wiringPi numbers. – joan Jul 7 '16 at 15:17
  • @joan Yes, wiring Pi – rubentd Jul 7 '16 at 16:21
  • wPi 23 is pin 33 (GPIO13). wPi 24 is pin 35 (GPIO19). Are they the GPIO you have connected to your motor driver board? – joan Jul 7 '16 at 16:45
  • @joan Yes. I'm using these two: i.imgur.com/tTUtaYu.jpg – rubentd Jul 7 '16 at 17:01
  • What commands are you using to set the GPIO as OUTPUTs and to set one high and the other low? – joan Jul 7 '16 at 17:20
1

I fixed it. The problem was: I was connecting the raspberry ground pin to the power jack ground pin. I connected it instead to the ground pin of the H bridge. It works now. Thanks everybody

| improve this answer | |

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.