Don_dody
Full Member level 1
- Joined
- Nov 4, 2012
- Messages
- 96
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,288
- Location
- Indonesia
- Activity points
- 1,921
Re: Need Help: AVR - L293D - Bipolar stepper motor
Hi, thank you,
I use this table:
to build the following code:
I connect the control pins to PORTB.3,4,5,6
Well is that right?
Hi, thank you,
I use this table:
to build the following code:
Code:
void main(void)
{
PORTB=0x07;
DDRB=0xFF;
while (1)
{
PORTB=0b00101000;
delay_ms(100);
PORTB=0b00110000;
delay_ms(100);
PORTB=0b01010000;
delay_ms(100);
PORTB=0b01001000;
delay_ms(100);
}
}
I connect the control pins to PORTB.3,4,5,6
Well is that right?