PDFPrintE-mail


Arduino with built in 2 Channel Motor Driver
View Full-Size Image


Arduino with built in 2 Channel Motor Driver

( ARE )
SG$39.90


The Arduino All-in-One microcontroller is especially designed for robotics application and supports the Arduino open source platform, which have thousands of open source codes. The integrated 2 way DC motor driver and wireless socket gives a much easier way to start your robotic project. This board is Arduino compatible which means you can use it as a standard Arduino Nano board.

• One Regulated Motor Power Input Terminal (6v to12v)
• One Unregulated Servo Power Input Terminal (you supply regulated 4v to 7.2v)
• One Servo input power selection jumper
• One Serial Interface Module Header for APC220/Bluetooth Module
• Two DC Motor Terminals – Handles motor current draw up to 2A, each terminal
• One I2C/TWI Port – SDA, SCL, 5V, GND
• One Analog Port with 8 analog inputs – one input is tied internally to the supply voltage
• One General Purpose I/O Port with 13 I/O lines – 4,5,6,7 can be used to control motors
• One Reset Button
• Jumper bank to Enable/Disable Motor Control

**You MUST make sure that you apply power to the Power Terminal using the correct polarity. Reverse
Polarity will damage the board.

This board can be programmed using Arduino IDE 0014 and above version.  In the Arduino IDE, please select
“Arduino Nano” as the hardware.

 

Configuration

Servo Power Select Jumper:

As most servo draw more current than the USB power source can supply. A separate servo power terminal is provided to power the servo individually which can be Enable/Disable by the Servo Power Select Jumper. When the Servo Power Select Jumper is applied, the servo is powered by internal 5V. When the Servo Power Select Jumper is not applied, the servo is powered by external power source.

Motor Control Pin Jumper:

Applying the Motor Control Pin Jumpers will allocate Pin 5,6,7,8 for motor control. Removing the jumpers will release the above Pins.

Wireless Select Jumper:

Applying the Wireless Select Jumper will allow the board to communicate via its wireless module such as APC220 and Bluetooth module. If no wireless module is plugged, this jumper does not make any difference. Removing the jumper will disable wireless module and allows the sketch to be uploaded.

Test Buttons:

The board have build in buttons S6 & S7. To enable S6 and S7, please apply the jumpers indicated . S6 uses Digital Pin2, S7 uses Digital Pin3. Once these enable jumpers have been applied, Pin 2 and 3 will be link to the buttons.

Sample DC Motor Control Code:

Connect four motor wires to Motor Terminal. And apply power through motor power terminal. The motor control is implemented by manipulating two digital IO pins and two PWM pins. The Pin 4,7 are motor direction control pins, Pin 5,6 are motor speed control pins.

 ======================

int E1 = 5;
int E2 = 6;
int M1 = 4;
int M2 = 7;

void stop(void)
{
  digitalWrite(E1,LOW);
  digitalWrite(E2,LOW);
}

void advance(char a,char b)
{
  analogWrite (E1,a);
       digitalWrite(M1,HIGH);
  analogWrite (E2,b);
       digitalWrite(M2,HIGH);
}

void back_off(char a,char b)
{
  analogWrite (E1,a);
       digitalWrite(M1,LOW);
  analogWrite (E2,b);
       digitalWrite(M2,LOW);
}

void turn_L(char a,char b)
{
  analogWrite (E1,a);
       digitalWrite(M1,LOW);
  analogWrite (E2,b);
       digitalWrite(M2,HIGH);

void turn_R(char a,char b)
{
  analogWrite (E1,a);
       digitalWrite(M1,HIGH);
  analogWrite (E2,b);
       digitalWrite(M2,LOW);
}

void setup(void)
{
  int i;
  for(i=6;i<=9;i++)
  pinMode(i,OUTPUT);
  Serial.begin(19200);
}

void loop(void)
{
  char val=Serial.read();
  if(val!=-1)
  {
    switch(val)
    {
      case 'f':
      advance(100,100);
      break;
      case 'b':
      back_off(100,100);
      break;
      case 'l':
      turn_L(100,100);
      break;
      case 'r':
      turn_R(100,100);
      break;     
    }
    delay(40);
  }
  else stop();
}

 

This Arduino board can be mounted onto our specially build robot chassis


Availability

In Stock: 6

Usually ships in:

2-3d.gif


Customer Reviews:

There are yet no reviews for this product.
Please log in to write a review.




Products Categories

We Accept


 


Shopping Cart

Your Cart is currently empty.

PLEASE READ


We offer Academic pricing. Can not find a part ? Please write to sales@robot-r-us.com for more details.

Product Search



Advanced Search

HTTPS Secure

Currency Selector