Queens, New York
Offline
Edison Member
Karma: 28
Posts: 1563
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #15 on: December 12, 2012, 06:10:54 pm » |
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
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
Manchester, NH
Offline
Full Member
Karma: 0
Posts: 107
|
 |
« Reply #16 on: December 15, 2012, 02:25:00 pm » |
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
Offline
Edison Member
Karma: 28
Posts: 1563
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #17 on: December 15, 2012, 02:41:44 pm » |
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
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 22
|
 |
« Reply #18 on: January 07, 2013, 06:13:18 pm » |
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
Offline
Edison Member
Karma: 28
Posts: 1563
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #19 on: January 07, 2013, 06:14:52 pm » |
Yea all would work.
|
|
|
|
« Last Edit: January 07, 2013, 06:40:46 pm by HazardsMind »
|
Logged
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 22
|
 |
« Reply #20 on: January 07, 2013, 06:29:25 pm » |
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
Offline
Edison Member
Karma: 28
Posts: 1563
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #21 on: January 07, 2013, 06:43:06 pm » |
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
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 22
|
 |
« Reply #22 on: January 08, 2013, 05:55:57 am » |
Thanks Also do yoy have a mosfet you would recommend to me?
|
|
|
|
|
Logged
|
|
|
|
|
Queens, New York
Offline
Edison Member
Karma: 28
Posts: 1563
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #23 on: January 08, 2013, 07:42:51 am » |
|
|
|
|
|
Logged
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
|