Hello, in today's video i will show you how to connect a joystick (potentiometer) to an LCD, as well as control LEDs with the joystick.
The video gives the parts needed, theory, and wiring.
Thank you for watching. If you have any problems, ask in the comment section. The arduino forums is also a great place for information.
(Re-upload after corrections);
Comments for code--
If you do not want the LCD, simply delete all mention of LCD, and instead use serial.print functions, this will allow you to read the potentiometers (yaxis/xaxis), and display them to your com port.
code -
https://forum.arduino.cc/index.php?to...
Library links -
LCD library -
https://github.com/fdebrabander/Ardui...
How to install libraries -
https://www.arduino.cc/en/guide/libra...
Amazon links(U.K) -
LCD -
https://www.amazon.co.uk/KOOKYE-solde...
Joystick module bundle -
https://www.amazon.co.uk/WINGONEER-Jo...
My Keyestudio sensor kit, which comes with the HC-SR04 (I got mine on sale) -
https://www.amazon.com/Keyestudio-New...