User Tools

Site Tools


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
en:edu:zmitac:macro:iot:labesp32 [2020/03/12 10:35] – [Laboratory scenarios] pczekalskien:edu:zmitac:macro:iot:labesp32 [2020/03/12 11:08] (current) – [Laboratory scenarios] pczekalski
Line 282: Line 282:
     * ''ADC_11db'' - 3.6 (1V on input = 3959 reading on ADC), so full scale is 0..3.9V     * ''ADC_11db'' - 3.6 (1V on input = 3959 reading on ADC), so full scale is 0..3.9V
  
-<note important>Do not execute consequent ''analogRead()''. As technically all channels use same two registers (ADC1 and ADC2) you need to give it some time (i.e. ''delay(100)'' between consequtive reads on different channels.</note>+<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.1584005755.txt.gz · Last modified: by pczekalski