diff --git a/drivers/NRF5/Radio_ESB.cpp b/drivers/NRF5/Radio_ESB.cpp index 03472cfb..3b0a929e 100644 --- a/drivers/NRF5/Radio_ESB.cpp +++ b/drivers/NRF5/Radio_ESB.cpp @@ -637,7 +637,7 @@ extern "C" { (NRF_RADIO->STATE == RADIO_STATE_STATE_RxDisable) or (NRF_RADIO->STATE == RADIO_STATE_STATE_TxRu)) { if (NRF_RADIO->CRCSTATUS) { - // Ensure no ACK package is recieved + // Ensure no ACK package is received if (NRF_RADIO->RXMATCH != NRF5_ESB_TX_ADDR) { // calculate a package id uint32_t pkgid = rx_buffer.pid << 16 | NRF_RADIO->RXCRC; diff --git a/examples/AirQualitySensor/AirQualitySensor.ino b/examples/AirQualitySensor/AirQualitySensor.ino index 99862722..ca3a59d9 100644 --- a/examples/AirQualitySensor/AirQualitySensor.ino +++ b/examples/AirQualitySensor/AirQualitySensor.ino @@ -53,10 +53,10 @@ //which is derived from the chart in datasheet /***********************Software Related Macros************************************/ #define CALIBARAION_SAMPLE_TIMES (50) //define how many samples you are going to take in the calibration phase -#define CALIBRATION_SAMPLE_INTERVAL (500) //define the time interal(in milisecond) between each samples in the -//cablibration phase +#define CALIBRATION_SAMPLE_INTERVAL (500) //define the time interval(in milliseconds) between each samples in the +//calibration phase #define READ_SAMPLE_INTERVAL (50) //define how many samples you are going to take in normal operation -#define READ_SAMPLE_TIMES (5) //define the time interal(in milisecond) between each samples in +#define READ_SAMPLE_TIMES (5) //define the time interval(in milliseconds) between each samples in //normal operation /**********************Application Related Macros**********************************/ #define GAS_LPG (0) @@ -165,8 +165,8 @@ float MQCalibration(int mq_pin) /***************************** MQRead ********************************************* Input: mq_pin - analog channel Output: Rs of the sensor -Remarks: This function use MQResistanceCalculation to caculate the sensor resistenc (Rs). - The Rs changes as the sensor is in the different consentration of the target +Remarks: This function use MQResistanceCalculation to calculate the sensor resistance (Rs). + The Rs changes as the sensor is in the different concentration of the target gas. The sample times and the time interval between samples could be configured by changing the definition of the macros. ************************************************************************************/ diff --git a/examples/BinarySwitchSleepSensor/BinarySwitchSleepSensor.ino b/examples/BinarySwitchSleepSensor/BinarySwitchSleepSensor.ino index 8ba3e011..c02262a8 100644 --- a/examples/BinarySwitchSleepSensor/BinarySwitchSleepSensor.ino +++ b/examples/BinarySwitchSleepSensor/BinarySwitchSleepSensor.ino @@ -23,7 +23,7 @@ * Interrupt driven binary switch example with dual interrupts * Author: Patrick 'Anticimex' Fallberg * Connect one button or door/window reed switch between - * digitial I/O pin 3 (BUTTON_PIN below) and GND and the other + * digital I/O pin 3 (BUTTON_PIN below) and GND and the other * one in similar fashion on digital I/O pin 2. * This example is designed to fit Arduino Nano/Pro Mini * diff --git a/examples/CO2Sensor/CO2Sensor.ino b/examples/CO2Sensor/CO2Sensor.ino index 7b3bf2e1..ba78acff 100644 --- a/examples/CO2Sensor/CO2Sensor.ino +++ b/examples/CO2Sensor/CO2Sensor.ino @@ -28,7 +28,7 @@ * Pad 6: PWM output ==> pin 6 * * From: http://davidegironi.blogspot.fr/2014/01/co2-meter-using-ndir-infrared-mh-z14.html - * MH-Z14 has a PWM output, with a sensitivity range of 0ppm to 2000ppm CO2, an accurancy of ±200ppm. + * MH-Z14 has a PWM output, with a sensitivity range of 0ppm to 2000ppm CO2, an accuracy of ±200ppm. * The cycle is 1004ms±5%, given the duty cicle Th (pulse high), Tl is 1004-Th, we can convert it to CO2 value using the formula: * CO2ppm = 2000 * (Th - 2ms) /(Th + Tl - 4ms) * From: http://airqualityegg.wikispaces.com/Sensor+Tests diff --git a/examples/DimmableLEDActuator/DimmableLEDActuator.ino b/examples/DimmableLEDActuator/DimmableLEDActuator.ino index d64de95b..167be9da 100644 --- a/examples/DimmableLEDActuator/DimmableLEDActuator.ino +++ b/examples/DimmableLEDActuator/DimmableLEDActuator.ino @@ -62,7 +62,7 @@ MyMessage lightMsg(0, V_LIGHT); */ void setup() { - // Pull the gateway's current dim level - restore light level upon sendor node power-up + // Pull the gateway's current dim level - restore light level upon node power-up request( 0, V_DIMMER ); } diff --git a/examples/DimmableLight/DimmableLight.ino b/examples/DimmableLight/DimmableLight.ino index 4d18d6cf..c67b6a9b 100644 --- a/examples/DimmableLight/DimmableLight.ino +++ b/examples/DimmableLight/DimmableLight.ino @@ -48,7 +48,7 @@ #define LIGHT_OFF 0 #define LIGHT_ON 1 -#define SN "Dimable Light" +#define SN "Dimmable Light" #define SV "1.0" int16_t LastLightState=LIGHT_OFF; @@ -70,7 +70,7 @@ void setup() } } - //Here you actualy switch on/off the light with the last known dim level + //Here you actually switch on/off the light with the last known dim level SetCurrentState2Hardware(); Serial.println( "Node ready to receive messages..." ); diff --git a/examples/DustSensor/DustSensor.ino b/examples/DustSensor/DustSensor.ino index 1ccf5523..eb250ac4 100644 --- a/examples/DustSensor/DustSensor.ino +++ b/examples/DustSensor/DustSensor.ino @@ -83,7 +83,7 @@ void loop() // recover voltage calcVoltage = voMeasured * (5.0 / 1024.0); - // linear eqaution taken from http://www.howmuchsnow.com/arduino/airquality/ + // linear equation taken from http://www.howmuchsnow.com/arduino/airquality/ // Chris Nafis (c) 2012 dustDensity = (0.17 * calcVoltage - 0.1)*1000; diff --git a/examples/EnergyMeterPulseSensor/EnergyMeterPulseSensor.ino b/examples/EnergyMeterPulseSensor/EnergyMeterPulseSensor.ino index f14a1cfc..512d75de 100644 --- a/examples/EnergyMeterPulseSensor/EnergyMeterPulseSensor.ino +++ b/examples/EnergyMeterPulseSensor/EnergyMeterPulseSensor.ino @@ -46,13 +46,13 @@ #include #define DIGITAL_INPUT_SENSOR 3 // The digital input you attached your light sensor. (Only 2 and 3 generates interrupt!) -#define PULSE_FACTOR 1000 // Nummber of blinks per KWH of your meeter +#define PULSE_FACTOR 1000 // Number of blinks per KWH of your meeter #define SLEEP_MODE false // Watt-value can only be reported when sleep mode is false. -#define MAX_WATT 10000 // Max watt value to report. This filetrs outliers. +#define MAX_WATT 10000 // Max watt value to report. This filters outliers. #define CHILD_ID 1 // Id of the sensor child uint32_t SEND_FREQUENCY = - 20000; // Minimum time between send (in milliseconds). We don't wnat to spam the gateway. + 20000; // Minimum time between send (in milliseconds). We don't want to spam the gateway. double ppwh = ((double)PULSE_FACTOR)/1000; // Pulses per watt hour bool pcReceived = false; volatile uint32_t pulseCount = 0; @@ -97,8 +97,8 @@ void loop() if (pcReceived && (SLEEP_MODE || sendTime)) { // New watt value has been calculated if (!SLEEP_MODE && watt != oldWatt) { - // Check that we dont get unresonable large watt value. - // could hapen when long wraps or false interrupt triggered + // Check that we don't get unreasonable large watt value. + // could happen when long wraps or false interrupt triggered if (watt<((uint32_t)MAX_WATT)) { send(wattMsg.set(watt)); // Send watt value to gw } @@ -151,4 +151,4 @@ void onPulse() lastBlink = newBlink; } pulseCount++; -} \ No newline at end of file +} diff --git a/examples/GatewayESP8266/GatewayESP8266.ino b/examples/GatewayESP8266/GatewayESP8266.ino index b7fef14e..6532b533 100644 --- a/examples/GatewayESP8266/GatewayESP8266.ino +++ b/examples/GatewayESP8266/GatewayESP8266.ino @@ -34,7 +34,7 @@ * * LED purposes: * - To use the feature, uncomment any of the MY_DEFAULT_xx_LED_PINs in your sketch, only the LEDs that is defined is used. - * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation received + * - RX (green) - blink fast on radio message received. In inclusion mode will blink fast only on presentation received * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly * - ERR (red) - fast blink on error during transmission error or receive crc error * diff --git a/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino b/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino index 9d2b49b1..b1d10ab1 100644 --- a/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino +++ b/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino @@ -27,7 +27,7 @@ * * LED purposes: * - To use the feature, uncomment any of the MY_DEFAULT_xx_LED_PINs in your sketch - * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation received + * - RX (green) - blink fast on radio message received. In inclusion mode will blink fast only on presentation received * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly * - ERR (red) - fast blink on error during transmission error or receive crc error * diff --git a/examples/GatewayESP8266OTA/GatewayESP8266OTA.ino b/examples/GatewayESP8266OTA/GatewayESP8266OTA.ino index 4a485f8a..6a0bb79b 100644 --- a/examples/GatewayESP8266OTA/GatewayESP8266OTA.ino +++ b/examples/GatewayESP8266OTA/GatewayESP8266OTA.ino @@ -35,7 +35,7 @@ * * LED purposes: * - To use the feature, uncomment WITH_LEDS_BLINKING in MyConfig.h - * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation received + * - RX (green) - blink fast on radio message received. In inclusion mode will blink fast only on presentation received * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly * - ERR (red) - fast blink on error during transmission error or receive crc error * diff --git a/examples/GatewaySerial/GatewaySerial.ino b/examples/GatewaySerial/GatewaySerial.ino index f7bc2f30..3913bc2b 100644 --- a/examples/GatewaySerial/GatewaySerial.ino +++ b/examples/GatewaySerial/GatewaySerial.ino @@ -20,7 +20,7 @@ * * DESCRIPTION * The ArduinoGateway prints data received from sensors on the serial link. -* The gateway accepts input on seral which will be sent out on radio network. +* The gateway accepts input on serial which will be sent out on radio network. * * The GW code is designed for Arduino Nano 328p / 16MHz * @@ -30,9 +30,9 @@ * * LEDs (OPTIONAL): * - To use the feature, uncomment any of the MY_DEFAULT_xx_LED_PINs -* - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved +* - RX (green) - blink fast on radio message received. In inclusion mode will blink fast only on presentation received * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly -* - ERR (red) - fast blink on error during transmission error or recieve crc error +* - ERR (red) - fast blink on error during transmission error or receive crc error * */ @@ -53,7 +53,7 @@ // Enable serial gateway #define MY_GATEWAY_SERIAL -// Define a lower baud rate for Arduino's running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender) +// Define a lower baud rate for Arduinos running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender) #if F_CPU == 8000000L #define MY_BAUD_RATE 38400 #endif diff --git a/examples/GatewaySerialRS485/GatewaySerialRS485.ino b/examples/GatewaySerialRS485/GatewaySerialRS485.ino index 1cca1b0b..36750ebb 100644 --- a/examples/GatewaySerialRS485/GatewaySerialRS485.ino +++ b/examples/GatewaySerialRS485/GatewaySerialRS485.ino @@ -28,9 +28,9 @@ * - RX/TX/ERR leds need to be connected between +5V (anode) and digital pin 6/5/4 with resistor 270-330R in a series * * LEDs (OPTIONAL): -* - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved +* - RX (green) - blink fast on radio message received. In inclusion mode will blink fast only on presentation received * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly -* - ERR (red) - fast blink on error during transmission error or recieve crc error +* - ERR (red) - fast blink on error during transmission error or receive crc error * * If your Arduino board has additional serial ports * you can use to connect the RS485 module. diff --git a/examples/GatewayW5100/GatewayW5100.ino b/examples/GatewayW5100/GatewayW5100.ino index f4235294..6d7a488c 100644 --- a/examples/GatewayW5100/GatewayW5100.ino +++ b/examples/GatewayW5100/GatewayW5100.ino @@ -33,9 +33,9 @@ * * LED purposes: * - To use the feature, uncomment MY_DEFAULT_xxx_LED_PIN in the sketch below - * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved + * - RX (green) - blink fast on radio message received. In inclusion mode will blink fast only on presentation received * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly - * - ERR (red) - fast blink on error during transmission error or recieve crc error + * - ERR (red) - fast blink on error during transmission error or receive crc error * * See http://www.mysensors.org/build/ethernet_gateway for wiring instructions. * @@ -96,7 +96,7 @@ // The MAC address can be anything you want but should be unique on your network. // Newer boards have a MAC address printed on the underside of the PCB, which you can (optionally) use. -// Note that most of the Ardunio examples use "DEAD BEEF FEED" for the MAC address. +// Note that most of the Arduino examples use "DEAD BEEF FEED" for the MAC address. #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED // Enable inclusion mode diff --git a/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino b/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino index df270f7d..0b6d66f7 100644 --- a/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino +++ b/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino @@ -27,9 +27,9 @@ * * LED purposes: * - To use the feature, uncomment WITH_LEDS_BLINKING in MyConfig.h - * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved + * - RX (green) - blink fast on radio message received. In inclusion mode will blink fast only on presentation received * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly - * - ERR (red) - fast blink on error during transmission error or recieve crc error + * - ERR (red) - fast blink on error during transmission error or receive crc error * * See http://www.mysensors.org/build/esp8266_gateway for wiring instructions. * nRF24L01+ ESP8266 diff --git a/examples/LightSensor/LightSensor.ino b/examples/LightSensor/LightSensor.ino index 505bc8c4..3716ffd3 100644 --- a/examples/LightSensor/LightSensor.ino +++ b/examples/LightSensor/LightSensor.ino @@ -22,7 +22,7 @@ * Version 1.0 - Henrik EKblad * * DESCRIPTION - * Example sketch showing how to measue light level using a LM393 photo-resistor + * Example sketch showing how to measure light level using a LM393 photo-resistor * http://www.mysensors.org/build/light */ diff --git a/examples/LogOTAGateway/LogOTAGateway.ino b/examples/LogOTAGateway/LogOTAGateway.ino index 7d8a80a4..c1e62d75 100644 --- a/examples/LogOTAGateway/LogOTAGateway.ino +++ b/examples/LogOTAGateway/LogOTAGateway.ino @@ -20,7 +20,7 @@ * * DESCRIPTION * The ArduinoGateway prints data received from sensors on the serial link. -* The gateway accepts input on seral which will be sent out on radio network. +* The gateway accepts input on serial which will be sent out on radio network. * * The GW code is designed for Arduino Nano 328p / 16MHz * @@ -30,9 +30,9 @@ * * LEDs (OPTIONAL): * - To use the feature, uncomment any of the MY_DEFAULT_xx_LED_PINs -* - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved +* - RX (green) - blink fast on radio message received. In inclusion mode will blink fast only on presentation received * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly -* - ERR (red) - fast blink on error during transmission error or recieve crc error +* - ERR (red) - fast blink on error during transmission error or receive crc error * * OTA DEBUG MESSAGES * - Add the OTADebugReceive(message) into receive(const MyMessage &message) on a serial connected node @@ -59,7 +59,7 @@ // Enable serial gateway #define MY_GATEWAY_SERIAL -// Define a lower baud rate for Arduino's running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender) +// Define a lower baud rate for Arduinos running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender) #if F_CPU == 8000000L #define MY_BAUD_RATE 38400 #endif diff --git a/examples/MockMySensors/MockMySensors.ino b/examples/MockMySensors/MockMySensors.ino index 158deff4..1eeeafa9 100644 --- a/examples/MockMySensors/MockMySensors.ino +++ b/examples/MockMySensors/MockMySensors.ino @@ -45,7 +45,7 @@ // will make the sketch too large for a pro mini's memory so it's probably best to try // one at a time. -#define ID_S_ARMED 0 // dummy to controll armed stated for several sensors +#define ID_S_ARMED 0 // dummy to control armed stated for several sensors #define ID_S_DOOR 1 //#define ID_S_MOTION 2 //#define ID_S_SMOKE 3 @@ -91,7 +91,7 @@ bool metric = true; long randNumber; -//Instanciate Messages objects +//Instantiate Messages objects #ifdef ID_S_ARMED bool isArmed; @@ -857,7 +857,7 @@ void temp() void hum() { - Serial.print("Humitidty is: " ); + Serial.print("Humidity is: " ); Serial.println(randNumber); send(msg_S_HUM.set(randNumber)); @@ -873,7 +873,7 @@ void baro() long pressure = map(randNumber,1,100,870,1086);// hPa? int forecast = map(randNumber,1,100,0,5); - Serial.print("Atmosferic Pressure is: " ); + Serial.print("Atmospheric Pressure is: " ); Serial.println(pressure); send(msg_S_BARO_P.set(pressure)); @@ -907,7 +907,7 @@ void wind() void rain() { - Serial.print("Rain ammount is: " ); + Serial.print("Rain amount is: " ); Serial.println(randNumber); send(msg_S_RAIN_A.set(randNumber)); @@ -1488,7 +1488,7 @@ void receive(const MyMessage &message) #endif default: - Serial.print("Unknown/UnImplemented message type: "); + Serial.print("Unknown/Unimplemented message type: "); Serial.println(message.type); } diff --git a/examples/PingPongSensor/PingPongSensor.ino b/examples/PingPongSensor/PingPongSensor.ino index 593757ba..0fd8461d 100644 --- a/examples/PingPongSensor/PingPongSensor.ino +++ b/examples/PingPongSensor/PingPongSensor.ino @@ -1,7 +1,7 @@ /*** - * This is a simple sketch used to demenstrate and test node-to-node MySensor's communication. + * This is a simple sketch used to demonstrate and test node-to-node MySensors communication. * To use this sketch, assemble MySensors nodes - they need nothing more than a radio - * 1. Flash each node with the same sketch, open the console and type either 0 or 1 to the respective nodes to set thei ID + * 1. Flash each node with the same sketch, open the console and type either 0 or 1 to the respective nodes to set their ID * 2. You only need to set the node id once, and restart the nodes * 3. To being a ping-pong test, simply type T in the console for one of the nodes. * @@ -47,7 +47,7 @@ void loop() // Interactive command and control // Entering a number from 0 or 1 will write the node 200 (YING) or 201 (YANG) to EEPROM - // Entering T on either node will initiatve a ping-pong test. + // Entering T on either node will initiate a ping-pong test. if (Serial.available()) { byte inChar = Serial.read(); uint8_t node = getNodeId(); diff --git a/examples/RepeaterNode/RepeaterNode.ino b/examples/RepeaterNode/RepeaterNode.ino index bee56d3b..768b5553 100644 --- a/examples/RepeaterNode/RepeaterNode.ino +++ b/examples/RepeaterNode/RepeaterNode.ino @@ -22,7 +22,7 @@ * Version 1.0 - Henrik Ekblad * * DESCRIPTION - * Example sketch showing how to create a node thay repeates messages + * Example sketch showing how to create a node that repeats messages * from nodes far from gateway back to gateway. * It is important that nodes that has enabled repeater mode calls * process() frequently. Repeaters should never sleep. diff --git a/examples/SecretKnockSensor/SecretKnockSensor.ino b/examples/SecretKnockSensor/SecretKnockSensor.ino index 2bdf79ca..d626b7f6 100644 --- a/examples/SecretKnockSensor/SecretKnockSensor.ino +++ b/examples/SecretKnockSensor/SecretKnockSensor.ino @@ -139,7 +139,7 @@ void loop() digitalWrite(ledPin, HIGH); // Turn on the red light too so the user knows we're programming. chirp(500, 1500); // And play a tone in case the user can't see the LED. chirp(500, 1000); - } else { // If we are in programing mode, turn it off. + } else { // If we are in programming mode, turn it off. programModeActive = false; digitalWrite(ledPin, LOW); chirp(500, 1000); // Turn off the programming LED and play a sad note. diff --git a/examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino b/examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino index d0a9637e..1c682ac8 100644 --- a/examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino +++ b/examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino @@ -20,7 +20,7 @@ * * DESCRIPTION * The ArduinoGateway prints data received from sensors on the serial link. -* The gateway accepts input on seral which will be sent out on radio network. +* The gateway accepts input on serial which will be sent out on radio network. * * This GW code is designed for Sensebender GateWay / (Arduino Zero variant) * @@ -29,9 +29,9 @@ * * LEDs on board (default assignments): * - Orange: USB RX/TX - Blink when receiving / transmitting on USB CDC device -* - Yellow: RX - Blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved +* - Yellow: RX - Blink fast on radio message received. In inclusion mode will blink fast only on presentation received * - Green : TX - Blink fast on radio message transmitted. In inclusion mode will blink slowly -* - Red : ERR - Fast blink on error during transmission error or recieve crc error +* - Red : ERR - Fast blink on error during transmission error or receive crc error * - Blue : free - (use with LED_BLUE macro) * */ @@ -53,7 +53,7 @@ // Enable serial gateway #define MY_GATEWAY_SERIAL -// Define a lower baud rate for Arduino's running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender) +// Define a lower baud rate for Arduinos running on 8 MHz (Arduino Pro Mini 3.3V & Sensebender) #if F_CPU == 8000000L #define MY_BAUD_RATE 38400 #endif @@ -135,7 +135,7 @@ void preHwInit() digitalWrite(LED_BLUE, LOW); if (Serial) { Serial.println("Sensebender GateWay test routine"); - Serial.print("Mysensors core version : "); + Serial.print("MySensors core version : "); Serial.println(MYSENSORS_LIBRARY_VERSION); Serial.print("GateWay sketch version : "); Serial.println(SKETCH_VERSION); diff --git a/examples/SoilMoistSensor/SoilMoistSensor.ino b/examples/SoilMoistSensor/SoilMoistSensor.ino index bc76be3f..c4900bae 100644 --- a/examples/SoilMoistSensor/SoilMoistSensor.ino +++ b/examples/SoilMoistSensor/SoilMoistSensor.ino @@ -36,8 +36,8 @@ * 100-200 Soil is becoming dangerously dry for maximum production. Proceed with caution. * * Connection: - * D6, D7: alternative powering to avoid sensor degradation - * A0, A1: alternative resistance mesuring + * D6, D7: alternative powering to avoid sensor degradation + * A0, A1: alternative resistance measuring * * Based on: * "Vinduino" portable soil moisture sensor code V3.00 diff --git a/examples/WaterMeterPulseSensor/WaterMeterPulseSensor.ino b/examples/WaterMeterPulseSensor/WaterMeterPulseSensor.ino index 3f707563..1afd45a3 100644 --- a/examples/WaterMeterPulseSensor/WaterMeterPulseSensor.ino +++ b/examples/WaterMeterPulseSensor/WaterMeterPulseSensor.ino @@ -23,7 +23,7 @@ * Version 1.1 - GizMoCuz * * DESCRIPTION - * Use this sensor to measure volume and flow of your house watermeter. + * Use this sensor to measure volume and flow of your house water meter. * You need to set the correct pulsefactor of your meter (pulses per m3). * The sensor starts by fetching current volume reading from gateway (VAR 1). * Reports both volume and flow back to gateway. @@ -47,7 +47,7 @@ #define DIGITAL_INPUT_SENSOR 3 // The digital input you attached your sensor. (Only 2 and 3 generates interrupt!) -#define PULSE_FACTOR 1000 // Nummber of blinks per m3 of your meter (One rotation/liter) +#define PULSE_FACTOR 1000 // Number of blinks per m3 of your meter (One rotation/liter) #define SLEEP_MODE false // flowvalue can only be reported when sleep mode is false. @@ -96,7 +96,7 @@ void presentation() // Send the sketch version information to the gateway and Controller sendSketchInfo("Water Meter", "1.1"); - // Register this device as Waterflow sensor + // Register this device as Water flow sensor present(CHILD_ID, S_WATER); } @@ -120,8 +120,8 @@ void loop() Serial.print("l/min:"); Serial.println(flow); - // Check that we dont get unresonable large flow value. - // could hapen when long wraps or false interrupt triggered + // Check that we don't get unreasonable large flow value. + // could happen when long wraps or false interrupt triggered if (flow<((uint32_t)MAX_FLOW)) { send(flowMsg.set(flow, 2)); // Send flow value to gw } @@ -178,7 +178,7 @@ void onPulse() if (interval!=0) { lastPulse = millis(); if (interval<500000L) { - // Sometimes we get interrupt on RISING, 500000 = 0.5sek debounce ( max 120 l/min) + // Sometimes we get interrupt on RISING, 500000 = 0.5 second debounce ( max 120 l/min) return; } flow = (60000000.0 /interval) / ppl;