Controlling a DC Motor with 8051 Microcontroller for a Radio-Controlled Car

Click For Summary

Discussion Overview

The discussion revolves around programming the 8051 microcontroller to control a DC motor for a radio-controlled car. Participants are seeking assistance with coding, specifically in assembly or C, to implement directional controls based on mobile inputs.

Discussion Character

  • Homework-related
  • Technical explanation

Main Points Raised

  • One participant requests programming help for controlling a DC motor using an 8051 microcontroller, specifying directional commands based on mobile inputs.
  • Another participant mentions the use of an H-bridge to enable motor movement in both directions and asks for relevant code.
  • Several participants emphasize the importance of showing code attempts before receiving assistance, suggesting that this is a community guideline.
  • There is a suggestion to provide pseudo-code if the participant is struggling with initial coding, to facilitate guidance on converting it to C.
  • Participants express the need for clearer communication, urging the use of proper English instead of texting shorthand.

Areas of Agreement / Disagreement

Participants generally agree on the need for individuals to present their coding attempts to receive help. However, there is no consensus on specific coding solutions or approaches at this stage.

Contextual Notes

Limitations include the lack of provided code attempts from the original poster and the absence of specific details regarding the control algorithm they intend to implement.

sushant15488
Messages
6
Reaction score
0
hey ny1 can give me the 8051 microcontroller programming... to control dc motor ...? we r making a radio conrol car...with the help of mobile...when we press 2 ...car move if forward direc. when 4 then move in left n when press 6 move in...right ...whe press 8 thne backward ..when press 5 then stop...
 
Physics news on Phys.org
we have used ...H bridge..to move motor in both direc.?
can ny1 ...have program for that in assembly or in c
 
First of all; welcome to PF.

1)We do not hand out answers here. Show us your code or your attempt and someone will try to assist you.

2)Use proper English when requesting help. Your "sentences" are hard to read as it currently is.
 
i don't have code rite now......
 
Well show us your attempt at the problem when you have it.
 
ranger said:
First of all; welcome to PF.

1)We do not hand out answers here. Show us your code or your attempt and someone will try to assist you.

2)Use proper English when requesting help. Your "sentences" are hard to read as it currently is.

can u help me ...for that...we need only coding section...
 
so i will show my attempt next time...
 
sushant15488 said:
so i will show my attempt next time...

If you have trouble coding the c initially, just post some pseudo-code to show what kind of control algorithm you have in mind. At least if we see your pseudo-code, we can guide you somewhat in how you should convert that to c.

And yes, please type out the words in full -- you are using a full-size keyboard after all. Texting shorthand does not belong in a web-based technical forum like the PF.
 
Last edited:

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 4 ·
Replies
4
Views
8K
Replies
6
Views
4K