BS2 Voltmeter
Discovery
Posts: 606
in BASIC Stamp
Has anyone designed and built a voltmeter using a BS2 and a liquid crystal display?
I have a simple application to display voltage and display the value in integers from 0 to 10 in 1 volt increments.
If you have...would you provide the code?
Sincerely,
Discovery
I have a simple application to display voltage and display the value in integers from 0 to 10 in 1 volt increments.
If you have...would you provide the code?
Sincerely,
Discovery
Comments
Chapter 3 of Basic Analog and Digital starting on page 41 [51 of the PDF] shows how to "Build Your Own Digital DC Voltmeter" using the ADC0831 that Mike mentioned.
https://www.parallax.com/downloads/basic-analog-and-digital-text
Chapter 1 of Smart Sensors and Application shows how to use the Parallax Serial LCD.
https://www.parallax.com/downloads/smart-sensors-and-applications-text
https://www.parallax.com/downloads/smart-sensors-code-and-spreadsheet
StampWorks has a whole section of using a Parallel LCD, and as Mike mentioned there are numerous Nuts & Volts articles on LCDs including saving pins by using a '595.
https://www.parallax.com/downloads/stampworks-experiment-kit-manual
https://www.parallax.com/downloads/stampworks-basic-stamp-source-code
Nuts and Volts
https://www.parallax.com/search?search_api_views_fulltext=nuts+and+volts+volume&=Search
Discovery
The digital potentiometer comes up at half-scale so the output of the voltage comparator tells the BS2 program which way to slew the digital potentiometer to reach the input voltage quickly. Once the comparator trips state...it is now a tracking voltmeter.
Parts are a BS2, LM111, and an AD5220.
The BS2 program generates the clock and U/D direction for the digital potentiometer. The comparator generates the logic state for the tracking servo.
Discovery
Before you go "down the rabbit hole" as Dave Jones would say, what is your application?
Discovery
I found that these devices are very susceptible to electromagnetic pulses and will jump the output voltage when a pulse passes through the device. I located a relay next to an AD5220 on a printed circuit board and was surprised when the output changed for no apparent reason. The problem was found by instrumenting a scope to various signals. The solution to the problem was to shield the AD5220 with copper on the top and on the sides of the device. After adding the shielding...the device worked flawlessly.
Discovery
Do you have a kickback diode across the relay and decoupling capacitors across the AD5220 power pins?
Discovery
Discovery
https://www.ebay.com/itm/Mini-Voltmeter-Tester-Module-Digital-Voltage-Test-DC-0-30V-Auto-Car-Tackle-L/142813194372