Programming leads

No Commercial sellers please, unless of particular interest and with permission!

MAIN WEBSITE: www.wheelchairdriver.com

Re: Programming leads

Postby gcebiker » 17 Feb 2017, 14:08

Something must have changed with the App, or its my new phone.
Mine connects and will turn on/off via the phone but speed keeps zooming to 'halt' i can adjust the max speed but again it just resets nearly immediately to 'halt'.
http://greenmobility.com.au/rc-wheelchair-controller/
My YouTube Ch -- https://www.youtube.com/user/gcebiker
User avatar
gcebiker
 
Posts: 879
Joined: 11 Jul 2015, 14:20
Location: Gold Coast, Queensland, Australia.

Re: Programming leads

Postby gcebiker » 17 Feb 2017, 14:13

Just read the instructions and i had mine set to BOX instead of Circle...i wonder if that was what was doing it ?
Oh and my refresh was at 50ms, i have changed it to 25ms now.

I hope it works now, ill try in the morning.
http://greenmobility.com.au/rc-wheelchair-controller/
My YouTube Ch -- https://www.youtube.com/user/gcebiker
User avatar
gcebiker
 
Posts: 879
Joined: 11 Jul 2015, 14:20
Location: Gold Coast, Queensland, Australia.

Re: Programming leads

Postby LROBBINS » 17 Feb 2017, 14:38

As I noted in another post - the Dyamic ACU has a 5V analog joystick, but it's dual channel in each axis. If the two outputs don't agree, it will signal a fault. Woody may have to double-up his digipots to make his RC adapter work for this.
LROBBINS
 
Posts: 5543
Joined: 27 Aug 2010, 09:36
Location: Siena, Italy

Re: Programming leads

Postby woodygb » 17 Feb 2017, 14:39

NOTE:- The APP seems to perform slightly different on different makes/models of Android phone/tablet....
I have a SAMSUNG Mini that will NOT connect at all.

Joystick properties.
Joystick behavior auto return to center
Joystick constraint Circle

Options for advanced users
Auto connect at start up ticked
Refresh interval 25 milliseconds
Timeout count Continually
An expert is a person who has made all the mistakes that can be made in a very narrow field.
Niels Bohr
User avatar
woodygb
 
Posts: 7068
Joined: 12 Mar 2011, 18:45
Location: Bedford UK

Re: Programming leads

Postby woodygb » 17 Feb 2017, 14:42

Woody may have to double-up his digipots to make his RC adapter work for this.
I had to do that with an ALBER Wheelchair that used a JC2000 joystick with opposing outputs.
Easy enough ...I just piggy backed another digipot chip on top.
An expert is a person who has made all the mistakes that can be made in a very narrow field.
Niels Bohr
User avatar
woodygb
 
Posts: 7068
Joined: 12 Mar 2011, 18:45
Location: Bedford UK

Re: Programming leads

Postby Burgerman » 17 Feb 2017, 17:24

Dual outputs go in the same or opposite directions?

And no phone! RC by spectrum hobby stuff. Many channels!
User avatar
Burgerman
Site Admin
 
Posts: 65050
Joined: 27 May 2008, 21:24
Location: United Kingdom

Re: Programming leads

Postby woodygb » 17 Feb 2017, 17:50

The JC2000 Joystick on the Alber is ( PN ) the PGDT uses ( PP ) .
XY axes The twin outputs of the XY axes can be independently selected to be
rising together in the same direction (PP) or opposed (PN).


I can trick... or if you like circumvent... the error checking requirement of the two X and two Y channels ( 4 signals in total ) by simply producing one reading but copying it to each of the (PP) channels of a PGDT joystick.
An expert is a person who has made all the mistakes that can be made in a very narrow field.
Niels Bohr
User avatar
woodygb
 
Posts: 7068
Joined: 12 Mar 2011, 18:45
Location: Bedford UK

Re: Programming leads

Postby Burgerman » 17 Feb 2017, 18:51

Whatever works! I am using a DSMX with programmable fail-safe at zero stick position for all these kind of things. So trick is fine! 2.5v either way?

I visualize a small plastic project box with the board from the attendant remote, joystick removed, and your RC interface, and a receiver ready to plug into any chair. All bus powered and able to turn the thing on or off or just left on with fail-safe rx holding zero permanently. So doing nothing unless I switch on TX to override the main control. It has a speed pot too. So that could be used, as can the overide button.

My carers are hopeless at driving my chairs. I use different ones and need to drive them next to my bed often! All are RC.
User avatar
Burgerman
Site Admin
 
Posts: 65050
Joined: 27 May 2008, 21:24
Location: United Kingdom

Re: Programming leads

Postby woodygb » 17 Feb 2017, 19:27

Sounds doable..
An expert is a person who has made all the mistakes that can be made in a very narrow field.
Niels Bohr
User avatar
woodygb
 
Posts: 7068
Joined: 12 Mar 2011, 18:45
Location: Bedford UK

Re: Programming leads

Postby Burgerman » 17 Feb 2017, 19:56

Lets do it! :) Whats needed?
User avatar
Burgerman
Site Admin
 
Posts: 65050
Joined: 27 May 2008, 21:24
Location: United Kingdom

Re: Programming leads

Postby woodygb » 17 Feb 2017, 21:09

A box of choice sized to contain all the joystick board bits and bobs PLUS enough room for a PP3 battery and your RC receiver?.

Plus some ACCURATE measurements of the original joysticks output voltages.
An expert is a person who has made all the mistakes that can be made in a very narrow field.
Niels Bohr
User avatar
woodygb
 
Posts: 7068
Joined: 12 Mar 2011, 18:45
Location: Bedford UK

Re: Programming leads

Postby LROBBINS » 17 Feb 2017, 23:18

To use the Dynamic ACU you will also need to include the User/Attendant toggle switch - it signals over CAN whether the ACU or the master remote is active. BTW, the ACU joystick, unlike the main one, can't be calibrated in software, but does need separate programming of some parameters. As you intend to throw it away and substitute with the RC mimic you might run into some trouble with that, but I don't know of any way to find out without actually trying.
LROBBINS
 
Posts: 5543
Joined: 27 Aug 2010, 09:36
Location: Siena, Italy

Re: Programming leads

Postby Burgerman » 17 Feb 2017, 23:34

A box of choice sized to contain all the joystick board bits and bobs PLUS enough room for a PP3 battery and your RC receiver?.

Plus some ACCURATE measurements of the original joysticks output voltages.


No battery. Theres a 24v supply on the bus cable, and 5V for the joystick. RX needs 4 to 10V. Will be powered on all the time. So it can switch to the ACU as lenny mentions above. The RX fail safe will be set to OFF. When I turn TX on, it will move to ON.

I can do voltages very accurate! Do you mean while connected into the system or loose output unloaded by input impedance?

Or can we just have no dead-band and I can choose centre point with 2048 resolution by RC? Its super accurate/repeatable. More so than analog joysticks... So no need for built in fail-safe. The receivers I use have any fail-safe position I wish when no RC signal.
User avatar
Burgerman
Site Admin
 
Posts: 65050
Joined: 27 May 2008, 21:24
Location: United Kingdom

Re: Programming leads

Postby gcebiker » 17 Feb 2017, 23:35

The older chairs use RS485.

I wish i was better at making my own board plans, that emulator i have in my Sig block works great.

viewtopic.php?f=2&t=6503&start=20#p93925
Image

As you have pointed out, its just the prototype plastic and zip ties, a better RC system of your choice would be more robust.
http://greenmobility.com.au/rc-wheelchair-controller/
My YouTube Ch -- https://www.youtube.com/user/gcebiker
User avatar
gcebiker
 
Posts: 879
Joined: 11 Jul 2015, 14:20
Location: Gold Coast, Queensland, Australia.

Re: Programming leads

Postby woodygb » 17 Feb 2017, 23:51

I require enough space for MY board of approx that of a PP3 battery!

I can do voltages very accurate! Do you mean while connected into the system or loose output unloaded by input impedance?
Do both...
An expert is a person who has made all the mistakes that can be made in a very narrow field.
Niels Bohr
User avatar
woodygb
 
Posts: 7068
Joined: 12 Mar 2011, 18:45
Location: Bedford UK

Re: Programming leads

Postby Burgerman » 18 Feb 2017, 00:13

OK. What about having a clean linear output and letting the RC determine end points and centre points and dead band? Mines a computer and very programmable. Inc fail safe on all channels. Then no custom matched voltages needed?
User avatar
Burgerman
Site Admin
 
Posts: 65050
Joined: 27 May 2008, 21:24
Location: United Kingdom

Re: Programming leads

Postby woodygb » 18 Feb 2017, 00:27

It will need to be programmed with a BEST GUESS at a preset fixed center OFF/Neutral voltage and MAX/MIN end points .

0v - 2.5v - 5v

But you will/should be able to play around with and move them within this range via your R/C transmitters presets.
An expert is a person who has made all the mistakes that can be made in a very narrow field.
Niels Bohr
User avatar
woodygb
 
Posts: 7068
Joined: 12 Mar 2011, 18:45
Location: Bedford UK

Re: Programming leads

Postby Burgerman » 18 Feb 2017, 02:34

Thatlwork!
User avatar
Burgerman
Site Admin
 
Posts: 65050
Joined: 27 May 2008, 21:24
Location: United Kingdom

Re: Programming leads

Postby LROBBINS » 19 Feb 2017, 21:26

That is exactly what you will have to do for the ACU as its JS calibration can not be shifted by programming - you will have to "calibrate" your JS substitute to match what that particular ACU does (obviously, for the ACU itself to work without calibration it must have a deadband to take care of unit-to-unit differences in the center voltage).
LROBBINS
 
Posts: 5543
Joined: 27 Aug 2010, 09:36
Location: Siena, Italy

Re: Programming leads

Postby gcebiker » 20 Feb 2017, 05:23

I think its the app, changed back to the phone i used to use and its still doing the same thing.

When i press Speed + i see 'data 1' go up but less than a second after + has been pressed it reverts back to 'halt'

Moving the joystick produces no response in the chair while the 'data 1' is in 'halt' mode, if i am fast enough i can get the chair to respond but its less than a second and its back to HALT again.
http://greenmobility.com.au/rc-wheelchair-controller/
My YouTube Ch -- https://www.youtube.com/user/gcebiker
User avatar
gcebiker
 
Posts: 879
Joined: 11 Jul 2015, 14:20
Location: Gold Coast, Queensland, Australia.

Re: Programming leads

Postby gcebiker » 20 Feb 2017, 05:28

Looks like its the deadman code kicking in to fast, any ideas woody ?

i am right next to the chair and the remote is line of sight to the phone. On/Off works so i think its got good enough signal being so close.
http://greenmobility.com.au/rc-wheelchair-controller/
My YouTube Ch -- https://www.youtube.com/user/gcebiker
User avatar
gcebiker
 
Posts: 879
Joined: 11 Jul 2015, 14:20
Location: Gold Coast, Queensland, Australia.

Re: Programming leads

Postby woodygb » 20 Feb 2017, 10:19

Did we not alter the deadman timeout?

Do you still have the Arduino code?...if you have then you could alter the deadmaninterval.

long deadManInterval = 110; // milisecs interval between


more code.

Code: Select all
  if(mySerial.available())  {     // data received from smartphone
    deadManTimeout = false;
    delay(2);     
    cmd[0] =  mySerial.read(); 
    if(cmd[0] == STX)  {
      int i=1;     
      while(mySerial.available())  {
        delay(1);
        cmd[i] = mySerial.read();
        if(cmd[i]>127 || i>7)                 break;     // Communication error
        if((cmd[i]==ETX) && (i==2 || i==7))   break;     // Button or Joystick data
        i++;
      }
      if     (i==2)          getButtonState(cmd[1]);    // 3 Bytes  ex: < STX "C" ETX >
      else if(i==7)          getJoystickState(cmd);     // 6 Bytes  ex: < STX "200" "180" ETX >
    }
  }
  if(deadManEnabled)    checkDeadMan();
  sendBlueToothData();
}
void checkDeadMan()  {                                                  // stop chair if signal is lost
  static long previousMillis = 0;                             
  long currentMillis = millis();
  if(currentMillis - previousMillis > deadManInterval) {                // send data to smartphone
    previousMillis = currentMillis;
    if(deadManTimeout)  {       
      BT_Steering = 127; //neutral
      BT_Throttle = 127;
      Rapidity=127; // Set to HALT value ...                                                     
      buttonPresses=1; // Arduino and Android phone defaults to HALT after signal loss.     
      displayStatus = "***!HALT***"; // for debug only       
      digitalWrite(BTled,LOW);   
      int joyX = 200; // Offset to avoid     
      int joyY = 200;     
      delay(2);
    }
    else
      digitalWrite(BTled,HIGH);   // BT Connected indication.
An expert is a person who has made all the mistakes that can be made in a very narrow field.
Niels Bohr
User avatar
woodygb
 
Posts: 7068
Joined: 12 Mar 2011, 18:45
Location: Bedford UK

Re: Programming leads

Postby gcebiker » 20 Feb 2017, 11:10

I have the code you sent me last year.

The code is the same as you posted above.
The code on the Arduino is what ever you put on it before sending it, which i figure is the same.

I will reflash the Arduino in case the code on it is not the current iteration.
http://greenmobility.com.au/rc-wheelchair-controller/
My YouTube Ch -- https://www.youtube.com/user/gcebiker
User avatar
gcebiker
 
Posts: 879
Joined: 11 Jul 2015, 14:20
Location: Gold Coast, Queensland, Australia.

Re: Programming leads

Postby woodygb » 20 Feb 2017, 11:15

You could .... if re-flashing doesn't work ...try reducing the deadmaninterval even more..
As a test you could reduce it to zero or one just to see the affect.
An expert is a person who has made all the mistakes that can be made in a very narrow field.
Niels Bohr
User avatar
woodygb
 
Posts: 7068
Joined: 12 Mar 2011, 18:45
Location: Bedford UK

Re: Programming leads

Postby DaveRV8 » 12 May 2017, 09:16

Hi
How do I go about buying a programming lead for a Quickie Salsa M2 with VR2 controller?
Dave
DaveRV8
 
Posts: 8
Joined: 10 May 2017, 13:13

Re: Programming leads

Postby woodygb » 12 May 2017, 09:36

I can make one up for you .

viewtopic.php?f=1&t=5488#p82437

Note that the email address in the first post of this thread is DEAD.

USE..... nala_doow AT hotmail dot com
An expert is a person who has made all the mistakes that can be made in a very narrow field.
Niels Bohr
User avatar
woodygb
 
Posts: 7068
Joined: 12 Mar 2011, 18:45
Location: Bedford UK

Re: Programming leads

Postby DaveRV8 » 12 May 2017, 16:35

Hi, email sent.....
DaveRV8
 
Posts: 8
Joined: 10 May 2017, 13:13

Re: Programming leads

Postby DaveRV8 » 26 May 2017, 08:13

Many thanks to Woody for the lead and help and advice.
It all works perfectly and the chair is greatly improved.
Happy wife = money well spent!
Dave
DaveRV8
 
Posts: 8
Joined: 10 May 2017, 13:13

Re: Programming leads

Postby woodygb » 04 Jun 2017, 22:36

woodygb wrote:NOTE:- That FTDI has recently updated it's driver and the Chinese copies will not work with it ... you need to use an earlier version of the driver.

https://blog.adafruit.com/2016/02/08/ex ... -adafruit/


https://www.youtube.com/watch?v=ZXz51jeSLSI
An expert is a person who has made all the mistakes that can be made in a very narrow field.
Niels Bohr
User avatar
woodygb
 
Posts: 7068
Joined: 12 Mar 2011, 18:45
Location: Bedford UK

Re: Programming leads

Postby steamtrain » 09 Aug 2017, 14:11

Hi Woody, when you encounter a "failed leads" situation, do the drivers install? I have attempted to make a cable using a few types of PL2303 converters and a CH340, but so far I can't get rid of the "coms inactive" on the software. Thanks to you guys, I get all the cables to install properly without the "error triangle", so I don't think it is the usual driver issue.

I just wondered if the cables can still fail if the drivers install properly?
steamtrain
 
Posts: 2
Joined: 22 Jul 2017, 14:33

PreviousNext

Return to Buy/Sell Mobility Equipment

Who is online

Users browsing this forum: No registered users and 64 guests

 

  eXTReMe Tracker