Image

A Guide To Using Triacs For Switching AC

For switching high-powered loads from a microcontroller, or for switching AC loads in general, most of us will reach into the parts bin and pull out a generic relay of some sort. Relays are fundamental, proven technologies to safely switch all kinds of loads. They do have their downsides, though, so if you need silent operation, precise timing, or the ability to operate orders of magnitude more times you might want to look at a triac instead. These solid state devices can switch AC loads unlike other transistor-based devices and [Ray] at OpenSprinkler is here to give us an overview on how to use them.

The key to switching an AC load is bi-directional conductivity. A normal transistor or diode can only conduct in one direction, so if you try to switch an AC load with one of these you’ll end up with what essentially amounts to a bad rectifier. Triacs do have a “gate” analogous to the base of a bipolar junction transistor, but the gate will trigger the triac when current flows in either direction as well. The amount of current needed to trigger the triac does depend on the state of the switched waveform, so it can be more complex to configure than a relay or transistor in some situations.

After going through some of the theory around these devices, [Ray] demonstrates how to use them with an irrigation system, which are almost always operating on a 24VAC system thanks to various historical quirks. This involves providing the triacs with a low voltage source to provide gate current as well as a few other steps. But with that out of the way, switching AC loads with triacs can become second nature. If you prefer a DC setup for your sprinklers, though, [vinthewrench] has demonstrated how to convert these sprinkler systems instead.

Image

Power Grid Stability: From Generators To Reactive Power

It hasn’t been that long since humans figured out how to create power grids that integrated multiple generators and consumers. Ever since AC won the battle of the currents, grid operators have had to deal with the issues that come with using AC instead of the far less complex DC. Instead of simply targeting a constant voltage, generators have to synchronize with the frequency of the alternating current as it cycles between positive and negative current many times per second.

Complicating matters further, the transmission lines between generators and consumers, along with any kind of transmission equipment on the lines, add their own inductive, capacitive, and resistive properties to the system before the effects of consumers are even tallied up. The result of this are phase shifts between voltage and current that have to be managed by controlling the reactive power, lest frequency oscillations and voltage swings result in a complete grid blackout.

Continue reading “Power Grid Stability: From Generators To Reactive Power”

Image

High Current Measurement Probe For Oscilloscopes

A decent current measurement sensor ought to be an essential part of every hacker’s workbench. One that is capable of measuring DC, as well as low and high frequencies with reasonable accuracy. And bonus credits if it can also withstand high bus voltages – such as those found in mains utility or electric vehicle work. [Undersilicon] couldn’t find one that ticked all the boxes, so he built an ACS730 based AC/DC current probe capable of measuring up to 25 A at frequencies up to 1 MHz.

Allegro Microsystems has a wide offering of current sensor IC’s. The ACS730 features a -3 dB bandwidth of 1 MHz, and -1 dB bandwidth of 500 kHz. Since it is galvanically isolated, it can be used in AC mains applications up to 297 Vrms and for DC up to 420 V. And as he intended to use it as an oscilloscope accessory, the analog output suited the application nicely. A pair of precision op-amps provide the voltage output scaled to 100 mV/A. The board is powered off a 1000 mAh LiPo battery that can run the sensor for about 15 ~ 20 hours. The power supply section consists of a charge circuit for the LiPo, and a split rail dual output power supply converter for the op-amps.

The ACS730 has a 2.5 V output when measured current is zero, and is scaled for 40 mV/A. This gives an output voltage swing from -0.5 V for -50 A to +4.5 V for +50 A. This is where the AD823ARZ dual 16 MHz, Rail-to-Rail FET Input Amplifiers step in. One pair is used to obtain a 2.5 V reference from the 5 V supply, and also to buffer the analog output from the ACS730. The second pair subtracts the 2.5 V offset, and applies a gain of 2.5 to get the 100 mV/A output. Dual power supply for the op-amps comes from a TPS65133 Split-Rail Converter, ±5V, 250mA Dual Output Power Supply. Lastly, LiPo charging is handled by the MCP73831 Single Cell, Li-Ion/Li-Polymer Charge Management Controller.

Initial testing of direct currents has shown fairly accurate performance. But he’s observed some noise when measuring currents below 1 A which requires some debugging to figure out the source. [Undersilicon] has provided the CAD files for both the PCB and 3D printed enclosure, giving you access to everything you need to build one yourself. If you’re looking for something a bit more heavy duty, you might be interested in this +/-50 A, 1.5 MHz sensor encased in concrete.

Image

Building A Mechanical Oscillator, Tesla Style

Before Tesla devised beautifully simple rotary machinery, he explored other methods of generating alternating current. One of those was the mechanical oscillator, and [Integza] had a go at replicating the device himself. (Video, embedded below the break.)

Initial attempts to reproduce the technology using 3D-printed parts were a failure. The round cylinder had issues sealing, and using O-ring seals introduced too much friction to allow the device to oscillate properly. A redesign that used external valving and a square cylinder proved more successful.

Once the oscillator was complete, the output shaft was fitted with magnets and a coil to generate electricity. After generating a disappointing 0.14 volts, [Integza] went back and had a look at the Maxwell-Faraday equations. Using this to guide the design, a new coil was produced with more turns, and the magnetic flux was maximised. With this done, the setup could generate seven volts, enough to light several LEDs.

While it’s not a particularly efficient generator, it’s a great proof-of-concept. Yes, Tesla’s invention worked, but it’s easy to see why he moved on to rotary designs when it came to real-world applications. We’ve seen [Integza] take on other builds too, like the ever-popular Tesla turbine.

Continue reading “Building A Mechanical Oscillator, Tesla Style”

Image

A Division In Voltage Standards

During my recent trip to Europe, I found out that converters were not as commonly sold as adapters, and for a good reason. The majority of the world receives 220-240 V single phase voltage at 50-60 Hz with the surprisingly small number of exceptions being Canada, Colombia, Japan, Taiwan, the United States, Venezuela, and several other nations in the Caribbean and Central America.

While the majority of countries have one defined plug type, several countries in Latin America, Africa, and Asia use a collection of incompatible plugs for different wall outlets, which requires a number of adapters depending on the region traveled.

Although there is a fair degree of standardization among most countries with regards to the voltage used for domestic appliances, what has caused the rift between the 220-240 V standard and the 100-127 V standards used in the remaining nations?

Continue reading “A Division In Voltage Standards”

Image

Spin Me Right Round, Baby: Generator Building Experiments For Mere Mortals

How many of you plan to build a wind-powered generator in the next year? Okay, both of you can put your hands down. Even if you don’t want to wind your coils manually, learning about the principles in an electric generator might spark your interest. There is a lot of math to engineering a commercial model, but if we approach a simple version by looking at the components one at a time, it’s much easier to understand.

For this adventure, [K&J Magnetics] start by dissect a commercial generator. They picked a simple version that might serve a campsite well, so there is no transmission or blade angle apparatus to complicate things. It’s the parts you’d expect, a rotor and a stator, one with permanent magnets and the other with coils of wire.

ImageThe fun of this project is copying the components found in the commercial hardware and varying the windings and coil count to see how it affects performance. If you have ever wound magnet wire around a nail to make an electromagnet, you know it is tedious work so check out their 3D printed coil holder with an embedded magnet to trigger a winding count and a socket to fit on a sewing machine bobbin winder. If you are going to make a bunch of coils, this is going to save headaches and wrist tendons.

They use an iterative process to demonstrate the effect of multiple coils on a generator. The first test run uses just three coils but doesn’t generate much power at all, even when spun by an electric drill. Six windings do better, but a dozen finally does the trick, even when turning the generator by hand. We don’t know about their use of cheap silicone diodes though, that seems like unintentional hobbling, but we digress.

Making turbine blades doesn’t have to be a sore chore either, and PVC may be the ticket there, you may also consider the vertical axis wind turbine which is safer at patio level. Now, you folks building generators, remember to tip us off!

Continue reading “Spin Me Right Round, Baby: Generator Building Experiments For Mere Mortals”

Image

Shocking Halloween Decoration

Sure, you could animate some Halloween lights using a microcontroller, some random number generation and some LEDs, and if the decorations are powered by AC, you could use some relays with your microcontroller. What if you don’t have that kind of time? [Gadget Addict] had some AC powered decorations that he’d previously animated with an Arduino and some relays, but this year wanted to do something quicker and simpler.

In another video, he goes over the wiring of a fluorescent starter to create a flickering effect with an incandescent light bulb. A fluorescent starter works because the current heats up a gas discharge tube which causes a bit of metal to bend and touch another, closing the circuit. A fluorescent bulb is a big enough load that the flowing current keeps the starter hot and, therefore, the circuit closed. If you wire the starter in series with a regular incandescent bulb, the starter heats up but the load isn’t big enough to keep the starter hot enough, so it cools down and the circuit breaks, which causes the starter to heat up again. This causes the bulb to flicker on and off. [Gadget Addict] uses two circuits with a fluorescent starter each wired to alternate bulbs in the decoration in order to get the effect to look a bit more random.

Continue reading “Shocking Halloween Decoration”