Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 12th, 2008, 2:47 AM   #1
unlovedwarrior
Newbie
 
Join Date: May 2008
Posts: 4
Rep Power: 0 unlovedwarrior is on a distinguished road
light program

hi im a new to programming and i need some help.
i want to program lights to turn off and on at certain times what lang. would i need to learn for this the lights will be installed in a table
unlovedwarrior is offline   Reply With Quote
Old May 12th, 2008, 11:52 AM   #2
Benoit
Expert Programmer
 
Benoit's Avatar
 
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 556
Rep Power: 5 Benoit is on a distinguished road
Re: light program

Depends on how you are interfacing with the lights I suppose. I saw someone in my program using Phidgets (http://www.phidgets.com/) with C/C++ to do something similar.
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4
Benoit is offline   Reply With Quote
Old May 12th, 2008, 12:30 PM   #3
unlovedwarrior
Newbie
 
Join Date: May 2008
Posts: 4
Rep Power: 0 unlovedwarrior is on a distinguished road
Re: light program

ok thanks ill look into it
unlovedwarrior is offline   Reply With Quote
Old May 12th, 2008, 5:52 PM   #4
colin mac
Newbie
 
Join Date: Nov 2007
Location: Ireland
Posts: 19
Rep Power: 0 colin mac is on a distinguished road
Re: light program

You'll have to be more specific. What kind of lights? How many? Also what you mean by certain times, as in times of the day or turn off and on in a sequence.
colin mac is offline   Reply With Quote
Old May 13th, 2008, 2:45 AM   #5
unlovedwarrior
Newbie
 
Join Date: May 2008
Posts: 4
Rep Power: 0 unlovedwarrior is on a distinguished road
Re: light program

on a table and i want it to say a message led
unlovedwarrior is offline   Reply With Quote
Old May 13th, 2008, 7:43 AM   #6
colin mac
Newbie
 
Join Date: Nov 2007
Location: Ireland
Posts: 19
Rep Power: 0 colin mac is on a distinguished road
Re: light program

Quote:
Originally Posted by unlovedwarrior View Post
on a table and i want it to say a message led
You'll still need to be more helpful in your posts than this if you want help. Forgive me if English is not your first language.
It's not clear why you need a program. It's easy to turn leds on and off using some IC's instead of a program but it depends on how clever you want the leds to be and how many. Otherwise I'll guess and say your best bet would be to use a microcontroller unless you don't have access to a way of programming one.
If you want to use a PC, then you should be able send bytes out from the parallel port depending on things like your OS.
colin mac is offline   Reply With Quote
Old May 13th, 2008, 7:59 AM   #7
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 301
Rep Power: 4 Klarre is on a distinguished road
Re: light program

A tip: http://www.velleman.be/ot/en/product/view/?id=351346
__________________
http://www.klarre.se
Klarre is online now   Reply With Quote
Old May 13th, 2008, 12:44 PM   #8
unlovedwarrior
Newbie
 
Join Date: May 2008
Posts: 4
Rep Power: 0 unlovedwarrior is on a distinguished road
Re: light program

English is my main lang. i just suck at it. but i want to make the table to keep score of a game and im not sure how many lights ill need
unlovedwarrior is offline   Reply With Quote
Old May 13th, 2008, 1:47 PM   #9
colin mac
Newbie
 
Join Date: Nov 2007
Location: Ireland
Posts: 19
Rep Power: 0 colin mac is on a distinguished road
Re: light program

The easiest way is to use a microcontroller. You could build something like this using a PIC.
http://picprojects.org.uk/projects/c...r.htm#Overview
If you're only interested in having a scoreboard rather than making one, it would be cheaper to buy one. If you're interested in using a PIC, you can program one in BASIC.
http://www.mikroe.com/en/books/picbasicbook/00.htm
colin mac is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
hello, I'd like to write a program for my work. blake_jl Community Introductions 13 Nov 23rd, 2007 4:31 PM
Language display in program Prm753 C++ 3 May 30th, 2006 5:45 PM
Help me make a program. read ---> DBZ Visual Basic 8 Mar 10th, 2006 8:53 AM
Creating a program to test a program sixstringartist C 8 Jan 21st, 2006 1:15 PM
airport Log program using 3D linked List : problem reading from file gemini_shooter C++ 0 Mar 2nd, 2005 4:12 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:08 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC