#Blockly_Programing
A smart robotic car using the ESP32 microcontroller. This robot combines line tracking, ultrasonic obstacle detection, and a robotic arm to detect, pick, and place objects along a defined path. Built using the ACB library suite.
- Line tracking with adjustable thresholds
- Robotic arm to pick and drop blocks
- Ultrasonic sensing for obstacle detection
- Modular and extendable ACB library-based code
- ESP32 Development Board
- ACB Line Track Sensor Module
- ACB Robotic Arm (with servos)
- ACB Ultrasonic Sensor
- Motor Driver + Chassis + Wheels
- Power Supply (Battery/USB)
Install the following custom libraries:
ACB_LineTrackACB_CAR_ARMACB_UltrasonicACB_ESP32Servo
⚠️ These libraries might be part of a vendor package. Add them manually to your Arduino libraries folder if needed.
| Component | ESP32 Pin |
|---|---|
| Ultrasonic TRIG | 13 |
| Ultrasonic ECHO | 14 |
| Line Sensor L | 39 |
| Line Sensor M | 36 |
| Line Sensor R | 35 |
| Servo Arm Pins | 25, 26, 27, 33, 4 |
- Line Patrol: Follows a dark line on a bright surface using 3 infrared sensors.
- Object Detection: Uses ultrasonic sensor to detect a block at 15 cm.
- Pickup Sequence: Stops, positions the robotic arm, picks up the object, rotates, and places it in a target location.
- Upload the code to your ESP32 via Arduino IDE.
- Place the car on a track with a black line.
- Place an object (like a cube) 15 cm in front of the ultrasonic sensor.
- Power on the system. The robot will:
- Follow the line.
- Stop when it detects the object.
- Grab the object and place it on the other side.
- Continue patrolling.
+------------------------+
| ESP32 Board |
+------------------------+
| | | |
| | | +--> Servo 1 (Claws)
| | +--> Servo 2 (Elbow)
| +--> Line Track Sensor (L, M, R)
+--> Ultrasonic Sensor (TRIG, ECHO)
Coming soon: Upload pictures or GIFs of your robot in action!