can anyone help me to do 8051 microcontroller speed controller programming???
any details regarding my hardware pls ask from me if needed
tqtq
if p3.4 and p3.5 on, motor will move forward
if p3.3 and p3.7 on, motor will move reverse
HELP 8051 speed controller programming
|
|
Feb 6 2006, 01:12 PM, updated 20y ago
Show posts by this member only | Post
#1
|
![]()
Junior Member
9 posts Joined: Jan 2006 |
|
|
|
|
|
|
Feb 6 2006, 01:24 PM
Show posts by this member only | Post
#2
|
![]() ![]() ![]() ![]() ![]()
Senior Member
963 posts Joined: Jan 2003 |
I don't understand wat u need, u already know dat u need to set the pin 3.4 and pin 3.5 high so that the motor moves forward and etc..
so wat do u need from us? something to copy and paste? |
|
|
Feb 7 2006, 02:37 AM
Show posts by this member only | Post
#3
|
![]()
Junior Member
9 posts Joined: Jan 2006 |
QUOTE(novschopin @ Feb 6 2006, 01:12 PM) can anyone help me to do 8051 microcontroller speed controller programming??? any details regarding my hardware pls ask from me if needed tqtq if p3.4 and p3.5 on, motor will move forward if p3.3 and p3.7 on, motor will move reverse thanks |
|
|
Feb 7 2006, 09:53 AM
Show posts by this member only | Post
#4
|
![]() ![]() ![]() ![]() ![]()
Senior Member
963 posts Joined: Jan 2003 |
Before we can help u, we need to know what have u done for diz project, i'm assuming this is ur final year project *sigh*
|
|
|
Feb 8 2006, 12:22 AM
Show posts by this member only | Post
#5
|
![]() ![]()
Junior Member
205 posts Joined: Feb 2006 |
QUOTE(novschopin @ Feb 7 2006, 02:37 AM) hi i need help on controlling the speed of the motor, i dono the way to program the 8051 microcontroller....so pls write me the source code if can. Are you using servo motor? If not mistaken, you will need to send the pulses to the servo motor to control the speed. I have lost touch with it for quite some time, correct me if i am wrong. thanks |
|
|
Feb 8 2006, 01:26 PM
Show posts by this member only | Post
#6
|
![]()
Junior Member
9 posts Joined: Jan 2006 |
yeah sinister, i have tested the hardware part of that diagram and is all fine.
onli left programming of 8051 microcontroller not yet done, swt my supervisor said the motor SPEED can be control by programming the microcontroller, so can u help me in this?? I cant find any example online to do this programming zzzzz thnks This post has been edited by novschopin: Feb 8 2006, 01:27 PM |
|
|
|
|
|
Feb 8 2006, 01:56 PM
Show posts by this member only | Post
#7
|
![]() ![]() ![]() ![]() ![]()
Senior Member
856 posts Joined: Feb 2005 |
do u know the microcontroller manufacturer? how can we connect PC to the microcontroller? what connection?
|
|
|
Feb 9 2006, 12:44 AM
Show posts by this member only | Post
#8
|
![]()
Junior Member
9 posts Joined: Jan 2006 |
|
|
|
Feb 9 2006, 07:48 AM
Show posts by this member only | Post
#9
|
|
Elite
965 posts Joined: Jan 2003 From: Kajang |
What you need to do is to implement a PWM (Pulse Width Modulator) in software. Now I've given you something to put into the google search engine, go look it up.
|
|
|
Feb 9 2006, 09:23 AM
|
![]() ![]()
Junior Member
200 posts Joined: Dec 2004 From: OUG |
yes thats right, amel comes built in with PWM, you just need to activate it. i have a code right here for atmel but you wouldnt understand anything if you dont know whats PWM
» Click to show Spoiler - click again to hide... « |
|
|
Feb 9 2006, 10:35 AM
|
|
Elite
965 posts Joined: Jan 2003 From: Kajang |
QUOTE(kramuse @ Feb 9 2006, 09:23 AM) yes thats right, amel comes built in with PWM, you just need to activate it. i have a code right here for atmel but you wouldnt understand anything if you dont know whats PWM The atmel chip he's using (89c2051 in the circuit diagram) doesn't have hardware PWM. A software PWM is easy enough to implement with Timer0. |
|
|
Feb 9 2006, 12:02 PM
|
![]()
Junior Member
9 posts Joined: Jan 2006 |
|
|
|
Feb 9 2006, 12:04 PM
|
![]()
Junior Member
9 posts Joined: Jan 2006 |
QUOTE(kramuse @ Feb 9 2006, 09:23 AM) yes thats right, amel comes built in with PWM, you just need to activate it. i have a code right here for atmel but you wouldnt understand anything if you dont know whats PWM hey kramuse can u pls giv me the code ?? and put some brief explanation on it pls??» Click to show Spoiler - click again to hide... « |
|
|
|
|
|
Feb 10 2006, 10:16 AM
|
![]()
Junior Member
9 posts Joined: Jan 2006 |
any other who can help? swt
|
|
|
Feb 14 2006, 04:18 AM
|
![]() ![]() ![]()
Junior Member
358 posts Joined: Jan 2005 |
is that what you mean with PWM is the length of the 'high' as well as the 'low'? the longer the width of 'high' the faster the engine turn?
|
|
|
Feb 14 2006, 10:00 AM
|
![]()
Junior Member
9 posts Joined: Jan 2006 |
|
|
|
Feb 14 2006, 05:34 PM
|
![]() ![]() ![]() ![]() ![]()
Senior Member
856 posts Joined: Feb 2005 |
there are some notes and papers at National Instrument www.ni.com not too sure if it's applicable, but hope it is!
|
| Change to: | 0.0171sec
0.97
6 queries
GZIP Disabled
Time is now: 24th December 2025 - 01:46 AM |