How chillibasket/walle-replica works
Wall-E is a robot replica controlled by Arduino firmware and a Flask web interface hosted on a Raspberry Pi. Users log in through the browser, issue joystick, gamepad, servo, animation, sound, or Blockly actions, and the backend communicates with the Arduino over USB serial; camera streaming is a separate capability. The Arduino handles movement and battery monitoring, with an optional OLED display. The README documents capabilities whose implementation was not sampled; those are represented at their existing directory paths, and the graph avoids inferring unshown internal calls.
Main entry points: wall-e.ino Robot controller · app.py Flask backend · automation.js Blockly editor · picamera2_stream.py Camera streaming
Components 21
Web control
- Flask backend
web_interface/app.py - Web settings
web_interface/config.py - Joystick controls
web_interface/static/js/joystick.js - Dashboard controls
web_interface/static/js/main.js - Camera streaming
web_interface/picamera2_stream.py - USB serial link
Automation
- Blockly editor
web_interface/static/js/automation.js - Blockly runtime
web_interface/static/js/blockly/blockly_compressed.js - Blockly blocks
web_interface/static/js/blockly/blocks_compressed.js - JavaScript generator
web_interface/static/js/blockly/javascript_compressed.js - Code interpreter
web_interface/static/js/blockly/acorn_interpreter.js
Robot firmware
- Robot controller
wall-e/wall-e.ino - Animation queue
wall-e/animations.ino - Queue implementation
wall-e/Queue.hpp - Motor control
wall-e/MotorController.hpp - OLED display
wall-e/display.ino
Hardware and setup
- Servo calibration
wall-e_calibration/wall-e_calibration.ino - Robot motors and servos
Other components
- Robot operator
- Control browser
- Pi camera
Connections 18
- Robot operator → Control browser: uses
README.md - Control browser → Flask backend: sends controls
README.md - Joystick controls → Flask backend: posts joystick
web_interface/static/js/joystick.js - Flask backend → USB serial link: queues commands
web_interface/app.py - USB serial link → Robot controller: sends serial
README.md - Robot controller → Robot motors and servos: controls servos
README.md - Robot controller → Animation queue: runs animations
README.md - Animation queue → Queue implementation: uses queue
- Robot controller → Motor control: controls motors
- Robot controller → OLED display: updates display
README.md - Servo calibration → Robot motors and servos: calibrates servos
README.md - Camera streaming → Pi camera: streams video
web_interface/picamera2_stream.py - Control browser → Camera streaming: requests stream
- Control browser → Blockly editor: programs actions
README.md - Blockly editor → Blockly runtime: creates workspace
- Blockly editor → Code interpreter: executes generated code
web_interface/static/js/automation.js - Blockly editor → Flask backend: posts robot actions
web_interface/static/js/automation.js - Web settings → Flask backend: configures