Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
6Activity
0 of .
Results for:
No results containing your search query
P. 1
AVR Force+Sensor

AVR Force+Sensor

Ratings: (0)|Views: 416|Likes:
Published by MC. Rene Solis R.
avr with a force sensor
avr with a force sensor

More info:

Published by: MC. Rene Solis R. on Sep 13, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/11/2014

pdf

text

original

 
ARDUINO PROJECTSIMPLE FORCE SENSOR (FSG-15N1A) READOUT
Silicon sensor like Freescale MPX2102 and FSG-15N1A are nowcommonly available and can be used for many industrial applicationsand robotics. These sensors employ bridge circuits and their output is inmilli volts making it necessary to use instrumentation amplifier likeAD622.For hobbyist however a simple circuit can be implemented usingcommonly available Op-Amp like LM358. The circuit below amplifiesthe difference in pressure sensor outputs by 20 and the Atmega8subtracts the two to display the actual pressure reading.This implementation requires calibration and has undergone limitedtesting.
// LiquidCrystal display with:// rs on pin 10// rw on pin 9// enable on pin 8// d0, d1, d2, d3 on pins 5, 4, 3, 2
#include <LiquidCrystal.h>LiquidCrystal lcd(10, 9, 8, 5, 4, 3, 2);int Pos=0;int Neg=0;int Com=0;
 
char* str1[] = {"CHANNEL A", "CHANNEL B", "CHANNEL C"};void setup(){
// Print a message to the LCD.
 pinMode(12,OUTPUT);pinMode(13,OUTPUT);pinMode(11,OUTPUT);pinMode(7,INPUT);digitalWrite(12,LOW);}void loop(){Pos = analogRead(0);Neg = analogRead(1);Com = 5*(Pos-Neg);
//Correction factor please change as per your requirement
lcd.clear();lcd.print(str1[0]);lcd.setCursor(0,1);lcd.print("Force");lcd.print(":");lcd.print(Com);lcd.print("grams");
//or any units that you want to use
delay(100);} 

Activity (6)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Dani Alex Chap liked this
sarawutdeepala liked this
cha_rupa liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->