1Set up the Raspberry Pi
2Electrical Connection of Sensores and Actuators
3Set up the Connection
4Heating Control

no warranty for any of the provided information

HV_setActuators

Is used by:
HV_loop

At the beginn the assoziation of actuator to GPIO pin is coded.

If $mode=init the wiringPi is set up. The default behaviour is to set the GPIO pin to on=1 if the $act>0.5 or off otherwise.

<?php 
/* published under GPL www.gnu.org/licenses/gpl.html */
function HV_setActuators($act,$mode){
  $pinSetting["solar"]=22;
  $pinSetting["oven"] =23;
  $pinSetting["vent"] =24;
  $pinSetting["serv"] =25;

  switch($mode){
  case "init":
    wiringPi_Setup();
    return "wiringPi is set up";
    break;
  default:
    $keys = array_keys($act);
    for($k=0;$k<count($keys);$k++){
      $actName=$keys[$k];
      $pin=$pinSetting[$actName];
      /* echo $keys[$k]." ".$pin." ".$act[$keys[$k]]."\n"; */
      if($pin>0){
	if($act[$keys[$k]]>0.5){
	  wiringPi_digitalWrite($pin,1);
	}else{
	  wiringPi_digitalWrite($pin,0);
	} #fi
      }else{
	return "GPIO pin ".$actName." is not defined!";
      } #fi
    } #k
  }# switch
  return TRUE;
}
?>
1HV_Admin_Login
2HV_colorMap
3HV_config
4HV_convertASCII
5HV_getSunPrediction
6HV_heatingControl
7HV_loop
8HV_readOperationState
9HV_readTemperatures
10HV_restart
11HV_serviceLog
12HV_setActuators
13HV_setParameters
14HV_showHouse
15HV_showLog
16HV_showRawValues
17HV_showWeatherForecast
18HV_thermos200
19HV_ventProg
20HV_writeLog
21index
22MoistAir
23readFilenames
24readNamedData
25tableInterpol

 

gnuplot

gnuplot is used to visualise the results - via script you can do infinite diagrams in 1 second.
Run 'test' in gnuplot to get an owerview of the available line- and symbolstyles.

Login
Valid HTML 4.01!