Hello everyone! Been playing with this Arduino Uno project for about a year now, and I have hit a brick wall. The project is pretty much a macro maker, so you press some buttons, and then it can play them back. I was feeling pretty good about it until I entered the world of analog!
I should probably say this first, I have experience programming, but my electronics experience is definitely lacking - I am learning fast though!
I am having an issue trying to read an analog wire, and then write back to it with the same value - the analog being a joystick's x or y value (wires just soldered to the x and y output of the joystick's potentiometer). The joystick that I have been testing with is a Gamecube controller joystick.
My set up is very similar to the one here: Control an Xbox 360 controller analog stick - General Electronics - Arduino Forum, but I am reading the analog value as well as writing. I have an Arduino Uno that I use to read in the value, and a digipot to write the value.
Everything looks good - so if I read in a value of 128 and I write a value of 128, it is the same voltage when leaving the digipot.
The issue is (I think), that the digipot is turned off when I am not using it, so it doesn't affect the read in voltage (good). When I write a value though, the actual potentiometer in the joystick is affecting that voltage I am writing, causing it to be incorrect (bad).
Is there a way to get the value I am writing to be correct (the same as the voltage I read in), with the joystick's potentiometer still connected?
I've seen 3DS mods that seem to be able to do this for their analog stick, like the the one here: 3dscapture.com - Login
If someone could point me down the right path, that would be great. Thank you!