This shows you the differences between two versions of the page.
iothings:proiecte:2022sric:solarstation [2023/06/02 01:13] razvan.macarie created |
iothings:proiecte:2022sric:solarstation [2023/06/02 03:38] (current) razvan.macarie |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Solar Station Project ====== | ====== Solar Station Project ====== | ||
+ | |||
+ | Autor: Macarie Razvan-Cristian 332CB | ||
===== Project Description ===== | ===== Project Description ===== | ||
- | This section provides an overview of the Solar Station project, its goals, and its significance. | + | Solar station este o statie meteo autonoma incarcata de la soare. Datele sunt preluate, ingerate de influxDB si afisate in Grafana intr-un dashboard. Temperatura, presiunea atmosferica si umiditatea sunt esalonate o data la 30 de secunde. Microcontroller-ul sta in sleep intre esantionari pentru a pierde cat mai putina energie. |
===== Hardware Description ===== | ===== Hardware Description ===== | ||
- | This section describes the hardware components used in the Solar Station project. Include details about the solar panels, batteries, charge controllers, inverters, and any other relevant hardware used in the system. | + | Statia meteo primeste energia de la baterii lithium ion incarcate de la soare, informatia de la senzori si posteaza prin internet rezultatele. Am pus microcontroller-ul in sleep mode majoritatea timpului, pentru ca in mod realistic nu se schimba temperatura atat de mult in cateva secunde. Pana si 30 secunde s-ar putea sa fie prea putin timp intre esantionari. Am pus tot montajul electric intr-o cutie in care am dat gauri in zona senzorilor pentru a primi aer de afara si am izolat cat am putut de bine montajul de influenta soarelui. Am ridicat sistemul de la sol ca sa nu faca contact termic cu suprafata pe care sta, am acoperit cu folie de staniol toate suprafetele care stau la soare ca sa nu ajungem la un fel de sera si am inclinat panoul solar intr-un unghi ca sa fie mai eficienta capturarea energiei de la soare. Mult timp a fost petrecut in testarea sistemului si sa ma asigur ca fiecare componenta functioneaza corect (ca bateriile se incarca de la soare, ca supravietuieste pe balcon fara sa moara etc.). |
- | - Solar Panels: [Provide information about the solar panels used, such as their wattage, efficiency, and manufacturer.] | + | Componente necesare: |
+ | * Lolin32 microcontroller esp32 | ||
+ | * Panou solar 3W | ||
+ | * Doua baterii lithium ion ICR18650 3.7V de 2600mAh | ||
+ | * Lithium ion battery charger TP4056 | ||
+ | * Senzor temperatura si presiune atmosferica BMP280 | ||
+ | * Senzor de temperatura si umiditate DHT11 | ||
- | - Batteries: [Describe the type and capacity of the batteries used for energy storage.] | + | {{:iothings:proiecte:2022sric:whatsapp_image_2023-06-02_at_02.09.32.jpeg?600|}} |
+ | {{:iothings:proiecte:2022sric:whatsapp_image_2023-06-02_at_02.09.26.jpeg?600|}} | ||
- | - Charge Controllers: [Specify the charge controllers used to regulate the charging of the batteries.] | + | ===== Software Description ===== |
- | - Inverters: [Provide details about the inverters used to convert DC power from the batteries to AC power for use in appliances.] | + | Pentru ingerarea datelor folosim InfluxDB si pentru afisare folosim Grafana. |
- | - Other Hardware: [Include any additional hardware components used in the Solar Station project.] | + | Modul de functionare al proiectului poate fi descris in pseudocod in felul urmator: |
- | + | <code> | |
- | ===== Software Description ===== | + | init_wifi() |
+ | init_influx() | ||
+ | init_sensors() | ||
- | This section explains the software aspects of the Solar Station project. Include details about the software used to monitor and control the system, collect and analyze data, and any other software components relevant to the project. | + | while true: |
+ | read_sensors() | ||
+ | send_influxDB() | ||
+ | hibernate(30s) | ||
+ | </code> | ||
- | - Monitoring and Control Software: [Describe the software used to monitor and control the Solar Station system. Include information about its features, interface, and how it communicates with the hardware.] | + | In grafana folosim flux pentru querry-uri din influx: |
- | - Data Collection and Analysis Software: [Specify the software used to collect data from the system, store it, and perform analysis. Explain any data visualization or reporting features.] | + | <code> |
+ | from(bucket: "esp") | ||
+ | |> range(start: -1d) | ||
+ | |> filter(fn: (r) => | ||
+ | r._measurement == "wifi_status" and ( | ||
+ | r._field == "dht temp" or | ||
+ | r._field == "mbe temp" | ||
+ | ) | ||
+ | ) | ||
+ | </code> | ||
- | - Other Software: [Include any additional software components used in the Solar Station project.] | + | ===== InfluxDB ===== |
+ | {{:iothings:proiecte:2022sric:screenshot_5.png?800|}} | ||
- | ===== Conclusion ===== | + | ===== Grafana ===== |
+ | {{:iothings:proiecte:2022sric:screenshot_4.png?800|}} | ||
- | In this template, you can replace the placeholder text with relevant information about your Solar Station project. Feel free to add subsections or modify the structure to suit your specific project requirements. | + | ===== Bibliografie ===== |
+ | * https://randomnerdtutorials.com/esp32-influxdb/ | ||
+ | * https://randomnerdtutorials.com/esp32-web-server-with-bme280-mini-weather-station/ | ||
+ | * https://megma.ma/wp-content/uploads/2021/08/Wemos-ESP32-Lolin32-Board-BOOK-ENGLISH.pdf | ||
+ | * https://www.mischianti.org/wp-content/uploads/2020/11/ESP32-WeMos-LOLIN32-pinout-mischianti.png |