| Moteur de recherche de fiches techniques de composants électroniques |
|
DFR0604 Fiches technique(PDF) 7 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0604 Fiches technique(HTML) 7 Page - DFROBOT |
|
7 / 13 page ![]() Tutorial Connection Plug the IO expansion board into Raspberry Pi. Download the Driver library To use the analog and PWM ports in the board, download the driver library first. Press Ctrl+Alt+T to open the terminal, input the following command and hit Enter. git clone https://github.com/DFRobot/DFRobot_RaspberryPi_Expansion_Board.git Download the library and unzip the file. Input the following command into the terminal: tar -xvzf DFRobot_RaspberryPi_Expansion_Board Enter the directory of the uncompressed files: cd DFRobot_RaspberryPi_Expansion_Board/raspberry/ Extended Ports Usage • PWM: connect a servo to PWM P0. Create a file via the command of nano: sudo nano servoTest.py Add the following content: # -*- coding:utf-8 -*- # servoTest.py import time from DFRobot_RaspberryPi_Expansion_Board import DFRobot_Expansion_Board_IIC as Board from DFRobot_RaspberryPi_Expansion_Board import DFRobot_Expansion_Board_Servo as Servo board = Board(1, 0x10) # Select i2c bus 1, set address to 0x10 |
|
|
Lien URL |
| ALLDATASHEET vous a-t-il été utile ? [ DONATE ] |
À propos de Alldatasheet | Publicité | Contactez-nous | Politique de confidentialité | Lien vers la fiche technique | Echange de liens | Fabricants All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |