| Electronic Components Datasheet Search |
|
DRI0041 Datasheet(PDF) 4 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DRI0041 Datasheet(HTML) 4 Page - DFROBOT |
|
4 / 9 page ![]() Control Method IN1 IN2 ENA/ ENB Motor1/2 Behavior 0 0 x Stop (brake) 1 1 x Vacant 1 0 1 Forward 100% 0 1 1 Reverse 100% 1 0 PWM Forward at PWM speed 0 1 PWM Reverse at PWM speed In this table IN1 & IN2: the control signal input to change the motor behavior "0": TTL_Low "1": TTL_High "x": Any TTL, and it is default TTL_Low while no PWM signal. "ENA/ ENB": PWM speed setting Note: IN1 & IN2 To protect your motor, before switching the motor steering direction, make sure firstly to BRAKE motor by setting IN1 - 0 & IN2 - 0, especially when the PWM was set as 100%, full speed. And the suggestion time to brake is >0.1S, depending on your motor. +5V When the microcontroller operation voltage is 5V/3.3V, then please connect the reference voltage 5V/ 3.3V from the microcontroller. Or you will fail to control motors. Tutorial This tutorial will cover how to use PWM to control a motor using the shield. Do the wiring according to the Connection Diagram below, and then upload the sample code below to the Arduino card, here we use a arduino UNO as the controller, you could see your motor run forward for 3 second and then run reversely for another 3 seconds and repeat this behavior then. |
|
|
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 |