Page 3 of 9

Re: Programming leads

PostPosted: 20 Feb 2017, 05:28
by gcebiker
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.

Re: Programming leads

PostPosted: 20 Feb 2017, 10:19
by woodygb
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.

Re: Programming leads

PostPosted: 20 Feb 2017, 11:10
by gcebiker
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.

Re: Programming leads

PostPosted: 20 Feb 2017, 11:15
by woodygb
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.

Re: Programming leads

PostPosted: 12 May 2017, 09:16
by DaveRV8
Hi
How do I go about buying a programming lead for a Quickie Salsa M2 with VR2 controller?
Dave

Re: Programming leads

PostPosted: 12 May 2017, 09:36
by woodygb
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

Re: Programming leads

PostPosted: 12 May 2017, 16:35
by DaveRV8
Hi, email sent.....

Re: Programming leads

PostPosted: 26 May 2017, 08:13
by DaveRV8
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

Re: Programming leads

PostPosted: 04 Jun 2017, 22:36
by woodygb
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

Re: Programming leads

PostPosted: 09 Aug 2017, 14:11
by steamtrain
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?

Re: Programming leads

PostPosted: 09 Aug 2017, 14:28
by woodygb
The PL2303 Driver can be a PITA.

Try this guide.

http://www.miklor.com/COM/UV_Drivers.php

You could try adding in a resistor as shown in the following pic.

Re: Programming leads

PostPosted: 09 Aug 2017, 14:32
by woodygb
I now recommend an FTDI Lead.

SPECIFICALLY a FT232R-3V3-WE... this lead can also be configured to work with many Curtis controllers but NOT for wheelchair controllers that use CAN Comms.


Image

Re: Programming leads

PostPosted: 12 Aug 2017, 17:44
by Burgerman
Very clear!

Re: Programming leads

PostPosted: 01 Nov 2017, 19:57
by Noeldavis
Hi Woodygb
Are these leads the dongle for programminga P&G vr2 controller?

Re: Programming leads

PostPosted: 02 Nov 2017, 00:50
by woodygb
It will program a VR2 ...but it is NOT A DONGLE ....the R-net uses a dongle.

Re: Programming leads

PostPosted: 16 Jan 2018, 12:42
by Burgerman
Woody, could you do me another RC interface please? Same as last one. Tor connect to the IOM module, (same as omni). A 1.2v swing.

https://www.google.co.uk/url?sa=t&rct=j ... fniVtetl-4

2 input channels only. The r-net grabs whichever input is first out of the deadband area. So always on.

5v supply.

PM me a bill!

Re: Programming leads

PostPosted: 16 Jan 2018, 12:57
by woodygb
Always ON ...So an ON/OFF not required?

I will look at the pdf.

EDIT ...Looked ...seems exactly the same as the OMNI build.

Re: Programming leads

PostPosted: 16 Jan 2018, 13:01
by Burgerman
No its always powered, no on off I think. So the reciever will always be on. But in fail safe mode at zero, zero. I use recievers with programable fail safe on all channels. So the R-net system will ignore it when transmitter is off. See pdf for input details.

Once used to shifting chairs about by RC you cant live without it. Its too useful.

THIS IS INCORRECT -- I READ THE MANUAL!

Re: Programming leads

PostPosted: 16 Jan 2018, 13:10
by Burgerman
I missed the on off jack... Yes it is the same as the omni.

Re: Programming leads

PostPosted: 16 Jan 2018, 13:50
by woodygb
I'll P.M. you when one is made.

Re: Programming leads

PostPosted: 16 Jan 2018, 14:04
by Burgerman
Thanks!

Re: Programming leads

PostPosted: 10 Apr 2018, 20:21
by Rolf,Meier
Hello woodygb,

I've read the whole report so far. I need a cable for my VR2 controller. If I take this right out of the drawing I need a USB cable with FT232RL chip then a 47KOhm resistor and a diode and the XLR 3 pin connector.

On XLR plug:
pin 3 to RXD
Pin 3 to 47KOhm to 3,3V or 5V
pin 3 to diode to TXD
pin 2 to ground

On 4 Pin Molex Plug

Pin 1 Ground
pin 3 TX
pin 4 RX

Since my VR2 controller has no Molex connector. Do I have to use XLR plugs?
I also read that you do not send any software. is okay too. but maybe you can write me yes what software it is then I can search for myself.

So far I have found PGDT Rnet Programmer and PG Drivers Technology - Mobility Service PC Programmer.

If you prefer to make the cables yourself, I would buy one too

MFG Rolf


Image[/quote]

Re: Programming leads

PostPosted: 11 Apr 2018, 10:33
by woodygb
Hi Rolf,

You will need the 3 pin XLR for the VR2 and the MOBILITY Software but NOT the SERVICE Version & not R-net.

The end of this thread has a better pic.

viewtopic.php?f=2&t=2111&start=1160#p117017

Re: Programming leads

PostPosted: 15 May 2018, 10:06
by CPguy
Dear woodygb,

can you also make programming leads for DX2 systems please? One end can be a serial port (as I have a serial port on a win7 prof machine) or an usb port whichever is easier.

What is the price please?

Re: Programming leads

PostPosted: 15 May 2018, 10:23
by Burgerman
You need an orange gadget called a DWIZ too. And a lead with no components that you could make yourself with a serial/usb cable. See PM.

Re: Programming leads

PostPosted: 15 May 2018, 11:49
by woodygb
I can supply the various interfaces.

Top right is a HOMEBREW "DWIZ-ADAPT" based on a electronic sketch supplied by Anubis... the other... top left is the Rhino 2 adapter..

NOTE:- You WILL need the modified Wizard 5 software .

DYNAMIC LEADS.jpg

Re: Programming leads

PostPosted: 15 May 2018, 18:08
by elryko1992
woodygb wrote:I can supply the various interfaces.

Top right is a HOMEBREW "DWIZ-ADAPT" based on a electronic sketch supplied by Anubis... the other... top left is the Rhino 2 adapter..

NOTE:- You WILL need the modified Wizard 5 software .

DYNAMIC LEADS.jpg


You are a really expert Alan :thumbup:

Re: Programming leads

PostPosted: 17 Sep 2018, 09:50
by calabash
Hello Woody

Just bought a quickie salsa R2 with a VR2 joystick, will this lead work? If so yes I will have one please then just need to be pointed to the software.....

Cheers.

Re: Programming leads

PostPosted: 17 Sep 2018, 09:54
by woodygb
calabash wrote:Hello Woody

Just bought a quickie salsa R2 with a VR2 joystick, will this lead work? If so yes I will have one please then just need to be pointed to the software.....

Cheers.


Yes I can supply a lead that will work.

Re: Programming leads

PostPosted: 17 Sep 2018, 10:36
by calabash
Thank you woody, tried a pm but I must be doing something wrong...... just tell me how to pay you.

Cheers