
Grove – Vibration Motor 振動(震動)馬達 直流馬達模組
- 貨號
- 105020003(A9-10)
- 分類
- Grove Modules
- 庫存
- 有庫存(0)
商品說明 這是一款無聲的迷你震動馬達模組。當輸入高電平時,電機會像手機在靜音模式一樣振動,支援 Arduino 與 Raspberry Pi。 特徵 兼容Grove 無聲 低功耗 高可靠性 規格 項目 最小值 典型值 最大值 工作電壓 3.0V 5.0V 5.5V 控制模式 邏輯電平(高電平電機啟動,低電平電機停止) 額定轉速 9000 rpm 產品使用 讓電機振動像點亮一個發光二極管一樣簡單。示例演示瞭如何讓啟動電機。 用Grove接線將電機接到Grove基礎擴展板的數字端口9。 將Grove基礎擴展板插到Arduino板上。 用USB線將Arduino連接到電腦。 將下面的代碼複製粘貼到一個新建的Arduino文件並載入到Arduino中。如果不知道怎樣載入,請您點擊這裡。 示例代碼如下: int MoPin = 9; // vibrator Grove connected to digital pin 9 void setup() { pinMode( MoPin, OUTPUT ); } void loop() { digitalWrite(MoPin, HIGH); delay(1000); digitalWrite(MoPin, LOW); delay(1000); } } 現在,感受來自電機的振動吧! With Raspberry Pi 1.You should have got a raspberry pi and a grovepi or grovepi+. 2.You should have completed configuring the development enviroment, otherwise follow here. 3.Connection Plug the sensor to grovepi socket D8 by using a grove cable. 4.Navigate to the demos’ directory: cd yourpath/GrovePi/Software/Python/ To see the code nano grove_vibration_motor.py # "Ctrl+x" to exit # import time import grovepi # Connect the Grove Vibration Motor to digital port D8 # SIG,NC,VCC,GND vibration_motor = 8 grovepi.pinMode(vibration_motor,"OUTPUT") while True: try: # Start vibrating for 1 second grovepi.digitalWrite(vibration_motor,1) print 'start' time.sleep(1) # Stop vibrating for 1 second, then repeat grovepi.digitalWrite(vibration_motor,0) print 'stop' time.sleep(1) except KeyboardInterrupt: grovepi.digitalWrite(vibration_motor,0) break except IOError: print "Error" 5.Run the demo. sudo python grove_vibration_motor.py 出貨清單 Grove – Vibration Motor x1 Grove連接線 x1 Documents Grove – Vibration Motor wiki




