4.1 Sensors (Input devices) | Sensor | Detects | Typical use | |--------|---------|--------------| | Ultrasonic HC-SR04 | Distance (cm) | Obstacle avoidance | | IR sensor | Line (black/white) | Line following robot | | MPU6050 (IMU) | Acceleration, rotation | Self-balancing robot | | Camera (OV7670) | Images | Object tracking | 4.2 Actuators (Output devices) | Actuator | Control | Example | |----------|---------|---------| | DC motor | Speed (PWM) | Wheel drive | | Servo motor | Position (0°–180°) | Robotic arm joint | | Stepper motor | Precise rotation (steps) | 3D printer, CNC | | Relay/Solenoid | On/Off | Gripper clamp | 4.3 Motor Driver (H-Bridge) Microcontroller pins cannot supply enough current for motors. Use an H-Bridge (e.g., L298N, L293D) to control direction and speed.

void TaskMotorControl(void *pvParameters) while(1) updateMotorSpeed(distance); vTaskDelay(10); // Run every 10 ms

Loaded All Posts Not Found Any Posts VIEW ALL Read More Reply Cancel Reply Delete By Home PAGES POSTS View All RELATED ARTICLES: TOPIC ARCHIVE SEARCH ALL POSTS Not Found Any Post Match With Your Request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Just Now 1 Minute Ago $$1$$ minutes ago 1 Hour Ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago More Than 5 Weeks Ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share To A Social Network STEP 2: Click The Link On Your Social Network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content