I think it's a bad plan to directly hook up the motor to your cpu. Most
microcontrollers don't like it when you draw more then say 25mA from a
pin and changes are your motor is consuming more. So I think it would be
a wise choice to add a transistor and control that via the I/O pin (by
for instance writing a 1 to that pin). The specific name for that pin to
use in your code can usually be found in the included headers.

Otto.


> Sorry, can't help you there, but the TinyOS source code should provide
> enough examples of controlling external devices. Maybe someone else on the
> list can point you to a good example, I'll this to tinyos-help.
> 
> Michiel
> 
>  
> 
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: dinsdag 20 november 2007 15:24
> To: Michiel Konstapel
> Subject: Re: RE: RE: [Tinyos-help] Send data to ADC Channel
> 
>  
> 
> thank you Michiel
> 
> i use TinyOS 1.1, but 
> I need to control a small motor that use 3V using the micaZ mote, I think to
> connect it using the I/O pins(PW0-7 and INT-03 ), but I don't know how to
> code it, do you have any idea that could help me pleas     
> 
> ashraf


_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to