Let's Make Robots!

5

Dagu 5rover arduino code

Hello i Got the dagu 5 rover and the 4wd motor controller, attached it to an arduino,  i wrote code to use it but it doesn't seem to be functional

 

volatile int rotaryCount = 0;

 

#define INTERRUPT0 0  // that is, pin 2

#define INTERRUPT1 1//pin 3

 

#define DIRECTIONA 4

#define MOTORA 5

 

#define DIRECTIONB 7

#define MOTORB 6

 

int QEM [16] = {0,-1,1,2,1,0,2,-1,-1,2,0,1,2,1,-1,0};               // Quadrature Encoder Matrix

 

Dagu Rover 5 2WD + 2Encoders + PCB + Arduino Mega + Pan & Tilt with IR

Hi All, As a complete novice at this I thought it would be a great idea to get a Dagu Rover 5 with the addons for the kids at school and start up a club to program it. How wrong I was! I am in need of some serious help guys... I've managed to plug everything in, the 2 motors and encoders on the underside of the PCB board and have chosen not to use the 6xAA battery pack (9V) in favour of a single 9V battery (fits better under the PCB with all the cables). Problem number 1 is this: I think I am plugging in the black and red cables into the PCB in the correct locations - on the top

U7 got fried for some reason :(

I just got my Dagu 4 Channel Motor Controller, already a small part gave some smoke and one motor channel is not working anymore.

All four wheels were turning at the same time before the channel4 got fried.

Connections:

  VCC to Arduino 5V

4 PWM on the motor controller to 4 PWMs on the Arduino uno.

Price: $15 USD
I have yet to order one, but these things are amazing! They take a input voltage of any value between 6.3V-30VDC and it outputs a steady 5VDC at up to 1A of power! Read more