A LittleBits "EtchASketch" Style controller for the WaterColorBot via CNCServer.
What you need:
- 1 littleBits Arduino kit, includes fork, button, two dimmers, power block & Arduino block
- 1 RaspberryPi or other computer of almost any kind capable of running Node.js programs with at least two USB ports
- 1 WaterColorBot
- Optionally, a Buddha Board. Currently this app is setup for only a simple Buddha Board demo, though it could be changed easily to allow for getting other colors, as long as you can manage the limitation of only one button.
- Connect all the littleBits blocks together as shown above.
- Clone or download a copy of this code to your computer.
- Open the code from the the "littleBitsController" folder in your Arduino IDE, and upload that to the littleBits Arduino. Remember the battery needs to be connected and switched on to be able to upload to the Arduino.
- On the Raspberry Pi, install Node.js, then clone this repository (
git clone https://github.com/techninja/etch-a-bits.git), or download the ZIP file as above.
- Go into the directory (
cd etch-a-bits/), and run
npm install. This will chug away for a while, downloading, compiling and installing all required dependencies.
- Plug in the WaterColorBot, then plug in the littleBits Arduino (with power), and run the app via
node etch-a-bits.js. The Serial ports each one provides should be automatically selected and connected.
- The orange-yellow
TXlight on the Arduino should light and stay lit when it's transmitting data to the the program. If it isn't lit, it isn't transmitting. Any loss of power to the littlebits will reset the Arduino and break the connection. We highly reccomend the white mounting board for your finished controller.
- Press the button once to go get water. Once it finishes it will go back to the last position on the canvas and put the brush/pen down.
- Turn the dimmers for 1:1 control of the X and Y Axes
- Double-click the button to lift and park the brush/pen. Any movement of the dimmers after park (or before you get water) will allow for accurate positioning of the "last position" without actually drawing, allowing you to make broken line drawings.
Made by TechNinja & "Super-Awesome" Sylvia as a 1 day hack for Maker Faire Bay Area 2015. See the video here.