RC Input to UNO Board

Hello,

I recently acquired a UNO R3 board integrated with 20 AMP DC Motor Driver.

The board did not come with any write-up or PIN diagram. It does include a Schematic which I am attaching with this post.

Can someone guide me how to use it with an RC Receiver? I am using a FrSky Receiver ( probably PPM output )

I will attach a photograph of the board in next 2 hours after reaching home. Right now I have just attached the Schematic.

Thanking you all in advance for help.

-Saint

You expect us to read that thumbnail image?

sorry if it was not readable...

attaching the file again along with board photo.

RKI-1580.pdf (94.7 KB)

with reference to the schematic i need to know which PIN's on the board correspond to which number. i am finding it very difficult to judge it.

Look at the Processor, in the bottom middle.
The IO pins in Arduino terms would be:
A0/D14 -> S1
A1/D15 -> S2
A2/D16 -> S3
A3/D17 -> Servo1
A4/D18 (also I2C) -> Servo2
A5/D19 (also I2C) -> etc., match the IO pin names with the names on the connectors to the right.
A6 (analog input only)
A7 (analog input only)
D0 (uC's Rx)
D1 (uC's Tx)
D2
D3
D4
D5
D6
D7
D8
D9
D10 (SPI's SS)
D11 (SPI's MOSI)
D12 (SPI's MISO)
D13 (SPI/s SCK)

Is that what you are looking for?

hello CrossRoads,

i really appreciate your help in this. i also thank you for your reply.

actually this board has been custom designed by a company using Arduino chip integrated with a 20 Amp DC Motor Controller.

it has number of PIN's and they have provided me with a schematic.

i normally drive a L298D H Dual Bridge Motor Controller using Arduino UNO for which i have the program ready and works fine.

when it is ported to this board it just does not upload. now i am ready to right a new program for this Motor Controller Board but i am not able to make out the input pins from the schematic in relation to the board. i am just not able make head or tail of it.

could you please help me with it.

thanking you in advance.

What happens when you try to upload? Maybe the chip does not have a bootloader. You will need a Programmer to install one, or another Arduino programmed to act as one:

the following code was provided by the manufacturing company :


int RightMotor = 9;     // pin maping according to schematics
int LeftMotor = 10; 
int R_dir = 8;
int L_dir = 12;

void setup() {



   TCCR1B = TCCR1B & 0B11111000 | 0B00000100;          // reducing the pwm freq
  pinMode(RightMotor,OUTPUT);
  pinMode(LeftMotor,OUTPUT);
  pinMode(R_dir,OUTPUT);
  pinMode(L_dir,OUTPUT);
  
}

void loop() {
 Forward(255);

}

void Forward(unsigned int Pwm)
{
   digitalWrite(R_dir,HIGH);
   digitalWrite(L_dir,HIGH);
   analogWrite(RightMotor,Pwm); 
   analogWrite(LeftMotor,Pwm);
}

void Backward(unsigned int Pwm)
{
   digitalWrite(R_dir,HIGH);
   digitalWrite(L_dir,HIGH);
   analogWrite(RightMotor,Pwm); 
   analogWrite(LeftMotor,Pwm);
}

void Left(unsigned int Pwm)
{
   digitalWrite(R_dir,LOW);
   digitalWrite(L_dir,HIGH);
   analogWrite(RightMotor,Pwm); 
   analogWrite(LeftMotor,Pwm);
}

void Right(unsigned int Pwm)
{
   digitalWrite(R_dir,HIGH);
   digitalWrite(L_dir,LOW);
   analogWrite(RightMotor,Pwm); 
   analogWrite(LeftMotor,Pwm);
}

void Stop()
{
   digitalWrite(RightMotor,LOW); 
   digitalWrite(LeftMotor,LOW);
}

the above code loads perfectly through the Sketching interface.

after powering up the board only the front motors start moving at high speed in forward direction.

i am not able to give the inputs from an RC Receiver (FrSky)

after powering up the board only the front motors start moving at high speed in forward direction.

Yes what do you expect when all it does is call the one function.

void loop() {
 Forward(255);

}

i am not able to give the inputs from an RC Receiver (FrSky)

There is nothing in that code that would lead any one to expect it to respond to any external messages.

hi grumpy_mike thanks for your reply.

precisely it does not seem to take any other program somehow and to modify this program i need to know the PIN's on the board as per their schematic. i am not aware of how to read schematics.

my problem is i am not able to figure out which PIN on the board correspond to what as it's a custom made 20 A Motor Driver along with Arduino.

hence i am asking the forum to help me out identify the pins based on the schematic and the photo attached.

hey... so finally found the PIN's for Input.

they are PIN6 - PIN7

i now need to figure out how do i give an input to those PIN's in relation the to above code given by the company.

help need again...

The motor driver circuit on the schematic is so wrong its hard to know where to start.

Component values are incorrectly given 10k should be "10k" not "103", etc.
Diodes D1, D2, D3 are all completely crazy
The capacitor marked both C1 and C2 has no value given and is also crazy.
Ditto the one marked C1 and C6

That bridge seriously cannot work properly if at all.

However it doesn't look like it matches the circuit photo at all anyway.... Perhaps just
forget the schematic, but it doesn't give me any confidence in the board!

The company who made it is totally uncoperative with the design and i had doubts on the schematic too.

I am totally stuck now.... as I need 20 A motor driver to be used with a RC Receiver.

Don't know what to do..... :frowning:

there isn't any info on how to program the Rhino RKI-1580 arduino and playstation 2 controller, so in case anyone else like myself does a google search, here are the pins.

#include <Psx.h>                                          

#define dataPin 4
#define cmdPin 5
#define attPin 6
#define clockPin 7

#define ledpin 3

Psx Psx;                                                  
unsigned int data = 0;

void setup()
{
  pinMode(ledpin, OUTPUT);

  Psx.setupPins(dataPin, cmdPin, attPin, clockPin, 10);  
  // (Data Pin #, Cmd Pin #, Att Pin #, Clk Pin #, Delay)

  Serial.begin(9600);
}

void loop()
{
  data = Psx.read();             
  
  Serial.println(data);

  delay(50);

}

i found them the hard way by trying them out 1 by 1. luckyly because they are in sequence, the search wasn't too long