Electronic Etch-a-sketch
thingiverse
Hi, Here's a brand new electronic game for my daughter inspired by the famous game Etch-A-Sketch. The left potentiometer controls vertical pitch and the right potentiometer controls horizontal pitch, while the red button clears the screen. Parts list: 1 arduino nano 2 linear potentiometers 100k 1 push button 1 little switch 1 lcd screen type nokia 5510 4 AAA batteries. All these parts were found on Ebay. I found them all on Ebay. Instructions Follow the schematics to wire your etch-a-rduino correctly. You have to download these libraries in order to use the nokia 5510 screen: -Adafruit_GFX.h https://github.com/adafruit/Adafruit-GFX-Library -Adafruit_PCD8544.h https://github.com/adafruit/Adafruit-PCD8544-Nokia-5110-LCD-library Here's the code: remove "" on the 4 first lines #include <Arduino.h> #define vertical A1 #define horizontal A0 // pin 8 - Serial clock out (SCLK) // pin 9 - Serial data out (DIN) // pin 10 - Data/Command select (D/C) // pin 11 - LCD chip select (CS) // pin 12 - LCD reset (RST) Adafruit_PCD8544 display = Adafruit_PCD8544(8, 9, 10, 11, 12); int valeurX =0; int valeurY =0; void setup() { pinMode(vertical, INPUT); pinMode(horizontal, INPUT); pinMode(2, INPUT_PULLUP); display.begin(); display.setContrast(50); display.clearDisplay(); } void loop() { valeurX = analogRead(horizontal) / 12.3; valeurY = analogRead(vertical) / 21.7; display.setContrast(60); display.drawPixel(valeurX, valeurY, BLACK); display.display(); if (digitalRead(2)==LOW){display.clearDisplay();} }
With this file you will be able to print Electronic Etch-a-sketch with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Electronic Etch-a-sketch.