Help with Wild Thumper Controller

Hi guys,

 

I'm trying to hookup the Wild Thumper Controller (WTC)to my Uno.

Initial test with a RC unit works great, with the WTC receiving 1500 signals when in neutral position.

The Uno is sending the signal using the "servo.write(90)" function.

However, the signals received on the WTC fluctuates between 1400 to 1600.

The result is a jumper 6x6 :(

 

Is there a way to send perfect, stable signals to the WTC from the arduino?

 

Next, I'm exploring the Serial Comm (SC) mode of the WTC.

According to instructions, I need to send the characters "HB" followed by 4 bytes of data indicating direction & speed.

Is this code correct?

  byte D1, D2, D3, D4;

 

  Serial.print("HB");

  Serial.print(D1);      Serial.print(D2);       Serial.print(D3);       Serial.print(D4);

 

My last attemp is to rewrite the Serial Comm code by combing the RC mode.

The idea is to send 2 bytes of data, 1 to indicate driving/steering, the other indicating value.

Can I achieve this by this code?

  if (Serial.available)

  {

    do

    {

       int cmd = Serial.read();

    } (while cmd != 'd' || cmd != 's')

    int value = Serial.read();

 

    value = map(value, 0, 255, 1000, 2000);

}

 

Hi OddBot, I’ll verify the

Hi OddBot,

 

I’ll verify the connection again.

The GND are connected as the Uno is connected to the VIN & GND of the WTC.

I’m thinking of modifying the Serial code such that the 2nd & 4th byte will be the steer & drive value, respectively.

by using the RC code:

  speed = Serial.read()      //This is the 2nd byte

  steer = Serial.read()      //This is the 4th byte

The rest of the RC code will be pasted over to the Serial block.

 

By the way, if I was to use the default Serial code provided (i.e., HB + 4 bytes), is this implementation correct on the Uno?

  Serial.print(“HB”);

  Serial.print(D1);      Serial.print(D2);       Serial.print(D3);       Serial.print(D4);

 

Thanx

Updates

I’ve checked the connection using a Uno & another 328 and the pulsein result is jumpy as well.

 

However, I realised that the WTC code include a RCdeadband, which kinda keeps the motors still when they are in neutral position.

Using that code for the Uno & 328 set, the pulsein value is 1500 exact! So on to the actual setup, Uno & WTC.

Based on the Serial monitor on the WTC, the value is still unstable, with the RCdeadband increased to 60.

 

Will be trying out using I2C next…

the power supply is 2x 2S

the power supply is 2x 2S lipo cinnected to the WTC.

 

As for the code on the Uno:

Servo steer, speed;

  steer.write(90);

  speed.write(90);