Basic Stamp 2 Voltmeter?
Vaati
Posts: 712
Can the BS2 read a voltage input from about .1 to 3.7 and display the voltage level on a 7-segment LCD? If it can read the input voltage, how accurate can it be?
EDIT: I should probably also add that this will NOT end up as a BS2 project, but a PICaxe 08M project. (sorry guys, but the BS2 is overkill )
Another thing to point out is that the PICaxe does have a built-in ADC, so it may be easier than I thought.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
MCU Projects·- my new site where I will be posting all projects, code, etc.
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
SD Card Adapter·- Add extra memory to your next Propeller project with ease!
Post Edited (Vaati) : 3/28/2010 11:27:35 PM GMT
EDIT: I should probably also add that this will NOT end up as a BS2 project, but a PICaxe 08M project. (sorry guys, but the BS2 is overkill )
Another thing to point out is that the PICaxe does have a built-in ADC, so it may be easier than I thought.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
MCU Projects·- my new site where I will be posting all projects, code, etc.
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
SD Card Adapter·- Add extra memory to your next Propeller project with ease!
Post Edited (Vaati) : 3/28/2010 11:27:35 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
MCU Projects·- my new site where I will be posting all projects, code, etc.
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
SD Card Adapter·- Add extra memory to your next Propeller project with ease!
It seems that the application I had in mind for this will be a little more complex than just using RCTIME.
My goal for this is to be able to have a compact "voltmeter" for my adjustable power supply, and make an "Adjustable Power Supply Mk.II" which includes a PICaxe that reads the voltage and displays it on some seven-segment LED's.
The problem is, it's not like the potentiometer is exactly accessible for the RCTIME command. Correct me if I'm wrong, but that cannot take an input voltage from 1.2 to 25 volts (reduced by 1/10 using a voltage divider) and simply display the voltage using DEBUG (for starters, and then onto the seven-segments). It looks like it just reads the resistance of the pot and determines the capacitance discharge time.
I don't really understand what RCTIME does. Can it actually be used to read a voltage input?
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
MCU Projects·- my new site where I will be posting all projects, code, etc.
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
SD Card Adapter·- Add extra memory to your next Propeller project with ease!
You do have to scale the input to read a voltages more than 2 volts
http://datasheets.maxim-ic.com/en/ds/MAX1497-MAX1499.pdf
Bellow is a demo that I wrote for this chip
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any··that you may have and all of your time finding them
·
·
·
·
Sam
I will get that chip and see how it works out...
Now, how does an ADC work? What can it do in terms of reading voltage and outputting a digital value?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
MCU Projects·- my new site where I will be posting all projects, code, etc.
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
SD Card Adapter·- Add extra memory to your next Propeller project with ease!
that chip is about $40.00
that is what I did
It reads it just like a volt meter that chip also can send it to a LED display
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any··that you may have and all of your time finding them
·
·
·
·
Sam
Post Edited (sam_sam_sam) : 3/28/2010 11:58:21 PM GMT
Their samples ship fairly fast, but no one is as fast at shipping as TI.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
MCU Projects·- my new site where I will be posting all projects, code, etc.
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
SD Card Adapter·- Add extra memory to your next Propeller project with ease!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any··that you may have and all of your time finding them
·
·
·
·
Sam
Get this multimeter at Harbor Freight for $2 on sale and cut it up to fit into your project. It's complete, calibrated and it includes the LCD!
http://www.harborfreightusa.com/usa/itemdisplay/displayItem.do?itemid=98025&CategoryName=&SubCategoryName=
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."