This repository contains the code and schematics for an Emotions cube project, which uses an Accelerometer to meassure which face it is placed in. Allowing patients with difficulty when expresing their feelings to communicate thier degree of confort/disconfort.
- 3-D printed faces and structure
- ESP32-WROOM-32
- 1850 Bateries
- IMU and other electronic components
-
Clone the repository:
Clone this repository to your local machine using:
git clone https://github.com/MedialabUniovi/Healthcare_CuboLab/Proto-v2.2.2.git
-
Set up the environment:
Open the project in ArduinoIDE or Platform.io and ensure you have installed the required libraries.
-
Upload the code:
Compile and upload the code to the ESP32-WROOM-32 microcontroller.
-
Assemble the hardware:
Connect the components to the PCB, and attach embed it into the 3-D printed structure.
-
Charge the device: It has a "DC barrel jack" conector. It should be charged with a 10V charger.
-
Data reception: The generated data will be saved on a DataBase and accesible via http.
-
Configuration Once it starts charging it allows the user to acces the configuration of the cube via WiFi
-
Customization: Modify the code to suit your needs by adding additional sensors or improving the data logging system.
The systems toggles between three states goberned which indicate whether the cube is in motion detection, charging and configuration, and only charging. Indicating the level of charge after disconnection.
| Number | Name | Description |
|---|---|---|
| G33 | Vcharge | Pin used to detect if the charger is connected |
| G34 | Vbat | Pin used to meassure the battery voltage |
| G21 | SDA | Pin used by I2C data transmission |
| G22 | SCL | Pin used by I2C clock |
| G14 | PIN14 | Pin used for the wakeup IMU interrupt |
| G18 | PIN18 | Pin used to activate the buzzer |
| G25 | PIN25 | LED red Pin |
| G26 | PIN26 | LED green Pin |
| G27 | PIN27 | LED blue Pin |
As for the power supply of the product: The values of the resistances shown in the schematic are calculated taking into account the use of two batteries with a BMS controlling them. Any modification in the power system should take this into account. The recommended voltage supply is 10V; any lower may cause the BMS not to open and more than 12V could damage the BMS.
It should be noted that for the battery reading to be succesful there should be a bridge made between pins ¿? and ¿? in the PCB. Unless the system is supplied with only one battery, in that case thse pins are used for separate purposes.