Hi You have code for that in the sensorboard directories and in the examples directories.
Regards, André ----- Original Message ----- From: "Javier Barbarán" <[email protected]> To: "André Rodrigues" <[email protected]> Cc: "Michael Schippling" <[email protected]>; "tinyos forum" <[email protected]> Sent: Thursday, September 17, 2009 8:45 AM Subject: Re: [Tinyos-help] Driver for analog sensor > Many thanks André and Michael, > > Your comments about hardware/electrics issues are very useful to me. But > in the other hand, could you give me a hand or showing me some example of > making a software in nesC for this kind of sensor for micaZ or IRIS, cause > I guess that it will be quite different from telos MSP platforms. > > Thank you again, > > Javier. > > André Rodrigues escribió: >> Hi >> >> That board have an internal 12 bit ADC. >> >> From the datasheet it seems it also have an internel voltage reference - >> because they multiply the reading by 2.5v. >> >> In case not, you should take care of the battery voltage at the reading >> time. >> >> Regards, >> >> André >> Envispot >> >> >> >> ----- Original Message ----- From: "Michael Schippling" >> <[email protected]> >> To: "Javier Barbarán" <[email protected]> >> Cc: "tinyos forum" <[email protected]> >> Sent: Wednesday, September 16, 2009 5:30 PM >> Subject: Re: [Tinyos-help] Driver for analog sensor >> >> >> 1.67 mv/W...hmm, at what I remember being 200W in full sun, that's >> not a very high voltage signal. I don't think you can change the >> reference voltage for the mica ADCs so you may need an amplifier >> to get a decent conversion range. A simple op-amp oughta do it. >> >> Otherwise just doing a straight-forward ADC conversion with >> getData() and dataReady() should do the trick just fine. See >> the Oscilloscope and Sense demo apps. >> >> MS >> >> Javier Barbarán wrote: >>> Hi all, >>> >>> I'll have to develop a driver for an analog sensor un TinyOS 2.x. The >>> sensor will be connected to a MDA300 connected to a micaZ or IRIS. And >>> the sensor will be a Davison solar radiation sensor showed in the >>> following link (is the one used by ekos): >>> http://www.davisnet.com/weather/products/weather_product.asp?pnum=06450. >>> >>> I have taken a look at TEP 102 about ADCs and TEP 109 about >>> sensorboards, and I guess I have to do something similar to >>> HamamatsuS1087 analog photodiode sensor, but the example is up to telos >>> platform, and I would like to know if everyone of you have develop or >>> have a clue about how is the best way to proceed. >>> >>> Thank you very much in advance, >>> >>> Regards >>> >>> Javier Barbarán >>> _______________________________________________ >>> 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 >> > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
