Modifications

Sauter à la navigation Sauter à la recherche
3 octets ajoutés ,  6 mai 2012 à 22:26
Ligne 296 : Ligne 296 :     
[[Fichier:cds-condensateur1.jpg]]
 
[[Fichier:cds-condensateur1.jpg]]
 +
 
''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 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.''
   Ligne 301 : Ligne 302 :     
[[Fichier:cds-condensateur2.jpg]]
 
[[Fichier:cds-condensateur2.jpg]]
 +
 
[[Fichier:cds-condensateur3.jpg]]
 
[[Fichier:cds-condensateur3.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 photocells. If you want to measure brighter ranges, use a 1uF capacitor. If you want to measure darker ranges, go down to 0.01uF.  
 
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 photocells. If you want to measure brighter ranges, use a 1uF capacitor. If you want to measure darker ranges, go down to 0.01uF.  
 
  <nowiki>/* Photocell simple testing sketch.  
 
  <nowiki>/* Photocell simple testing sketch.  
29 917

modifications

Menu de navigation