Nov 28, 2020 #1 M 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
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
Nov 28, 2020 #2 FvM Super Moderator Staff member Joined Jan 22, 2008 Messages 52,520 Helped 14,760 Reputation 29,802 Reaction score 14,129 Trophy points 1,393 Location Bochum, Germany Activity points 298,523 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: Nov 28, 2020
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.
Nov 28, 2020 #3 M 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.
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.
Nov 28, 2020 #4 KlausST Advanced Member level 7 Joined Apr 17, 2014 Messages 25,358 Helped 4,878 Reputation 9,777 Reaction score 5,583 Trophy points 1,393 Activity points 169,878 Hi, Straight forward debugging: use a scope to show the stepper control signals. Klaus
Nov 28, 2020 #5 FvM Super Moderator Staff member Joined Jan 22, 2008 Messages 52,520 Helped 14,760 Reputation 29,802 Reaction score 14,129 Trophy points 1,393 Location Bochum, Germany Activity points 298,523 MrNguyen said: 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. Click to expand... Connect R1 as pull-up resistor.
MrNguyen said: 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. Click to expand... Connect R1 as pull-up resistor.