Re: [Tinyos-help] ADCMDA300

2008-07-02 Thread Christopher Leung
[mailto:[EMAIL PROTECTED] Sent: July 2, 2008 4:44 AM To: Christopher Leung; tinyos-help@millennium.berkeley.edu Subject: RE: [Tinyos-help] ADCMDA300 I connected a 10K resistor between SCL (CLK in MDA300) and Vcc and another between SDA (DATA in MDA300) and Vcc, but it didn't work. Using

Re: [Tinyos-help] Differential Analog Channels on MDA320 with TinyOS 1

2008-07-02 Thread Christopher Leung
Hi Tom, Change lines 170-200 in XMDA320M.nc. I think you just have to change the first parameter in the function Sample.getSample(...) to the number corresponding to the differential channels. That's about all I can say without trying to understand the messy code in MDA320 driver folder. Chris

Re: [Tinyos-help] ADCMDA300

2008-06-27 Thread Christopher Leung
, 2008 7:50 AM To: Christopher Leung; tinyos-help@millennium.berkeley.edu Subject: RE: [Tinyos-help] ADCMDA300 Thanks for your help Christopher. I'm following the steps to read from the ADC ADS7828 in the MDA300 board, using the I2C interface. However, event I2CPacket.writeDone never occurs. I

Re: [Tinyos-help] Accessing the SHT15 on the MDA300

2008-06-25 Thread Christopher Leung
Hi Charles, No problem for the digital IO ports. As for the SHT15, it too uses a two-wire-interface. But its TWI is not compatible with I2C so you will have to control the pins directly by using the tos.chips.atm128.pins.HplAtm128GeneralIOC and tos.chips.atm128.pins.HplAtm128InterruptC

Re: [Tinyos-help] ADCMDA300

2008-06-23 Thread Christopher Leung
resource especially if you have other components relying on it. Chris From: Antonio Prados Vilchez [mailto:[EMAIL PROTECTED] Sent: Mon 6/23/2008 5:16 AM To: Christopher Leung; tinyos-help@millennium.berkeley.edu Subject: RE: [Tinyos-help] ADCMDA300 Thanks for your

Re: [Tinyos-help] ADCMDA300

2008-06-20 Thread Christopher Leung
The MDA300 board uses an 8-channel ADC with I2C interface (ADS7828). To use it, you will need the Atm128I2CMasterC component and it can be found in tos\chips\atm128\i2c. For information on how to use the ADC, you can look up its datasheet. Pins A0 to A6 are connected to channel 0 to 6 on the ADC.

[Tinyos-help] Digital Channels as Output on MDA300CA

2008-06-09 Thread Christopher Leung
If you're using TinyOS 2, I made a driver that can control the output of the digital pins on the MDA 300 and 320 boards. I made the driver for the Iris platform but I think it should also work on MICA2. Reply back if you want driver. Chris ___

[Tinyos-help] Problem with I2CPacket.read(...) in Atm128I2CMasterC for Iris and Mica platforms

2008-06-02 Thread Christopher Leung
This is just a heads-up about the I2CPacket.read(i2c_flags_t flags, uint16_t addr, uint8_t length, uint8_t* data) function in the Atm128I2CMasterC component. To read n bytes from a slave, the parameter length must be set to (n+1). In the returned function, async event void readDone(error_t