This shows you the differences between two versions of the page.
pm:prj2024:aungureanu:andrei.tiu [2024/05/26 14:49] andrei.tiu |
pm:prj2024:aungureanu:andrei.tiu [2024/05/26 17:47] (current) andrei.tiu [Bibliografie/Resurse] |
||
---|---|---|---|
Line 20: | Line 20: | ||
* Display led MAX7219 | * Display led MAX7219 | ||
* Buton | * Buton | ||
- | * Rezistenta | + | * Rezistente |
+ | </note> | ||
+ | |||
+ | <note tip> | ||
+ | Senzor SGP40: | ||
+ | * Functioneaza prin I2C | ||
+ | * ESP32 are atriubuiti automat pinii 21 si 22 pentru SDA si SCL | ||
+ | * Liniile SDA și SCL se afla la nivelul logic 0 și nu pot forța liniile la nivelul logic 1, deci este nevoie de rezistente de pull-up | ||
+ | * Am ales rezistente de 4.7k | ||
+ | </note> | ||
+ | |||
+ | <note tip> | ||
+ | Display 7segment Max7219: | ||
+ | * Functioneaza prin SPI | ||
+ | * ESP32 are atriubuiti automat pinii 23, 18 si 5 pentru DIN, CLK si CS | ||
+ | * Trebuie sa fie alimentat la 5V, asa ca am adus o sursa de tensiune | ||
+ | * Pinul CS are 2 propietati (chip-select in cazul in care sunt mai multe componente conectate in serie si LOAD pentru Load-Data Input) | ||
</note> | </note> | ||
Line 30: | Line 46: | ||
<note tip> | <note tip> | ||
Descrierea codului aplicaţiei (firmware): | Descrierea codului aplicaţiei (firmware): | ||
- | * mediu de dezvoltare (if any) (e.g. AVR Studio, CodeVisionAVR) | + | * mediu de dezvoltare: Arduino IDE |
- | * librării şi surse 3rd-party (e.g. Procyon AVRlib) | + | * Board manager: ESP32 Dev Module |
- | * algoritmi şi structuri pe care plănuiţi să le implementaţi | + | * Library manager: |
- | * (etapa 3) surse şi funcţii implementate | + | - DFRobot_SGP40.h (senzor SGP) |
+ | - SPI.h, AceSPI.h, AceSegment.h (Display si SPI) | ||
+ | - WiFi.h, HTTPClient.h (trimiterea catre spreadsheet a datelor) | ||
+ | </note> | ||
+ | |||
+ | <note tip> | ||
+ | Detalii implementare: | ||
+ | * SGP40: Am verificat ca adresa I2C sa corespunda. Cu ajutorul functiei sgp.getVoclndex() din DFRobot_SGP40 am luat valoarea | ||
+ | * Display: Am definit un vector care reprezinta codurile pentru numere si le am trimis prin SPI catre display | ||
+ | * Transmiterea datelor catre un spreadsheet prin wifi: Am creat un script care imi scrie intr-un spreadsheet si l am lansat ca aplicatie web. Pe placuta m-am conectat la wifi cu WiFi.mode(WIFI_STA); WiFi.begin(ssid, password);. Cu valoarea aflata de sgp40 am facut un request prin http.begin(url); catre aplicatie. | ||
</note> | </note> | ||
Line 39: | Line 64: | ||
<note tip> | <note tip> | ||
- | Care au fost rezultatele obţinute în urma realizării proiectului vostru. | + | Am reusit sa transmit datele prin wifi. Senzorul s-a ars si nu am mai avut timp sa iau altul. Display-ul nu se mai aprinde. |
</note> | </note> | ||
Line 62: | Line 87: | ||
<note> | <note> | ||
Listă cu documente, datasheet-uri, resurse Internet folosite, eventual grupate pe **Resurse Software** şi **Resurse Hardware**. | Listă cu documente, datasheet-uri, resurse Internet folosite, eventual grupate pe **Resurse Software** şi **Resurse Hardware**. | ||
+ | * https://pdf1.alldatasheet.com/datasheet-pdf/view/73745/MAXIM/MAX7219.html - MAX7219 datasheet | ||
+ | * https://pdf1.alldatasheet.com/datasheet-pdf/view/1284767/SENSIRION/SGP40.html - SGP40 datasheet | ||
+ | * https://pdf1.alldatasheet.com/datasheet-pdf/view/1148026/ESPRESSIF/ESP32-WROOM-32.html - ESP32 datasheet | ||
+ | * https://www.youtube.com/watch?v=KPOFncRDiHQ&ab_channel=StechiezDIY - transmiterea datelor prin wifi | ||
+ | * https://www.youtube.com/watch?v=GF27dp4RA0g&t=2814s&ab_channel=DroneBotWorkshop - idee componente | ||
</note> | </note> | ||
<html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> | <html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> | ||