## ESP8266 relay module review – Yunshan WiFi relay

After scouring eBay for a packaged esp8266 with 220V 10A relay, two products were identified:

• Yunshan WiFi relay; and
• LC Technology relay.

As is usually the case, finding a schematic and specifications is very difficult and the sellers were of no help (no surprises).

The LC Technology device was offered with indistinct pics that hinted it had a 8Mb flash chip, ESP8266EX processor, and a STC 15F104 8 bit processor on board for some unidentified purpose.

A schematic was eventually located for the Yunshan board, and from pics it appeared to have a 12E module on it which hinted the flash size.

A Yunshan module was purchased for about \$10 posted, and it was indeed a 12E with flash-id 4016, so 4MB of flash memory.

The board does not incorporate a USB-TTL adapter which is a nuisance not just requiring an external adapter for programming, but there is no integration of the RTS and DTR signals as in the NodeMCU devkit. Adding a quality USB adapter (eg CP2102) would not increase the price a lot, you can keep the CH340G etc). Continue reading ESP8266 relay module review – Yunshan WiFi relay

## Small untuned loop for receiving – optimal loop load resistance

Small untuned loop for receiving set out a model for calculating the S/N degradation of an active untuned small loop antenna system.

The calculations in Small untuned loop for receiving – Trask noise and gain analysis might prompt the question of what is the optimal resistive load for an untuned small loop.

This article explores the topic for a simple model where the equivalent noise temperature of the amplifier is independent of source impedance.

## A simple model for a small loop

We can construct a simple model where the loop behaves as a fixed  pure inductance, and its load is a fixed pure resistance.

This is a reasonably good model for a small loop, perimeter < wl/10, not too bad for perimeter up to wl/3.

The source impedance becomes the loop’s inductive reactance Xl which is proportional to frequency, and the load is Rl.

Above is a plot of the relative power developed in the load vs the ratio of Rl/Xl.

There is a maximum where Rl=Xl, and the power captured falls away either side. Continue reading Small untuned loop for receiving – optimal loop load resistance

## Reset helper for NodeMCU ESP8266 modules

A common scheme for Lua scripted NodeMCU modules with automaticlly start the script init.lua is to incorporate some logic to test the condition of a GPIO pin to determin wether to boot to the application or drop to the lua prompt for programming etc. In fact the scheme can be elaborated to provide a simple multi level selection based on the time the input condition is applied.

The obvious pin to use is the pin that commonly has a “BOOT” or “FLASH” button on it, GPIO0 or D3. It is used to activate the ESP8266 boot loader if it is low during boot, so it must be left high at boot to allow the lua interpeter to run, but it can be pulled low shortly after boot up and tested from init.lua.

An example init script follows.

```print("\n\nHold Pin00 low for 1s t0 stop boot.")
print("\n\nHold Pin00 low for 3s for config mode.")
tmr.delay(1000000)
print("Release to stop boot...")
tmr.delay(1000000)
print("Release now (wifi cfg)...")
print("Starting wifi config mode...")
dofile("wifi_setup.lua")
return
else
print("...boot stopped")
return
end
end
print("Starting app.lua")
dofile("app.lua")

```

Above is a pic of the helper. The DIP switch allows selection of the BOOT pulse in 1s increments. It has four connections, ground, Vdd, BootOut, and Reset (optional). The button near the DIP switch resets the helper which in turn will apply a 10ms reset pulse to the Reset line. Continue reading Reset helper for NodeMCU ESP8266 modules

## Small untuned loop for receiving – Trask noise and gain analysis

The article Small untuned loop for receiving mentioned Trask’s active loop amplifier.

(Trask 2010) published a two stage design using passive augmentation, arguing certain benefits of the approach.

• Zin=2.25Ω
• NF 2.42dB
• Voltage gain 36dB
• OIP2 80dBm
• OIP3 40dBm

This article presents a noise gain analysis for the 8m perimeter loop used in the article Small untuned loop for receiving to achieve a S/N degradation of no worse than 1dB at 7MHz.

The analysis assumes linear components, that there is no significant intermodulation distortion in the preamplifier. That is a significant challenge on which success of the system depends.

## External noise

From the above chart (ITU-R P.372-12 (7/2015)), we can take the external or ambient noise figure Fa to be about 45dB at 7MHz, Ta=290*10^(45/10)=9.17e6K. Continue reading Small untuned loop for receiving – Trask noise and gain analysis

## Small untuned loop for receiving

This article walks through a case study for a small single turn untuned loop with attached 50Ω balanced preamplifier and 50Ω coaxial output to a high grade communications receiver. The objective is to achieve system S/N ration not poorer than 1dB below the external S/N (ie ExternalS/ ExternalN).

Such an antenna has utility in that it can be rotated to null out a strong noise source from a direction other than the desired signal.

The analysis assumes linear components, that there is no significant intermodulation distortion in the preamplifier. That is a significant challenge on which success of the system depends.

This is a rework of an earlier article which presented a ‘back of the envelope’ noise and gain analysis now presented as a more accurate model embodied in a spreadsheet to allow convenient exploration of variations to the scenario.

## External noise

From the above chart (ITU-R P.372-12 (7/2015)), we can take the external or ambient noise figure Fa to be about 45dB at 7MHz, Ta=290*10^(45/10)=9.17e6K. Continue reading Small untuned loop for receiving

## iiNet broadband Internet access – speed observations

I have for many years measured broadband Internet access service performance by measuring the transfer rate for a single HTTP download which is scheduled regularly.

Since moving to iiNet / NBN about 6 months ago, I have had difficulty reconciling apparent workstation performance with the measured download speed.