|
|
11 månader sedan | |
|---|---|---|
| .github | 1 år sedan | |
| firmware | 11 månader sedan | |
| modules | 11 månader sedan | |
| patterns | 11 månader sedan | |
| static | 11 månader sedan | |
| steps_calibration | 11 månader sedan | |
| templates | 11 månader sedan | |
| .env.example | 11 månader sedan | |
| .gitignore | 11 månader sedan | |
| CHANGELOG.md | 1 år sedan | |
| Dockerfile | 1 år sedan | |
| LICENSE | 1 år sedan | |
| PATTERN_CREDITS.md | 11 månader sedan | |
| README.md | 11 månader sedan | |
| __init__.py | 11 månader sedan | |
| app.py | 11 månader sedan | |
| docker-compose.yml | 11 månader sedan | |
| mirror_pattern.py | 1 år sedan | |
| requirements.txt | 11 månader sedan |
Dune Weaver is a project for a mesmerizing, motorized sand table that draws intricate patterns in sand using a steel ball moved by a magnet. This project combines hardware and software, leveraging an Arduino for hardware control and a Python/Flask-based web interface for interaction.
The Dune Weaver comes in two versions:
Small Version (Mini Dune Weaver):
Larger Version (Dune Weaver):
Each version operates similarly but differs in power, precision, and construction cost.
The sand table consists of two main bases:
Both versions of the table use two stepper motors:
The small version uses 28BYJ-48 motors driven by ULN2003 drivers, while the larger version uses NEMA 17 or NEMA 23 motors with TMC2209 or DRV8825 drivers.: Controls the in-and-out movement of the arm.
Each motor is connected to a motor driver that dictates step and direction. The motor drivers are, in turn, connected to the ESP32 board, which serves as the system's main controller. The entire table is powered by a single USB cable attached to the ESP32.
Unlike traditional CNC machines that use an X-Y coordinate system, the sand table operates on a theta-rho (θ, ρ) coordinate system:
This system allows the table to create intricate radial designs that differ significantly from traditional Cartesian-based CNC machines.
Unlike conventional CNC machines, the sand table does not have a limit switch for homing. Instead, it uses a crash-homing method:
Due to the hardware design choice, the angular axis does not move independently. This means that when the angular motor moves one full revolution, the radial axis also moves slightly—either inwards or outwards, depending on the rotation direction.
To counteract this behavior, the software:
This correction ensures that the table accurately follows the intended path without accumulating errors over time.
Each pattern file consists of lines with theta and rho values (in degrees and normalized units, respectively), separated by a space. Comments start with #.
Example:
# Example pattern
0 0.5
90 0.7
180 0.5
270 0.7
The project exposes RESTful APIs for various actions. Here are some key endpoints: • List Serial Ports: /list_serial_ports (GET) • Connect to Serial: /connect (POST) • Upload Pattern: /upload_theta_rho (POST) • Run Pattern: /run_theta_rho (POST) • Stop Execution: /stop_execution (POST)
dune-weaver/
├── app.py # Flask app and core logic
├── patterns/ # Directory for theta-rho files
├── static/ # Static files (CSS, JS)
├── templates/ # HTML templates for the web interface
├── README.md # Project documentation
├── requirements.txt # Python dependencies
└── arduino/ # Arduino firmware
Happy sand drawing with Dune Weaver! 🌟