47
Engineering Project PI6 GRENOBLE INP – ENSE3 | 21 AVENUE DES MARTYRS -CS 9062438031 GRENOBLE CEDEX 1 Greenhouse TECHNICAL REPORT Elsa Chony Sophie Colin—Haag Adrien Denaclara Josefin Ek Martin Forestier Maysaa Khalil Emilien Leroquais Clément Marty Isabelle Mercier Project’s holder : Benoit Delinchant Coordinator : Mauro Dalla Mura

Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

  • Upload
    doanthu

  • View
    217

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

Engineering Project PI6 GRENOBLE INP – ENSE3 | 21 AVENUE DES MARTYRS -CS 9062438031 GRENOBLE CEDEX 1

Greenhouse TECHNICAL REPORT

Elsa Chony Sophie Colin—Haag

Adrien Denaclara Josefin Ek

Martin Forestier Maysaa Khalil

Emilien Leroquais Clément Marty

Isabelle Mercier

Project’s holder : Benoit Delinchant

Coordinator : Mauro Dalla Mura

Page 2: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

1

ABSTRACT This engineering project deals with the connected MyFood greenhouse on the roof of the ENSE3.

Its aim is to provide a new solution for autonomous and local production of fresh fruits and vegetables for

new smart cities. This project englobes actually a lot of domains : an agricultural aspect with the creation

of an aquaponic cycle - a quasi-closed cycle where plants and fish are in symbiosis to save water ; an

electrical aspect with the production and self-consumption of energy thanks to photovoltaic panels and a

battery pack ; a mechanical aspect with the motorization and automatization of a window to regulate the

temperature inside the greenhouse ; and a programming aspect to monitor the different sensors in the

greenhouse (pH, redox potential, temperatures, dissolved oxygen). All the data are managed thanks to a

Raspberry card and the communication protocol Sigfox. Connected wattmeters linked to the Raspberry card

carry out the management of energy and an electrical box assures the securing of the electrical installation

and connected wattmeters are necessary. Ammoniac is also necessary to make the aquaponic cycle.

Another important part concerns time management, communication and budget management. Despite the

waiting time because of the different approaches (estimates, gather of the necessary mechanical tools)

which slows down a little bit the project, the plants are now growing inside the greenhouse, the cycle with

ammoniac is beginning and fish are growing in the pond, the electrical box is prepared to be installed and

linked to the solar panels and the motor for the window is installed. The lack point of the project concerns

the sensors that we do not received due to a problem of ordering but even if further works are necessary

to finish the working of the greenhouse, the project shows the possibility of producing fresh fruits,

vegetables and fish autonomously.

TABLE OF CONTENTS Abstract ........................................................................................................................................................... 1

Introduction..................................................................................................................................................... 3

Acknowledgments ........................................................................................................................................... 4

I. AgriculturAL part ..................................................................................................................................... 5

A. The planks ....................................................................................................................................... 5

B. the Ecosystem ................................................................................................................................. 5

II. Electrical part .......................................................................................................................................... 6

1. Securing the installation ..................................................................................................................... 6

A. Context ........................................................................................................................................... 6

B. Sizing and design of the installation ............................................................................................... 7

C. Orders and organisation of the electrcial box, WIRING ................................................................. 8

2. Connected wattmeters ....................................................................................................................... 9

a. Measure at the DC side ................................................................................................................ 10

b. Measure at AC SIDE – USE OF PZEM004t ..................................................................................... 13

Conclusion of the electrical part ............................................................................................................... 16

III. Programming part ................................................................................................................................. 16

1. Hardware part ................................................................................................................................... 17

A. Ordering the components ............................................................................................................ 17

Page 3: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

2

B. Making the connections ............................................................................................................... 17

C. Issue with the order ...................................................................................................................... 18

2. Software part .................................................................................................................................... 18

A. Code provided by myfood community ......................................................................................... 18

B. Network used ............................................................................................................................... 18

C. Final results ................................................................................................................................... 21

IV. Mechanical part ................................................................................................................................ 22

1. Choice of the motorized system ....................................................................................................... 22

A. Choice of the solution ................................................................................................................... 22

B. SIZING AND specifications ............................................................................................................ 23

C. Comparison of several products ................................................................................................... 23

2. Automatization of the motor ............................................................................................................ 24

A. Connection with the Arduino ....................................................................................................... 24

B. The computation control .............................................................................................................. 24

Conclusions - results ...................................................................................................................................... 25

Possible improvements – What to do in the future .................................................................................. 25

Agricultural part .................................................................................................................................... 25

Electrical part ........................................................................................................................................ 25

Programming part ................................................................................................................................. 26

Mechanical part .................................................................................................................................... 26

AGRICULTURAL PART ............................................................................................................................ 26

Table of figures .............................................................................................................................................. 27

References ..................................................................................................................................................... 28

Electrical part ............................................................................................................................................ 28

Appendix ....................................................................................................................................................... 29

A. List of MyFood components available and a picture of the studied greenhouse ............................ 29

B. Electrical scheme of the greenhouse ................................................................................................ 30

C. List of the electrical components and references ............................................................................ 31

F. AED’s estimate we ordered .............................................................................................................. 33

G. List and scheme of the organization of the electrical box ................................................................ 35

H. Code of the PZEM004 on Arduino .................................................................................................... 38

I. Code for the DC wattmeter .............................................................................................................. 39

J. Planks estimate ................................................................................................................................. 39

K. Comparison table of several system to open the greenhouse window ............................................. 0

L. Code for the test of INA 219 ............................................................................................................... 0

Page 4: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

3

INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesn’t seem like a

good idea nowadays with all this technological advance. The necessity to produce our own food in a

sustainable and autonomous way pave the way toward a new agriculture process where three organisms

(fish, bacteria and plants) collaborate in a greenhouse using self-produced energy to power an advanced

monitoring system, resulting in a 90% savings in water consumption.

The engineering project “greenhouse” enables to make the greenhouse on the roof of GreEn-ER

work. Indeed, at the end of the project:

• Fish and vegetables/fruits will be in symbiosis in a smart and connected greenhouse

• The greenhouse will be temperature controlled by a motorization managing a window opening

• The greenhouse will be autonomous in energy thanks to photovoltaic panels already installed

and a battery pack

• The greenhouse will be monitored for temperature, pH, redox potential and dissolved oxygen,

and production and energy consumption will be made available on the collaborative website of

the pioneers of aquaponics.

Part Members Main goal(s)

Electrical Clément Marty and Sophie Colin--Haag

- Secure the installation - Connection of the PV / batteries / inverter - Measurement of the consumption and production of energy with connected wattmeters

Mechanical Martin Forestier, Josefin Ek and Isabelle Mercier

- Regulate the temperature inside the greenhouse thanks to a motorized opening of the windows

Programming Maysaa Khalil and Emilien Leroquais

- Provide the connection between the sensors’ data and the application - Control and supervise the system

Agricultural Elsa Chony and Adrien Denaclara

- Raise plants and fish - Animate the MyFood community - Buy planks to finish the terrace

Figure 1 : Goals of the different parts

Remark: We decided to write as much as we needed to in order to well explain what we had done for the

future of this project. It was also an ask of the project holder Benoit Delinchant.

Page 5: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

4

ACKNOWLEDGMENTS First of all, we wanted to warmly thanks both Benoit Delinchant and Jérôme Ferrari who were our main

points of contact in charge of supervising and helping us to carry out the project. Christophe Rousseau was

the technical referent who provided us with all the technical tools, advice and contacts. He also made it

possible for us to exchange with specified professionals such as Antoine Labonne (for electronic issues) or

Alexis Derbey (Safety and environment referent). Then, Romain Polizzi played a great role when dealing

with the electrical installation. He was really involved in our project and a relevant source of advice in the

electrical domain. We wanted to thank the G2Elab for the numerous material resources we used during the

project. Finally, the company Botanic constituted a precious help in creating a successful partnership as

well as MyFood. Finally, we would like to dedicate this report to our loving Adrien The Fish, who died too

young alone in the dark depth of the pump.

Page 6: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

5

I. AGRICULTURAL PART A. THE PLANKS The first objective was to end the terrace by buying the seven missing planks and install them. The

initial supplier in Lyon did not propose the delivery under fifty planks. They had to be found in Grenoble.

Nevertheless, each company produces its own plank’s models. We proposed several estimates to Benoit

Delinchant (available in appendix I). Therefore, to ensure a uniform terrace, the only possible solution was

to let the researchers buy and go get the planks when then were near Lyon.

B. THE ECOSYSTEM

Figure 2 : Aquaponics cycle

Every elements had to be prepared to ensure the living conditions of the plants and the fish at the

end of the project. The main criterion was to ensure low maintenance needs.

1. Maintenance of the greenhouse The central task was to ensure the maintenance of the greenhouse. As the ammoniacum cycle

explained above encourages the development of seaweeds, the pump filter and the pool had to be cleaned

regularly so the pipes would not get obstructed. The water was fully changed one time, three times partially

and the level was monitored to avoid pump cavitation. Thus, we had to add some water.

Enriching the water with nutriments the plants need was the first step: the ammoniacum cycle. A surplus

of ammonia in the pool develops bacteria transforming nitrites into nitrates. Moreover, as the system was

completely new, and no fish had ever lived in the pool, it contained no ammonia. Consequently, the cycle

explained in the picture above was incomplete. For 5 weeks we added 30mL of ammoniacum each week in

the water. This amount ensured the right level of nitrates for the plants and not a too high one for the fish.

Afterwards, the aquaponics cycle will manage the nitrates level. The quantity of food also influences the

nitrates level, as if it is not eaten, it is transformed into nitrates.

Finally, the pool had to be equipped with an automatic feeder and food had to be bought. Therefore, a

partnership was negotiated with the shop Botanic. They offered the ten gold-fish in return of advertisement

for their shop. The feeder is fixed but some problems need to be solved: the humidity of the greenhouse

lead to it dysfunction.

2. Implementation of the plants First, we planted seedlings relatively early (end of March) to be sure the plants could be planted in

April or May and the system tested. The MyFood manual helped us to determine the right period of seedling

for each plant.

Page 7: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

6

We were in contact with MyFood to answer some of our questions like the decision whether to use water

plants or not to increase the oxygen level in the pool. We finally decided not to because they are too

invasive and impose too much maintenance.

We wanted to install the plants right before the fish to ensure a right level of nutriments, but the arrival of

the latter was delayed because of the shop. As they were getting too bulky in the pots, the plants were

finally installed in the zipgrows the 3rd of May, as the pump was already functioning.

Results Like in any other types of agriculture, some seeds did not survive. Therefore, we planted several of

each species.

3. The implementation of the fish The first step was to choose which species we would have in the pool. To guarantee a simple and

hopefully successful first experience in aquaponics, gold fish appeared adapted to our needs. Indeed,

temperatures between 5 and 30°C, which are not too constraining, suit them contrarily to crayfish or koï

carps which are more fragile. As a consequence, no heater will a priori be needed during the winter. In

addition, climate conditions of the greenhouse will correspond more precisely to their natural cycle.

Consequently, as they could feel the seasons, their reproduction will be facilitated. We also added rocks to

enhance their living conditions and enable them to hide.

Results It is now too early to check if the fish feel good in their new environment but after a week they seem

acclimatized. The fish Adrien unfortunately died. He hid in the pump and when the latter was turned on he

did not make it. Rest in Peace Adrien.

Conclusion of the agricultural part This project was highly enriching for us. Discovering and managing in detail the functioning of this

fragile and living system and take care of it forced us to stay watchful all along the process and to think on

a large time scale. It also helped us improve our negotiation skills with the partnership with Botanic. All the

knowledge on plants and fish is also valuable in our personal activities like the role of several material such

as iron and ammoniacum.

Finally, the possibilities to use this greenhouse are quite huge. We had the chance to have the time

to evaluate its possible improvements.

II. ELECTRICAL PART

The main goal of the electrical part was to make the greenhouse autonomous energetically, by

securing the electrical installation and by connecting the PV and the batteries to the different devices:

pump, motor, sensors. A secondary aim was to measure the consumption and production of energy with

connected wattmeters.

1. Securing the installation A. CONTEXT First of all, it is necessary to precise that the greenhouse had been already installed on the GreEn-ER’s

roof few months ago, in May 2017. But the company MyFood didn’t totally finished the installation so there

Page 8: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

7

were a lot of cables hanging around, the box containing dangerous electrical components wasn’t insulated

and waterproof, the batteries were lying on the floor without any protection, the transformer (not

waterproof) of the pump was caught by the basin and even the general power supply as well as PV panels

weren’t fully secured: there was a real safety problem.

The first thing to do was to identify the different components available inside the greenhouse. This

list is given in A. After that, we focus on noticing the different issues concerning safety inside the

greenhouse with the Safety and environment referent Alexis Derbey. The results were crystal clear: the

installation suffers from an important lack concerning safety standards. It has been decided together with

the technical referent for the electrical part Romain Polizzi and Christophe Rousseau that an external

isolated and reliable electrical box containing all the powered component had to be established in order

to secure the installation. We chose the electrical box ARCA 806030 made polycarbonate and respecting

the IP66 standards. The dimensions are 800 x 600 x 300 because we wanted it to be larger if new

components should have to be add.

Remark: another little box should have been bought and put in place inside the greenhouse to keep the

Raspberry Pi card. It was aimed to protect the card meanwhile enabling the user to have a direct access to

it with a USB plugger for example. In a first time, we focused on the power electrical box because it

represents the heart of the project. We keep the initial box given by MyFood to protect the Rasberry Pi card

because it remains safe event if it’s not the easiest way to get an access for the user.

B. SIZING AND DESIGN OF THE INSTALLATION In order to have a reliable and autonomous installation, we needed to design the components in

balance with the consumption (pump, motor for the window, power for the Rasberry Pi card), production

(PV panels, main power supply) and storage (battery packs), and with the voltage and current of the

different devices.

Figure 3 : Consumption side

The chart given in appendix D shows a gross approximation of the production of PV panels for each month

thanks to PVGIS (source [4]). We clearly saw that for November, December and January, the consumption

is over the production of energy. That is why the installation needs to use the main power electricity in

some occasions. The specific case of daily energy management for the month of December had been

studied in appendix E.

Besides, it was actually necessary to protect the electrical circuit from damages:

- We use thermal magnetic circuit breakers (automatically operated electrical switch) to protect

from excess current due to an overload or short circuit.

- We use a disconnector to be able to manually cut the power circuit at any time.

- The Electrical box also necessarily contains an emergency stop button and a LED for operation

indicator.

Page 9: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

8

- Finally, fuses aim to provide overcurrent protection of an electrical circuit especially for the

batteries.

To sum up, the scheme of the electrical circuit we made is given below and in appendix B. It has been done

with the software QElectroTech.

Figure 4 : Scheme of the electrical installation with QElectroTech

C. ORDERS AND ORGANISATION OF THE ELECTRCIAL BOX, WIRING The next step was to find adequate components and their references in order to ask for estimates to

the three official suppliers for electrical components of Grenoble INP with “Lettres de consultation”. The

list of chosen components is available in appendix C and the chosen estimate that we ordered in appendix

F. Romain Polizzi ordered the components but we didn’t receive them before the end of the project.

However, we chose to wire if we have time as soon as we receive the components as it is the concrete part

of our project.

In order to organise as well as possible the electrical box, we made a list of the different components

we have or we ordered and scheme of its organisation, available in appendix G. To clarify the general layout

of the electrical box, we added cable trays, terminal blocks, coloured cables or even a ground plate. All

these components are illustrated in the appendix mentioned above.

Page 10: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

9

Figure 5 : Scheme of the assembly of the electrical box

After that, we went to the mechanical service in order to prepare the necessary holes onto the mounting

plate but also cut the cable trays to perfectly fit the box dimensions. Due to delays for the ordering and

the administrative approaches we hadn’t the time to wire the electrical box but we the previous scheme

of the assembly facilitates the work for the “future”. Here is the scheme summarizing the organization of

the measurement devices on the installation with the use of both AC and DC wattmeters. All these tools

allow us to know in real time how the installation and the inverter manage the energy from the

production to the consumption side.

Figure 6 : Scheme of the measurement side

2. Connected wattmeters In order to measure produced and consumed energy to manage the installation, we have to work with

connected wattmeters (for AC and DC grid). One wattmeter in the DC side would measure the production

of the solar panels in real time, others would measure the consumption for each device (pump, Raspberry,

motor), and others before the different devices would measure the consumption in AC.

Page 11: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

10

A. MEASURE AT THE DC SIDE

i. First solution - homemade connected wattmeters We first thought to build our connected wattmeter on an electronic card that we link to the Raspberry

card to manage the data. A first part would measure the voltage and another part the current, the Raspberry

would do the multiplication to compute the power.

Measure of the voltage The measurement of the voltage is done with a differential operational amplifier, which enables to

adapt the available voltage from the PV panels (0-60,3V) to the measurable voltage of the Raspberry (0-5V)

as follow:

Figure 7 : Voltage measurement : assembly and test

We have 𝑉𝑠 =𝑅3

𝑅1𝑉𝑃𝑉 with 𝑅3 = 𝑅4 𝑎𝑛𝑑 𝑅1 = 𝑅2, so here is the gain

𝑅3

𝑅1= 0,0829. The test was conclusive

: we obtain 60.3 × 0.0829 = 5𝑉, as we wanted.

Current measurement To measure the current in DC, a Hall effect sensor or a shunt resistance for which we measure the

voltage in parallel is needed. But actually, by lack of time (after this test, we would have to make an

electronic card), we found out another solution.

ii. Second solution - INA 219 – for the pump, motor, batteries and Raspberry card

Jérôme Ferrari helped us and we found out the card INA 219. This card is composed of a shunt sensor which

enables to measure current, voltage and make a multiplication to compute the power. It enables also to

manage the measure data with a communication interface. The technical documentation is available here.

0.01 ohm shunt

I2C Address setting

Page 12: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

11

Figure 8 : INA 219 - all the components has been weld

Main characteristics

Current range +/- 3.2 A

Voltage range 0-26 Vdc

Power 0 -75 W

Precision 1%

First test on a demo Important remark: For the management of data, for the tests we used

an Arduino Uno rather than the Raspberry card because it was easier

to us (to gain time). Moreover this Raspberry card works under

Windows and for the next years, Jérôme Ferrati and Benoit Delinchant

advised us to work under Linux in a parallel system as it is open-source.

We maintain the Raspberry under Windows to be connected to the

community. (See the programming part.) So we would have two

systems.

We test the assembly on a demo with a feeder, a reactor (like an IPX, a

system able to manage the relays) and circuit breakers, linked to the

grid:

Figure 9 : Demo

The connections are shown below:

Figure 10 : Connections between the Arduino, the circuit and the INA 219

Page 13: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

12

The code for the Arduino is available in the appendix I. We obtained the following results:

Figure 11 : Results on the demo

The test is successful.

Second test on the greenhouse With the help of Jérôme, we test the wattmeter on the motor. To do that, we control the motor and

measure the consumption of energy. The code written with the help of Jérôme is available in appendix L. It

is linked to the relays of which the assembly is shown in the mechanical part. The assembly of the Arduino

and the wattmeter is the following:

Figure 12 : Assembly of the INA219 and the Arduino in the greenhouse

The test was successful, here are the results for the way down and the way up of the motor :

Page 14: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

13

Way down of the motor Way up of the motor

iii. Third solution - for the solar panels As the voltage is to high (48,18 Vmpp – 60,3 V in short circuit), we can’t use the previous solution. The one

found out is a wattmeter which only shows the data with communicate available here. The problem is

that this wattmeter only displays the data and don’t make them available on a monitor for example. We

will have to modify it to manage the data in real time. This link explains how to do it. By lack of time, we

chose to focus on the two others measurement tools and we didn’t test this solution in the greenhouse.

Main characteristics

Current range 0-100 A

Voltage range 4-60 Vdc

Power 0 - 6554 W

Dimensions 83 mm x 47 mm x 20 mm

Resolution 0.01 A and 0.01 V

B. MEASURE AT AC SIDE – USE OF PZEM004T

For the AC side we used a wattmeter PZEM004t with the help of Jérôme Ferrari. This wattmeter is linked

to an Arduino Nano card.

Page 15: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

14

i. Presentation of the wattmeter PZEM004t

Figure 13 : PZEM004t -

The PZEM004t works for AC “grid” and is composed of a voltage sensor and a current sensor which

transforms the current in voltage via a tor. This last sensor is actually a full core current transformer. The

measured values are then multiplied to compute the active power. The PZEM004t translates directly the

data in machine language which can then be treated by the Arduino or Raspberry card via the TTL serial

data communication interface of the PZEM004t.

Main characteristics

Current range 0-100 A

Frequency 45-65 Hz

Voltage range 80 – 260V

Power 0 -22 kW

Dimensions 74 mm x 30 mm

Precision 1%

Sources: [1] and [2]

ii. First test on the grid of the ENSE3

We first test it on a little installation linked to the sector. The wattmeter is linked to an Arduino

Nano.

Figure 14 : Assembly for the test of the AC wattmeter

The system is the same that for the INA 219.

Connections We put the current sensor around the phase wire just after the circuit breaker. We linked the

cables of this sensor to the PZEM004t card. For the voltage sensor, we put two cables on the

220 V source that we linked to the PZEM004t card which takes care of the multiplication of the

voltage and current data. We linked the PZEM004t to the Arduino as follow :

Current

transformer

TTL

interface

Load

Page 16: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

15

Source [3]

Figure 15 : Connections between the PZEM004t and the Arduino

Then we linked everything to the Arduino card that we linked to the computer. The code is available in

appendix H. The test was conclusive.

iii. Second test in the greenhouse For safety reasons, we use a Bluetooth module HC06 to link the Arduino to the computer without being

next to water and to communicate the data. Jérôme prepared also a system to manage better the

connections between the different cards.

Procedure for the module HC06 1. Connections between the Arduino and the HC06 module :

Figure 16 : Connections between the Arduino Nano and the HC06 module

1. Connections between the Arduino and the computer to transfer the

previous code on the Arduino.

2. Connections between the Arduino and the grid : we switch on the

Bluetooth of the computer and add the HCO6 device to it. The HCO6

creates a new COM8 and then we can open the serial monitor and see the

transmitted data.

Results We link the Arduino card to the greenhouse grid like in the first test :

Figure 17 : Test of the wattmeter on the greenhouse

We connected the wattmeter just after the circuit breakers of the grid, as the driver

isn’t install for the moment. The test on the greenhouse was successful as the picture shows.

Page 17: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

16

Figure 18 : Results

For this test the motor wasn’t connected yet. The consumed power is about 33W, which is coherent with

the first approximation of the consumption of the installation. It corresponds to the consumption of

energy of the pump and on the Arduino.

To sum up the different solutions to measure the consumption and production of energy:

Device

AC

PZEM004t, Arduino and HC06

DC Pump, motor, sensors

INA119, Arduino and HC06

Solar panels here

Figure 19 : Different sorts of wattmeters

Conclusion of the electrical part

The biggest part of the electrical part was the securing of the installation: a design, an organization has

been done to connect the PV panels and the batteries to the devices in a safe way. The major problem

which occurred was the lack of time due to delays, especially with the estimates and order, and the budget

to do this securing (who pays ?). As we didn’t receive the components to wire we study, code and test the

different solutions to measure the consumption and production of energy. We would like to special thank

Jérôme Ferrari who helped us to test and to understand everything with the wattmeters, and Romain

Polizzi who helped us to choose the adequate protections components for the electrical box. We learnt a

lot about how to choose adapted switchgears, how to make an electrical scheme and how to program a

connected wattmeter in AC and DC.

III. PROGRAMMING PART The objective of the programming part is to equip the greenhouse with sensors measuring the

temperature and humidity of the air (TA), the temperature of the water (TW), the amount of dissolved

oxygen in the water (DO), its reduction/oxidation potential (ORP), and its pH. Then, the data collected by

Page 18: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

17

those sensors should be sent to the Myfood application. This would enable the school to check the correct

functioning of the greenhouse at anytime from anywhere.

1. Hardware part A. ORDERING THE COMPONENTS

Because it was included in the greenhouse package of MyFood and as the project began last year,

most of the needed components were already installed in the greenhouse at our disposal. We have access

to a Raspberry Pi card, a RTC Pi Zero, a Sigfox Extension Board, a pH sensor, and a TW sensor. The missing

components are the three last sensors (TA, ORP, and DO), two OEM Simple Development Boards, and two

EZO circuits (make the connection between the sensors and the Raspberry card). Those elements should

have been ordered using the school and G2Elab budgets.

Figure 20 : Costs of different programming hardware

B. MAKING THE CONNECTIONS

Figure 21 : connection to the sigfox extension board

Page 19: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

18

The four Atlas Scientific sensors must be plugged on EZO circuits, which are linked to the Raspberry

card USB ports. The fifth sensor, measuring the temperature and humidity of the water, is connected to the

RTC PI zero clock, linked to the Raspberry card via GPIO pins.

Then, the Raspberry card is connected to the Sigfox extension board (using the GPIO pins), which

is responsible for sharing the data with the website.

C. ISSUE WITH THE ORDER

Unfortunately, due to a communication mistake between our team and the researcher responsible

for buying the components, we spent too much time ordering the sensors. We did not manage to receive

them on time so the greenhouse is still not fully equipped.

2. Software part A. CODE PROVIDED BY MYFOOD COMMUNITY

The objective of the software part was to program the Raspberry card. First, the data acquired by

the sensors have to be saved in the memory of the card. Then, those data must be sent to the LoRa

network, so that it can be shared with the Myfood website.

The community of Myfood provided all the needed codes: we simply had to download them from

the Github library. Then, we did some tests in the laboratory of the school in order to understand how the

program works. We were helped by researchers of the G2Elab (mostly by Jérôme Ferrari), who guided us

and provided us an extra Raspberry card for testing.

B. NETWORK USED

i-Comparison between LoRa and SigFox LoRa uses CSS (Chirp spread spectrum), Sigfox uses UNB (Ultra narrowband). It means that Sigfox signal

has higher spectral efficiency and can mitigate the noise better. Sigfox uses DBPSK (Differential BPSK) for

uplink & GFSK for downlink.

Figure 21 : SigFox connection scheme

Page 20: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

19

LoRa is owned by Semtech and thus, you have to use Semtech modules for your development. Sigfox is

sharing their reference design with chip vendors, so everyone with Sigfox certification can sell the chips

and get share of LPWAN "revolution".

Both came out of France! Both have star topology. Both use unlicensed ISM band.

Sigfox has higher range and one BS can connect much more devices.

LoRa is still dominant in Europe and its deployment is up to the community. You can also buy your own

base station (for 500Euro+) and use it.

Sigfox is very practical for infrequent transmissions and offers longer battery life. LoRa uses more

bandwidth.

Figure 22 : LoRa connection scheme

Both are trying to be the global IoT network and we'll see it in the future. Operators are leaning on NB-IoT

& LTE-M, so we'll see who wins the "IoT war" in the future.

Using LoRa is free. Sigfox is almost free (costs 1 Euro per device per year).

LoRa has weaker security compared to Sigfox. Sigfox is good to prevent replay and man-in-the-middle

attacks. Uses AES encryption with HMACs with private key that's embedded in the device + some

sequence number. Though, this's not a big deal as 12 bytes of small packets cannot carry critical data (e.g.

credit card info, pwd etc.).

ii-A Parallel Connection with LoRa: Due to the free connection of LoRa,, we decided to add a LoRa communication capability as a parallel

connection with the SigFox. The idea was to check if we can use the same equipment to transmit data

through LoRa.

The idea is to add another raspberry to have the connection with the Lora board. We have to connect a

LoRa radio module to the Raspberry's GPIO header. Just connect the corresponding SPI pin (MOSI, MISO,

CLK, CS).

Page 21: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

20

Figure 23 : Connection between LoRa radio model and raspberry GPIO header (1)

Figure 24 : Connection between LoRa radio model and raspberry GPIO header (2)

The simplest and recommended way to install a new gateway is to use zipped SD card image based on the

Jessie Raspbian OS and perform a new install of the gateway from this image. In this way we don't need to

install the various additional packages that are required. Once we have burnt the SD image on a 8GB

(minimum) SD card, we insert it in your Raspberry and power it.

The current image has everything we need including:

• the simple gateway web admin interface for easy configuration and management

• mosquitto-clients package installed to have mosquitto_pub and mosquitto_sub commands

• Node-Red and npm upgraded with node-red-contrib-thingspeak42 installed

• a ready-to-use Node-Red flow to show how received data can be uploaded to MQTT brokers and

ThingSpeak

When booting from SD Card:

The LoRa gateway program starts automatically when the Raspberry is powered on.Then ,we connect to

our new gateway, and upgrade to the latest gateway version.After updating, we configure our gateway.

iii- Connection of two raspberries: For the connection of the two raspberries, we propose 3 solutions :

Page 22: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

21

• USB drive - copy the files from one Pi on to the drive, and then move them to the other.

• Network transfer - via a protocol such as FTP, SFTP. The Pi's have to be connected to the same

network (e.g. via wireless USB adapters), we will also need their IP addresses and a server running

on at least one of them.

i.e Create a TCP socket server on Raspberry B and a corresponding TCP socket client on Raspberry A.

Basically we have to import the socket library (import socket) and create a socket object.On the first side

we bind the servers own ip address and any arbitrary unused port to the socket, then start listening for

incoming requests.On the second side, again we first create a corresponding socket but then connect it to

the listening remote servers ip address and port.We can monitor our GPIO in a loop and send the data

using sendall. We have to make sure our receive buffer on the first side is big enough to hold the data you

send.

• Serial - there are two serial Pins on each Pi's GPIO, weshould be able to connect them to get a

basic serial connection:

Figure 25 : Basic Serial Connection

C. FINAL RESULTS We managed to implement the codes into the Raspberry card, and it is now working. The

temperature of the water and the pH of the water (the two only parameters measured by our sensors at

the moment) are available on the website, in real time.

Figure 26 : Available Data on MyFood site

Page 23: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

22

Conclusion of the programming part Unfortunately, and due to a communication mistake, we did not manage to receive the sensors on

time. The greenhouse is not autonomous by the end of the project.

However, the system is working for the two sensors already in place, and the others are ordered.

The connections between the missing elements and the Raspberry card should be quite simple to put in

place, because it will be very similar to the ones we already made.

IV. MECHANICAL PART The objective of the mechanical part was to find a way to regulate the temperature inside the greenhouse

autonomously. At first, we picked one solution and then we sized it for being able to choose which

product would be the more adequate for our system. Secondly, we designed how to connect the motor

with an Arduino so as to control the window opening or closing autonomously.

1. Choice of the motorized system A. CHOICE OF THE SOLUTION

There are several ways to regulate the temperature inside an area, as for instance air-conditioning,

shades closing or window opening. In our case, the greenhouse didn't have shades and opening the roof

window seemed more natural and would obviously consume less energy than an air-conditioning system.

Moreover, some research confirmed that the window opening is often used to regulate the temperature

naturally inside greenhouses.

Then, there are several autonomous systems to open a window, depending on the application, the

environment, and the configuration (bottom-hung inward opening, top-hung outward opening, horizontal

skylight…). In our case, the greenhouse is equipped with a roof window so it corresponds to a kind of

horizontal skylight configuration.

Figure 22: Different relations between the force and the window's weight, depending on the configuration

For the greenhouse we measured 𝐹 ≈ 50 𝑁 so we estimated the weight of the window, thanks to the

relation above: 𝑃 ≤ 100 𝑁.

Four systems stood out from our research:

- An electric cylinder

- A natural system, which works without electricity. It opens or closes the window thanks to the wax

reaction, depending on the inside temperature.

- A chain actuator, often used for domestic window opening

Page 24: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

23

- A motorized rack

Because this a part in mechanical engineering we took away the natural system cause we wanted to get

more knowledge about how to install a motorized system. As we didn’t need to lift heavy loads, we wanted

to order a chain actuator, less expensive and more adapted to computation of control system. However,

with the help of the supplier we concluded that a motorized rack is more common in configuration of roof

window. So we finally choose The AIRWIN A45 230mm 24V of Comunello.

B. SIZING AND SPECIFICATIONS As the environment of the greenhouse has a high level of humidity and dust, the motorized system needs

to be waterproof and protected against dust. So, one decisive criterion was the IP which needed to be at

least IP44.

Usually, it is considered an overload of 25kg /m² for the snow in winter. As we measured 80cm*76cm*3cm

for the window’s size, we estimated this overload at 16 kg. So, the values become as following:

𝑃 = 160𝑁 and 𝐹 = 130 𝑁

Then, the voltage of 24 V was chosen for safety reason.

Force (N) Course (mm)

Voltage (V) Size (mm) IP Window’s height Comments

>130 200

(max 350) 24Vcc 550*x*50 >IP44 800 mm

For roof window + opening and closing

C. COMPARISON OF SEVERAL PRODUCTS

Several products have been compared and selected by the criteria we thought to be the most important

ones. Some examples of the criteria are price, force, delivery time and water protection. A few of the

system were not even considered due to a too low IP protection, for example. The table of all the

products compared is available in annexes. From this table and by talking to companies we decided to

choose the motorized rack. The picture below of the white motor is the one we have been installing in the

greenhouse.

Figure 23: The first choice (chain actuator LIWIN) Figure 24: The final choice (motorized rack AIRWIN)

Page 25: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

24

Figure 25: Characteristics of the chosen motor, among the different AIRWIN racks available

2. Automatization of the motor A. CONNECTION WITH THE ARDUINO

Three positions of the motor are needed: opening – closing – stopped. To connect the motor we had 4

relays available which can be controlled by an Arduino. So, we determined how to create these 3 positions

with the 4 relays, thanks to Jérôme Ferrari‘s help on the relays’ operating. The first two relays 1 and 2 are

dedicated to determine the sense of rotation of the motor and the relays 3 and 4 aim to make it work or

not.

Figure 26: Connection of the motor

B. THE COMPUTATION CONTROL

We expressed how to compute the control of the motor and Jérôme Ferrari helped us to traduce it in C

language for the Arduino. Actually, the window opens when the inside temperature exceeds 27°C and closes

when it is below 23°C. The code can be found in appendix L and this part is linked with the electrical part

which tried to measure the consumption of energy of the motor.

Conclusion of the mechanical part The main objective of the mechanical part was to find a motor to monitor the opening of the greenhouse

window to ensure a proper temperature inside. There was some problems along the way but the major

problem was to get price estimations and also the delivering time of the product, which got almost 2 weeks

delayed. After many phone calls and emails, we managed to order the Comunello Airwin A45 24V, and later

to install it on the greenhouse and plug it to the electrical installation. Working on the mechanical part

taught us how to deal with suppliers, to take decisions and also helped us to develop new skills out of our

specializing domain (as plugging an Arduino and relays).

Page 26: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

25

CONCLUSIONS - RESULTS Fish and plants are almost autonomous except the maintenance of the pipes because of the

seaweed and they appear happy in their new environment. The temperature regulation is working thanks

to the motor connected to the PV-panels and the code that make sure the window starts to open if it gets

warmer then 23 degrees. For the electrical part, the goals are almost reached : we are waiting for the

components of the electrical box, before the wattmeter could be ordered. Hopefully there will be enough

time the last weeks to finish everything and make it completely autonomous and otherwise we hope there

is another group who can take over and do some more improvements next year. We are now looking

forward to harvesting the first vegetables!

Possible improvements – What to do in the future AGRICULTURAL PART

The last mission of the project is to ensure the sustainability of it. The MyFood maintenance manual

was adapted to our project, completed and translated in English for the next take-carers of the greenhouse

(Bee Green and engineering projects). We also wrote an article in collaboration with the members of this

association that we published on the Bee Green Facebook page (link here).

Some improvements are considered. The Limitation of the evaporation (20 L/week of losses) phenomena

would be a great advance. Monitoring the water level with sensors could avoid the pump deterioration. For

that, we contemplate two types of sensors. Ultrasonic ones are quite difficult to implement and could be a

goal for the next engineering projects. To protect the system during the summer, a simple level sensor could

be installed, which would stop the pump if the level is too low.

During the winter, the risk is that the water freezes and the pump gets destroyed. A bubbler system could

prevent this by making the water circulate.

The pipes are sometimes obstructed by seaweed. We discovered that the filter and the pump were

disconnected during the last manipulation of the pump. We reconnected them. We will observe if the

incident keeps occurring and if we need to change the filter and/or the pipes. Nevertheless, we found a

solution to unblock the pipes on the Community. A special pipe has to be installed in addition and the

pression increased temporarily.

Finally, the increase of the number of fish and plants appears to be the main one. The next take-carers of

the greenhouse will have to monitor the nitrate cycle to estimate if the number of plants and of fish enable

the aquaponics cycle.

ELECTRICAL PART The future goals of this part are summed up in this table:

Goals For the future – next goals

Secure the installation and connect the PV panels Wire the electrical box and install it.

Measure the consumption and production of energy

• Install the parallel system (Raspberry under Linux)

• Translate the codes for this card.

• Order the different wattmeters.

• Transform the one for the PV panels to communicate its data and test it.

• Install the different wattmeters.

Page 27: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

26

• Manage the data on a website ( with programming part).

To code every wattmeters on the same Arduino (or Raspberry card) and to connect everything could also

be an amelioration or a future goal. We could make the scheme of the connections on the Arduino. (all the

wattmeters on it).

Figure 27: Connexions of measurement tools on the arduino

PROGRAMMING PART For the programming part, we are waiting for the sensors to install them and provide a connection to the

MyFood community so that we can say that the greenhouse is fully motorized through the application. Also,

we are willing to develop a parallel connection to LoRa communication network as mentioned above.

MECHANICAL PART For the mechanical part, one problem that needs to be solved is that the motor is moving during the first

seconds of the opening of the window. There might be a problem with the angel the motor was installed

and therefore it is not completely stable during the opening. We were also not sure at which certain

temperature in the greenhouse that we should start to open and close the window. One more task could

be therefore to investigate if the temperature inside follows a good trend and otherwise make some

improvements in the code to make sure the fish and the vegetables get the best possible environment.

AGRICULTURAL PART Another aspect for a future group of students would be to investigate if it is possible to buy a heater to

extend the season possible to grow inside the greenhouse and make it all-year around greenhouse. This

would include making the connections between the solar panels and how to install the heater. Before

buying a heater they would need to do calculations if the plants can get enough sunlight during the winter

time and if the extended time of use is equal to the costs.

Page 28: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

27

TABLE OF FIGURES Figure 1 : Goals of the different parts ............................................................................................................. 3

Figure 2 : Aquaponics cycle ............................................................................................................................. 5

Figure 3 : Consumption side ............................................................................................................................ 7

Figure 4 : Scheme of the electrical installation with QElectroTech ................................................................ 8

Figure 5 : Scheme of the assembly of the electrical box ................................................................................. 9 Figure 5 : Scheme of the measurement side ................................................................................................... 9 Figure 6 : Voltage measurement : assembly and test ................................................................................... 10 Figure 7 : INA 219 - all the components has been weld ................................................................................ 11

Figure 8 : Demo ............................................................................................................................................. 11 Figure 9 : Connections between the Arduino, the circuit and the INA 219 .................................................. 11 Figure 10 : Results on the demo .................................................................................................................... 12

Figure 11 : Assembly of the INA219 and the Arduino in the greenhouse ..................................................... 12

Figure 13 : PZEM004t - .................................................................................................................................. 14

Figure 14 : Assembly for the test of the AC wattmeter ................................................................................ 14

Figure 15 : Connections between the PZEM004t and the Arduino ............................................................... 15

Figure 16 : Connections between the Arduino Nano and the HC06 module ................................................ 15 Figure 17 : Test of the wattmeter on the greenhouse .................................................................................. 15

Figure 18 : Results ......................................................................................................................................... 16 Figure 18 : Different sorts of wattmeters...................................................................................................... 16

Figure 19 : Costs of different programming hardware.................................................................................. 17 Figure 20 : connection to the sigfox extension board ................................................................................... 17

Figure 23: Different relations between the force and the window's weight, depending on the configuration

....................................................................................................................................................................... 22

Figure 24: The first choice (chain actuator LIWIN) ........................................................................................ 23 Figure 25: The final choice (motorized rack AIRWIN) ................................................................................... 23 Figure 26: Characteristics of the chosen motor, among the different AIRWIN racks available .................... 24

Figure 27: Connection of the motor .............................................................................................................. 24

Figure 28 : Electrical box at the end of the project ....................................................................................... 36 Figure 29 : Scheme of the assembly .............................................................................................................. 37

Page 29: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

28

REFERENCES

Electrical part [1] PZEM-004T Moniteur de puissance multifunction. 2018. PZEM-004T Moniteur de puissance

multifunction. [ONLINE] Available at: https://abra-electronics.com/sensors/sensors-current-en/pzem-

004t-multifunction-power-monitoring.html?sl=fr. [Accessed 21 May 2018].

[2] PDAControl. (2018). Electricity consumption meter Peacefair PZEM 004 + ESP8266 & Arduino Nano -

PDAControl. [online] Available at: http://pdacontrolen.com/electricity-consumption-meter-peacefair-

pzem-004-esp8266-arduino-nano/ [Accessed 16 May 2018].

[3] Instructables.com. (2018). Power Peacefair PZEM 004 + ESP8266 & Arduino Nano. [online] Available at:

http://www.instructables.com/id/Power-Peacefair-PZEM-004-ESP8266-Arduino-Nano/ [Accessed 21 May

2018].

[4] PVGIS (2018) PV potential estimation utility. [online] Available at:

http://re.jrc.ec.europa.eu/pvgis/apps4/pvest.php?lang=fr&map=europe [Accessed 21 May 2018].

[5] Henry's Bench. 2018. Arduino INA219 Current Voltage Tutorial | Henry's Bench. [ONLINE] Available

at: http://henrysbench.capnfatz.com/henrys-bench/arduino-current-measurements/ina219-arduino-

current-sensor-voltmeter-tutorial-quick-start/. [Accessed 24 May 2018].

Page 30: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

29

APPENDIX

A. List of MyFood components available and a picture of the studied greenhouse

1. 6 PV panels installed

2. Transformer / inverter for the

pump next to the basin

3. Pump DC 50 W

4. 2 batteries 12V-22Ah

5. General power supply

6. Electrical Box:

- Raspberry – Pi card

- 230/5V transformer + a C10

circuit breaker for the

Raspberry-Pi

- 2 C10 circuit breakers for the

pump and the ventilation

(unused)

7. A hybrid inverter not put in place:

1

2

3

4

6

5

Page 31: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

30

B. Electrical scheme of the greenhouse

Page 32: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

31

C. List of the electrical components and references

D. Monthly production of PV panels

Months

Irradiance [Wh/m²] (source météo France)

Taverage,max [°C]

Pmpp, corrected from T°C

Wpanels/day [Wh/jour] PVGIS [Wh/jour]

Jan 2,26E+03 5,9 413,3376 9,34E+02 710,00

Feb 3,43E+03 7,8 410,4192 1,41E+03 1 070,00

March 4,96E+03 12 403,968 2,00E+03 1 480,00

April 5,51E+03 15,3 398,8992 2,20E+03 1 600,00

May 5,68E+03 19,9 391,8336 2,23E+03 1 630,00

June 6,20E+03 23,8 385,8432 2,39E+03 1 740,00

July 6,55E+03 26,9 381,0816 2,50E+03 1 820,00

Aug 6,10E+03 26,4 381,8496 2,33E+03 1 700,00

Sep 5,36E+03 21,8 388,9152 2,08E+03 1 540,00

Oct 3,84E+03 16,9 396,4416 1,52E+03 1 130,00

Nov 2,40E+03 10,2 406,7328 9,76E+02 730,00

Dec 1,89E+03 6,4 412,5696 7,80E+02 590,00

We use two different kind of approaches while dealing with production of PV panels.

The first method required data from Méteo France to get the irradiance for each month of the

year. Then, using the technical properties of the considered PV panels, we corrected the real

Power produced taking into account the difference of temperature from the nominal one.

Secondly, we directly get the data of energy produced for each day of a given month using PVGIS

website.

E. Daily production for the worst month: December

Page 33: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

32

Page 34: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

33

F. AED’s estimate we ordered

Page 35: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

34

Page 36: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

35

G. List and scheme of the organization of the electrical box

Page 37: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

36

Figure 28 : Electrical box at the end of the project

Page 38: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

37

Figure 29 : Scheme of the assembly

Page 39: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

38

H. Code of the PZEM004 on Arduino

Source [3]

Page 40: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

39

I. Code for the DC wattmeter

Source [5]

J. Planks estimate

Page 41: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

40

Page 42: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

K. Comparison table of several system to open the greenhouse window

Names Link Price Force (N) Course (mm) Voltage (V) Size (mm) Fixation Comments Obstacle

detection IP Reference Contact

1 ECODIS

EasyDrive LM

http://w

ww.eco

dis.fr/si

tes/defa

ult/files/

docume

ntation/

comme

rcial/ga

mme_b

oitiers_

a_chain

e_electr

iques_b

d.pdf

? traction 50-

200N / thrust

200-800N

125-516mm 24V or 230V ? see the doc 3 or 4 weeks for delivery Yes IP20 LM

EasyDrive

+33(0)478966900

[email protected]

2

Boîtier à chaîne

Smart 200N 230V

filaire Chassis

500-800 MAXI

http://w

ww.vrek

ker.fr/bo

itier-a-

chaine-

smart-

200n-

230v-

filaire-

chassis-

500-

800-

maxi-

a60966.

html

102,74€ traction 250N /

thrust 200N 180-380mm

230V

(monophase)

265x79x41m

m ?

Delivery 24h-48h. Commandable by

button (not included) ? IP20 156941

02 35 74 73 80

(service client)

3

Boîtier à chaîne

LIWIN 350N 230V

Filaire 7035

Chassis 500-

1000 Maxi

http://w

ww.vre

kker.fr/

boitier-

a-

chaine-

liwin-

350n-

230v-

filaire-

7035-

chassis

-500-

1000-

maxi-

a60967.

html

173,12€ traction 350N

/ thrust 350N

9 adjustable

courses :

from 50 to

420mm

24V (or 230V) 390x38x73m

m ?

Commandable by button (not

included) ? ? 15692

03 35 74 73 80

(service client)

4 Boîtier à chaîne

SUPERMASTER

http://so

uchier-

boullet.c

om/Boiti

ers-a-

chaine-

SUPER

MASTE

R.html

? traction 400N /

thrust 400N 450mm 24V (or 230V)

574x80x50m

m

OK see the

doc

Micro interruptor for end course +

thermal protection. Functioning

temperatures: -10°C à 60°C + 60%

of humidity. For a 900mm window

length. Power twice higher (50W)

? IP20

25311-4

(24V) or

25321-4

(230V)

Souchier Website

5 Boîtier à chaîne

KIMO

http://s

ouchier

-

boullet.

com/Bo

itiers-a-

chaine-

KIMO.ht

ml

? traction 200N

/ thrust 200N 210mm 24V

28x28x310m

m ?

3 times slower (8mm/s).

Functioning temperatures: -5°C à

60°C. Position automatically

controlled

Yes IP32 RAL9006 Souchier Website

6 Boîtier à chaîne

VEGA

http://so

uchier-

boullet.c

om/Boiti

ers-a-

chaine-

VEGA.h

tml

? traction 250N /

thrust 250N 300mm 24V or 230V

450x45x32m

m

"easy to

install", with

a swivelling

stirrup

Slow (9mm/s). /!\ with the 230Vca

product: destruction risk of the motor

if opening and closing are

commanded simultaneously

Yes IP30

25013-0

(24V) or

25023-0

(230V)

Souchier Website

7 Boîtier à chaîne

QUASAR

http://so

uchier-

boullet.c

om/Boiti

ers-a-

chaine-

QUASA

R-

TWIN.ht

ml

? traction 300N /

thrust 300N 500mm 24V or 230V

676x32x47,5

mm

Adjustable

swivelling

stirrups Yes IP30

25513-0

(24V) o

25523-0

(230V)

Souchier Website

Page 43: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

1

Names Link Price Force (N) Course (mm) Voltage (V) Size (mm) Fixation Comments Obstacle

detection IP Reference Contact

8 Boîtier à chaîne

24 VDC

http://w

ww.agor

a-

sodesi.fr

/wp-

content/

uploads/

2013/07

/BAC-

24V-

C350-

600-

CDC200

.pdf

? traction 200N /

thrust 200N 200/350mm 24V 405x30x35 ?

Course computable by PC.

Installation kit adapted to aluminium

supports. 10 000 cycles

opening/closing. Active and passive

anti-pinch system

Safety cut

force:

150N

IP50 CDC200 Agora-Sodési

Website

9 Boîtier à chaîne

filaire smart

https://w

ww.fous

sier.fr/b

oitier-a-

chaine-

filaire-

smart/sp

26086

105,97 HT

127,16

TTC

traction 250N /

thrust 200N 180 à 380mm 230Vac

79x265x41m

m ?

Straight chain (double stitch).

Course commandable by dip-switch.

Quick delivery (possible in 24h)

Yes IP20 152082 Souchier Website

10

Ouverture

Automatique

Lucarne Plantiflex

Serre Jardin Not

the objective

https://w

ww.cdis

count.co

m/jardin/

entreten

ir-les-

plantes-

cultiver-

le-

jardin/ou

verture-

automati

que-

lucarne-

serre-

de-

jardin/f-

163020

4-

auc2009

944551

232.html

#pres

Not

available

for the

moment

Lifting

capacity = 7kg

=> thrust =

70N

Length

320mm /

Lifting height :

450mm

? 320x45x50m

m ?

/!\ Restrictied to familial use. The

opening system is autonomous and

works thanks to a hydraulic cylinder

which reacts depending on the

inside temperature. So no electric

supply is needed. Temperature

range of opening = 18°C - 35°C.

Opening angle adjustable

? ? ? Cdiscount Website

11

Ouverture

Automatique de

Lucarne Not the

objective

http://w

ww.serr

e-

jardin.co

m/acces

soires-

aeration

-

serre/28

61-

ouvertur

e-

automati

que-de-

lucarne-

serre.ht

ml

59,00€

Lifting

capacity = 7kg

=> thrust =

70N

? ? ? "Easy to

install"

Delivery : 7 to 9 opened days.

Minimale temperature of opening =

15°C. System working without

electricity, thanks to special wax

which enables closing and opening

of windows depending on the

temperature inside the greenhouse.

Wax needs to be replaced regularly

(replacement cost = 49€)

? ? 780453

contact@serre-

jardin.com 02 51 00

84 97

12

Vérin spindle

lucarne et sa

manivelle Needs

to be motorized

http://w

ww.serr

e-

jardin.co

m/acces

soires-

aeration

-

serre/21

82-

verrin-

spindle-

pour-

lucarne-

serre.ht

ml

93€ + 52€

TTC ? ? ? ? ?

Delivery : 7 to 9 opened days. Vis

sans fin qui permet l'ouverture et la

fermeture d'une lucarne de toit.

Longueur manivelle = 1,5m.

? ? 366678 +

366681 02 51 00 84 97

13

Ouverture

automatique Eden

pour serres avec

thermomètre

intégré Not the

objective

http://w

ww.gam

mvert.fr/

2-3315-

abris-

serres-

amenag

ements/

2-3213-

serres-

de-

jardin-

accesso

ires/3-

3742-

accesso

ires-de-

serre/p-

39€ +

6,50€

(Delivery)

= 45,50€

Lifting

capacity = 7kg

=> thrust =

70N

Until 450mm ?

Height = 38cm

Witdh = 5cm

Depth = 38cm

doc

available : 2

sides dishes

of tightening

Delivery in 3 days. Works without

electricity. Pieces available until 10

years. Waranty = 1 year. For

greenhouses. Functioning

temperatures < 52°C. Max opening

at 30°C depending on charge.

Opening range: 15°C - 25°C. Put oil

every year. Take off the system (or

at least the cylinder) in winter

No ? 10923 Gamm vert Website

Page 44: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

2

Names Link Price Force (N) Course (mm) Voltage (V) Size (mm) Fixation Comments Obstacle

detection IP Reference Contact

14

Ouverture

automatique

MyFood Not the

objective

https://s

hop.myf

ood.eu/

products

/ouvertu

re-

automati

que?vari

ant=424

070136

37

48,99€ +

delivery Adapted to greenhouses but not

electrical. Commandable ? 03 68 05 34 14

myfood.eu

15 Boîtier à chaîne

Méga 24Vcc

http://w

ww.com

tra.fr/fr/p

roduits/d

esenfum

age/bac

mega24

? thrust 30daN 230mm or

350mm 24Vcc

50x40x369m

m (230mm) or

50x40x421

(300mm)

To check

with the doc

(30mm +

18mm

needed)

For DENFC. Available in 230V.

Intensity = 1A. "command of the

remote control from a electric DAC

possible"(EMERAUDE center for

instance)

Yes IP42

MG30S0250

(250mm) or

MG30S0300

(300mm)

[email protected]

01 43 68 35 14

16 Boîtier à chaîne

VEGA DC

http://w

ww.ultra

flexgrou

p.com/fr

/catalog

ue/boitie

r-

electriqu

es-a-

chaine/0

7907a-

1/29/veg

a.html?l

ang=3

? traction 300N

thrust 300N 300mm 24Vdc 45x32x? ?

Commandable by sign switch. +

BMSline Version with computable

functions (course, vitesse,

force,...)with connection to a

computer and a dedicated software

Yes IP32

on

demand 40903N ?

17 Vérin électrique à

crémaillère VEGA

http://w

ww.ultra

flexgrou

p.com/fr

/catalog

ue/verin

s-

electriqu

es-a-

cremaill

ere/079

07e-

1/61/rac

k.html

? traction 650N

thrust 750N

(180mm or)

300mm 24Vcc bulky in the

lifting direction ? Commandable by sign switch Yes IP55 40217D ?

18 Vérin électrique (à

chaîne) ISBA

http://w

ww.isba.

ch/fr/isb

a/produ

kte/licht

kuppeln/

Oeffnun

gsvorric

htungen

/Kettena

ntrieb.ht

ml

? lifting force

500N 350mm 24Vdc 41x51x436 ? Intensity = 1,4A. - Entreprise Suisse

? IP32

[email protected] +41 61

761 33 44

19 Vérin électrique (à

chaîne) ISBA

http://w

ww.isba.

ch/fr/isb

a/produ

kte/licht

kuppeln/

Oeffnun

gsvorric

htungen

/Kettena

ntrieb.ht

ml

? lifting force

1000N 300mm 24Vdc 54x80x545 ? Intensity = 3-4A (depending on

speed). - Suiss company IP54

[email protected] +41 61

761 33 44

20 Piston motorisé

RAYWIN R20

https://w

ww.com

unello.c

om/fr/fra

meauto

mation/p

roducts/l

anterne

aux/ray

win-r20/

? 200N 300mm 24V ? ? ? IP44 R20 basic Comunello

21

Actionneur à

crémaillère

motorisé AIRWIN

A45

https://

www.co

munello

.com/fr/

framea

utomati

on/prod

ucts/a-

litalienn

e/airwin

-a45/

189€ 450N 230mm 24V 230x140x53,5 See the doc 10 days for delivery. Computable.

For roof windows IP44

A45 basic

MA45S1

23L 0G 00

Comunello

(mboubacir@souc

hier-boullet.com)

Page 45: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

L. Code for the test of INA 219

Page 46: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

1

Page 47: Greenhouse - air.imag.fr · ENGINEERING PROJECT PI6 3 INTRODUCTION Filling our shopping cart with toxic expensive food that travels miles and miles doesnt seem like a good idea nowadays

ENGINEERING PROJECT PI6

2