Shop OBEX P1 Docs P2 Docs Learn Events
How to Measure DC voltage with basic stamp — Parallax Forums

How to Measure DC voltage with basic stamp

ArchiverArchiver Posts: 46,084
edited 2004-04-08 18:21 in General Discussion
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]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-04-08 13:32
    Cheap way would be to use a transistor controlled by the Voltage. Then
    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
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-08 18:21
    Hi Troy,

    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
Sign In or Register to comment.