One Axis Stepper Motor Control

I was thinking of building a CNC machine. But because of lack of fund i can only design. This crude design does the job. 

There is a high heat dissipation from both the voltage regulators. So a big heat sink must be used. Otherwise there is a high probability of thermal runaway.

Test Code

#define F_CPU 1000000
/*
* GccApplication1.c
*
* Created: 8/27/2018 4:18:20 PM
* Author : abhay
*/
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
DDRB = 0xff;
/* Replace with your application code */
while (1)
{
PORTB = 0x09;
_delay_ms(1000);
PORTB = 0x0c;
_delay_ms(1000);
PORTB = 0x06;
_delay_ms(1000);
PORTB = 0x03;
_delay_ms(1000);
}
}

Leave a Reply

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