Analog Voltage to digital signal conversion
Don Canavan
Posts: 10
I am very new to the wide world of microcontrollers, I bought the whole board of education kit and am doing quite well with all of the projects in the accompaning book, I am up to measuring rotation labs. I got into this for two reasons: one is just a personal interest (pehaps leading to a really neat hobby), the other is a school project. Although I would love to figure this out on my own in the learning process, but I bought this kit·too late and just don't have the time to figure this out on my own. I need to convert an analog voltage signal·(0 V to·about 2 V)·to a digital signal (actually three of them) to use in the microcontroller to perform a function. I know there are several ways to do this but am looking for a method that is simple.·A one purchased·part solution would be nice, but using radioshack or other components to build should not be a problem. Any suggestions or help would be greatly appreciated. Remember I am very new to this so be pateint with me. I am sure that this is a common application for these controllers so hopefully there should be a large knowege base about this
Thanks so much for any help you could provide.
Don
Thanks so much for any help you could provide.
Don
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Thanks
Don
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
You also mentioned a digital converter chip, I have been reading online about digital signals. Parallax sells one with four channels (http://www.parallax.com/detail.asp?product_id=604-00027) for about $9.00 this seams like it would work. What are the advantages to using this method? (probably more speed) I would have to familarize myself with the SHIFTIN and SHIFTOUT commands, but they don't look too bad to learn. I am leaning toward this route what do you think?
Thanks again,
Don
check the datasheet on your acellerometer again.
Most also have a PWM output that can be measured with the COUNT or PULSIN. All the Analog Devices units I have used, do, the Memsic units do, and whatever you are using might. If your analog setup schematic includes caps, it most likely does.
If not, there are ways to use RCtime to measure voltages. Rather than repeating other work, I'll just point you to:
www.emesystems.com/BS2rct.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔