Commit 8f32312d authored by RaulSingh-7's avatar RaulSingh-7
Browse files

Photoresistor slides updated

parent bdf8b6b6
Pipeline #1112 passed with stage
in 58 seconds
......@@ -124,19 +124,26 @@
</section>
<section data-charset="utf-8"
data-markdown="./slides/08-wifi.md"
data-markdown="./slides/analog_input_sketch.md"
data-separator="^\r?\n---\r?\n$"
data-separator-notes="^Notes:"
data-separator-vertical="^\r?\n----\r?\n$">
</section>
<section data-charset="utf-8"
data-markdown="./slides/09-wifi.md"
data-separator="^\r?\n---\r?\n$"
data-separator-notes="^Notes:"
data-separator-vertical="^\r?\n----\r?\n$">
</section>
<section data-charset="utf-8"
data-markdown="./slides/09-bot_telegram.md"
data-markdown="./slides/10-bot_telegram.md"
data-separator="^\r?\n---\r?\n$"
data-separator-notes="^Notes:"
data-separator-vertical="^\r?\n----\r?\n$">
</section>
<section data-charset="utf-8"
data-markdown="./slides/10-project.md"
data-markdown="./slides/11-project.md"
data-separator="^\r?\n---\r?\n$"
data-separator-notes="^Notes:"
data-separator-vertical="^\r?\n----\r?\n$">
......
......@@ -26,14 +26,14 @@ librerie open-source</aside class="notes">
<section>
<h2>More details about theESP32</h2>
<p>The ESP32 we are going use is manifactured by Espressif.</p>
<ul>
It features:
<li>**CPU** Xtensa® Dual-Core 32-bit LX6</li>
<li>**ROM** 448 KByte</li>
- **SRAM** 520 KByte
- 2.2V TO 3.6V **Required Voltage**
- 802.11b/g/n WiFi 2.4GHz and Bluetooth **Connectivity**
- 18mm x 25mm x 3mm **Compact Size**
- **Advanced Peripheral Interfaces** support
<ul>
<li> <b>CPU</b> Xtensa® Dual-Core 32-bit LX6</li>
<li> <b>ROM</b> 448 KByte</li>
<li> <b>SRAM</b> 520 KByte</li>
<li> 2.2V TO 3.6V <b>Required Voltage</b></li>
<li> 802.11b/g/n WiFi 2.4GHz and Bluetooth <b>Connectivity</b></li>
<li> 18mm x 25mm x 3mm <b>Compact Size</b></li>
<li> <b>Advanced Peripheral Interfaces</b> support</li>
</ul>
</section>
\ No newline at end of file
# Test our setup
## Test our setup
----
Download the code we provided you and open it with the **Arduino IDE**
If you want you can try write it yourself!
```
......@@ -81,6 +80,6 @@ the MCU will have to perform
e.g. read a sensor's value, send a signal
----
---
**A microcontroller does this, it continues to repeat an operation, forever and ever**
\ No newline at end of file
# Let's try to do something more interesting!
## Let's try to do something more interesting
----
We will do a small circuit and read an analog value from a sensor
We will do a small circuit and read an **analog value** from a **sensor**
What sensor will we use?
......@@ -43,6 +43,8 @@ A resitor causes a **voltage drop** across its ends.
If we put 2 resistor in series, we get a **voltage divider**
<img src="./images/divider.PNG" alt="Graph" style="width:40%;"/>
This circuits divides the voltage depending on the resitor's value. If they are both equal, the voltage is divided in two halfs, 1/2 and 1/2. If one resistor has a value of (1/3)R and (2/3)R, the whole voltage gets divided in 1/3 and 2/3.
----
......@@ -57,4 +59,12 @@ Our circuit should look something like this
<img src="./images/ESP32_photoresistor.png" alt="Sensor" style="width:50%;"/>
We connected the point between the photoresistor and the resistor with a cable that goes to the pin labeled as **D35**, to read the voltage value
\ No newline at end of file
We connected the point between the photoresistor and the resistor with a cable that goes to the pin labeled as **D35**, to read the voltage value
----
The next step is trying building it on the **breadboard**
<img src="./images/photo_breadboard.PNG" alt="Sensor" style="width:50%;"/>
The photoresistor and the resistance will be connected in series, between pin **3v3** and **GND**. We will read the voltage between the resistors using the pin **D35**
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment