4.- DC MOTOR & ARDUINO BOARD

DC motors are a classic of technological projects. If we consider the operating conditions of the ARDUINO card, it turns out that it is only possible to control it if we use a transistor. The transistor can operate in cut when its base circulates a low intensity, which makes the intensity of the collector is zero and the motor does not work. On the other hand, if the current flowing through the base is very high, the transistor is in saturation and the motor operates in these conditions. Between both situations, the transistor is active and the intensity that flows through the collector is B (approximately 100) times the intensity of the base. That's why you have to mount the next circuit.




Find a transistor that can work in the conditions of the ARDUINO card with adequate resistance. I have put a potentiometer of 10K, and a transistor BC 547.


Although you can programm the ARDUINO board using Bitbloq, if you use ARDUINO, the programm for this circuit is:


"int motorPin = 10;

void setup(){
pinMode(motorPin, OUTPUT);
}
void loop(){
digitalWrite(motorPin, HIGH);
delay(1000);
digitalWrite(motorPin, LOW);
delay(1000);
}"


              With this program, the engine speed is changed periodically.


            The result of it is:






No hay comentarios:

Publicar un comentario

PROJECT 2021