| View previous topic :: View next topic |
| Author |
Message |
wafwaf Newbie
Joined: 12 Jan 2009 Posts: 2
|
Posted: Mon Jan 12, 2009 2:48 pm Post subject: need help with this simple scenario.. |
|
|
okey..
i'm so damn newbie...
but I just think that this is possible, but still don't know how to build this...
I have two LEDS, green and red.
I wanna control those LEDS using PC connected with serial port (com) and microcontroller.
I need C code that can display two command menus, turn on only green LED and turn on only red LED...
with this simple scenario, I hope I can build more complex scenario in controllong device from PC..
I need list of components( type of microcontroller, resistor, capacitor ) needed to build this..
thanks before... |
|
| Back to top |
|
 |
|
 |
Turd HG Ruler

Joined: 18 Aug 2007 Posts: 274 Location: Saskatchewan, Canada
|
Posted: Mon Jan 12, 2009 5:27 pm Post subject: |
|
|
Are you apposed to using the parallel port? This could be very easy to do with the parallel port
If you have to use the serial port and micro-controller then I'd use a PICAXE. You don't need to by a programing board you just need a few parts. |
|
| Back to top |
|
 |
wafwaf Newbie
Joined: 12 Jan 2009 Posts: 2
|
Posted: Mon Jan 12, 2009 10:17 pm Post subject: |
|
|
how easy is that(using pararel port)?
does it takes low cost too?
thx.. |
|
| Back to top |
|
 |
Turd HG Ruler

Joined: 18 Aug 2007 Posts: 274 Location: Saskatchewan, Canada
|
Posted: Tue Jan 13, 2009 5:57 am Post subject: |
|
|
To attach an LED to the parallel port you need a parallel port cable, a resistor and an LED
FreeBasic code:
| Code: | do while inkey$ = ""
out 888, 0
sleep 1000
out 888, 1
sleep 1000
out 888, 2
sleep 1000
out 888, 3
sleep 1000
loop
|
Heres some more info. on the parallel port. |
|
| Back to top |
|
 |
|