How ayman-charef/distributeur-automatique-des-toasts-tartin-s works
Project Type and Purpose
• This is an IoT-enabled robotics system for automating toast spreading.
• Combines hardware (ESP32 microcontroller, sensors, motors) with embedded software (Arduino sketch) and optional cloud/remote control.
File Structure and README
• File tree is minimal: an 1/1.ino sketch plus design/report PDFs.
• Key components from README: ESP32, ultrasonic sensor, stepper & servo motors, conveyor, robotic arm, IoT connectivity.
Main Components
a. Hardware Layer
• ESP32 Microcontroller
• HC-SR04 Ultrasonic Sensor
• 28BYJ-48 Stepper Motor + ULN2003 Driver
• MG995 Servo Motor
• Conveyor Belt Assembly
• Robotic Arm & Spreading Nozzles
b. Software & Firmware Layer
• Arduino Sketch (control logic, sensor reading, motor commands)
• IoT Communication Module (Wi-Fi/Bluetooth interface on ESP32)
c. External Services / User Interfaces
• Remote Control App / Web Dashboard
• Cloud Service (optional for OTA updates, data logging)
Relationships and Data Flows
• Sensor → ESP32: Ultrasonic readings trigger conveyor & arm actions.
• ESP32 → Motor Drivers: Stepper/servo control signals move conveyor & arm.
• ESP32 ↔ Remote App: Wi-Fi/Bluetooth bi-directional messages for commands/status.
• (Optional) ESP32 → Cloud: Telemetry upload, firmware update.
Architectural Patterns & Design Principles
• Event-driven control loop on the ESP32: sensor events → actuator commands.
• Layered separation:
1) Hardware abstraction (drivers for sensors/motors),
2) Control logic (state machine for toast detection and spreading),
3) Communication layer (IoT interface).
• Safety interlock module: emergency stop path hardwired or in firmware.
• Six hardware components and their drivers.
• Firmware layers in the Arduino sketch (Hardware Abstraction, Control Logic, Communication).
• Out the data/control flows explicitly.
• Safety and emergency-stop mechanism.
• IoT connectivity and potential cloud integration.