Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:examples:sensor:force [2012/06/09 11:06] raivo.sellen:examples:sensor:force [2020/07/20 09:00] (current) – external edit 127.0.0.1
Line 26: Line 26:
 Measuring the Newton force by the FSR it is good idea to map analogue voltage reading ranges to 0 V to supply voltage. After that you can calculate the FSR resistance using following formula: Measuring the Newton force by the FSR it is good idea to map analogue voltage reading ranges to 0 V to supply voltage. After that you can calculate the FSR resistance using following formula:
  
-R<sub>FSR</sub> = ((V<sub>cc</sub> - U) * R1) / U+R<sub>FSR</sub> = ( (V<sub>cc</sub> - U) * R1) / U
  
 Where: Where:
Line 45: Line 45:
 The example program of the force sensor shows the measured force (Newtons) and weight (kg) on the LCD.  The example program of the force sensor shows the measured force (Newtons) and weight (kg) on the LCD. 
  
-~~PB~~+<pagebreak>
  
 <code c> <code c>
Line 102: Line 102:
  
  // The voltage = Vcc * R / (R + FSR) where R = 10K and Vcc = 5V  // The voltage = Vcc * R / (R + FSR) where R = 10K and Vcc = 5V
- // so FSR = ((Vcc - V) * R) / V+ // so FSR = ( (Vcc - V) * R) / V
  // fsrVoltage is in millivolts so 5V = 5000mV  // fsrVoltage is in millivolts so 5V = 5000mV
  resistance = 5000 - voltage;       resistance = 5000 - voltage;     
en/examples/sensor/force.1339240005.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0