[Tinyos-help] Excitation pins on MDA300

Charles Elliott charles.elliott.3 at gmail.com
Wed Oct 22 10:17:35 PDT 2008


Hi Zehn

Thanks for the quick reply.
I've tried adding the code you recommended into the program but it does not
seem to work.
I am using IRIS motes could that be a factor?

Charles

On Mon, Oct 20, 2008 at 5:48 PM, Li, Zhen Li <zhen.li at okstate.edu> wrote:

>  Hi Charles
>
> That's how I turn the MDA320's excitation and I think basically they should
> be the same:
>
> In the configuration:
> components MicaBusC;
> App.ExenablePin -> MicaBusC.PW7;
> App.VOLTAGE_BOOSTER -> MicaBusC.PW1;
> App.VOLTAGE_BUFFER -> MicaBusC.PW2;
> App.THREE_VOLT -> MicaBusC.PW3;
> App.FIVE_VOLT -> MicaBusC.PW5;
>
> In the module:
> interface GeneralIO as ExenablePin;
>  interface GeneralIO as VOLTAGE_BOOSTER;
>  interface GeneralIO as VOLTAGE_BUFFER;
>  interface GeneralIO as THREE_VOLT;
>  interface GeneralIO as FIVE_VOLT;
>
>  void Excitation_Control_33(bool Status){
>     if(Status){
>    call ExenablePin.makeOutput();
>    call VOLTAGE_BOOSTER.makeOutput();
>       call VOLTAGE_BUFFER.makeOutput();
>    call THREE_VOLT.makeOutput();
>    call ExenablePin.set();
>       call VOLTAGE_BOOSTER.clr();
>       call VOLTAGE_BUFFER.set();
>       call THREE_VOLT.set();
>  }
>  else{
>       call VOLTAGE_BOOSTER.set();
>       call VOLTAGE_BUFFER.clr();
>       call THREE_VOLT.clr();
>  }
>   }
>
> I can turn on and off the excitation on MDA320. Hopefully there's some
> other ways but this works to me already.
>
> Zhen
>  ------------------------------
> *From:* tinyos-help-bounces at millennium.berkeley.edu [
> tinyos-help-bounces at millennium.berkeley.edu] On Behalf Of Charles Elliott
> [charles.elliott.3 at gmail.com]
> *Sent:* Monday, October 20, 2008 12:10 PM
> *To:* tinyos-help at millennium.berkeley.edu
> *Subject:* [Tinyos-help] Excitation pins on MDA300
>
>   Hello All
>
> Sorry about the previous bad subject.
>
> Does anyone know how to turn on the excitation pins on the MDA300 and how
> much current they can provide?
>
> Thanks
> Charles
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20081022/d2e79b7b/attachment.htm 


More information about the Tinyos-help mailing list