This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:exercises:motor [2015/11/12 10:34] – heikopikner | en:exercises:motor [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ===== For beginners ===== | ===== For beginners ===== | ||
| - DC motor control. Movement of a robot is simulated, by using DC motor and touch sensors. Touch sensors are the buttons S1, S2 and S3 of the User Interface module. The motor is controlled by pressing the buttons. S1 and S2 pressed separately stops the engine for two seconds and then start motor again. If both buttons are pressed, then the motor is stopped until the buttons are released. (For a robot, similar scheme should be implemented to control two separate motor). | - DC motor control. Movement of a robot is simulated, by using DC motor and touch sensors. Touch sensors are the buttons S1, S2 and S3 of the User Interface module. The motor is controlled by pressing the buttons. S1 and S2 pressed separately stops the engine for two seconds and then start motor again. If both buttons are pressed, then the motor is stopped until the buttons are released. (For a robot, similar scheme should be implemented to control two separate motor). | ||
| - | - DC motor accelerates when S1 is pressed down and holds achieved speed when the button is released. By holding S2 pressed down, the motor decelerates smoothly. By pressing button S3, the motor stops instantly | + | - DC motor accelerates when S1 is pressed down and holds achieved speed when the button is released. By holding S2 pressed down, the motor decelerates smoothly. By pressing button S3, the motor stops instantly. |
| - | - Servo motor, the servo motor is controlled via the buttons of the digital board. By pressing down S1 the servomotor moves one step to the right. By pressing down S3, the servo motor moves one step to the left and S2 makes the servo motor to move to the initial (middle) position. The position of the servo motor is displayed live on the 7 segment display (each number corresponds to 10 degrees of the turn: middle position equals 5). | + | - Servo motor, the servo motor is controlled via the buttons of the User Interface module. By pressing down S1 the servomotor moves one step to the right. By pressing down S3, the servo motor moves one step to the left and S2 makes the servo motor to move to the initial (middle) position. The position of the servo motor is displayed live on the 7 segment display (each number corresponds to 10 degrees of the turn: middle position equals 5). |
| - | - Radar, | + | - Radar, |
| - | - Stepper motor, after each pressing on the buttons S1 and S3 it rotates | + | - Stepper motor, after each pressing on the buttons S1 and S3 it rotates |
| - | - All three different types of the motors are connected. By pressing a button it starts and stops a certain motor. S1 controls the DC motor. S2 controls the servo-motor and S3 controls the stepper-motor. | + | |
| ===== For advanced ===== | ===== For advanced ===== | ||
| - Tracking an object. By using ultrasonic distance sensor, which is installed on the lever of the servo-motor, | - Tracking an object. By using ultrasonic distance sensor, which is installed on the lever of the servo-motor, | ||
| - | - Stepper | + | - Using a stepper |
| - Acceleration, | - Acceleration, | ||
| - | - Design a PID regulator for a DC motor. NB! This exercise demands a motor with feedback. | + | - Design a PID regulator |
| + | - DC motor. The DC motor is controlled via the buttons of the User Interface module. By pressing down S1 the motor moves one step (x encoder pulses) to the left. By pressing down S3, the motor moves the same amount of steps to the back. The motor rotates exact amount of a predetermined steps, regardless of a torque applied to the shaft (in the case where applied torque is less than the engine maximum output torque). | ||
| ====== Questions ====== | ====== Questions ====== | ||