Project map:
I. Introduction
II. Implementation
III. Modules
IV. The Station
V. Synchronization
VI. Applications
VII. Our challenges
VIII. Conclusion
I. Introduction
Currently students at UniLaSalle Amiens, we have to create an IOT project with the following characteristics: sensors connected to a server using Low-Power communication and with a user interface for interpreting measurements.
What could be better than a connected home solution when it comes to IOT?
Our Group has therefore turned to a connected home solution to better manage our daily environment that can be adapted to existing installations.
II. Implementation
Our living space can comprise several areas, each with its own characteristics. So we decided to go for a modular solution that could be adapted to everyone's needs.
Our solution consists of a central unit managing various modules distributed throughout the home. The aim is to provide the best possible response to users' needs.
III. Modules
During this 50-hour project, we carried out 3 different modules:
- A sensor module
The sensor module integrates 3 pieces of data: temperature, humidity and pressure.
The image above shows an example of the module in question.
We can also add a relay to activate a ventilation or heating system corresponding to our sensors. We saw that it was also possible to create a module to program the heating using pilot wires, but we didn't have the time to make it.
image with relay.
- An Mechanic module
We created a simple module using relays to simulate actions such as switches for shutters or lights (bluetooth is integrated).
Here we have a concrete example of a mini alarm system. It consists of a motion detector and a buzzer to simulate the intruder siren.
- An electricity meter reading module
Most homes in France are now equipped with Linky electricity meters. This electricity meter displays data on a serial port in a format defined by the manufacturer.
More information is available on the official datasheet provided by Enedis:https://www.enedis.fr/media/2035/download
IV. The Station
The control unit is a RaspberryPi 3 with an integrated Bluetooth 4.0 chip.
Each Bluetooth communication has its own thread. For example, here's how it works for the various modules:
- A sensor card will receive a data request every 5 minutes and will send the data back after taking a measurement.
- An actuator card will receive an action command and only a response if the action has been executed.
- A measurement card must listen continuously
We've added a LoRa module for potential communication with modules and a PSTN module for a continuous clock.
We've also added an SSD to provide more storage, faster writing and greater data stability.
V. Synchronization
In order to make the data available via the ionic application, we need to transfer it to a remote server.
To do this, we have set up a TCP service that enables synchronisation from the control unit(s) to a database that can be used by the API.
The synchronisation service enables commands to be sent to the control units. All these transmissions are encrypted using an AES certificate.
On local networks, however, transmissions are not encrypted.
Data is automatically synchronised every 5 minutes, but this delay can be set.
We make requests to the météo France API to obtain weather data for the town where the power station is located. To limit the number of requests to the API, we use a cache system called Redis, so we only request the data once an hour.
VI. Applications
To control our home and retrieve our data, we needed a user interface. To achieve this, we opted for a cross-platform solution, i.e. one that could be used on a variety of devices.
To start with, we created mock-ups on Figma for a mobile application:
This software is completely free and can be used on a browser or as an application.
We then decided to use the "Ionic" framework to create a web application that could be compiled for Android and iOS.
Due to a lack of resources, we didn't make the application available for public download, but made do with APKs for our tests.
Here are a few screenshots of the application directly on the phone:
Obviously, our application isn't perfect, and there are still a few features to be developed, such as:
- Managing household member invitations
- Household member permissions management
- Automatic translation via the Babel api
- New Modules
- Add compatibility like with Philips Hue API
And many other less important features, such as adding new sensors or actuators.
Now that our system is up and running, we've created a website to showcase our application and provide access to home management.
Our showcase site is available at the following address: www.smarthouse.ovh
We haven't had time to connect it to the control site. As a result, the control site is only available locally after networking with our control centre.
VII. Our challenges
In the course of this project, we encountered a number of difficulties:
- There are two models of Linky meter with two power supply ports. The first is a port similar to the serial ports and the second is USB. We didn't manage to power our meter reading from the Linky. However, with an external power supply or via the USB port, the reading was functional.
- Bluetooth communication from the control unit was a problem. It was trying to communicate using Bluetooth when our sensors could only communicate using Bluetooth Low-Energy. Once we understood this difference, the communication went smoothly.
- During an initial presentation of our project, we produced a laser-cut model, but we had problems with the scale, which delayed the production of the roof.
- We were unable to compile our application for iOS because a Mac was required, so we were only able to carry out our tests on Android.
VIII. Conclusion
To conclude, although our project is not very innovative, it does have the merit of being attractive in terms of our application design. Indeed, a number of people within the promos using various dogmatisation solutions have told us about the quality of our interface, unlike the others. This solution could therefore be continued and improved, in particular by creating various modules and continuing to innovate on the mobile interface.
Ultimately, the aim would be to create our own cards to reduce the cost of selling to other users.
Comments
Please log in or sign up to comment.