What is joy stick ?
Joystick is a kind of variable resistor that can move in two axis (x,y) and gives variable output in two form .They are highly used in direction control electronics,electro-mechanical equipments .
Joysticks are generally made up of two potentiometer one for x-direction and another for y-direction .The output graph is shown in figure below
Since there is no library for analog joystick on proteus i have constructed a model using two potentiometer (this may not give exact output But trust me the concept is same ), one for x-direction and another for y-direction
and the code for it is
complete project can be downloaded from this link joystick_interface_with_avr
I have made the code error free but there might be un-expected output . If you are facing such types of output please let me know and let us discuss about this in comment below .