I ended up hooking up my PIRs to the A/D port. It works fine. However, my PIRs had a relay output, so I could determine their output voltage.
With only 3 outputs, the output must be referenced to the supply ground, and a voltage divider probably is in order. Eric On Sun, Nov 16, 2008 at 2:26 PM, Michael Schippling <[EMAIL PROTECTED]> wrote: > Lets put this on the help list to keep a record of my mistakes... > > I can only find a little blurb about the sensor board you have > which indicates that it has access to the ADC channels but doesn't > really mention the PW (port C) bits... > > Perhaps the easiest thing for you to do is connect to whatever ADC > channel the Light sensor on the "regular" micasb uses (see my cheat > sheet or the code...) and just pretend it's analog. Config your code > to use the Light sensor and you should get a signal that switches > between 0 and 1024 -- probably not exactly those values, but low and > high something anyway. If your PIR really runs OK on 3v and your > batteries can handle the load, then by all means use them. > > You could also hack stuff to use a PW bit, but that would require > more changes. There's not a lot of clear examples for this, but > any use of the search terms I gave you should find some. And my > zipped-up code in the same directory as the cheat sheet has some > examples of using individual pins and reading the PortC port. > > MS > > > AhMaD ShOrMaN wrote: >> >> Thanks for replay >> the mts101 that iam used it just like an easy way to connect the sensor >> rather than connect it direct to micaz mote >> http://www2.lifl.fr/sensor/uploads/Platforms/MTS101.jpg >> it has only the temp sensor >> the pir sensor give digital output (binary) and the supply voltage from >> 3-6 volts >> can i connect it direct to the mote with the vcc and Gnd of the mote ? >> and for the software side which iam using (SenseToRfm) that used to send >> the light sensor i only need to change the port (pin) of light sensor in >> the file (sensorboard.h) to the pin of pir sensor output can i used the >> pw0,pw1,... pins for output pin or adc0,adc1,.... >> thanks again >> >> --- On *Sun, 11/16/08, Michael Schippling /<[EMAIL PROTECTED]>/* wrote: >> >> From: Michael Schippling <[EMAIL PROTECTED]> >> Subject: Re: [Tinyos-help] Pir Sensor interfacing with MtS100 and Micaz >> To: "AhMaD ShOrMaN" <[EMAIL PROTECTED]> >> Cc: [email protected] >> Date: Sunday, November 16, 2008, 8:23 PM >> >> What kind of output does your sensor produce? The PIR devices I've seen >> are binary...I presume it has some conditioning circuit as the output >> from the sensor itself is usually pretty low-level. >> >> If it is just a binary signal, then you can skip the micasb board and >> just connect the output to an available digital I/O pin on the micaz. >> Actually even if it's analog you can probably skip the micasb...but >> anyway, I have a cheat sheet of available pins here: >> http://www.etantdonnes.com/Motes/ATMEGApins.txt >> You may need to adjust the voltage level as I expect the PIR uses >> more than the mica 3v >> supply. >> >> On the software side you probably don't need to change any headers, >> just configure and read the pin. Search this list and the code for >> things like "digital I/O", "TOSH_ASSIGN_PIN", >> "ADC" and "analog input" >> for examples. >> >> MS >> >> AhMaD ShOrMaN wrote: >> > Hi for all >> > i am using the pir sensor for position determination for my graduation >> project >> > i need how to interface the pir sensor that have 3 pins Vcc,Gnd,Output >> > with the mts100 sensor board and micaz >> > And i need what is the changes that happened for the file >> (sensorboard.h) >> where located in micasb folder because am using the application ( >> SenseToRfm ) >> to send the pir value to Rfm >> > >> > Thanks >> > >> > With My Best Regards >> > Ahmad al-Shorman >> > >> > >> > >> > >> ------------------------------------------------------------------------ >> > >> > >> _______________________________________________ >> > Tinyos-help mailing list >> > [email protected] >> > >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> >> -- Platform: WinXP/Cygwin >> TinyOS version: 1.x, Boomerang >> Programmer: MIB510 >> Device(s): Mica2, MicaZ, Tmote >> Sensor board: homebrew >> >> > > -- > Platform: WinXP/Cygwin > TinyOS version: 1.x, Boomerang > Programmer: MIB510 > Device(s): Mica2, MicaZ, Tmote > Sensor board: homebrew > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
