How to Measure DC voltage with basic stamp
Archiver
Posts: 46,084
I would like to be able to measure the voltage of the batteries on a robot like
a sumobot (using 12V 1.5A Li-ion Battery). And display the result in VB. using
the serial port for communications.
but first things first, how do I read a DC voltage into BS2??
Thanks in advance
Troy
Find local movie times and trailers on Yahoo! Movies.
[noparse][[/noparse]Non-text portions of this message have been removed]
a sumobot (using 12V 1.5A Li-ion Battery). And display the result in VB. using
the serial port for communications.
but first things first, how do I read a DC voltage into BS2??
Thanks in advance
Troy
Find local movie times and trailers on Yahoo! Movies.
[noparse][[/noparse]Non-text portions of this message have been removed]
Comments
connect the transistor collector to a capacitor, and use the rc time command
in the stamp. Wouldn't be linear, but a look up table would give you good
results.
If the Voltage is not within the correct range, some tweaking of resistor
values would be in order.
However, there are add-ons to the stamp which give it A/D capability, and
folks with code written for them.
Original Message
From: Troy Matzkow [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=cKEesoyNXhZrm9mGSFsOn7PoiJSWJFqQJCv7HNouU2RhI1rfdA1st2i-PmiaDRdKC-LY3epIbx-I0QOiKg]troy8oy@y...[/url
Sent: Thursday, April 08, 2004 12:25 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] How to Measure DC voltage with basic stamp
I would like to be able to measure the voltage of the batteries on a robot
like a sumobot (using 12V 1.5A Li-ion Battery). And display the result in
VB. using the serial port for communications.
but first things first, how do I read a DC voltage into BS2??
Thanks in advance
Troy
Find local movie times and trailers on Yahoo! Movies.
[noparse][[/noparse]Non-text portions of this message have been removed]
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Yahoo! Groups Links
I have a fairly detailed tutorial on how to do that using RCtime
posted at this URL:
http://www.emesystems.com/BS2rct.htm#B_voltage
-- Tracy
>I would like to be able to measure the voltage of the batteries on a
>robot like a sumobot (using 12V 1.5A Li-ion Battery). And display
>the result in VB. using the serial port for communications.
>
>but first things first, how do I read a DC voltage into BS2??
>
>
>Thanks in advance
>Troy