This controller is able to regulate the speed of DC motor through PWM. Features: Speed controller / motor driver to drive the motor.Bi-directional control for 1 brushed DC motor. Support motor voltage ranges from 3V 5V to 25V 30V.Maximum current up to 10A 13A continuous and 15A 30A peak (10 seconds). 3.3V and 5V logic level input. Solid state components provide faster response time and eliminate the wear and tear of mechanical relay.Fully NMOS H-Bridge for better efficiency and no heat sink is required.Speed control PWM frequency up to 10KHz 20KHz (Actual output frequency is same as input frequency).Support both locked-antiphase and sign-magnitude PWM operation.The new MD10C can be powered from a single power source and external Vin is not required.Dimension: 75mm x 43mm.Made In MalaysiaExample Arduino Sketch Controlling motor speed with program setProgram concept: This program runs the motor from rest to maximum speed, increasing PWM value from 0 to 255 in every 0.1 sec. User can modify delay time to control speed change. To see motor direction change, user can digitalWrite dir HIGH or LOW.void setup(){lcd.begin(16, 2);lcd.clear();pinMode(pwm,OUTPUT);pinMode(dir,OUTPUT);pinMode(diy_pwm,OUTPUT);pinMode(pot,INPUT);}void loop(){int pwm_value=0;lcd.setCursor(0,0);digitalWrite(dir,HIGH); // set DIR pin HIGH or LOWfor(pwm_value=0;pwm_value<256;pwm_value++){analogWrite(pwm,pwm_value); //increase PWM in every 0.1 secdelay(100);lcd.clear(); //display status of motor on LCDlcd.setCursor(0,0);lcd.print("PWM:");lcd.print(pwm_value);lcd.setCursor(0,1);lcd.print("DIR:");lcd.print(digitalRead(dir));}while(1) continue; //continue,terminate loop;}
Trustpilot
3 days ago
2 weeks ago