Coder Social home page Coder Social logo

etch-a-sketch's Introduction

Etch-A-Sketch

An electronic etch-a-sketch

Description

First cut is to just get the rotary enoder working. Then add a second encoder. Finally add support for a screen. In this case, it will be a 128x64 OLED that I already have.

Got the initial wiring working and I noticed some inconsistencies with the data. Reading on the forums, I found a fully interupt driven sample and tried it.

Now to add a second rotary encoder and make it display a graph right underneath the first one in the serial console.

Adding the OLED 128x64 screen using the built in I2C interface.

I needed to tweak the handling of the values from the encoders to allow me to invert the screen coordinates so when I view it upside down it works properly

Parts

  • 1 Arduino Nano Every
  • 2 CTY1052 Rotary Encoder
  • 1 SSD1306 0.96" OLED screen w/I2C 128x64
  • 1 Breadboard
  • Assorted Jumper wires

Libraries

  • SPI
  • Wire
  • Adafruit_GFX
  • Adafruit_SSD1306

Wiring

Wire the first rotary encoder to the Arduino

Enc Pin Usage Arduino Pin
GND Ground GND
+ 5 Volts 5v
SW shaft push D4
DT B closure D3
CLK A closure D2

Wire the second rotary encoder to the Arduino

Enc Pin Usage Arduino Pin
GND Ground GND
+ 5 Volts 5v
SW shaft push D7
DT B closure D6
CLK A closure D5

Wire the OLED Display to the Arduino

I2C Pin Usage Arduino Pin
Vcc 3.3 volts 3.3V
GND Ground GND
SCL Serial Clock SCL - A5
SDA Serial Data SDA - A4

References

etch-a-sketch's People

Contributors

mggates39 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.