The Alpha Geek – Geeking Out

Project #12: Robotics – DRV8835 Dual Motor Driver – Mk17

——

#DonLucElectronics #DonLuc #Robotics #Arduino #ArduinoUNO #DCMotor #MotorDriver #Project #Fritzing #Programming #Electronics #Microcontrollers #Consultant

——

DRV8835 Dual Motor Driver

——

DRV8835 Dual Motor Driver

——

DRV8835 Dual Motor Driver

——

DRV8835 Dual Motor Driver Carrier

This tiny breakout board for TI’s DRV8835 dual motor driver can deliver 1.2 A per channel continuously (1.5 A peak) to a pair of DC motors, and it supports two possible control interfaces for added flexibility of use: IN/IN and PHASE/ENABLE. With an operating voltage range from 0 V to 11 V and built-in protection against reverse-voltage, under-voltage, over-current, and over-temperature, this driver is a great solution for powering up to two small, low-voltage motors. The carrier board has the form factor of a 14-pin DIP package, which makes it easy to use with standard solderless breadboards and 0.1 inch perfboards.

Solarbotics RM2 (High-Power Motor for GM2/3/8/9)

This high-power brushed DC motor fits in the GM2/3/8/9 series of gear motors, offering approximately 3 times the speed, twice the torque and quadruple the power-draw. Retrofitting the gear motor is easy – just remove the motor retainer strap, transfer the pinion gear, and reinstall – that’s it.

DL2201Mk01

1 x Arduino UNO
1 x DRV8835 Dual Motor Driver Carrier
2 x Solarbotics RM2
2 x Pololu Universal Aluminum Mounting Hub 3mm Shaft, #4-40 Holes
2 x Pololu Mini Plastic Gearmotor Bracket Pair – Wide
2 x Rotary Potentiometer – 10k Ohm
2 x Knob
1 x Half-Size Breadboard
1 x Adafruit Perma-Proto Quarter-Sized Breadboard
1 x SparkFun Cerberus USB Cable

Arduino UNO

M11 – Digital 2
M12 – Digital 3
M21 – Digital 4
M22 – Digital 5
PO0 – Analog A0
PO1 – Analog A1
VIN – +5V
GND – GND

——

DL2201Mk01p.ino

/* ***** Don Luc Electronics © *****
Software Version Information
Project #12: Robotics - DRV8835 Dual Motor Driver - Mk17
01-01
DL2201Mk01p.ino
1 x Arduino UNO
1 x DRV8835 Dual Motor Driver Carrier
2 x Solarbotics RM2
2 x Pololu Universal Aluminum Mounting Hub 3mm Shaft, #4-40 Holes
2 x Pololu Mini Plastic Gearmotor Bracket Pair - Wide
2 x Rotary Potentiometer - 10k Ohm
2 x Knob
1 x Half-Size Breadboard
1 x Adafruit Perma-Proto Quarter-Sized Breadboard
1 x SparkFun Cerberus USB Cable
*/

// Include the library code:

// Solarbotics RM2 -> 1
#define MOTOR1_IN1 2
#define MOTOR1_IN2 3
// Solarbotics RM2 -> 2
#define MOTOR2_IN1 4
#define MOTOR2_IN2 5

// Rotary Potentiometer -> 1
int s1 = A0;
// Speed -> 1
int s1s = 0;
// Rotary Potentiometer -> 2
int s2 = A1;
// Speed -> 2
int s2s = 0;

// Software Version Information
String sver = "12-17p";
// Unit ID information
String uid = "";

void loop() {

  // RM2 Motor
  isRM2Motor();

}

getRM2Motor.ino

// RM2 Motor
// Setup RM2 Motor
void isSetupRM2Motor() {

  // Solarbotics RM2 -> 1
  pinMode(MOTOR1_IN1, OUTPUT);
  pinMode(MOTOR1_IN2, OUTPUT);
  // Solarbotics RM2 -> 2
  pinMode(MOTOR2_IN1, OUTPUT);
  pinMode(MOTOR2_IN2, OUTPUT);
  
}
// isRM2Motor
void isRM2Motor() {

  // Rotary Potentiometer -> 1
  s1s = analogRead( s1 );
  s1s = map(s1s, 0, 1023, 0, 200);
  // Rotary Potentiometer -> 2
  s2s = analogRead( s2 );  
  s2s = map(s2s, 0, 1023, 0, 200);

  // Solarbotics RM2 -> 1 Forward
  digitalWrite(MOTOR1_IN1, LOW);
  analogWrite(MOTOR1_IN2, s1s);
  delay(10);

  // Solarbotics RM2 -> 2 Backward
  digitalWrite(MOTOR2_IN2, LOW);
  analogWrite(MOTOR2_IN1, s2s);
  delay(10);

}

setup.ino

// Setup
void setup() {

  // Solarbotics RM2 Motor
  isSetupRM2Motor();

}

——

People can contact us: https://www.donluc.com/?page_id=1927

Technology Experience

  • Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi,Espressif, etc…)
  • IoT
  • Robotics
  • Camera and Video Capture Receiver Stationary, Wheel/Tank and Underwater Vehicle
  • Unmanned Vehicles Terrestrial and Marine
  • Research & Development (R & D)
  • Desktop Applications (Windows, OSX, Linux, Multi-OS, Multi-Tier, etc…)
  • Mobile Applications (Android, iOS, Blackberry, Windows Mobile, Windows CE, etc…)
  • Web Applications (LAMP, Scripting, Java, ASP, ASP.NET, RoR, Wakanda, etc…)
  • Social Media Programming & Integration (Facebook, Twitter, YouTube, Pinterest, etc…)
  • Content Management Systems (WordPress, Drupal, Joomla, Moodle, etc…)
  • Bulletin Boards (phpBB, SMF, Vanilla, jobberBase, etc…)
  • eCommerce (WooCommerce, OSCommerce, ZenCart, PayPal Shopping Cart, etc…)

Instructor and E-Mentor

  • IoT
  • PIC Microcontrollers
  • Arduino
  • Raspberry Pi
  • Espressif
  • Robotics
  • DOS, Windows, OSX, Linux, iOS, Android, Multi-OS
  • Linux-Apache-PHP-MySQL

Follow Us

J. Luc Paquin – Curriculum Vitae – 2021 English & Español
https://www.jlpconsultants.com/luc/

Web: https://www.donluc.com/
Web: https://www.jlpconsultants.com/
Facebook: https://www.facebook.com/neosteam.labs.9/
YouTube: https://www.youtube.com/channel/UC5eRjrGn1CqkkGfZy0jxEdA
Twitter: https://twitter.com/labs_steam
Pinterest: https://www.pinterest.com/NeoSteamLabs/
Instagram: https://www.instagram.com/neosteamlabs/

Don Luc

Leave a Reply

Your email address will not be published. Required fields are marked *

Categories
Archives