aradarbel10:
I recently tried to use a joystick in my project, but its not working so good...
My problem is that I want to see the angle of the joystick, but it only gives me X Y position.
[....] cuz its working only in a part of the range, but I need it 360.
Reading the joystick using analogRead() will give values between 0 and 1023. You can use the map() function to change that range into any other range that you want. If you want to change it to 0 to 360 you can do so without any need for atan() etc.
...R