| Electronic Components Datasheet Search |
|
DFR0601 Datasheet(PDF) 12 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0601 Datasheet(HTML) 12 Page - DFROBOT |
|
12 / 13 page ![]() 2023/10/12 10:49 Dual-Channel DC Motor Driver-12A Wiki - DFRobo https://wiki.dfrobot.com/Dual_Channel_DC_Motor_Driver_12A_SKU_DFR0601 12/13 Sample Code /* This sample code is for testing the 2 stepper motors The rotation velocity can be adjusted by the code switch Microcontroller: Arduino UNO */ int PWM1 = 2; int INA1 = 3; int INB1 = 4; int PWM2 = 5; int INA2 = 6; int INB2 = 7; void setup() { pinMode(PWM1, OUTPUT); pinMode(INA1, OUTPUT); pinMode(INB1, OUTPUT); pinMode(PWM2, OUTPUT); pinMode(INA2, OUTPUT); pinMode(INB2, OUTPUT); } void loop() { digitalWrite(INA1, LOW); digitalWrite(INA2, LOW); digitalWrite(INB1, HIGH); digitalWrite(INB2, HIGH); analogWrite(PWM1, 255); //PWM adjust speed analogWrite(PWM2, 255); //PWM adjust speed delay(1000); |
|
|
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 |