描述
樹莓派 Raspberry Pi – I2C 16 Channel PWM Servo & L293D-2 4 Motor Board
一、產品特色
1. This board use RS-Pi GPIO 17,18,27,22,23,24,25,4
GPIO 17,18,27,22 for MA1, MB1
GPIO 23,24,25,4 for MA2, MB2
2. GPIO 28 ~31 (need V2 – P5 connector) for ultrasonic sensor connector (2GPIO, one for Trig, one for Echo) or other devices
3. 2 extra 12c input for sensors (5V or 3v3) (5V port with Level converter)
switch S1 TO S5 ( use GPIO 7,8,9,10,11 signal) (SPI signal)
Rs-Pi- 16channel PWM & 4 Motor Board plug in Raspberry Pi
二、Scratch驅動應用範例 Detail
(1) Servo Motor control
2 Servo in channel 0 & channel 7 Command “SE”+ “PWM (0-15)” + “a” +”angle” for Address 41 se7a10 –> channel 7 servo move 10 angle address 41 se7a-10 –> channel 7 servo move -10 angle address 41 se0a10 –> channel 0 servo move 10 angle address 41 se0a-10 –> channel 0 servo move -10 angle address 41
(2) PWM LED output demo
LED module (Blue, Green,Yellow,Red)
LED Scrolling Command PWMLED41S0E15D4True PWMLED”Address” S[Start channel] E[End channel] D[Delay / Timing] [True/False]
Address 40, 41, 42, 43, 44 Start channel & End channel 0 ~ 15 16 channel D 1,2,3,4,5 (1 ~ 100) Delay Timing
LED Brightness control Command PWMLED “Address” “B” “0 ~ 1000“ PWMLED41B1000
Stop command “PWMLED41STOP”
三、範例程式下載
pwm-v2 for Raspberry Pi V2 board
四、產品內容
1x Rs-Pi I2C 9685 -16 channel PWM & L293D 4 Motor board
商品評價
目前沒有評價。