Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Use ATMEGA2560 and L298 IC driver to control Stepper motor

MrNguyen

Newbie
Joined
Nov 28, 2020
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
16
I designed a circuit like this, but when I run the simulation the motor won't spin. So what's wrong with my circuit? I'm using proteus 8 motor.png
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
47,872
Helped
14,125
Reputation
28,507
Reaction score
12,808
Trophy points
1,393
Location
Bochum, Germany
Activity points
277,837
Circuit looks correct, I guess it's a software problem.
Presume the processor model doesn't care about actual power supply and the processor is configured for internal oscillator.

BTN1 is however not working. PB7 tied to VCC.
 
Last edited:

MrNguyen

Newbie
Joined
Nov 28, 2020
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
16
So if I want BTN1 to function, what I have to do? Like if I press/hold the button, the speed of the motor changes.
 

KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
18,761
Helped
4,184
Reputation
8,370
Reaction score
4,120
Trophy points
113
Activity points
123,389
Hi,

Straight forward debugging:
use a scope to show the stepper control signals.

Klaus
 

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top