encoder and motor control
Jen H
Posts: 3
This is my first project so I need a little help with the connections.
·
I am using an encoder to generate pulses to the bs2.· Then, I am using the count instruction to count the incoming pulses.
·
I have a motor control connected to the stamp as well.· I am using the PWM instruction to send out the correct voltage to the motor.·
·
Based on the number of pulses, I want to be able to adjust the motor speed.· The problem I am having is the PWM output that controls the motor is connected to a capacitor and resistor (like the one in the help guide).· So in order to send a steady voltage to the motor, I would have to refresh the PWM quite often.· Since I am getting pulses from the encoder, is there a way I can send those pulses to the motor control so that the motor can stay on?· I guess this is some kind of feedback loop, but I am having trouble with the connections.
·
I am using an encoder to generate pulses to the bs2.· Then, I am using the count instruction to count the incoming pulses.
·
I have a motor control connected to the stamp as well.· I am using the PWM instruction to send out the correct voltage to the motor.·
·
Based on the number of pulses, I want to be able to adjust the motor speed.· The problem I am having is the PWM output that controls the motor is connected to a capacitor and resistor (like the one in the help guide).· So in order to send a steady voltage to the motor, I would have to refresh the PWM quite often.· Since I am getting pulses from the encoder, is there a way I can send those pulses to the motor control so that the motor can stay on?· I guess this is some kind of feedback loop, but I am having trouble with the connections.
Comments