Forum Replies Created
-
AuthorPosts
-
D.V.G. KrishnaParticipant
follow the link
http://homemaderobo.blogspot.in/2012/03/simple-line-follower.html
donot use LDR(light dependent resistor)
it is very slow
connect the out put pin of the IR sensor shown in the link to the MCU input
by varing the variable resistor you can alter the range of sensor
D.V.G. KrishnaParticipanti tried that one
the range of IR led is not sharp so the starting point of the display is oscillating in between a 2 inch range.and not stable at higher speed
when i used on a table fan.
so i need a sensor that is sharp and stable at higher speed
D.V.G. KrishnaParticipantinsted of L293D (works only at 600mA current)
use ULN2003
its a darlington array
for driving stepper motor you need connect the common pin of stepper and 9th pin of 2003 to supply and 8 pinof 2003 to gnd.
dont forget connect the gnd of microcontroller to gnd of 2003
the connect the remaining terminals of stepper motor to pin 16,15,14,13 of 2003 . then the controll pins will be 1,2,3,4 respectively
http://homemaderobo.blogspot.in/2012/03/stepper-motor.html
April 13, 2012 at 11:46 pm in reply to: anyone tell me the software to burn AT-89C51 ASAP my project deadline is coming… #7441D.V.G. KrishnaParticipantif you have less time i prefer
to use P89V51RD2 mcu
you can write code in c and
you can easyly program it through serial port and FLASH MAGIC softwear
for programming you just need a aerial cable and MAX232 IC
it is in system self programable version of 8051
D.V.G. KrishnaParticipantif you want to control the speed of motor then follow the logic
use a LDR(light dependent resistor)
commet one end to Vcc and other end to a 10K resistor. other end of resistor to ground.
take out put from LDR and resistor interface
give it to an ADC
to drive the stepper motor use ULN2003 IC
read adc
motor port =0x01;
delay(adc value);
motor potr=0x02;
delay(adc value);
motor port=0x04;
delay(adc value);
motor port=0x08;
delay(adc value);
D.V.G. KrishnaParticipantif you need a sensor that cam detect up to 10m
you need a ultrasonic sensor
that will be very………………………….. costly
D.V.G. KrishnaParticipanthi dude
i already uploaded a link that discribes the working of IR sensor
if you are using 8051 micro controller
to diclare the pin as input tha last thing written to the port must be “1”
if you want to make all pins of port1 as in put you need to write P1=0xff;
the sensor you showed in the link may not work properly.use the comparator circuit as shown in the following link which i already posted in previous post
the logic will be as follows
#include<reg51.h>
void main()
{
P1=0xff ; // all pins of port1 are diclared as in put
//asume that the sensor is connected to pin P0.0
// assume sensor gives high on detecting an object
while(1)
{
if((P1 & 0x01)==0x01) // bit masking to check for only P0.0
P2=0xff; // switches on the LED connected to port2 if the sensor dectects an object
else
P2=0x00;// LED off
}
}
D.V.G. KrishnaParticipantfollow the link
use the LM358 comparator circuit
shown in the link
http://homemaderobo.blogspot.in/2012/03/simple-line-follower.html
March 29, 2012 at 2:24 am in reply to: Need help to make code for Wireless PC Controlled Robot without HT12E & HT12D #7349D.V.G. KrishnaParticipanti think the problem is in the RF module
when i checked the data sheet
i found that 434 RF module works at 1.2kb speed
so i think if we use baud rate higher than it we may get random data
some people say that RF moduls works on “monchester coding”
so the data must be de coded at the reciver
D.V.G. KrishnaParticipantnice work buddy
i,m working on similar project
im using just 8 leds to display my name”vamsi ece” actually it worked
watch the link
http://homemaderobo.blogspot.in/2012/03/propellerrotating-led-display.html
D.V.G. KrishnaParticipanthere the insystem programable means
i think 89C51 can be programed through RXD and TXD serial pins
we connect it to PC db9 port through max232ic and program it with relavent software.but in case of 89S51 it is programed using “master and slave mode”
MOSI:master out slave in
MISO:master in slave out
I think you are using an usb programer for 89S51 that containing an atmega8
microcontroller from AVR family from atmel.this mcu also contains mosi,miso pins.
so 89C51 wont support it
March 28, 2012 at 5:36 pm in reply to: how to interface remote controller with HT12E and to RF Tx #7345D.V.G. KrishnaParticipantits very simple dude
serial to parallel convertion
if you want to know more detail
refer to any 8051 book
and try to understand the working of
“SBUF” register
D.V.G. KrishnaParticipantD.V.G. KrishnaParticipanti think it is not possible
89s51 is having mosi.miso sck pins
but 89c51 is programed serilally
i think it may not be possible
D.V.G. KrishnaParticipanthellow every one
at first i got the same problem
the main problem is if you are using a new version of flash magic and the vegarobokit
8051 board.
the crystal frequency in the board is
11.0592MHz
so enter this frequency value in the respected column of flash magic.
if you are using a USB to RS232 cable
then check that your system is supporting
the drivers are not.(W7 wont support)
if you are using DB9 serial port
then there is no need of drivers
after powering on the 8051 board
connect it to PC through the cable
then right click on MY COMPUTER
then click on devise manager
it will display all the communication ports.then disconnect the cable and re connect it.find the comport (com1 or com2….etc)
select that perticular comport on flashmagic.
then try programming it.
it will work
if not there will be some problem with max232 ic.check its capacitors
-
AuthorPosts