Hi
I'm working in a project seems like yours, I want to read the voltage battery 
by voltageC component and send it to a base station to analyse these reading 
but I got nothing in the screen.

i am useing kind of threshold in the application, when the voltage reach this 
threshold have to send the reading so i am using a comparing signs ( < , > ) to 
trigger the event, but the event is alwyas triggered even i but the (volt < 
0.0001 ).

another thing can i use the command you use inside the application if yes can 
you tell me how?

Thanks  & Have a Nice Day
     Mohamed


Hello--

The JTAG fuse off command is correct. Please check that you are asserting
(output HIGH) the BATMON line (Port
 PA5) before reading ADC7. If you are
not, there is no current flowing thru the reference diode, and ADC7 (reading
the reference diode) would read a code close to zero.

Sincerely,
John Suh
Technical Support Engineer
Crossbow Technology, Inc.
408-965-3310
http://www.xbow.com



-----Original Message-----
From: Jumand K [mailto:jumandk at hotmail.com] 
Sent: Saturday, March 20, 2004 6:56 PM
To: tinyos-help at now.CS.Berkeley.EDU
Subject: [Tinyos-help] Disabling / Enabling JTAG fuse - Xbow reference
manual mistake?


Hi all,

I am trying to measure the battery voltage on a MICA2. I am using MIB510 
that is connected to the
PC via a serial port ( COM1 ). According to the hardware manual from
 Xbow :

http://www.xbow.com/Support/Support_pdf_files/MPR-MIB_Series_User_Manual_743
0-0021-05_A.pdf

it says that JTAG fuse must be disabled to enable a correct battery voltage 
reading. With reference to page 14 in the manual, I disabled the JTAG fuse 
by using the command :

"uisp -dprog=mib510 -dserial=/dev/ttyS0 -dpart=ATmega128 --wr_fuse_h=0xD9"

and got the following output :

Firmware Version : 2.1
Atmel AVR ATmega128 is found

Fuse High Byte set to 0xd9


Then I proceeded to measure the battery voltage using voltageM.nc component 
but I am getting about 50 ( decimal ) for the ADC output and using the 
formula, it converts to about 25V which is wrong.

However, when I enable the JTAG fuse instead by typing the command :

"uisp -dprog=mib510 -dserial=/dev/ttyS0 -dpart=ATmega128
 --wr_fuse_h=0x19"

Firmware Version : 2.1
Atmel AVR ATmega128 is found

Fuse High Byte set to 0x19

i am able to get ADC reading of about 520 ( decimal ), which converts to a 
battery voltage of about 2.4V.


Is it a simple typo mistake in the reference manual or am I doing the wrong 
thing? Pls advise on the correct method in obtaining accurate battery 
voltage reading.

Thanks.





      


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

Reply via email to