Hi,
I'm working with a TMote Sky, and I'm trying to get the ADXL330
accelerometer hooked up. According to the slau049f datasheet for the
MSP430 (the tmote sky microcontroller), the on board 12 bit ADC has a
number of conversion modes. These are Single-channel-single-conversion,
sequence-of-channels, repeat-single-channel, and repeat
sequence-of-channels.
I got the accelerometer interfaced to the ADC via the following
instructions on the website:
http://www.moteiv.com/community/Connecting_External_Sensors. However,
this binds a single analog port to the ADC, and this seems to be the
single-channel-single-conversion mode. In order to get it working I had
to put a semaphore-like block around the getData call to my three ADC
interfaces, sort of like a sendMsg call (i.e. you can only be converting
X, Y, or Z axis port at one time). This works, but is a bit sluggish.
For the three axis accelerometer I would prefer the ADC to continuously
translate the voltage on the x, y, and z ports. This sounds like the
repeat sequence-of-channels mode. I haven't found any tinyOS
documentation that talks about the ADC in depth to touch on different
conversion modes. My code is very similar to the code on the website above.
I was wondering if tinyOS 2.x had anything in place to support other ADC
conversion modes.
Thanks in advance,
Boris
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help