Hello Jeremy, thanks for replying.
I have attached a picture of my scheme.
In RobocLaw as the main battery is connected a 24V battery.
I’m using the Arduino UNO R3
The code I’m using is this:
//Arduino Mega and Leonardo chips only support some pins for receiving data back from the RoboClaw
//This is because only some pins of these boards support PCINT interrupts or are UART receivers.
//Mega: 0,10,11,12,13,14,15,17,19,50,51,52,53,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15
//Leonardo: 0,8,9,10,11
//Arduino Due currently does not support SoftwareSerial. Only hardware uarts can be used, pins 0/1, 14/15, 16/17 or 18/19.
//Includes required to use Roboclaw library
#include "BMSerial.h"
#include "RoboClaw.h"
//Roboclaw Address
#define address 0x80
//Definte terminal for display. Use hardware serial pins 0 and 1
//BMSerial terminalSerial(0,1);
//Setup communcaitions with roboclaw. Use pins 10 and 11 with 10ms timeout
RoboClaw rc(0,1,10000);
void setup() {
//Open terminal and roboclaw serial ports
//terminalSerial.begin(57600);
rc.begin(38400);
}
void loop() {
char version[32];
if(rc.ReadVersion(address,version)){
Serial.println(version);
}
delay(100);
}
My Schema:
postimg.org/image/r1ubhr2qf/
This code is to get the firmware version of roboclaw.
But it does not work, what am I doing wrong?
Note. I came here to ask for help, because I can not register myself in the forum OrionRobot and because I bought the card for pololu.