Garden environmental telemetry project – part 5

Garden environmental telemetry project – part 1 laid out plans for a simple maker / DIY IoT garden environmental telemetry system.

This article documents a change to the sensor configuration and payload formatter adding another temperature and humidity sensor for the greenhouse.

The sensors are now:

  • ID=1 air temperature and humidity;
  • ID=2 soil temperature and humidity.
  • ID=3 greenhouse temperature and humidity.

The payload contains an 8bit payload version number then six 16bit values for the six sensors. This is parsed by the TTN uplink formatter.

RS485-LN firmware has been upgraded to v1.4. Continue reading Garden environmental telemetry project – part 5

Garden environmental telemetry project – part 4

Garden environmental telemetry project – part 1 laid out plans for a simple maker / DIY IoT garden environmental telemetry system.

This article documents a change to the sensor configuration and payload formatter in preparation for another RS485-LN.

The sensors are now:

  • ID=1 air temperature and humidity;
  • ID=2 soil temperature and humidity.

The payload  contains a 8bit payload version number then four 16bit values for the four sensors. This is parsed by the TNN uplink formatter.

function decodeUplink(input) {
  var payver=input.bytes[0];
  switch(payver){
    case 1:
      return {
        data: {
          field3: ((input.bytes[3]<< 8)|input.bytes[4])/10,
          field4: ((input.bytes[1]<< 8)|input.bytes[2])/10,
          field5: ((input.bytes[7]<< 8)|input.bytes[8])/10,
          field6: ((input.bytes[5]<< 8)|input.bytes[6])/10
        },
      warnings: [], // optional
      errors: [] // optional (if set, the decoding failed)
      };
    case 2:
      break;
    }
  }

Above, is the Custom Javascript formatter which writes the measured values into variables fields3-field6 of the data object.

To be continued…

Garden environmental telemetry project – part 3

Garden environmental telemetry project – part 1 laid out plans for a simple maker / DIY IoT garden environmental telemetry system.

Earlier experiments highlighted the disadvantage of analogue sensor connections. This article reports tests on sensors connected using digital signals.

Above is the Dragino RS485-LN LoRaWAN end node, about $90 incl shipping. In this application it will be used to read two MODBUS sensors (each with two data channels) and forward the data to The Things Network via LoRaWAN, then after some processing, RESTFUL submission to Thingspeak. Continue reading Garden environmental telemetry project – part 3

Garden environmental telemetry project – part 2

Garden environmental telemetry project – part 1 laid out plans for a simple maker / DIY IoT garden environmental telemetry system.

This article reports tests on three sensor configurations, all using a Pt100 sensor with 4-20mA converter.

This article reports

  • Pt100 remote from a 4-20mA converter (ie long Pt100 3 wire wiring);
  • Pt100 with co-located 4-20mA converter (ie long 4-20mA loop wiring);

Pt100 remote from a 4-20mA converter (ie long Pt100 3 wire wiring)

The 4-20mA sensor is 8m of CAT5 cable from the Pt100 element. The Pt100 signal sensitivity is about 400µV/° @ 15° (25000°/V).

Above, some experiments in AC powering and earthing shows the analog sensor chain prone to noise. The first half of the display is powered from a small power bank (18650 cell with switched mode boost converter). The second half is with the 5V derived from a DIN rail mount Chinese 230VAC power supply (copy of Meanwell MDR-2–5), not the quietest of output. Continue reading Garden environmental telemetry project – part 2

IoT – exploration of LoRaWAN – part 4

My experiments with LoRaWAN were cut short by the announcement that The Things Network (TTN) was to discontinue its V2 network in favour of a new V3. This coincided with Laird’s decision to manufacture region specific versions of its gateway, and all existing equipment was designated US region and would not directly support frequency plans used here in Australia.

After some years there is a solution. Newer firmware for the RG191 supports the more generic Semtech basic forwarder and protocols for TTN to configure the RG191 frequency plan… so it is possible to connect the RG191 to the North American server (instead of the AU server), and configure the gateway in TTN for Australian frequency plans, and it all comes together. Continue reading IoT – exploration of LoRaWAN – part 4

Garden environmental telemetry project – part 1

This is the first in a series of articles describing a simple maker / DIY IoT garden environmental telemetry system. The project is a derivative of IoT water tank telemetry project – part 1, and some of the optional components are as per that project (eg battery / solar power).

Plans are to explore some different kinds of sensors including analog and digital connection types:

  • Pt100 remote from a 4-20mA converter (ie long Pt100 3 wire wiring);
  • Pt100 with co-located 4-20mA converter (ie long 4-20mA loop wiring);
  • MODBUS soil sensor (temperature and humidity).

The measurements of this (get) and an another project (bme280r) are posted to the same Thingspeak channel (https://thingspeak.com/channels/436449 at this time).

Above is a screenshot of the Thingspeak channel. Continue reading Garden environmental telemetry project – part 1

CG K/ J/ S/ B to 4-20mA 0-1800 Celsius Thermocouple Converter TC Input 4-20mA Output Head-mounted Temperature Transducer – first impressions

CG K/ J/ S/ B to 4-20mA 0-1800 Celsius Thermocouple Converter TC Input 4-20mA Output Head-mounted Temperature Transducer.

So the concept is that one can program the transducer module for a range of input sensors, and lower and upper limits to the conversion range. Another significant benefit is that it does cold junction compensation (and it does not seem possible to disable it if you wanted).. Continue reading CG K/ J/ S/ B to 4-20mA 0-1800 Celsius Thermocouple Converter TC Input 4-20mA Output Head-mounted Temperature Transducer – first impressions

EARU Programmable Thermocouple K J PT100 to 4-20mA Converter TC RTD Input 4-20mA Output Head-mounted Temperature Transducer – first impressions

This article is a review of the EARU Programmable Thermocouple K J PT100 to 4-20mA Converter TC RTD Input 4-20mA Output Head-mounted Temperature Transducer.

So the concept is that one can program the transducer module for a range of input sensors, and lower and upper limits to the conversion range. Another significant benefit is that it does cold junction compensation (and it does not seem possible to disable it if you wanted). The stated cold junction compensation range is narrow at 20-60°, it seems unlikely but bears testing. Continue reading EARU Programmable Thermocouple K J PT100 to 4-20mA Converter TC RTD Input 4-20mA Output Head-mounted Temperature Transducer – first impressions

Making a jtag2updi adapter

This article is about selection and reprogramming of an adapter to make a jtag2updi adapter using the code published at https://github.com/ElTangas/jtag2updi.

The purpose is for programming some of the newer AVR chips that use UPDI.

Above is a JTAG ICE that I purchased, but I did not check the pics carefully enough and fell foul of the Chinese Cheats. The chip arrowed is the USB-RS232TTL chip, it is a PL2303HX which will not work in Windows 10 since the driver was poisoned many years ago. Continue reading Making a jtag2updi adapter

ESP WiFi relay project – update #1

ESP WiFi relay project – preview previewed a WiFi controllable relay board using commonly available low cost hardware from sources like eBay and Aliexpress.

The stimulus for the project is a remotely WiFi controllable relay for reset function in a remote controlled ham station, basically to recover operation of some system element by bouncing the power.

The information presented here applies to development v0.2.

Features:

  • support typical multi channel relay boards;
  • ESP8266 and ESP32 firmware versions;
  • WiFi credentials programmable via a captive web interface;
  • DHCP or static IP;
  • mDNS responder;
  • flexible configuration stored as json file in on-board LittleFS file system;
  • optional authentication to secure remote access.

 

Above is a ESP12F_Relay_30A X2_V1.1 relay board (~$20 inc shipping) deployed for field testing. This board has a switched mode power supply on board and will run on 7-28VDC. In this application, the AC circuit is wired through the NC contacts, and the relays are operated to break the power. Normal operation is with the relays released, and current consumption @ 13.8V is 30mA. Continue reading ESP WiFi relay project – update #1