Pages: 1 [2]   Go Down
Author Topic: Turn on lights  (Read 2065 times)
0 Members and 1 Guest are viewing this topic.
Queens, New York
Online Online
Faraday Member
**
Karma: 108
Posts: 3780
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, a micro will work, but as I said before, you need to know both the micro operating voltage and the sensor voltage. I think both work at 5 volts, if that is true then you are fine.

As for the grill... that you may need to test, because I really can't say.
Logged

Created Libraries:
TFT_Extension, OneWireKeypad, SerialServo, (UPD)WiiClassicController, VWID

Manchester, NH
Offline Offline
Full Member
***
Karma: 0
Posts: 116
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you want it east to hide, an IR source and detector LED pair can be hidden behind a piece of smoked plastic flush with the wall. The concept is pretty simple and may not need anything other than the diodes and a few resistors with the Arduino. The IR source and detector can be pretty much side by side as long as the detector doesn't "see" the source beam reflections off the back of the smoked plastic. THen when your hand (or anything else) comes close to the source diode, the IR reflects off it and back towards the detector which the Arduino can "detect" on an input pin and drive a relay to switch the light.
Logged

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

In another forum post, one person found this, I made a slight modification.


int on=0;
If(sensor==HIGH) { // this works

 ~on; // on !=on   should work too

digitalWrite(lights, on ? HIGH : LOW);
}

This would be your simple latch.
Logged

Created Libraries:
TFT_Extension, OneWireKeypad, SerialServo, (UPD)WiiClassicController, VWID

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

The relay could be a mosfet? Also can i dimmer the lights? Usig the pwn output would work? Maybe using the distance as the dimming value?
Logged

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

Yea all would work.
« Last Edit: January 07, 2013, 06:40:46 pm by HazardsMind » Logged

Created Libraries:
TFT_Extension, OneWireKeypad, SerialServo, (UPD)WiiClassicController, VWID

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

The Parallax Si1143 Proximity sensor has three points where it "senses" if i use one to turn on and off and the other two to the dimming (+ & -) would it be faster? Using the time to increase/decreases the light...
Logged

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

The Parallax Si1143 Proximity sensor has three points where it "senses" if i use one to turn on and off and the other two to the dimming (+ & -) would it be faster? Using the time to increase/decreases the light...

It would work if it understands which direction it was being swiped from. You might need to make your own swipe code, it shouldn't be too hard though.
Logged

Created Libraries:
TFT_Extension, OneWireKeypad, SerialServo, (UPD)WiiClassicController, VWID

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

Thanks
Also do yoy have a mosfet you would recommend to me?
Logged

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

Look for this part: STP40NF10L

Also this page,http://arduino.cc/forum/index.php?topic=70635.0
Logged

Created Libraries:
TFT_Extension, OneWireKeypad, SerialServo, (UPD)WiiClassicController, VWID

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

Swipe code is not that complex, detect and time each led in unsigned long variables and subtract milis().

Breakout breadboard friendly board of Si1143 is available on ebay (search for "Si1143"). If you need sample code you can find it in my other post here:
http://forum.arduino.cc/index.php?topic=155004.0

Si1143 breakout board pictures:



* IMG_6086.JPG (594.76 KB, 1600x1200 - viewed 20 times.)

* IMG_6087.JPG (566.68 KB, 1600x1200 - viewed 18 times.)

* IMG_6088.JPG (667.44 KB, 1600x1200 - viewed 16 times.)
Logged

Pages: 1 [2]   Go Up
Jump to: