simonmonk / raspirobotboard3

Python library and design files for the RasPi Robot Board V3
MIT License
71 stars 40 forks source link

Raspirobotboard v3 GPIO pin use #4

Open dwphoto opened 8 years ago

dwphoto commented 8 years ago

I notice that the GPIO pins on the RaspberryPi that the Raspirobotboard v2 uses are nicely listed its README file as:

LEFT_GO_PIN = 17 LEFT_DIR_PIN = 4 RIGHT_GO_PIN = 10 RIGHT_DIR_PIN = 25
SW1_PIN = 11 SW2_PIN = 9 LED1_PIN = 7 LED2_PIN = 8 OC1_PIN = 22 OC2_PIN = 27 OC2_PIN_R1 = 21 (rev 1) or 27 rev 2 TRIGGER_PIN = 18 ECHO_PIN = 23

However, I do not see a pin listing for the Raspirobotboard v3 in its README. Are they the same? If not, where can I find them?

dwphoto commented 8 years ago

What I wish to do is use the unused pins that pass through the RRB v3 for additional development.

simonmonk commented 8 years ago

Hi you can find it in the code https://github.com/simonmonk/raspirobotboard3/blob/master/python/rrb3.py

Pasted here for convenience:

RIGHT_PWM_PIN = 14
RIGHT_1_PIN = 10
RIGHT_2_PIN = 25
LEFT_PWM_PIN = 24
LEFT_1_PIN = 17
LEFT_2_PIN = 4
SW1_PIN = 11
SW2_PIN = 9
LED1_PIN = 8
LED2_PIN = 7
OC1_PIN = 22
OC2_PIN = 27
OC2_PIN_R1 = 21
OC2_PIN_R2 = 27
TRIGGER_PIN = 18
ECHO_PIN = 23

Not many spares. But hen if you use a Pi 2 you'll have plenty.

Si.

dwphoto commented 8 years ago

Thanks. Enjoying the board!