Author Topic: blink Led using microcontroller  (Read 2216 times)

0 Members and 1 Guest are viewing this topic.

Offline anshTopic starter

  • Jr. Member
  • **
  • Posts: 12
  • Helpful? 1
blink Led using microcontroller
« on: May 04, 2014, 03:10:16 AM »
 I want to blink Led using microcontroller

microcontroller -p89v51rd2
breadboard
wires black, yellow
battery 9 v dc
Electrolytic Capacitors 1000 μF
diode 1n4007
Ceramic Capacitors 22 ρf
7805 regulator
LED
crystal oscillator
DB9 male connector
maxrs232 Ic
ceramic cap 22 pF (4)
adopter
I don't have usb to serial adopter so I used two cable
Db9 male connector +db9female connector------cable-----db9 female+db9male+usb port to laptop port
look this images

I have made some connection on breadboard  please check out me and tell me where did I make mistake
« Last Edit: May 04, 2014, 03:17:16 AM by ansh »

Offline Billy

  • Robot Overlord
  • ****
  • Posts: 132
  • Helpful? 2
Re: blink Led using microcontroller
« Reply #1 on: May 04, 2014, 12:39:18 PM »
I don't see any connection to the GND row at the top of the bread board.
Did you omit the connection in the drawing only, or also in the actual breadboard?

Offline anshTopic starter

  • Jr. Member
  • **
  • Posts: 12
  • Helpful? 1
Re: blink Led using microcontroller
« Reply #2 on: May 05, 2014, 11:13:16 AM »
I think my circuit is correct but main problem is cable.
This cable is not working I don't know why

Offline Billy

  • Robot Overlord
  • ****
  • Posts: 132
  • Helpful? 2
Re: blink Led using microcontroller
« Reply #3 on: May 05, 2014, 01:41:16 PM »
I think my circuit is correct..

You can ignore my question if you wish, even though it points a potentially huge problem.
I'll give you a bit of advice I often have to remind my engineers of.

If you don't know what the problem is, you don't know what the problem isn't. - Billy, 2014

Offline anshTopic starter

  • Jr. Member
  • **
  • Posts: 12
  • Helpful? 1
Re: blink Led using microcontroller
« Reply #4 on: May 06, 2014, 05:34:03 AM »
I have done this project with computer
I want to do with laptop
My laptop doesn't have parallel port
I don't have usb to serial cable

Db9 male connector +db9female connector------cable-----db9 female+db9male+usb port to laptop port

how to find out what I am doing wrong 

Offline jwatte

  • Supreme Robot
  • *****
  • Posts: 1,345
  • Helpful? 82
Re: blink Led using microcontroller
« Reply #5 on: May 06, 2014, 11:18:54 AM »
Quote
how to find out what I am doing wrong

First, you need to understand what each piece of the system is supposed to be doing.
Then, you need to inspect/measure each piece of the system for whether it is doing the right thing or not.
Once you find out which piece or pieces are not doing what they're supposed to, you can start creating theories of why it isn't so, and start modifying the system to gain more insight into how to get it to actually work.

Learning how to do engineering means going through these three steps.
First, you have to understand how the pieces are supposed to work on their own.
Then, you have to learn how to measure various kinds of pieces for proper performance. This includes tools like multimeters, oscilloscopes, logic analyzers, and LEDs soldered to bits of wire.
Finally, you have to learn how complex system dynamics evolve from simple parts, and how to manage the complexity that arises in systems.

It's not clear to me which of these steps you are running into problem with, although if I were to guess, it's step 2. Do you have an oscilloscope? A multimeter? A logic analyzer? A LED on a piece of wire? These are all good debugging tools to verify that signals are what they're supposed to be.

Offline jkerns

  • Robot Overlord
  • ****
  • Posts: 270
  • Helpful? 12
Re: blink Led using microcontroller
« Reply #6 on: May 06, 2014, 11:22:27 AM »

I don't have usb to serial cable

Db9 male connector +db9female connector------cable-----db9 female+db9male+usb port to laptop port

how to find out what I am doing wrong

Are you directly connecting serial pins to USB pins? That doesn't work. The communication protocols are not the same. You need a USB to serial converter.
I get paid to play with robots - can't beat that with a stick.

http://www.ltu.edu/engineering/mechanical/bachelor-science-robotics-engineering.asp

 


Get Your Ad Here