Introduction :
This article will be centred around the Connected BeeHive project, done as part of our fourth year of the “EI-2I”cycle at Polytech Sorbonne.
In this project, we created a system that will be linked to a BeeHive, and it will allow us to collect data about the beehive using captors linked to an Arduino card.
The main goal is to send this data through SigFox, and make it visible and accessible to the bee farmer, giving him the option to monitor his beehive and bees.
System objectives :
The system should allow us to capture and send the following values :
o The external temperature.
- This information is important for the bee farmer, it allows him to predict and explain bee behaviour.
o The internal temperature.
- Allows the farmer to detect any irregularities.
- The existence of three captors also allows the farmer to get an idea about the bee expansion inside the beehive.
o The external humidity.
- This info can be an indication for the amount of honey and the number of bees in the beehive.also allowing him to take action in case of extreme situations.
o The total weight and mass of the Hive.
- This info can be an indication for the amount of honey and the number of bees in the beehive.
o The current level of the battery.
- Despite the fact that the battery is charged through a solar cell, having this information allows the farmer to identify if there is a problem with the charging or with the energy user.
o The luminosity received by the solar panel/cell.
- This goes hand in hand with the battery level, it would allow the farmer to recognize if there is a problem with energy intake.
- It would also allow the farmer to get information about the situation in case he is far from his beehive.
The data needs to be readable and understandable without further analysis, The farmer should be able to check on it throughout the day, and understand if everything’s going well, or if there is a problem on first look.
It is also important to make a durable system, that needs the least amount of maintenance possible.
The system :The basic structure :
We can see above the structure of the system, all the sensors are linked to our main piece, the Arduino MKR FOX 1200 card.
Our card takes the sensors data in, and prepares it for export to Sigfox, this exportation is done using an antenna and the Sigfox module on the card. The data is then processed by Sigfox and attributed to all the different variables.
The data is then sent to Ubidots, to give it visibility.
We can represent the system in the following way :
The system starts with the beehive, and ends at the user, in our case, it’s the farmer himself, just like it would have before the implementation of our system, except now, we simplify the analysis part of the process, allowing the farmer to use his time for more important tasks, while giving access to data he wouldn’t have gotten without bothering the beehive system.
Data acquisition :
As explained before, the data is received on the Arduino MKR FOX 1200 card from the sensors, it is then processed by the card, mainly by using the Arduino libraries for each sensor, and incorporating them into our software.
The processing includes reading the data, adjusting it into the right magnitude, the right unity, then defining the precision we want the value to be in, this is important, because we have to be aware of the amount of data we are sending through Sigfox, since we can only send 12 Bytes of data at once.
Another step to be taken with the data acquisition, is the data calibration, this is important because sensors are often not perfect, and do not always report the exact values, this means we have to add in some software adjustments to get closer to the actual value, as an example, this calibration was necessary for the weight, where we used a known mass, with allowed to get the necessary adjustments.
Using Sigfox :
Now that we have seen how the data is obtained, the next step is to get it off the beehive, and into the cloud, and that is where our choice of card comes into play, the MKR FOX 1200 is capable of connecting to the Sigfox infrastructure, which covers a large portion of Europe, so we get access to this big network without any necessary investments or complicated set up.
In addition to the data size limit specified earlier, there is also another limitation with Sigfox, a number of messages cap at 140, so we aren’t able to just continuously send data, but because of the type of data we are dealing with, an update every 15 minutes is more than enough to get a representative view of the Beehive situation, with this frequency, we end up sending 96 messages per day.
Once the data is sent with the MKR FOX 1200 card using the antenna, we can now access it trough Sigfox, and we can now recover the information by telling Sigfox how the data is structured and where each value is.
Displaying the data with Ubidots :
Now that we got our values, the next step is to display these values in a readable way, and the tool we have chosen is UBIDOTS, the reason behind this choice is that it allows us easy communication with Sigfox, and the ability to display values in all kinds of styles, and more importantly, being able to showcase the evolution of our data throughout time.
The above image shows the configuration that allows us to send the data to Ubidots, we only need to specify the destination, and the data we are sending.
When the data is received on ubidots, we can process it, by applying mathematical operations on it, then choose the way we want to display it.
Ubidots is also easily accessible everywhere, which would allow the farmer to check on his bees as often as needed.
Conclusion :This project was a great experience, we got to create a system that incorporates multiple types of technologies, while working on a real life subject, where our system would be helpful and more than just a school project.
This was also the first IOT experience for most of us, it allowed us to get into this big world in a very accessible manner.
We have also learned the importance of project management, a facet that we could improve on in the future, its importance was also heavily emphasised by the current COVID crisis, which caused multiple unexpected absences, where we had to adapt to overcome them.
Comments