P.I.T.A ...makes life a little more complicated compared to the VSI.... I'll just need to add a UBEC to supply power to the Arduino from the chairs 24v for other PGDT joystick types OR perhaps a 9v battery as the Arduino's supply ...JUST for the initial power up ...depends on the quiescent consumption of the Arduino.
lordk wrote:Hi, I started this project all over again. I made a small board to easily test voltage of VR2 controller. This board connects VR2 joystick pod to VR2 controller.
I connected (see picture) all ribbon cables and started testing the outputs.
First I disconnect centre pin and put my own voltage. I made a voltage divider with 1K resistors using VSS and GND supplied from VR2 controller. Works fine even with load.
I continued my testing.
I use a 1K precision potenciometer to supply voltage on X axis (both channels). Works fine.
I use a power supply on Y axis (both channels). Works fine.
So I suppose that my problem is not in centre pin and is on DAC voltages or in my Arduino program.
Question.
Voltage using GND joystick pod reference are:
VSS: 1.83 V
Center: 0.87 V
forward: 1.41V
backwards: 0.36V
If I use GND from PCB of VR2 controller values change.
VSS: 4.95 V
GND: 3.12V
Center: 4.00 V
forward: 4.4V
backwards: 3.6V
I know that values are different because of the reference I use, but when I connect my arduino should I wire arduino ground to what ground: pcb or joystick pod?
ex-Gooserider wrote:Power was an old 12V laptop brick, running through a 7805 to power the Arduino and the logic side of the LED controllers. Even with the recommended caps on the 7805 it wouldn't work - a soon as I added a boatload of filter caps on the 7805 output and small ones across the power ins of the Arduino, everything started working fine...
ex-Gooserider

lordk wrote:Do you have the problem that I mentioned when supply 24V from wheelchair batteries?
ex-Gooserider wrote:An arduino can be powered from many sources - the USB connection, a 7-12V DC connection into the barrel jack that uses the on-board regulator, or a tightly regulated 5V DC directly into the 5V pin. Note that not all of these options may be present on the derivative / clone boards, and are certainly optional if rolling your own board....
I agree with the earlier suggestions to pull power from the pod supply as opposed to the ribbon cable for the joystick, but also would highly recommend doing LOTS of bypass caps! Do far more than the usual suggestions, I would start with a 100uF and go down with more in powers of 10 to at least 0.1uf. The larger caps can be electrolytic, but the small ones should be "low ESR" ceramics. Put the smaller caps as close to the Arduino as possible. Also consider putting a ferrite bead on the power line.
The chair is not a kind environment for electronics - you have big DC motors pulling a lot of current, using PWM, and plenty of other digital circuitry that is all generating electrical noise, much of it with square waves, which means tons of harmonics all up and down the frequency range. At least some of this is going to propogate all through the electrical system, so it is really important to filter out as much of the noise as possible before it gets to the digital components... Noise is the enemy, as it can cause all sorts of strange and hard to reproduce problems, and it will still screw you over even when the circuit is wired perfectly... The multiple caps in different sizes is because each one will have a particular range of frequencies that it is good at squashing.
ex-Gooserider
Return to Everything Powerchair
Users browsing this forum: acid_coke, Burgerman, LROBBINS, tettralytic and 460 guests