janne
New Member
Posts: 5
|
Post by janne on Mar 12, 2021 2:29:25 GMT -8
|
|
|
Post by SDL on Mar 12, 2021 8:39:59 GMT -8
Well, hard to tell because of the way you have wired the breadboard. And it depends on how your breadboard is wired. Change the jumpers so you are just running a single wire from the Pi to the USB PowerCotnrol board for control and ground. Also show the code you have written. An alternative is to get a Pi2Grover board and some Grove cables. Makes it really easy. shop.switchdoc.com/products/pi2grover-raspberry-pi-to-grove-connector-interface-boardBP
|
|
janne
New Member
Posts: 5
|
Post by janne on Apr 30, 2021 1:00:35 GMT -8
Well, hard to tell because of the way you have wired the breadboard. And it depends on how your breadboard is wired. Change the jumpers so you are just running a single wire from the Pi to the USB PowerCotnrol board for control and ground. Also show the code you have written. An alternative is to get a Pi2Grover board and some Grove cables. Makes it really easy. shop.switchdoc.com/products/pi2grover-raspberry-pi-to-grove-connector-interface-boardBP is this wiring correct? it gets power but the usb out power is always on. how do i switch between on/off? the code: import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setup(7,GPIO.OUT) for i in range(2): GPIO.output(7,True) time.sleep(1) GPIO.output(7,False) time.sleep(1) GPIO.cleanup()
|
|
janne
New Member
Posts: 5
|
Post by janne on Apr 30, 2021 8:18:59 GMT -8
Well, hard to tell because of the way you have wired the breadboard. And it depends on how your breadboard is wired. Change the jumpers so you are just running a single wire from the Pi to the USB PowerCotnrol board for control and ground. Also show the code you have written. An alternative is to get a Pi2Grover board and some Grove cables. Makes it really easy. shop.switchdoc.com/products/pi2grover-raspberry-pi-to-grove-connector-interface-boardBP is this wiring correct? it gets power but the usb out power is always on. how do i switch between on/off? the code: import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setup(7,GPIO.OUT) for i in range(2): GPIO.output(7,True) time.sleep(1) GPIO.output(7,False) time.sleep(1) GPIO.cleanup() i have redone the wiring to this instead. but i am not sure if i should use the red wire that i have connected or the white? Attachments:
|
|
|
Post by SDL on May 1, 2021 16:57:22 GMT -8
I don't have really a good idea of what your yellow and red wires are connected to. Can you give me pin numbers?
I think you don't have anything plugged into GPIO7.
BP
|
|
janne
New Member
Posts: 5
|
Post by janne on May 1, 2021 20:43:30 GMT -8
I don't have really a good idea of what your yellow and red wires are connected to. Can you give me pin numbers? I think you don't have anything plugged into GPIO7. BP thanks for responding i have redone the wiring a bit again. the black is connected to pin 6 (GROUND), the yellow to pin 16 (GPIO 23) and white to pin 19 (GPIO 10) i know i have to make new code for it but is the wiring ok? will it work with the right code? thanks in advance Attachments:
|
|
|
Post by SDL on May 1, 2021 21:06:11 GMT -8
It should be fine if you match the pn to the code..
BP
|
|