| Electronic Components Datasheet Search |
|
105020003 Datasheet(PDF) 9 Page - Seeed Technology Co.,Ltd. |
|
|
|||||||||||||||||||||||||||||
105020003 Datasheet(HTML) 9 Page - Seeed Technology Co.,Ltd. |
|
9 / 13 page ![]() 7/24/22, 10:34 AM Grove - Vibration Motor - Seeed Wiki https://wiki.seeedstudio.com/Grove-Vibration_Motor/ 9/13 Step 3. Run the demo. Schematic Online Viewer 1 import time 2 import grovepi 3 4 # Connect the Grove Vibration Motor to digital port D8 5 # SIG,NC,VCC,GND 6 vibration_motor = 8 7 8 grovepi.pinMode(vibration_motor,"OUTPUT") 9 10 while True: 11 try: 12 # Start vibrating for 1 second 13 grovepi.digitalWrite(vibration_motor,1) 14 print 'start' 15 time.sleep(1) 16 17 # Stop vibrating for 1 second, then repeat 18 grovepi.digitalWrite(vibration_motor,0) 19 print 'stop' 20 time.sleep(1) 21 22 except KeyboardInterrupt: 23 grovepi.digitalWrite(vibration_motor,0) 24 break 25 except IOError: 26 print "Error" sudo python grove_vibration_motor.py |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |