Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jorgeloopzz/plants_bpa-de2
https://github.com/jorgeloopzz/plants_bpa-de2
brno-university-of-technology digital-electronics electronics esp32 micropython python wokwi
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jorgeloopzz/plants_bpa-de2
- Owner: jorgeloopzz
- License: unlicense
- Created: 2024-11-07T14:32:28.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-02T15:00:58.000Z (20 days ago)
- Last Synced: 2024-12-02T15:45:00.411Z (20 days ago)
- Topics: brno-university-of-technology, digital-electronics, electronics, esp32, micropython, python, wokwi
- Language: Python
- Homepage: https://wokwi.com/projects/415649267018234881
- Size: 84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
πͺ΄ Measurement of the environment for tropical plants πͺ΄The goal of this project is to create a system that measures key environmental parameters such as temperature, humidity, light levels, soil moisture for tropical plants. This system also allows the user to visualize the data obtained.
- [π§βπ§βπ§ Team members](#-team-members)
- [βοΈ Hardware description](#οΈ-hardware-description)
- [πΉοΈ Software description](#οΈ-software-description)
- [πΌοΈ Instructions and photos](#οΈ-instructions-and-photos)
- [π οΈ References and tools](#οΈ-references-and-tools)Β
# π§βπ§βπ§ Team members
- Carles TΓ rrega Molins
- Jorge LΓ³pez Viera
- Marta Tejera LΓ³pezΒ
# βοΈ Hardware description
Parts used:
- [ESP32](/assets/esp32.png)
- 1 light sensor
- 2 pushbuttons
- 1 resistor
- SSD1306 OLED Display
- 1 Neopixel LED strip![image](/assets/circuit.png)
More details
- For NeoPixel, 1 pin for voltage, other for ground, and the last connected to any digital input.
- 2 of the 4 pushbuttons pins must be disconnected, the other 2 can be connected to any digital input.
- Since OLED display requires I2C commmunications we need to connect the correspond pins to SDA and SCL, pins 21 and 22.Β
# πΉοΈ Software description
### β Test files
```
src/
βββ 01-i2c_scan.py
βββ 02-i2c_rtc.py
βββ 02-i2c_sensor.py
βββ 02-i2c_sensor_bme280.py
βββ 03-i2c_oled.py
βββ 04-i2c_sensor_oled.py
βββ sh1106_org.py
βββ sh1106.py
```### ποΈ Classes
```
src/
βββ bme280.py
βββ Button.py
βββ dht12.py
```> π **Note:** the `Button` class was made by ourselves, apart for controlling pushbuttons, to know and control when they are pressed.
### π¨ Colours
In order to manage lights we've made functions to change each pixel color through a **_for_** loop.
```python
# src/leds.py
...def off():
off = (0, 0, 0)
for i in range(n):
pixels[i] = off
pixels.write()
sleep(0.1)def blue():
azul = (0, 102, 255)
for i in range(n):
pixels[i] = azul
pixels.write()
sleep(0.1)...
```Β
# πΌοΈ Instructions and photos
| **_Flowchart 1_** | **_Flowchart 2_** |
| :-----------------------------------: | :-----------------------------------: |
| ![flowchart1](/assets/flowchart1.png) | ![flowchart2](/assets/flowchart2.png) |Β
| **_Result 1_** | **_Result 2_** |
| :------------------------------: | :------------------------------: |
| ![result1](/assets/result1.jpeg) | ![result2](/assets/result2.jpeg) |Β
# π οΈ References and tools
- [Course repository](https://github.com/tomas-fryza/esp-micropython)
- [Markdown guide](https://www.markdownguide.org/)
- [Thonny IDE](https://thonny.org/)
- [NeoPixel](https://docs.micropython.org/en/latest/esp8266/tutorial/neopixel.html)
- [Wokwi](https://wokwi.com/micropython)
- [Git](https://www.w3schools.com/git/)Β