You are on page 1of 13

Embedded

projects 1.
2022

Tampere University of Applied Sciences /Degree Programme in ICT Engineering 1


Joystick
• Input device to control UI or output device.
• Analog joystick based for two potentiometers
• Potentiometer is used as voltage divider

Tampere University of Applied Sciences /Degree Programme in ICT Engineering 2


Joystick

Tampere University of Applied Sciences /Degree Programme in ICT Engineering 3


Joystick xx

Tampere University of Applied Sciences /Degree Programme in ICT Engineering 4


Joystick xx

Tampere University of Applied Sciences /Degree Programme in ICT Engineering 5


Joystick xx

Tampere University of Applied Sciences /Degree Programme in ICT Engineering 6


Joystick

http://henrysbench.capnfatz.com/henrys-bench/
arduino-sensors-and-input/arduino-ps2-joystick-tutorial-
keyes-ky-023-deek-robot/

Tampere University of Applied Sciences /Degree Programme in ICT Engineering 7


Joystick

> +5V

> A8

> A9

> 19

Tampere University of Applied Sciences /Degree Programme in ICT Engineering 8


Joystick

> A8

> A9

> 19

http://henrysbench.capnfatz.com/henrys-bench/
arduino-sensors-and-input/arduino-ps2-joystick-tutorial-
keyes-ky-023-deek-robot/

Tampere University of Applied Sciences /Degree Programme in ICT Engineering 9


Joystick
• Exercise joy.2.1

 Create program that shows


Xpot value = 512
raw X and Y potentiometer values ypot value =512

Tampere University of Applied Sciences /Degree Programme in ICT Engineering 10


Joystick
• Exercise joy.2.2

 Create program that scale X and Y


Xpot value = 0%
values from -100% to +100% ypot value = 0%
 Middle position is 0%

Tampere University of Applied Sciences /Degree Programme in ICT Engineering 11


Joystick
• Exercise joy.2.3
X-position
 Create program that shows -100% 0% +100%
x-potentiometer value in analogue
format I
 position of “I” on LCD follows the
position of joystick

Tampere University of Applied Sciences /Degree Programme in ICT Engineering 12


Joystick
X-position
• Exercise joy.2.3
-100% 0% +100%
 Stick at left side >
I

X-position
 Stick at right side > -100% 0% +100%
I

Tampere University of Applied Sciences /Degree Programme in ICT Engineering 13

You might also like