Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pm:prj2026:bianca.popa1106:ioan_stefan.raducu [2026/05/16 22:22]
ioan_stefan.raducu [Jurnal] Updated the journal, completed the hardware milestone
pm:prj2026:bianca.popa1106:ioan_stefan.raducu [2026/05/16 23:28] (current)
ioan_stefan.raducu [ESP32 Pinout Configuration]
Line 32: Line 32:
   * [[https://​www.olimex.com/​Products/​Breadboarding/​BB-PWR-3608/​resources/​MT3608.pdf|MT3608 Step-Up Module]]   * [[https://​www.olimex.com/​Products/​Breadboarding/​BB-PWR-3608/​resources/​MT3608.pdf|MT3608 Step-Up Module]]
   * Perforated Boards   * Perforated Boards
-  * 470mF and 100nF Capacitor+  * 470uF and 100nF Capacitor
   * 2x 100kOhm Resistors   * 2x 100kOhm Resistors
   * 5x 330Ohm Resistors   * 5x 330Ohm Resistors
 +  * 5x Colored LED's
   * Wires   * Wires
  
 === Schematic === === Schematic ===
 {{ ioan_stefan_raducu_schematic.png?​600 }} {{ ioan_stefan_raducu_schematic.png?​600 }}
 +
 +The circuit has a power assembly which has four power lines:
 +  * **GND**
 +  * **VBAT** Current battery voltage, after going trough the TP4056 Charger Module.
 +  * **5V** Stable 5V voltage after the TP4056 Charger Module is stepped up to 5V using the MT3608 Step-Up Module.
 +  * **VBAT_DIV** The battery voltage divided using a 100k/100k voltage divider (to read safely using ADC).
 +
 +The rest of the circuit is buttons and LEDs for GPIO (using PWM and Interrupts),​ MPU-6050 (GY-521 Module) IMU for inertial measurement (using I2C). For power stability a 420uF bulk capacitor is used. A 100nF capacitor is present for filtering the ADC battery voltage reading.
 +
 +===== ESP32 Pinout Configuration =====
 +
 +^ ESP32 Pin ^ Connected To ^ Function Type ^ Description ^
 +| **GPIO 34** | VBAT_DIV | Analog Input (ADC) | Battery monitoring via 100k/100k voltage divider. |
 +| **GPIO 33** | Wake Button | Digital Input (RTC) | System wake-up button; triggers wake from Deep Sleep. |
 +| **GPIO 13** | Button 2 | Digital Input | General purpose tactile switch. |
 +| **GPIO 14** | Button 3 | Digital Input | General purpose tactile switch. |
 +| **GPIO 25** | Button 4 | Digital Input | General purpose tactile switch. |
 +| **GPIO 26** | Button 5 | Digital Input | General purpose tactile switch. |
 +| **GPIO 27** | Button 6 | Digital Input | General purpose tactile switch. |
 +| **GPIO 32** | Button 7 | Digital Input | General purpose tactile switch. |
 +| **GPIO 22** | MPU-6050 SCL | I2C Clock | Clock line for I2C communication. |
 +| **GPIO 21** | MPU-6050 SDA | I2C Data | Data line for I2C communication. |
 +| **GPIO 19** | MPU-6050 INT | Digital Input | Hardware interrupt signal from MPU-6050. |
 +| **GPIO 15** | LED 1 | Digital Output | Status LED (330Ω resistor). |
 +| **GPIO 16** | LED 2 | Digital Output | Status LED (330Ω resistor). |
 +| **GPIO 17** | LED 3 | Digital Output | Status LED (330Ω resistor). |
 +| **GPIO 18** | LED 4 | Digital Output | Status LED (330Ω resistor). |
 +| **GPIO 4** | LED 5 (PWM) | PWM Output | Intensity-controlled LED (330Ω resistor). |
 +| **5V (Vin)** | MT3608 OUT+ | Power Input | Stabilized 5V from the step-up converter. |
 +| **3V3** | MPU-6050 VCC | Power Output | 3.3V supply for IMU and sensors. |
 +| **GND** | Common Ground | Ground | Common reference ground for the whole circuit. |
 +
 +=== Hardware Notes ===
 +  * **Input Protection:​** All buttons are connected to Ground, utilizing the ESP32'​s internal pull-up resistors.
 +  * **Power Filtering:​** C1 (470µF) acts as a bulk capacitor for the 5V rail, while C2 (100nF) provides high-frequency decoupling for the 3.3V rail.
 +  * **ADC Usage:** GPIO 34 is part of ADC1, ensuring it remains operational while Bluetooth connectivity is active.
 +  * **Battery Voltage Measurement**:​ The battery voltage is measured using an ADC pin, trough a voltage divider. Even if the battery is rated 3.7V, it can reach up to 4.2V, which would burn the 3.3V rated pin.
 +
 +=== Hardware Tests ===
 +The first hardware test used is LED illumination on battery power. It checks the power assembly, ESP32 and LED integrity and wiring.
 +== LED illumination on battery power ==
 +{{ ioan_stefan_raducu_test1.jpg?​w=700 }}
 +
 +The second test was testing the buttons, displaying which button was pressed using UART (while the battery is disconnected). The wake button works accordingly.
 +
 +The third test was ADC reading trough the voltage divider. The test requires the battery being connected while the power assembly does not feed power to the ESP32. The wire connecting them was removed temporarily for this test. As we plug and unplug the battery, I could observe that the voltage rises to the expected voltage in one reading, slowly decreasing to zero after the battery is unplug. This test requires a hardware modification (one wire to disconnect) in order to work without risking burning either the project or the computer motherboard.
 +
 ===== Software Design ===== ===== Software Design =====
  
Line 55: Line 103:
 Coming Soon Coming Soon
  
-===== Jurnal ​=====+===== Journal ​=====
  
   * 09.05.2026: The initial version of this page is available, posted the introduction,​ general description and the block schema.   * 09.05.2026: The initial version of this page is available, posted the introduction,​ general description and the block schema.
Line 64: Line 112:
 ===== Bibliografie/​Resurse ===== ===== Bibliografie/​Resurse =====
  
-Coming Soon+  * [1] **Espressif Systems** - [[https://​www.espressif.com/​sites/​default/​files/​documentation/​esp32-wroom-32d_esp32-wroom-32u_datasheet_en.pdf|Datasheet ESP32 (WROOM-32D)]] 
 +  * [2] **InvenSense** - [[https://​invensense.tdk.com/​wp-content/​uploads/​2015/​02/​MPU-6000-Datasheet1.pdf|Datasheet MPU-6050]] 
 +  * [3] **PowerCore** - [[https://​dlnmh9ip6v2uc.cloudfront.net/​datasheets/​Prototyping/​TP4056.pdf|Datasheet TP4056 (Charger)]] 
 +  * [4] **Aerosemi** - [[https://​www.olimex.com/​Products/​Breadboarding/​BB-PWR-3608/​resources/​MT3608.pdf|Datasheet MT3608 (Step-up)]]
  
 <​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>​
  
  
pm/prj2026/bianca.popa1106/ioan_stefan.raducu.1778959354.txt.gz · Last modified: 2026/05/16 22:22 by ioan_stefan.raducu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0