ShadowFurtive / AMPLEA_app

Project based in Portugal. European Project Semester in the Erasmus Experience at ISEP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EUROPEAN PROJECT SEMESTER

SMART ADJUSTABLE ERGONOMIC FURNITURE - APP AND SENSORS PART

N|Solid

N|Solid

European project semester at Instituto Superior de engenharia de Porto.

  • Autor: Team 1 EPS
  • Fecha: 16/06/2023 N|Solid

Features

Project

Wiki

For much more information on the project, please click on the following Link (ipp.pt). This link contains the full project report, together with UML diagrams, flowcharts, component diagrams and class diagrams.

Deploy the project

To deploy the project, only the backend server needs to be generated. To do this, node.js must be installed in order to run the node server.

To run the node server, just run the following line in a terminal:

node component_server.js

The component_server.js can be found in the path /backend.

Once the server is started, you can open the search.html and start browsing for the app. To be able to use the app correctly, you must click "F12" in the browser and select the mobile view, as the website is designed for mobile use.

Dataset

The dataset is located in /backend/data.json. There you can see which users are created or you can create a user if you wish. In addition, the data sent by the sensors or the modifications made from the APP will be saved in the aforementioned file.

While using the app, can be seen the API calls in the terminal open for node.js server.

Arduino

The arduino code is commented and with references to the pages where it has been obtained, so that, in case you need to replicate the circuit, you can implement it without any problem. In addition, in wikipedia you can find all the schematics and important comments on the implementation of the electrical system.

IMPORTANT: To make work the program, the ESP-32 must be connected to internet. There are some params defined in the top of the file that need to get fill with the corresponding values

 
const  char* ssid = "test";
const  char* password = "aloha123";

Also, there is another important point to check. In case that there is the need that the ESP-32 ends http.request to the localhost (as is the case in this project), the correct ip needs to be defined. In this case, the correct ip is the one obtained after performing the next command in the windows cmd console:

ipconfig

Once the IP is set, it must be defined in the URL to make the API calls.

// IMPORTANT -> cmd ip config
String serverName = "http://XXX.XXX.XX.XXX:8000/updateData/1";

Once these is defined, in the serial monitor with the correct baud, it can been seen as it connect to Wi-Fi and start sending http.request (of course, the sensors must be connected to the correct pins).

About

Project based in Portugal. European Project Semester in the Erasmus Experience at ISEP.


Languages

Language:C++ 58.6%Language:C 24.4%Language:JavaScript 12.6%Language:CSS 3.6%Language:Python 0.3%Language:HTML 0.3%Language:Shell 0.1%