[?] Subscribe To This Site

XML RSS
Add to Google
Add to My Yahoo!
Add to My MSN
Subscribe with Bloglines

Home
Forum
Project Ideas
C Course
Projects Showcase
LCD-KEYS OnePort
PIC Introduction
PIC Programmer
Schematic Tool
PIC Projects
Tips & Techniques
PIC Tutorials
Digital Downloads
Store
My SECRET
Oscilloscopes
About Me
Contact
Terms of Use
Search This Site
Freebies
Articles
Books
Resource Links
Site Map
Video du Jour
Rant/Rave
Privacy Policy
Problem?-Solution
Programmer Types

How to write a program for sensor.

by Raihan
(Bangladesh)

I am working on a microcontroller project at a undergraduate level.The microcontroller used is ATmega8.How can i write a program in c where a load sensor like strain gauge will be used with this microcontroller.




Comments for
How to write a program for sensor.

Click here to add your own comments

Oct 23, 2009
Is the problem interface or programming?
by: Anonymous

The programming for ADC is relatively straightforward. You turn on the ADC module, wait so many clock cycles, and read the result. I assume your problem will be more with conditioning the very small signal from the strain gauge and getting that into the MCU. Assuming a resistance bridge is used with your gauge try feeding that to an instrumentation amplifier built with 3 opamps. High input impedance and high CMRR are very useful characteristics of op amps for this application. Using one will get you some amplification, filter out a lot of noise, and also bring a differential analogue signal to a single ended signal which can be hooked up to an analogue input on the MCU or further amplified if needed.

One suggestion for the programming. Keep the converted reading in its binary format as long as possible if you need to do any manipulation. Real numbers are memory hogs and take more processing time.

Click here to add your own comments

Join in and write your own page! It's easy to do. How?
Simply click here to return to Ask for a Solution to your microcontroller problem