FAQFAQ   GalleryGallery   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   Forum RSS Feed   Hacked Gadgets Main Site 

need help with this simple scenario..

 
Post new topic   Reply to topic    Hacked Gadgets Forum Index -> Microcontroller Resources
View previous topic :: View next topic  
Author Message
wafwaf
Newbie


Joined: 12 Jan 2009
Posts: 2

PostPosted: Mon Jan 12, 2009 2:48 pm    Post subject: need help with this simple scenario.. Reply with quote

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
View user's profile Send private message

Turd
HG Ruler


Joined: 18 Aug 2007
Posts: 274
Location: Saskatchewan, Canada

PostPosted: Mon Jan 12, 2009 5:27 pm    Post subject: Reply with quote

Are you apposed to using the parallel port? This could be very easy to do with the parallel port Very Happy

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
View user's profile Send private message Visit poster's website
wafwaf
Newbie


Joined: 12 Jan 2009
Posts: 2

PostPosted: Mon Jan 12, 2009 10:17 pm    Post subject: Reply with quote

how easy is that(using pararel port)?

does it takes low cost too?

thx..
Back to top
View user's profile Send private message
Turd
HG Ruler


Joined: 18 Aug 2007
Posts: 274
Location: Saskatchewan, Canada

PostPosted: Tue Jan 13, 2009 5:57 am    Post subject: Reply with quote

To attach an LED to the parallel port you need a parallel port cable, a resistor and an LED Very Happy



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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Hacked Gadgets Forum Index -> Microcontroller Resources All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group