This project is a light saber based on Arduino Mini. This reposity includes four parts, arduino code, pcb layout file, pcb layout gcode, and sound effect.
There are two version of the arduino code, the general one and the silence one.
- General Version: There are two mode, light saber and light gun.
- Silence Version: We added a new mode, silence saber.
We designed the circuit by easyEDA, which provided online circuit editor and gerber file generation.
We made lots of efforts to generate the gcode from gerber files, because most CAM software are not open source. In the end, we find FlatCam, which provide gcode viewer, milling, routing, double side PCB, etc.
There are serveral complicated step to generate the pcb files.
- Generate Gcode From FlatCAM: Download the flatCAM from http://flatcam.org/. Load the gerber file and output the gcodes, including top_layer, drill and outline.
- Translate Gcode To Fit Roland: Because the gcode we obtained from flatCAM is not compatible with the CNC mechine we used, we need to translate it into a correct format. We wrote a python script called
gcode_trans.py
to do this.
Copy these effects into the SD card, so that arduino can read the HEX audio files from it.