private void InitializeModules() { Microsoft.SPOT.Debug.Print("The module \'ethernetENC28\' was not connected in the designer and will be null."); this.moisture = new GTM.GHIElectronics.Moisture(4); this.lightSense = new GTM.GHIElectronics.LightSense(2); this.relayX1 = new GTM.GHIElectronics.RelayX1(7); this.usbClientDP = new GTM.GHIElectronics.USBClientDP(8); }
private void InitializeModules() { this.tempHumidSI70 = new GTM.GHIElectronics.TempHumidSI70(4); this.lightSense = new GTM.GHIElectronics.LightSense(18); this.gasSense = new GTM.GHIElectronics.GasSense(2); this.displayT35 = new GTM.GHIElectronics.DisplayT35(15, 16, 17, 14); }
private void InitializeModules() { this.lightSense = new GTM.GHIElectronics.LightSense(10); this.tempHumidSI70 = new GTM.GHIElectronics.TempHumidSI70(14); this.usbClientSP = new GTM.GHIElectronics.USBClientSP(1); this.ethernetJ11D = new GTM.GHIElectronics.EthernetJ11D(7); }
private void InitializeModules() { this.usbClientDP = new GTM.GHIElectronics.USBClientDP(1); this.lightSense = new GTM.GHIElectronics.LightSense(10); this.tempHumidSI70 = new GTM.GHIElectronics.TempHumidSI70(11); this.ethernetJ11D = new GTM.GHIElectronics.EthernetJ11D(7); }
private void InitializeModules() { this.usbClientEDP = new GTM.GHIElectronics.USBClientEDP(8); this.displayNHVN = new GTM.GHIElectronics.DisplayNHVN(15, 16, 17, Socket.Unused, Socket.Unused); this.multicolorLED = new GTM.GHIElectronics.MulticolorLED(11); this.lightSense = new GTM.GHIElectronics.LightSense(2); }
private void InitializeModules() { this.lightSense = new GTM.GHIElectronics.LightSense(14); this.led7R = new GTM.GHIElectronics.LED7R(12); this.joystick = new GTM.GHIElectronics.Joystick(13); this.usbClientSP = new GTM.GHIElectronics.USBClientSP(2); }
private void InitializeModules() { this.wifiRS21 = new GTM.GHIElectronics.WiFiRS21(6); this.lightSense = new GTM.GHIElectronics.LightSense(9); this.usbClientDP = new GTM.GHIElectronics.USBClientDP(1); this.displayTE35 = new GTM.GHIElectronics.DisplayTE35(14, 13, 12, 10); this.bluetooth = new GTM.Velloso.Bluetooth(11); }
private void InitializeModules() { this.gasSense = new GTM.GHIElectronics.GasSense(10); this.usbClientEDP = new GTM.GHIElectronics.USBClientEDP(1); this.lightSense = new GTM.GHIElectronics.LightSense(9); this.tempHumidSI70 = new GTM.GHIElectronics.TempHumidSI70(14); this.characterDisplay = new GTM.GHIElectronics.CharacterDisplay(5); }
private void InitializeModules() { this.usbClientDP = new GTM.GHIElectronics.USBClientDP(1); this.moisture = new GTM.GHIElectronics.Moisture(10); this.lightSense = new GTM.GHIElectronics.LightSense(9); this.display = new GTM.GHIElectronics.DisplayTE35(14, 13, 12, Socket.Unused); this.ethernet = new GTM.GHIElectronics.EthernetJ11D(7); this.gps = new GTM.GHIElectronics.GPS(11); }
private void InitializeModules() { this.lightSense = new GTM.GHIElectronics.LightSense(14); this.ethernetENC28 = new GTM.GHIElectronics.EthernetENC28(3); this.tempHumidity = new GTM.GHIElectronics.TempHumidity(8); this.relayX1 = new GTM.GHIElectronics.RelayX1(6); this.led7R = new GTM.GHIElectronics.LED7R(13); }
private void InitializeModules() { this.lightSense = new GTM.GHIElectronics.LightSense(14); this.ethernetENC28 = new GTM.GHIElectronics.EthernetENC28(3); this.tempHumidity = new GTM.GHIElectronics.TempHumidity(8); this.relayX1 = new GTM.GHIElectronics.RelayX1(6); this.led7R = new GTM.GHIElectronics.LED7R(13); }
private void InitializeModules() { this.usbClientDP = new GTM.GHIElectronics.USBClientDP(1); this.moisture = new GTM.GHIElectronics.Moisture(10); this.lightSense = new GTM.GHIElectronics.LightSense(9); this.display = new GTM.GHIElectronics.DisplayTE35(14, 13, 12, Socket.Unused); this.ethernet = new GTM.GHIElectronics.EthernetJ11D(7); this.gps = new GTM.GHIElectronics.GPS(11); }
private void InitializeModules() { this.usbClientEDP = new GTM.GHIElectronics.USBClientEDP(1); this.sdCard = new GTM.GHIElectronics.SDCard(5); this.moisture = new GTM.GHIElectronics.Moisture(9); this.breakout = new GTM.GHIElectronics.Breakout(14); this.wifiRS21 = new GTM.GHIElectronics.WiFiRS21(6); this.lightSense = new GTM.GHIElectronics.LightSense(10); }
private void InitializeModules() { this.usbClientSP = new GTM.GHIElectronics.USBClientSP(1); this.ethernetJ11D = new GTM.GHIElectronics.EthernetJ11D(7); this.displayTE35 = new GTM.GHIElectronics.DisplayTE35(14, 13, 12, 10); this.lightSense = new GTM.GHIElectronics.LightSense(9); this.relayX1 = new GTM.GHIElectronics.RelayX1(4); this.multicolorLED = new GTM.GHIElectronics.MulticolorLED(8); this.motorDriverL298 = new GTM.GHIElectronics.MotorDriverL298(11); }
private void InitializeModules() { this.usbClientEDP = new GTM.GHIElectronics.USBClientEDP(1); this.relayX1 = new GTM.GHIElectronics.RelayX1(12); this.lightSense = new GTM.GHIElectronics.LightSense(9); this.tempHumidSI70 = new GTM.GHIElectronics.TempHumidSI70(4); this.characterDisplay = new GTM.GHIElectronics.CharacterDisplay(5); this.gasSense = new GTM.GHIElectronics.GasSense(10); this.serialCameraL1 = new GTM.GHIElectronics.SerialCameraL1(11); this.ethernetENC28 = new GTM.GHIElectronics.EthernetENC28(6); }
private void InitializeModules() { this.usbClientSP = new GTM.GHIElectronics.USBClientSP(1); this.light = new GTM.GHIElectronics.LightSense(10); this.temp = new GTM.GHIElectronics.TempHumidSI70(11); this.moisture = new GTM.GHIElectronics.Moisture(9); this.camera = new GTM.GHIElectronics.Camera(3); this.ethernet = new GTM.GHIElectronics.EthernetJ11D(7); this.ledStrip = new GTM.GHIElectronics.LEDStrip(14); this.breakout = new GTM.GHIElectronics.Breakout(12); }
private void InitializeModules() { this.usbClientEDP = new GTM.GHIElectronics.USBClientEDP(8); this.displayTE35 = new GTM.GHIElectronics.DisplayTE35(15, 16, 17, 14); this.serialCameraL1 = new GTM.GHIElectronics.SerialCameraL1(12); this.sdCard = new GTM.GHIElectronics.SDCard(9); this.tunes = new GTM.GHIElectronics.Tunes(18); this.wifiRS21 = new GTM.GHIElectronics.WiFiRS21(3); this.tempHumidSI70 = new GTM.GHIElectronics.TempHumidSI70(1); this.lightSense = new GTM.GHIElectronics.LightSense(2); this.breadBoardX1 = new GTM.GHIElectronics.BreadBoardX1(6); this.cellularRadio = new GTM.GHIElectronics.CellularRadio(4); }
private void InitializeModules() { this.lightSense = new GTM.GHIElectronics.LightSense(14); this.led7R = new GTM.GHIElectronics.LED7R(12); this.joystick = new GTM.GHIElectronics.Joystick(13); this.usbClientSP = new GTM.GHIElectronics.USBClientSP(2); }
public SensorLight(GTM.GHIElectronics.LightSense lightSense, int sampleRateMilliseconds, string name) : base(light", "p", ValuesPerSample.One, sampleRateMilliseconds, name)
private void InitializeModules() { this.usbClientEDP = new GTM.GHIElectronics.USBClientEDP(8); this.displayTE35 = new GTM.GHIElectronics.DisplayTE35(15, 16, 17, 14); this.serialCameraL1 = new GTM.GHIElectronics.SerialCameraL1(12); this.sdCard = new GTM.GHIElectronics.SDCard(9); this.tunes = new GTM.GHIElectronics.Tunes(18); this.wifiRS21 = new GTM.GHIElectronics.WiFiRS21(3); this.tempHumidSI70 = new GTM.GHIElectronics.TempHumidSI70(1); this.lightSense = new GTM.GHIElectronics.LightSense(2); this.breadBoardX1 = new GTM.GHIElectronics.BreadBoardX1(6); this.cellularRadio = new GTM.GHIElectronics.CellularRadio(4); }
private void InitializeModules() { this.lightSense = new GTM.GHIElectronics.LightSense(9); this.tempHumidSI70 = new GTM.GHIElectronics.TempHumidSI70(4); this.characterDisplay = new GTM.GHIElectronics.CharacterDisplay(14); }
/// <summary> /// Read all sensors and validate readings, with specifices /// </summary> /// <param name="sqldb">Database to insert</param> /// <param name="moisture">A moinsture sensor</param> public void Read_and_check_values(SQL_Wrapper sqldb, Gadgeteer.Modules.GHIElectronics.Moisture moisture, Gadgeteer.Modules.GHIElectronics.LightSense lightSense) { /*Read and Print data*/ Utilità.ReadDHT(dhtSensor); if (dhtSensor.Temperature != _last_tm.value || counterTm == 15) { _last_tm.value = dhtSensor.Temperature; TemperatureMisure tm = new TemperatureMisure(dhtSensor.Temperature, "OK"); //obj_send.addMisure(tm); sqldb.insert(tm, 0); if (counterTm == 15) { counterTm = 0; } } else { counterTm++; } if ((dhtSensor.Humidity != _last_hm.value && dhtSensor.Humidity != 0) || counterHm == 15) { _last_hm.value = dhtSensor.Humidity; HumidityMisure hm = new HumidityMisure(dhtSensor.Humidity, "OK"); //obj_send.addMisure(hm); sqldb.insert(hm, 0); if (counterHm == 15) { counterHm = 0; } } else { counterHm++; } float moinstureData = moisture.ReadMoisture(); Debug.Print("Moinsture = " + moinstureData); if ((moinstureData != _last_mm.value && moinstureData != 0) || counterMm == 15) { _last_mm.value = moinstureData; MoistureMisure mm = new MoistureMisure(moinstureData, "OK"); //obj_send.addMisure(mm); sqldb.insert(mm, 0); if (counterMm == 15) { counterMm = 0; } } else { counterMm++; } Debug.Print(String.Empty); double lightDataIll = lightSense.GetIlluminance(); double lightDataPro = lightSense.ReadProportion(); double lightDataVolt = lightSense.ReadVoltage(); Debug.Print("LightSenseIll = " + lightDataIll); Debug.Print("LightSensePro = " + lightDataPro); Debug.Print("LightSenseVolt = " + lightDataVolt); if (lightDataIll < (_last_ls.value * 0.85) || lightDataIll > (_last_ls.value + _last_ls.value * 0.15) || counterLs == 15) { _last_ls.value = (float)lightDataIll; LightMisure ls = new LightMisure((float)lightDataIll, "OK"); //obj_send.addMisure(ls); sqldb.insert(ls, 0); if (counterLs == 15) { counterLs = 0; } } else { counterLs++; } }
public SensorLight(int sampleRateMilliseconds) : base(SensorType.Light, ValuesPerSample.One, sampleRateMilliseconds) { this.lightSense = new GTM.GHIElectronics.LightSense(14); StartMeasuring(); }
public MyRoomForm(ref GHI.Glide.Display.Window window, ref Gadgeteer.Modules.GHIElectronics.TempHumidSI70 tempHumidSI70, ref Gadgeteer.Modules.GHIElectronics.LightSense lightSense) : base(ref window) { this.tempHumidSI70 = tempHumidSI70; this.lightSense = lightSense; }