EPS@ISEP | The European Project Semester (EPS) at ISEP


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
report [2015/06/22 17:12] – [7.7 Conclusion] team4report [2015/06/23 12:06] (current) – [7.2 Architecture] team4
Line 1480: Line 1480:
 __Arduino Sketch__ __Arduino Sketch__
  
-The Arduino runs a continuous sketch that has several functions to read values from the sensors while waiting for input from the serial port. The main idea behind the code was to turn the connected devices only when requested by Raspberry Pi. +The Arduino runs a continuous sketch consisting of several functions. Their tasks are to read values from the sensors and control devices connected to the microcontroller. The main idea behind the code was to turn the connected devices only when requested by Raspberry Pi. 
-Used libraries:+**Used libraries:**
  
   * One Wire – allows using waterproof temperature sensor DS18B20, is applied to detect the sensor and create monitoring instance.   * One Wire – allows using waterproof temperature sensor DS18B20, is applied to detect the sensor and create monitoring instance.
Line 1487: Line 1487:
   * Stepper – allows the control of stepper motor movement e.g. number and speed of rotations.   * Stepper – allows the control of stepper motor movement e.g. number and speed of rotations.
   * IRremote – library operating infrared shooting sensor and allowing to create modulated infrared signal emitted from the connected diode.   * IRremote – library operating infrared shooting sensor and allowing to create modulated infrared signal emitted from the connected diode.
 +
 +The code structure is presented below.
 +
 +<WRAP>
 +<figure flabel87> 
 +{{:flow-chart_vio.png?700|}}
 +<caption>Flow chart for Arduino code</caption>
 +</figure>
 +</WRAP>
  
 The initial setup for Arduino consists of defining the pin status and first temperature request in order to turn the heater on automatically if the water is too cold. The initial setup for Arduino consists of defining the pin status and first temperature request in order to turn the heater on automatically if the water is too cold.
  
-Further code flow is controlled by Raspberry Pi //i.e.// that the microcontroller only responds to the requests sent through the serial port. Firstly there is a ready check performed, then the several values are obtained from sensors, afterwards, the user input from website is applied //i.e.// the settings for feeder, pump, lamp and heater are uploaded and performed. The code runs in continuous loop.+Further code flow is controlled by Raspberry Pi //i.e.// that the microcontroller only responds to the requests sent through the serial port. Firstly there is a ready check performed, then the several values are obtained from sensors, and sent back to Raspberry Pi. afterwards, the user input from website is applied //i.e.// the settings for feeder, pump, lamp and heater are uploaded and applied. The code runs in continuous loop.
 ==== 7.3 Components ==== ==== 7.3 Components ====
  
QR Code
QR Code report (generated for current page)