Project showcase
DC Motors Controller Board

DC Motors Controller Board © GPL3+

AVR ATmega32A MCU based, DC Motors speed/position/timing controller/testing board for Stepper, Servo, Gear motors and programmable too.

  • 2,277 views
  • 0 comments
  • 6 respects

Components and supplies

Necessary tools and machines

09507 01
Soldering iron (generic)
M3 4 5 set drill tap w g 1  43270 1521058825 llaxvkoksp
OpenBuilds Drill Taps

Apps and online services

About this project

One Board to Rule Them All

It's a DC Motor Testing kit, also possible to convert in to some motor controlled project.

It was made long ago to demonstrate kids about DC motor control.It has pinouts for one 4 pole stepper, one servo, 2 DC Gear Motor control.

Motor Controller

Hardware

  • Three user switch
  • Three Input Status LEDs (RYG)
  • 4 Red Output Status LEDs
  • 10k Pot for Position Control
  • 4 Outputs driven by L293D for Stepper Motor Drive
  • Small Servo Control/Power Terminals

Firmware

Arduino programmable according to following pinout.

Also programmable in C/Assembly in Atmel Studio. Any GPIO can do the functions!

What Makes The Difference?

There are 32 GPIOs vs Uno has 23 GPIO:

  • 8 ADCs vs Uno has 6
  • 3 Interruprs vs Uno has 2
  • Separate I2C pins
  • Separate Reset pin

This is not a project, just a project snippet!

Code

Mix of AVR and Arduino Style Arduino
Programmed in Arduino IDE
#include <avr/io.h>
#include <util/delay.h>

// Step Sequence Generation for 4 Pole Stepper Motor !

int z =250;
int main()
{
DDRB |= 0x07;
PORTB &= ~(0x07);
while(1)
{
  for (int i=0;i<16;i++)
  {
    for(int j=0;j<3;j++)
    {
PORTB |= (1<<j);
_delay_ms(z);
PORTB &= ~(0x07);
    }
}
  
_delay_ms(500);
for (int i=0;i<12;i++)
  {
  for(int j=2;j>=0;j--)
    {
PORTB |= (1<<j);
_delay_ms(z);
PORTB &= ~(0x07);
    }

  }
}
 return (0); 
}

Schematics

Sch on Pic
Basic Sch, any MCU GPIO pin can drive these
Img 20170928 052836 ehxjonowj9

Comments

Similar projects you might like

Nano IR Remote for DC Motors

Project showcase by Boaz Lawnce

  • 1,800 views
  • 2 comments
  • 4 respects

Ouija Board Access Control

Project tutorial by TheRiverPeople

  • 4,524 views
  • 1 comment
  • 21 respects

Tricks for Controlling DC Motors

Project tutorial by tolgadurudogan

  • 20,940 views
  • 6 comments
  • 74 respects

Circuito Arduino Controller Pad

Project tutorial by AhmedAzouz

  • 3,013 views
  • 1 comment
  • 9 respects

Flashlight Controller

Project showcase by Chrisroy

  • 613 views
  • 5 comments
  • 3 respects

Reef Controller

Project showcase by Shawn Leclair

  • 14,369 views
  • 0 comments
  • 23 respects
Add projectSign up / Login