Show Posts
Pages: 1 2 [3] 4
31  Forum 2005-2010 (read only) / Interfacing / Re: code for IR sensor on: November 16, 2009, 09:30:07 am
gee truth be told, i am not so sure
:-/

i am very new at this...lol...

another idea i have been thinking about is actually taking apart the IR remote that comes with the projector and somehow manipulating that....would that be a possible thing to do?
32  Forum 2005-2010 (read only) / Interfacing / Re: code for IR sensor on: November 16, 2009, 08:10:54 am
ah cool

so, this will help me to determine the necessary "signal" for the projector?
33  Forum 2005-2010 (read only) / Interfacing / Re: code for IR sensor on: November 16, 2009, 07:58:37 am
well, first off, awesome suggestions!

now,  i want the arduino to act as a replacement IR control for the projector....going further with this, i want it to be motion activated so that the step  of"pressing buttons" would be eliminated. So, when someone walks by, a sensor will trigger the IR light to turn on which will signal the projector to turn on. So basically, its a motion-sensor projector!

Now as for the steps you told me about, i am not very code- savvy, so what "code" would i need to enter? ( i know thats kinda vague, i apologize!)
34  Forum 2005-2010 (read only) / Interfacing / Re: code for IR sensor on: November 16, 2009, 06:14:14 am
hmmm...not sure about the language...

here is a link to the site: http://www.aaxatech.com/products/p2_pico_projector.htm

i guess the issue is more, i built the device with arduino and the output is a flashing IR light that will turn on the projector. Now, I'm not sure if the IR light is "compatible" enough to turn on the projector itself. If i could get a code and test it out, i might find out something or other
35  Forum 2005-2010 (read only) / Interfacing / Re: code for IR sensor on: November 15, 2009, 07:08:20 pm
In a way yes. Except its going to be motion-activated.
I should add...

I intend to turn on an AAXA pico2 projector...the projector itself does come with a IR remote control. So i figured, i can make that and turn it on! better yet, make it motion-activated!
36  Forum 2005-2010 (read only) / Interfacing / code for IR sensor on: November 15, 2009, 09:03:45 am
Hello all!

i am trying to build an arduino device that contains a QRD1114 IR sensor, and when one runs their hand over it, will turn on a Infrared light attached to the device, which will thus turn on a projector. So basically i am trying to make a motion-sensing device using an IR sensor. I have succeeded in building it, however, the coding is very difficult and definetly not my forte...anyone care to help me with this? links and anything would be helpful!!
37  Forum 2005-2010 (read only) / Exhibition / Re: Arduino as Capacitive Sensor on: November 16, 2009, 10:14:59 am
@Mowcius

OMG IT WORRRRKS!!! The light is soo much stronger!!! Thank you thank you!!!
smiley-grin

now the next obstacle i must tackle is the following:

I need to make this IR light able to turn on a Pico 2 projector. Now i discovered that the projector comes with an IR remote control. So i intend to replace that remote and use this device i just built for that.  I also discovered that the IR remote that comes with the projector is MP4....would that be something of use?

also, i think i found code for the "IR" tv translation  and looks like this:
Code:
brand(PHILIPSTV) ;
button(POWER,2) ; // hello world
delay(15000) ;
button(ZERO,2) ; // change channel to 03
delay(100) ;
button(THREE,2) ;
delay(100) ;
button(MUTE,2) ; // mute the TV
delay(15000) ;
button(POWER,2) ; // over and out

I know the brand isnt right, but does arduino have a code for MP4? and if so, where would i put it?
38  Forum 2005-2010 (read only) / Exhibition / Re: Arduino as Capacitive Sensor on: November 16, 2009, 09:27:03 am
the IR LED usually is a bright bright flash...but when i touch the wire, there is a dimmer glow
39  Forum 2005-2010 (read only) / Exhibition / Re: Arduino as Capacitive Sensor on: November 16, 2009, 07:10:45 am
thanks for all the help!

hopefully this will work to turn on a projector! I was planning on using an IR light in place of the LED and when the wire was touched, the IR light would flash, and would turn on the pico 2 projector....

just wish the IR light was stronger....
40  Forum 2005-2010 (read only) / Exhibition / Re: Arduino as Capacitive Sensor on: November 15, 2009, 01:46:15 pm
alright! First off, thank you thank you so much for at least putting the effort! I really really appreciate it! So i have run the code with the revisions, and i get a small light up from the LED...

i believe the serial monitor is giving me the highest value of 4 when i touch the wire...and so i tried putting that code
Code:
if(x > 3)
  digitalWrite(ledPin, HIGH);
else
  digitalWrite(ledPin, LOW);

out of curiosity, how can i make the light more visible?

i really really appreciate all your help!
41  Forum 2005-2010 (read only) / Exhibition / Re: Arduino as Capacitive Sensor on: November 15, 2009, 01:06:16 pm
ok, this is going to sound a bit dumb, but i dont EXACTLY know what the coding should look like....and i have tried looking at the page that helps with coding, but i just get so nervous...

so i guess my next question would be what exactly is the right "lingo" of coding that i should enter? So working off the code here for instance:


Code:
Arduino as Capacitive Sensor
10.02.2007 at 03:57:38   Some experiments with the Arduino as a capacitive sensor. All it requires is a 10 M resistor and a piece of wire. I was able to sense a hand about four inches from my 1.5" sq aluminum foil sensor.

Included are some machine code and port manipulation and an easy smoothing filter.


// CapSense.pde
// Paul Badger 2007

// Fun with capacitive sensing and some machine code - for the Arduino (or Wiring Boards).
// Note that the machine code is based on Arduino Board and will probably require some changes for Wiring Board
// This works with a high value (1-10M) resistor between an output pin and an input pin.
// When the output pin changes it changes the state of the input pin in a time constant determined by R * C
// where R is the resistor and C is the capacitance of the pin plus any capacitance present at the sensor.
// It is possible when using this setup to see some variation in capacitance when one's hand is 3 to 4 inches from the sensors
// Try experimenting with larger sensors. Lower values of R will probably yield higher reliability.
// Use 1 M resistor (or less maybe) for absolute touch to activate.
// With a 10 M resistor the sensor will start to respond 1-2 inches away

// Setup
// Connect a 10M resistor between pins 8 and 9 on the Arduino Board
// Connect a small piece of alluminum or copper foil to a short wire and also connect it to pin 9

// When using this in an installation or device it's going to be important to use shielded cable if the wire between the sensor is
// more than a few inches long, or it runs by anything that is not supposed to be sensed.
// Calibration is also probably going to be an issue.
// Instead of "hard wiring" threshold values - store the "non touched" values in a variable on startup - and then compare.
// If your sensed object is many feet from the Arduino Board you're probably going to be better off using the Quantum cap sensors.

// Machine code and Port stuff from a forum post by ARP  http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1169088394/0#0



int  i;
unsigned int x, y;
float accum, fout, fval = .07;    // these are variables for a simple low-pass (smoothing) filter - fval of 1 = no filter - .001 = max filter

void setup() {
Serial.begin(9600);

DDRB=B101;     // DDR is the pin direction register - governs inputs and outputs- 1's are outputs
// Arduino pin 8 output, pin 9 input, pin 10 output for "guard pin"
//  preceding line is equivalent to three lines below
//  pinMode(8, OUTPUT);     // output pin
//  pinMode(9, INPUT);      // input pin
//  pinMode(10, OUTPUT);    // guard pin
digitalWrite(10, LOW);  //could also be HIGH - don't use this pin for changing output though
}

void loop() {
y = 0;        // clear out variables
x = 0;

for (i=0; i < 4 ; i++ ){       // do it four times to build up an average - not really neccessary but takes out some jitter

  // LOW-to-HIGH transition
  PORTB = PORTB | 1;                    // Same as line below -  shows programmer chops but doesn't really buy any more speed
  // digitalWrite(8, HIGH);    
  // output pin is PortB0 (Arduino 8), sensor pin is PortB1 (Arduinio 9)                                  

  while ((PINB & B10) != B10 ) {        // while the sense pin is not high
    //  while (digitalRead(9) != 1)     // same as above port manipulation above - only 20 times slower!                
    x++;
  }
  delay(1);

  //  HIGH-to-LOW transition
  PORTB = PORTB & 0xFE;                // Same as line below - these shows programmer chops but doesn't really buy any more speed
  //digitalWrite(8, LOW);              
  while((PINB & B10) != 0 ){            // while pin is not low  -- same as below only 20 times faster
    // while(digitalRead(9) != 0 )      // same as above port manipulation - only 20 times slower!
    y++;  
  }

  delay(1);
}

fout =  (fval * (float)x) + ((1-fval) * accum);  // Easy smoothing filter "fval" determines amount of new data in fout
accum = fout;  

Serial.print((long)x, DEC);    // raw data - Low to High
Serial.print( "   ");
Serial.print((long)y, DEC);    // raw data - High to Low
Serial.print( "   ");
Serial.println( (long)fout, DEC); // Smoothed Low to High
}

what do i type in? and where?





42  Forum 2005-2010 (read only) / Exhibition / Re: Arduino as Capacitive Sensor on: November 15, 2009, 12:23:30 pm
hi! this code is fantastic!!  I am actually thinking of using this for my project so thanks!

i was wondering what the coding would be if i wanted to put an LED and have it blink when the wire is touched. Im not very code-savvy, so any suggestions would be awesome!
43  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: water sensor on: October 01, 2009, 10:26:33 am
alright...if i were to put a radio in there, what kind should i be looking for? would xbee be good for this?

i guess i am trying to find some arduino project that has been done that can do this....
44  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: water sensor on: October 01, 2009, 09:55:47 am
<a href="http://imagehost.meltingice.net/viewer.php?id=bubbletto11.jpg"><img src="http://imagehost.meltingice.net/images/galleries/thumbs/bubbletto11.jpg" border="0"></a>

this is something i came  up with...any comments?
45  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: water sensor on: October 01, 2009, 08:30:41 am
wow Grumpy_Mike, that looks great! Will definetly look into that design.

So here is another idea i was brainstorming.  So 2 times a day, the water level rises and falls along with the wakes. How about going with the bob idea...having a floating mass near the canal wall which floats with the water at ANY level its at, and in the bob is an accelerometer which can be programmed to detect large amplitude oscillations. Once it has recorded it, either a signal is sent up the cord its attached to to the bubble machine, or a wireless device can detect that signal and thus trigger the bubble machine....

does it sound remotely feasible?
Pages: 1 2 [3] 4