You'd have to go look at the 'Z schematic, but I think the battery
voltage reading is different from the mica2, where VoltageC should
work. The '2 uses an external ref on ADC7 that needs to be switched
on with the PA5 output, but the 'Z may use an internal ref on a
different ADC channel. The controller manual might help elucidate.

MS

Sudha Krishna wrote:
Hi,

I tried using the VoltageC component to read the battery voltage on
micaz. But I always get a value of 0. I get a 0 even if I use the ADC
component directly. I looked through the mail archive and apps
directory for some sample piece of code, but could not find one. If
someone has a working program for readíng the battery voltage on micaz
and can send it, that would be helpful.

thanks
sudha

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

Reply via email to