• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 413
  • Last Modified:

How do i switch tube light on and off from my vb program?

How do i switch tube light on and off from my vb program? please dont consider this as a joke but this is possible.
0
dhavaljariwala
Asked:
dhavaljariwala
  • 2
  • 2
  • 2
  • +7
1 Solution
 
Elmo_Commented:
Tube Light?  What do you mean?
0
 
dhavaljariwalaAuthor Commented:
Llight or a fan any home appliances.
0
 
Elmo_Commented:
Realisticly, I do not think that this is possible from a VB app.  But you can always try!!
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
AmitabhCommented:
you are talking of embedded programming. for this u need to get the API's of the hardware which will control the tubelight. i don't think this is possible through VB but the first step is to get the hardware and required API's from the vendor.

-A.Pandey
0
 
gencrossCommented:
This is off the top of my head, but I think you may be able to pick up some converters for an AC power network and then a module that a light would plug into that you could control through the computer.  The network would run through the electical wiring of the house and the module would plug into an outlet and the light would plug into the module.  The module would be able to receive commands from the computer to turn on and off the light.

I don't know if this is viable but check out this page http://www.symantec.com/homecomputing/network.html

You could alternatively use IR (InfraRed).  You would need remote control lighting and and IR port on your machine.  Of course, you would have to be in the same room as the lighting.  It would work just like a remote control.

That being said the problem that you run into when trying to accomplish something like this is communication.  You need to have a line of a communication (a wire or wave) to the device and then the device needs to be able to speak a language that the computer understands.  Right now most lights are "dumb".  They have lighting that will come on using voice commands.  They may have lighting that can be programmed to.

You should probably be able to pick something up that will work, but I can bet it will not be for the faint of heart, or the faint in pocketbook $$$.

Hope this helps.
0
 
LewyCommented:
Check out X10 home automation at www.x10.com
I've got some of there stuff and it's great.

The tech section has the details on how to control things from VB. It's a little hard to find.
0
 
kenspencerCommented:
Hi,

I have just a comment.  Back in 1991 or so, my (soon to be) wife's daughter was dating some tech person that had his lights and stereo rack in a particular room controlled by voice (!) through a PC.  While I was in the room, he spoke the unit's activation command (which was 'Mr. Spock'), told it to lower the lights a couple of times, then raise the lights, then turn on his stereo.  It all happened as he spoke.  In light of this, I would have to believe that controlling many things with VB would be possible, given the right drivers and connectivity.

Ken
0
 
Richie_SimonettiIT OperationsCommented:
I see code silmilar of in old VB3 days working with Serial/parallel port. Just i don't remember. I will try to find the source.
The problem is you need a device that could manage light and accept input from some of these ports.
0
 
PNJCommented:
I have used a National Instruments card that plugs into one of the PCI slots of the PC. The card comes with and OCX that loads right into VB. It's dead easy to program - I've use it to control the movements of products down our production line. Obviously, this card is only an interface between the PC and the outside (hardware) world and you'd have to build hardware to wire up the lamps etc etc.

Visit them at http://www.ni.com/.
0
 
PNJCommented:
...for instance, have a look at this card: http://sine.ni.com/apps/we/nioc.vp?cid=10127&lang=US (which is a link from the NI site)
0
 
PaulHewsCommented:
At x10, check out the firecracker:

http://www.x10.com/firecracker/fc_offer_br1ab.htm

Step by step instructions for controlling from VB:

http://vboverdrive.extreme-vb.net/articles/firecracker.php3
0
 
Richie_SimonettiIT OperationsCommented:
Optionally, if you have the device:

http://www.zealsoftstudio.com/vbio/
0
 
dhavaljariwalaAuthor Commented:
Thank u for ur suggestions friends. If i'll find out the solution i'll definately mail to you. I know that this is possible.
0
 
patelplanetCommented:
Yes it is Definitely Possible to control X10 modules from a VB program.I use a Firecracker Serial Port module and an OCX included VB exe to schedule the lighting at my place.

Please check my web site for further details:

Click Below:

http://patelplanet.com/x10/

Thanks & Regards
-Shrimant Patel-
http://patelplanet.com
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
  • 2
  • +7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now