Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 HELP 8051 speed controller programming

views
     
TSnovschopin
post Feb 6 2006, 01:12 PM, updated 20y ago

New Member
*
Junior Member
9 posts

Joined: Jan 2006


Attached Image
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
sinister
post Feb 6 2006, 01:24 PM

Enthusiast
*****
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?
TSnovschopin
post Feb 7 2006, 02:37 AM

New Member
*
Junior Member
9 posts

Joined: Jan 2006


QUOTE(novschopin @ Feb 6 2006, 01:12 PM)
Attached Image
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
*
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.
thanks
sinister
post Feb 7 2006, 09:53 AM

Enthusiast
*****
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*
knokie
post Feb 8 2006, 12:22 AM

Getting Started
**
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.
thanks
*
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. blush.gif
TSnovschopin
post Feb 8 2006, 01:26 PM

New Member
*
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
one.good.guy
post Feb 8 2006, 01:56 PM

Observer
*****
Senior Member
856 posts

Joined: Feb 2005



do u know the microcontroller manufacturer? how can we connect PC to the microcontroller? what connection?
TSnovschopin
post Feb 9 2006, 12:44 AM

New Member
*
Junior Member
9 posts

Joined: Jan 2006


QUOTE(one.good.guy @ Feb 8 2006, 01:56 PM)
do u know the microcontroller manufacturer? how can we connect PC to the microcontroller? what connection?
*
well is from atmel. software and the microcontroller reader to connect them.
what connection? hmmm dono wat u mean
silkworm
post Feb 9 2006, 07:48 AM

Enthusiast
Group Icon
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.
kramuse
post Feb 9 2006, 09:23 AM

Getting Started
**
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... «



silkworm
post Feb 9 2006, 10:35 AM

Enthusiast
Group Icon
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.
TSnovschopin
post Feb 9 2006, 12:02 PM

New Member
*
Junior Member
9 posts

Joined: Jan 2006


QUOTE(silkworm @ Feb 9 2006, 10:35 AM)
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.
*
wah really easy ??? zzzzz how?

TSnovschopin
post Feb 9 2006, 12:04 PM

New Member
*
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

» Click to show Spoiler - click again to hide... «

*
hey kramuse can u pls giv me the code ?? and put some brief explanation on it pls??
TSnovschopin
post Feb 10 2006, 10:16 AM

New Member
*
Junior Member
9 posts

Joined: Jan 2006


any other who can help? swt
eddomlim
post Feb 14 2006, 04:18 AM

Casual
***
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?
TSnovschopin
post Feb 14 2006, 10:00 AM

New Member
*
Junior Member
9 posts

Joined: Jan 2006


QUOTE(eddomlim @ Feb 14 2006, 04:18 AM)
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?
*
yeah u r right, do u know how to program?
one.good.guy
post Feb 14 2006, 05:34 PM

Observer
*****
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:
| Lo-Fi Version
0.0199sec    1.42    6 queries    GZIP Disabled
Time is now: 23rd December 2025 - 11:31 PM