Modifications

Sauter à la navigation Sauter à la recherche
720 octets ajoutés ,  23 juillet 2012 à 06:05
Ligne 290 : Ligne 290 :  
[[Fichier:FSR-RCtimecapture.jpg]]
 
[[Fichier:FSR-RCtimecapture.jpg]]
   −
Blabla
+
''This capture from an oscilloscope shows whats happening on the digital pin (yellow). The blue line indicates when the sketch starts counting and when the couting is complete, about 1.2ms later.''
 +
 
 +
This is because the capacitor acts like a bucket and the resistor is like a thin pipe. To fill a bucket up with a very thin pipe takes enough time that you can figure out how wide the pipe is by timing how long it takes to fill the bucket up halfway.
 +
 
 +
[[Fichier:FSR-RCTime-Schema.jpg]]
 +
 
 +
[[Fichier:FSR-RCTime-Schema2.jpg]]
 +
 
 +
In this case, our 'bucket' is a 0.1uF ceramic capacitor. You can change the capacitor nearly any way you want but the timing values will also change. 0.1uF seems to be an OK place to start for these FSRs.
    
== Source ==
 
== Source ==
29 917

modifications

Menu de navigation