hi, i have 2 joystick like these:
http://www.robot-italy.com/product_info.php?cPath=15_141&products_id=1172
and i have connected them to my picaxe 08M and used the commands readadc and debug for testing them.
i'm using only one of the two potentiometers available for each joystick.
the code is:
The problem is that when i move one joystick all up and the other all down, i would expect that the b2 and b0 value should be 255 and 0, instead the values are 131 and 17.
i have measured the voltage value on the chip pin leg and are 5 volt for all up and 0 volt for all down, so there is no wrong wiring connections...
So, what could be the problem?
Thanks for your help! (sorry for my english that could be not correct at all)
http://www.robot-italy.com/product_info.php?cPath=15_141&products_id=1172
and i have connected them to my picaxe 08M and used the commands readadc and debug for testing them.
i'm using only one of the two potentiometers available for each joystick.
the code is:
Code:
begin:
pause 100
low 0,2
input 4,1
let b0=0
let b2=0
main:
readadc 4, b2
readadc 1, b0
debug b2
debug b0
goto main
i have measured the voltage value on the chip pin leg and are 5 volt for all up and 0 volt for all down, so there is no wrong wiring connections...
So, what could be the problem?
Thanks for your help! (sorry for my english that could be not correct at all)