Pages: [1] 2   Go Down
Author Topic: Turn on lights  (Read 1760 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'd like to make an ultrasonic switch for my light bulbs. Since the ground wire passes through the switch, how would I use an ultrasonic sensor or something like that to make it work? And would it need coding or a arduino?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I'd like to make an ultrasonic switch for my light bulbs.
What does this mean? Are you trying to get the lights to come on when you get close to them?

Quote
Since the ground wire passes through the switch, how would I use an ultrasonic sensor or something like that to make it work?
What switch does the ground wire pass through? Usually, the switch makes/breaks the hot wire, not the ground wire.

Quote
And would it need coding or a arduino?
Yes.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I'd like to make an ultrasonic switch for my light bulbs.
What does this mean? Are you trying to get the lights to come on when you get close to them?

Quote
Since the ground wire passes through the switch, how would I use an ultrasonic sensor or something like that to make it work?
What switch does the ground wire pass through? Usually, the switch makes/breaks the hot wire, not the ground wire.

Quote
And would it need coding or a arduino?
Yes.
Like attaching the sensor to the wall and when I slide my hand it turns on, and when I slide my and again it turns off.
Sorry, got my electrical wiring knowledge a little mixed up.
What kind of arduino I need and others components?
Logged

California
Offline Offline
Faraday Member
**
Karma: 88
Posts: 3359
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
What kind of arduino I need and others components?

Any kind of Arduino, a sensor and something to switch the light like a relay.
Logged

Queens, New York
Offline Offline
Faraday Member
**
Karma: 84
Posts: 3417
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can try a close proximity setup, with either a IR distance sensor or ultrasonic sensor, just set the range from 1 inch to 3 inch, and latch the lights on when one pass is made and off when you pass again.

I don't know of any codes that will do this off hand but look for a sample button latch code, and adapt that to latch from the sensor.

If you have any code, please post it.
Logged

Created Libraries:
NPV2 (NewPasswordV2),  TFT_Extension, OneWireKeypad, SerialServo.
Will provide libraries if asked in PM or forum.

Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm still working into making the project a reality, so I didn't start to write code yet.
Logged

Queens, New York
Offline Offline
Faraday Member
**
Karma: 84
Posts: 3417
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok. do you have any parts already, the arduino, the sensor, some LEDs... anything?
Could you post a link of your exact sensor, that way we can see what you have.
Logged

Created Libraries:
NPV2 (NewPasswordV2),  TFT_Extension, OneWireKeypad, SerialServo.
Will provide libraries if asked in PM or forum.

Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok. do you have any parts already, the arduino, the sensor, some LEDs... anything?
Could you post a link of your exact sensor, that way we can see what you have.
I'm thinking about using a arduino mini, and I don't know yet what kind of sensor and I would like some advice.
Logged

Queens, New York
Offline Offline
Faraday Member
**
Karma: 84
Posts: 3417
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ARD mini is fine, but look at the specs, I think one is 5 volts and the other is 3.3 volts. Most sensors use +5 volts, so make sure you know what  your getting.

The ultrasonic sensor look like it has 2 miniture cans on the front, and may protrude outwards. If you want something that be hidden easily, then go with the IR distance sensor. Both should work with the same code.
Logged

Created Libraries:
NPV2 (NewPasswordV2),  TFT_Extension, OneWireKeypad, SerialServo.
Will provide libraries if asked in PM or forum.

Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ARD mini is fine, but look at the specs, I think one is 5 volts and the other is 3.3 volts. Most sensors use +5 volts, so make sure you know what  your getting.

The ultrasonic sensor look like it has 2 miniture cans on the front, and may protrude outwards. If you want something that be hidden easily, then go with the IR distance sensor. Both should work with the same code.
What ultrasonic sensor would you recommend?
Logged

Queens, New York
Offline Offline
Faraday Member
**
Karma: 84
Posts: 3417
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Parallax
Logged

Created Libraries:
NPV2 (NewPasswordV2),  TFT_Extension, OneWireKeypad, SerialServo.
Will provide libraries if asked in PM or forum.

Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I believe one of these three sensors would work out. Wich one is the best? I chose the PING))) Ultrasonic Sensor, the PIR Sensor and the Si1143 Proximity Sensor. All of them from Parallax.
Logged

Queens, New York
Offline Offline
Faraday Member
**
Karma: 84
Posts: 3417
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Si1143 Proximity Sensor

You can do multiple hand gestures and program the lights to do different things. It is much more expensive, but it all depends on what you are going to use it for. If you just want to turn the lights on and off then you can go with one of the others, but if you want to spice it up a little then go with that one.

Im not sure if the proximity sensor has its own code, because I know that the other two will work with the same code.
Logged

Created Libraries:
NPV2 (NewPasswordV2),  TFT_Extension, OneWireKeypad, SerialServo.
Will provide libraries if asked in PM or forum.

Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ARD mini is fine, but look at the specs, I think one is 5 volts and the other is 3.3 volts. Most sensors use +5 volts, so make sure you know what  your getting.

The ultrasonic sensor look like it has 2 miniture cans on the front, and may protrude outwards. If you want something that be hidden easily, then go with the IR distance sensor. Both should work with the same code.
What ultrasonic sensor would you recommend?
Would a ARD micro work? And how to connect it to the lights? And power?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Would the proximity sensor work with a grill in front of it? For design reasons. And could it be painted?  I want this to be an definitive solution.
« Last Edit: December 12, 2012, 05:05:50 pm by Lvothe » Logged

Pages: [1] 2   Go Up
Jump to: