No ACL setup yet! Denying access to everyone.
en:edu:zmitac:macro:iot:labesp32

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:edu:zmitac:macro:iot:labesp32 [2020/03/12 10:34] – [Laboratory scenarios] pczekalskien:edu:zmitac:macro:iot:labesp32 [2020/03/12 11:08] (current) – [Laboratory scenarios] pczekalski
Line 280: Line 280:
     * ''ADC_2_5db'' - 1.34 (1V on input = 2086 reading on ADC), so full scale is 0..1.5V     * ''ADC_2_5db'' - 1.34 (1V on input = 2086 reading on ADC), so full scale is 0..1.5V
     * ''ADC_6db'' - 1.5 (1V on input = 2975 reading on ADC), so full scale is 0..2.2V     * ''ADC_6db'' - 1.5 (1V on input = 2975 reading on ADC), so full scale is 0..2.2V
-    * ''ADC_11db'' - 3.6 (1V on input = 3959 reading on ADC), so full scale is 0..3.9V - **warning - some people report that using it bricks ESP board!**+    * ''ADC_11db'' - 3.6 (1V on input = 3959 reading on ADC), so full scale is 0..3.9V 
 + 
 +<note important>Do not execute consequent way ''analogRead()''. As technically all channels use same two registers (ADC1 and ADC2) you need to give it some time to sample (i.e. ''delay(100)'' between consecutive reads on different channels).</note> 
 + 
 +During your exercise, you may start from informing ESP to start sampling on particular GPIOs, usually in the ''setup()'' function: 
 +<code c> 
 +... 
 +#define VRxPIN 25 
 +#define VRyPIN 26 
 +... 
 +void setup() 
 +{ 
 +... 
 +  adcAttachPin(VRxPIN); 
 +  adcAttachPin(VRyPIN); 
 +  // here you can also change clock divider, number of cycles per sample and so on. 
 +... 
 +} 
 +</code>
 ==== Resources ==== ==== Resources ====
   - [[https://www.espressif.com/en/products/hardware/esp-wrover-kit/resources|ESP32 WROVER kit starting page]]   - [[https://www.espressif.com/en/products/hardware/esp-wrover-kit/resources|ESP32 WROVER kit starting page]]
en/edu/zmitac/macro/iot/labesp32.1584005657.txt.gz · Last modified: by pczekalski