Skip to main content

Lesson 3: Disobey! When doing the opposite is the right thing to do

So as we discussed yesterday we still need at least one more component if we're going to make this LED of ours actually blink. And here it is: the inverter.

An inverter is a component that behaves like a typical 5-year old. It does the opposite of what you tell it.

If you tell it 1, it goes 0.

If you tell it 0, it goes 1.

Sounds weird? Well, no - not if you have a 5-year old. It sounds like another typical day.

But so far as our circuit is concerned this component is going to help you blink a light!

I remember our teacher in school told us that computers use only 1's and 0's.

He was not able to elaborate any more on that.

I don't think he understood what that meant.

Luckily, my dad knew!

He told me that 1's and 0's had many uses. In the binary counting system, you could use them to create any number you want, just by sequencing them correctly.

He also told me that in the field of electronics, 1's and 0's was about voltage.

Voltage, you might remember from Lesson 2, is a force that pushes the wire's 'marbles' through a circuit, thereby creating a current.

Recall also that voltage is always measured between two points. So when we say that a wire "has a voltage", it means that if we measure the voltage (with a multimeter) between a point on the wire and the minus of the battery, it will show a positive voltage.

My dad told me that a 1 was a wire with a voltage and that a 0 was a wire without a voltage.

He then showed me how, in electronic circuits, you can use something called 'logic gates' to do something with the 1's and 0's. The 'inverter' was one of the logic gates he taught me.

An 'inverter' inverts the input.

So if 1 is on the input to the inverter, 0 will be on the output.

If there is a voltage on the input to the inverter - that is, if there's some 'force' - then that's a '1'. The output will be a '0' - zero volts. No force, in other words.

And vice-versa. If there is no voltage on the input to the inverter - a '0' - there will be a voltage - a '1' - on the output.

That '1' by the way is know as 'HIGH' in inverter-speak. The zero - you'll be unsurprised to learn - is called 'LOW'.

Now that's a handy thing when wanting to blink a light.

What if you connect the inverter's output to the LED circuit from the last email?

Say, something like this?



Here you have a circuit with a two-way switch. The left side of the switch is either connected to plus or minus.

By the way - even though you don't see it here - the inverter is always connected to plus and minus too. And this is how it's possible that it creates a 1 out of a 0.

But since all logic gates need connections to plus and minus, it's considered a given fact. So they're usually skipped to simplify the circuit diagram. Here's how we would draw the inverter with those connections:


For those who are curious about how inverters are made - they're made using transistors. But we're not going to go into that in these first lessons.

Let's look at how the circuit works:

To begin with, the switch is "flipped off" so you have 0 on the input to the inverter. But the inverter makes that into a 1 on the output, so the LED lights up. When you flip the switch on, you get 1 on the inverter input, so the output becomes 0 and the LED turns off.

You'll get a circuit that turns on the light when the switch is flipped off, and it turns the light off when you flip the switch on.

Which is the opposite way of how it worked without the inverter.

Now, on its own that doesn't sound like a really useful circuit, does it? You either see a light that's on, or you see a light that's off. And that's it.

Whereas we want one that blinks.

So tomorrow I'm going to add a little magic to this circuit and show you some electronics cleverness that gets us what we want. It'll be with you in 24 hours - keep an eye out!

SUMMARY

So now you know that an inverter reverses whatever is on its input.

If there's a positive voltage at its input (also referred to as a '1' or 'HIGH'), it'll output no voltage at all (a '0' or 'LOW').

If there's no voltage at its input ('0' or 'LOW'), it will output a voltage ('1' or 'HIGH').

It does the opposite of what you tell it - just like a naughty 5-year-old.


Keep On Soldering!
Oyvind @ build-electronic-circuits.com


Ohmify is an online academy to learn electronics from scratch. Our members are hobbyists, teachers, inventors, artists, and more - from all walks of life. Our library of courses and project plans assume no prior knowledge. Get support, learn, build and chat with people like you - find out more
here.

Comments

Popular posts from this blog

Design and construct it! A DIY speaker resonance tester, a compact warning flasher, and more

If you can't see this message properly, view it in your browser. May 10, 2024 | #590    Compact Warning Flasher This little project should give peace of mind to bicycle riders pedaling in the dark without street lighting. At the same time it provides early warning to faster, motorized road users to pay attention and pass with care.   more...     Fnirsi SWM-10: Repair Battery Packs With This Portable Intelligent Spot Welding Machine (Review) Anyone who has ever tried to solder a wire or metal strip to a battery will know that this is near to impossible. What you really need for such a repair job is a spot welding tool. This is where the Fnirsi SWM-10 comes in.   more...     Raspberry Pi   ...

What goes in, must come out

There's no need to waste time trying to understand how any circuit works before you get this: The current flowing into your circuit is always the same  ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌...

New book 👉 Tektronix Epic Oscilloscopes 

An illustrated chronicle of Teknology for collectors and restorers  ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­  Hello manoj , This new Elektor book traces the history of a crucial instrument through many Tektronix products. In nearly 600 pages, with hundreds of gorgeous photos, diagrams, anecdotes, and t...