Skip to content

OOFy-OOF/Arduino-Dial-Input-over-Serial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Arduino-Dial-Input-over-Serial

Fun little project for a simple scrolling input method using a potentiometer and a few buttons. Given that the Arduino Uno R3 I am using cannot communicate with the PC as an HID device unless the user decides to flash custom firmware, I have decided to implement a solution based on reading the serial output instead.

The switches used in my example are Omron B3WNs, and the potentiometer is a common 10k ohm one (306E).

Ingenious Maimu-Hillar

Only Windows support for now, executable builds are made using Auto-py-to-exe.

Simulate on Tinkercad here: link


Installation:

1. Download the .zip from Releases

image

2. Unzip on your PC, you should find these files inside the folder:

image

3. Upload the .ino file to the Arduino using Arduino IDE

image

Close the IDE when complete.

4. Run the .exe

image

DONE!!!


Troubleshooting:

Executable related:

On first launch, if you receive the following error:

image

Please make sure you are using the correct COM port for your connection by changing it in the settings, then click restart.

image

You can check the COM port your Arduino is using in Arduino IDE.

Set-up related:

If you are unable to input the full range of characters (a-z), note that in the sketch (.ino) file for the Arduino, the potentiometer range is set from 0 to 670 for my particular setup. If you are using a different potentiometer, please change the range to something appropriate for your components. (Refer here)

Still not working?

Make sure no other program (for example, Arduino IDE) is accessing your COM port while attempting to run this program; this will prevent it from receiving data. Also, make sure you don't already have an instance running. If the window is hidden, just force close it in Task Manager.

Known Issues:

  • Closing the settings menu without saving and restarting causes the UI to never time out. (fixed, now the main window hides itself anyways)
  • Button gestures with MODE are jank because too many variations. (Maybe fixed???)
  • buggy behaviour with window when waking from background
  • You tell me :D

More Documentation:

Refer to Wiki

About

Code for a simple scrolling input method using Arduino UNO, a potentiometer, and a few buttons.

Topics

Resources

License

Stars

Watchers

Forks