project F:Realisation-f

From student
(Difference between revisions)
Jump to: navigation, search
(Arduino development)
(Arduino development)
Line 5: Line 5:
 
=<span style="color:gray">Arduino development</span>=
 
=<span style="color:gray">Arduino development</span>=
  
<youtube width="530" height="400" left >bXqKIyhWIoI</youtube>
+
 
 +
==Pseudocode for controlling the air valves ==
  
 
Light sensor is in the place of motion sensor. Green led is the air OUT valve, the red is air IN.
 
Light sensor is in the place of motion sensor. Green led is the air OUT valve, the red is air IN.
 +
 +
<youtube width="530" height="400" left >bXqKIyhWIoI</youtube>
  
 
<span style="background:yellow">Yellow</span> led in the middle represents the air pressure. Bright: high pressure (cushion filled with air). Dim: low pressure (minimum pressure in the cushion).
 
<span style="background:yellow">Yellow</span> led in the middle represents the air pressure. Bright: high pressure (cushion filled with air). Dim: low pressure (minimum pressure in the cushion).
  
 
When there is movement (light on the sensor), more air is pumped in (<span style="background:red">red</span> led on). Otherwise the other valve starts to let air out (<span style="background:green">green</span> led on).
 
When there is movement (light on the sensor), more air is pumped in (<span style="background:red">red</span> led on). Otherwise the other valve starts to let air out (<span style="background:green">green</span> led on).
 +
 +
[[File:Movement_AirPressure.ino| See the arduino code (Movement_AirPressure.ino)]]

Revision as of 10:58, 21 December 2011

Home

Design    Realisation    Relationships

Design Execution    Prototype Validation    Arduino development    1:1 Prototype   

Arduino development

Pseudocode for controlling the air valves

Light sensor is in the place of motion sensor. Green led is the air OUT valve, the red is air IN.

Yellow led in the middle represents the air pressure. Bright: high pressure (cushion filled with air). Dim: low pressure (minimum pressure in the cushion).

When there is movement (light on the sensor), more air is pumped in (red led on). Otherwise the other valve starts to let air out (green led on).

See the arduino code (Movement_AirPressure.ino)

Personal tools
Namespaces
Variants
Actions
Projects
Atoms
Toolbox