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

ESP WiFi relay project – preview

The impetus behind the project is a remotely WiFi controllable relay for reset function in a remote controlled ham station.

The information presented here applies to development v0.1.

Features:

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

A variety of integrated relay boards

Above, a Yunshan relay, not recommended as RESET pin is tied high. This one was binned, quite a waste of money. It exemplifies a common problem in that the RESET line is often not available on a header pin, this one is worse in having tied RESET high and no header pin for EN. Continue reading ESP WiFi relay project – preview

IoT water tank telemetry project – 4-20mA / 1MPa pressure transducer trial

This is a new project derived from IoT water tank telemetry project – part 1 , but using an inexpensive 1MPa 4-20mA pressure transducer.

Above is the electronics and 4MPa pressure transducer fitted with a Nitto male connector for a trial. Continue reading IoT water tank telemetry project – 4-20mA / 1MPa pressure transducer trial

IoT water tank telemetry project – HC-SR04 – second trial

IoT water tank telemetry project – ultrasonic sensor – #1 described an inexpensive ultrasonic ranging sensor for trial.

Above is the HC-SR04 ultrasonic ranging sensor, it was purchased for around $6 from a local eBay seller and delivered within days. Note that there are somewhat similar looking things with a second board on the back and a different interface, the basic HC-SR04 as pictured suits this project.

In this second trial, the battery saving feature has been activated. It powers the HC-SR04 on for each measurement, waiting 600ms for the HC-SR04 to stabilise. Continue reading IoT water tank telemetry project – HC-SR04 – second trial

IoT water tank telemetry project – JSN-SR04T-3.0 – first trial

IoT water tank telemetry project – HC-SR04 – first trial mentioned an inexpensive ultrasonic ranging sensor for trial.

Above is the JSN-SR04T-3.0, a waterproof transducer on a cable and the electronics board. The protocol is HC-SR04 PWM. No specifications or datasheet were found (other than the seller’s brief description). Continue reading IoT water tank telemetry project – JSN-SR04T-3.0 – first trial

BME280 vs BMP280

Several of my projects use Bosch BME280 sensor chips for measuring temperature, pressure and humidity.

Some correspondents have expressed problems using BME280 modules that they bought online, and it is usually because they have been cheated by online sellers misrepresenting BMP280 as BME280.

My projects that include code to initialise and read BME280  humidity will fail on a BMP280… check to see if the humidity results returned look sane. A driver may read the ChipID and fault on the ID returned by a BMP280.

The Bosch chips are usually visually different, and most clones likewise.

BME280 – temperature pressure and humidity sensor.

Above, the BME280 is a small square package, about 2.5mm each side. Continue reading BME280 vs BMP280