DIY Analog Dialer to USB Keyboard

by MaxRomagnoli in Circuits > Arduino

6084 Views, 15 Favorites, 0 Comments

DIY Analog Dialer to USB Keyboard

80de0783-b27c-4e4c-a825-f124fcf9bb63.jpg

I made this project just for fun, but this thing work as an normal keyboard with everything.

Have fun!

Supplies

Hardware

e96b64b2-8733-41e8-a2ed-bf3c3d3a485b.jpg
0d06b897-5f8d-4853-ae29-05921c6b4a1e.jpg

Analog Dial

For this project iI used this old analog dial, bought some years ago, don't know if all the dials work like this, but i think it's a common working process.
Mine dial have two buttons:

The first one (brown wire), connected to PIN 3 on the Arduino, open the connection when you start moving the dial, and close when the counting is over.

The second one (yellow wire), connected to PIN 4 on the Arduino, close and open the connection every time a number is counted.

The red wire is connected to GND on the Arduino.

Arduino

IMPORTANT! This project work only with this kind of Arduino, because it have an ATMEGA32U4, who can emulate the keyboard

Software

You can download the software from GitHub: https://github.com/MaxRomagnoli/DIY-analog-dialer-...

Upload the "dial_to_usb.ino" file to the Aurduino using the Arduino Software

(opitonal) Test Buttons Delay

If the dial insert more or less number as normal, use the "dial_ms_test.ino" file to test the ms delay of the dialer.

Mine sometimes count double input, but they are about 1 or 2 ms, normal delay is 40 to 60 ms.

If you have a double input greater than 1 or 2 with this test, change the delay in the previous file, according with the test result.

(optional) 3D Printed Case

IMG_20200805_090901.jpg
IMG_20200805_090924.jpg

3D Models by Grigori Valenti