====== Converters for IoT Powering ====== {{:en:iot-open:czapka_b.png?50| General audience classification icon }}{{:en:iot-open:czapka_e.png?50| General audience classification icon }}\\ ===== Power Conversion ===== Power sources tend to provide energy in a form that is not straightforwardly acceptable to IoT devices.\\ Wall sockets provide relatively high voltage alternating current (AC) that needs to be lowered and converted into DC, also stabilised as required by MCU, which is fragile for voltage variations. Common conversion flow for AC sources is present in figure {{ref>powerconversions1}}. DC power sources (such as batteries) also require voltage conversion and stabilisation. The flow is present in figure {{ref>powerconversions2}}.
{{ :en:iot-open:hardware2:powering:power_conversions.png?500 | AC power source conversion flow}} AC power source conversion flow
{{ :en:iot-open:hardware2:powering:power_conversions2.png?250 | DC power source conversion flow}} DC power source conversion flow
Common voltage conversions are: * AC-to-AC conversion, * AC-to-DC conversion, * filtering, * DC-DC conversion and voltage stabilisation. Stabilisation usually is included as a part of DC-DC or AC-DC conversion. **AC-to-AC**\\ AC-to-AC conversion is used whenever a high-voltage source is available and is required to lower it, typically somewhere between 12V and 5V.\\ Historically, AC-to-AC conversion was implemented using a transformer (symbol in figure {{ref>transformer1}}). This technique has serious drawbacks: * transformer-based converters are heavy as they use copper coils and steel cores (sample transformer in figure {{ref>transformer2}}), * the conversion rate is fixed, thus requiring different transformers in the countries with different socket voltages, * require separate AC-to-DC conversion module (Graetz bridge at least).
{{ :en:iot-open:hardware2:powering:transformer.png?100 | Transformer symbol}} Transformer symbol
{{ :en:iot-open:hardware2:powering:transformer.jpg?200 | Sample high to low voltage transformer}} Sample high to low voltage transformer
Modern converters use a switching-mode power supply (SMPS) without a transformer, just a small coil. Those converters used to be much more complex, but nowadays, most of the circuit is implemented in a single, integrated chip. Currently, the cost of the SMPS is much lower than the transformer-based one. SMPSes are: * much lighter and compact (do not involve the use of a transformer), * usually integrate AC to DC conversion in a single circuit, * accepting a wide range of input AC and DC voltages, thus can be used virtually worldwide and in various environments. **AC-to-DC**\\ In general, IoT devices use DC to power MCUs and peripherals. A classical AC-to-DC conversion involves a Graetz's bridge with 4 diodes (schematic in figure {{ref>graetz1}}), currently implemented commonly in a single enclosure as in figure {{ref>graetz2}}.
{{ :en:iot-open:hardware2:powering:graetz.png?100 | Graetz bridge}} Graetz bridge
{{ :en:iot-open:hardware2:powering:graetz.jpg?100 | Graetz bridge in single enclosure}} Graetz bridge in single enclosure
SMPS is used to integrate all necessary functions (including voltage stabiliser) in a single device, e.g. in figure {{ref>acdc1}}.
{{ :en:iot-open:hardware2:powering:20231017_172145.jpg?280 | Sample AC to DC converter with voltage stabilised output}} Sample AC to DC converter with voltage stabilised output
**Filtering**\\ Proper filtering of the current interferences is essential to ensure stable MCU operation. Even when using good quality power sources, nearby communication wires, power wires, and electromagnetic fields generated by actuators can cause severe interference voltage rise and drop. For this reason, the use of capacitors is essential. A rule of thumb is to add a large capacity (e.g. 1000uF) capacitor on the power bus and 100nF capacitors close to the IoT device's MCU and other sensitive components. It may be specific to the device so unstable work may require analysis of the power bus interferences regarding their frequency and amount. **DC-to-DC and voltage stabilisation**\\ The DC-to-DC conversion is needed whenever the source voltage is unsuitable for an IoT device. It is also needed in the case of batteries as a second stage after AC-DC conversion. DC-DC converters involve voltage stabilisation.\\ Modern DC-to-DC converters are implemented with fixed output voltage or regulated to decrease (step-down) or increase (step-up) the voltage. Some circuits can implement both: step-up-down, where voltage is controlled with a regulator (usually a potentiometer). Former solutions include linear voltage stabilisers (only step-down), e.g. popular and still used 78xx chips. Sample 5V stabiliser 7805 is presented in figure {{ref>7805}}. Depending on their application and maximum current, linear stabilisers are available in various enclosures.\\ They have several drawbacks, however: * low efficiency, * limited current, * overheating - they require a radiator even for relatively low currents, e.g. over 1A, * fixed voltage output (without the use of the external components). Their advantage is that they are much easier to embed into the circuit as use requires only a few passive components. The sample application circuit is quite simple and present in figure {{ref>7805_2}}.
{{ :en:iot-open:hardware2:powering:lm7805-5v-1a-linear-regulator.png?100 | Linear voltage regulator}} Linear voltage regulator
{{ :en:iot-open:hardware2:powering:7805.png?200 | Linear voltage regulator application circuit}} Linear voltage regulator application circuit
Modern DC-DC converters are of high efficiency, easily going over 90%. They are implemented as switching regulators rather than linear. The construction of the switching converters is quite complex. Sample device with fixed voltage regulation is present in figure {{ref>dcdcswitching1}} and the one with variable voltage, in figures {{ref>dcdcswitching2}} and {{ref>dcdcswitching3}}, where the output voltage can be set using a potentiometer.
{{ :en:iot-open:hardware2:powering:20231017_171951.jpg?200 | Fixed voltage step down converter module}} Fixed voltage step down converter module
{{ :en:iot-open:hardware2:powering:20231025_130353.jpg?200 | Variable voltage step-down converter module}} Variable voltage step-down converter module
{{ :en:iot-open:hardware2:powering:20231017_172244.jpg?200 | Variable voltage step-down converter module with additional 5V utility power source}} Variable voltage step-down converter module with additional 5V utility power source