Telecran (Etch a Sketch) + Arduino = Telecranduino !

by nicoo in Circuits > Arduino

21343 Views, 61 Favorites, 0 Comments

Telecran (Etch a Sketch) + Arduino = Telecranduino !

IMG_7880.JPG
IMG_7882.JPG
I came across a bunch of stepper motors and I have since been looking for a project to do with the kids.

An old Telecran (French for Etch-a-Sketch) later, we are in business !

What I used for this project:
- an arduino Uno
- 2 stepper motors
- 2 easydrivers v44 (by www.sparkfun.com)
- various Fishertechnik parts (http://www.fischertechnik.com)
- a push button.

Optional parts:
- a sensor shield + 2 push buttons
- a Nintendo Wii Nunchuck
- a WiiChuck adapter

And also:
- hot glue gun

Mechanics

IMG_7888.JPG
IMG_7896.JPG
IMG_7895.JPG
IMG_7894.JPG
IMG_7889.JPG
The mechanical part has been done with some Fishertechniks parts.

I had to drill into the stepper cogs as the axis of the steppers were 5mm where the FT standard is 4 mm.

The other cogs were simply hot glued onto the Telecran (Etch-a-sketch) knobs.

The rest is best explained in pictures...

Steppers

IMG_7885.JPG
IMG_7893.JPG
IMG_7897.JPG
IMG_7898.JPG
Some details of the motors and the final assembly.

Arduino

IMG_7883.JPG
IMG_7887.JPG
IMG_7899.JPG
IMG_7881.JPG
To drive the steppers I used a couple of easy driver board from Sparkfun.

Very straight forward. Note the emergency button that allows to put the motors to sleep in case of a runaway sketch.

I added a sensor shield to the arduino for convenience as I have a couple of push buttons (with a pull-up resistor) already cabled.

WiiChuck adapter is one of my favorite. Although the Nunchuck is a little more difficult to program than it may first appear.

Schematics

telecranduino.png

Code - Sketch

If NUNCHUCK is defined then the code will be compiled with Nunchuck support.
The motors are then controlled exclusively with the Wii Nunchuck.

if NUNCHUCK is not defined, then a pre-defined drawing is executed.
Said drawing is controlled by the 'mode' variable modified at compile time.

This calls for a proper menu, an LCD screen etc... I leave this as an exercise to the reader.

Downloads

Calibration - Backlash

IMG_7900.JPG
1. backlash

Backlash has been the most annoying part of this project.
It comes from all the mechanical parts involved, the biggest culprit being the Telecran itself.
I finally took backlash into account programmatically and I designed a calibration routine.
Said routine draws a cross several times using various values of backlash.
One can visually decide which value gives the best (most aligned) cross.

In my case 14 is the magic number.


2. nunchuck

When the nunchuck is activated in the code, one can open the serial interface and note the magic numbers for said nunchuck.
Mininum and maximum X and Y.
X and Y values when nunchuck is still.

Nunchuck is active when either 'c' or 'z' is pressed. 'c' is slow, 'w' is fast.

Voila

IMG_7877.JPG
IMG_7942.JPG
IMG_7945.JPG
IMG_7946.JPG
IMG_7947.JPG
Here are:

- some nunchuck art by one of my kids.

- a sin(x)/x 2D plot.

- a sin(x)/x 3D plot.

- a checker (challenging the backlash algo).

- some 'maisons' (houses in French) teaching programming to my elder : a function, a parameter, a loop...

Downloads