Go to advanced search

by philbegg28
Sat Jun 15, 2019 9:25 pm
Forum: Troubleshooting
Topic: Using GPIO
Replies: 9
Views: 716

Re: Using GPIO

now you have to drive these using 2 gpio , for stop you set both gpio low or high for direction A you would set IN1 high and IN2 low for direction B you would set IN1 low and IN2 high. So adding in IN2 Low fixed the problem. I appreciate the help. very strange now though that when I do comment out ...
by philbegg28
Sat Jun 15, 2019 12:18 pm
Forum: Troubleshooting
Topic: Using GPIO
Replies: 9
Views: 716

Re: Using GPIO

I appreciate the feedback everyone. Point taken from reading resistance. I know that the motor drives when the GPIO is Set to high. The voltage is 3.3v. Both python scripts give a reading of 3.3v when set to high however only 1 script actually makes the motor drive. WHY?!? EDIT: will clarify with ad...
by philbegg28
Fri Jun 14, 2019 10:19 pm
Forum: Troubleshooting
Topic: Using GPIO
Replies: 9
Views: 716

Using GPIO

Hi Guys, This may seem like a stupid question but I really cant get my head around it. I have two seperate python codes motor.py: import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(26,GPIO.OUT) print "LED on" GPIO.output(26,GPIO.HIGH) time.sleep(5) print "L...

Go to advanced search