Know How... (Audio)

KH 342: IR Basics Part 2


Listen Later

Triggered!
Last week we showed how you could build and program a simple Arduino-powered IR code reader and use it to trigger certain events when the proper code was received.

Demo 1

  1. Show IR code being received
  2. Show Case Statement that triggers an event when IR code is received
  3. Show LEDs being triggered when the IR code is received

But we only triggered 5volt LEDs... what if we wanted to trigger something BIGGER?

Relays!

  • A relay is a switch that is toggled electrically
    • It gives us the ability to turn on and off a circuit with a different circuit
      • So a 120AC circuit could toggle a 12V DC circuit
      • A 5V circuit could toggle a 24V circuit

There are several different TYPES of Relays

  • Electromagnetic (the most popular)
  • Optomechanical (Much like EM, but the circuits are COMPLETELY isolated from each other)
  • Solid State (No moving parts. All switching is done in a semiconductor)

We're going to be using electromagnetic Relays

  • In the most basic version: a switch is toggled between "on" and "off" by an electromagnetic that physically moves the switch between the two positions

8-Relay Package

https://www.amazon.com/gp/product/B01NBUDHPB/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1​

The important part is that we can use a 5-volt circuit to toggle a circuit up to 30v (or 120v AC)

IR0_Relays

Demo 2:

  • Single Relay that is toggled by ASCII case statements

IR1_Relays

Demo 3:

  • 8-Relay Board that is toggled by ASCII case statements

Now we know that we can trigger the relays with the keyboard... next up we're going to add an IR receiver and trigger them with an IR remote control.

IR2_IR_Triggered_Relays

Demo 4:

  • 8-Relay Board that is toggled by IR code case statements

All Code for this episode is found at:
https://www.dropbox.com/s/20xonebuc7eh7is/KH342_IR2.zip?dl=0

Hosts: Fr. Robert Ballecer, SJ and Megan Morrone

Connect with us!

  • Don't forget to check out our large library of projects at https://twit.tv/shows/know-how.
  • Join our Google+ Community.
  • Tweet at us at @PadreSJ and @Anelf3.

Thanks to CacheFly for the bandwidth for this show.

Sponsor:

  • ifixit.com/twit
  • ...more
    View all episodesView all episodes
    Download on the App Store

    Know How... (Audio)By TWiT

    • 4.5
    • 4.5
    • 4.5
    • 4.5
    • 4.5

    4.5

    35 ratings


    More shows like Know How... (Audio)

    View all
    The Giz Wiz (Audio) by Dick DeBartolo & Chad Johnson

    The Giz Wiz (Audio)

    138 Listeners

    This Week in Law (Audio) by TWiT

    This Week in Law (Audio)

    109 Listeners

    Jumping Monkeys (Audio) by TWiT

    Jumping Monkeys (Audio)

    72 Listeners

    Dr. Kiki's Science Hour (Audio) by TWiT

    Dr. Kiki's Science Hour (Audio)

    96 Listeners

    Maxwell's House (Audio) by TWiT

    Maxwell's House (Audio)

    35 Listeners

    net@night (Video) by TWiT

    net@night (Video)

    24 Listeners

    Futures in Biotech (Video) by TWiT

    Futures in Biotech (Video)

    10 Listeners

    Ham Nation by Josh Nass

    Ham Nation

    116 Listeners

    Trey's Variety Hour (Video) by TWiT

    Trey's Variety Hour (Video)

    35 Listeners

    This Week in Enterprise Tech (Audio) by TWiT

    This Week in Enterprise Tech (Audio)

    95 Listeners

    The Giz Wiz (HD Video) by Dick DeBartolo & Chad Johnson

    The Giz Wiz (HD Video)

    28 Listeners

    This Week in Law (Video) by TWiT

    This Week in Law (Video)

    6 Listeners

    This Week in YouTube (Audio) by TWiT

    This Week in YouTube (Audio)

    9 Listeners

    FourCast (Audio) by TWiT

    FourCast (Audio)

    0 Listeners

    Coding 101 (Audio) by TWiT

    Coding 101 (Audio)

    15 Listeners

    Padre's Corner (Video) by TWiT

    Padre's Corner (Video)

    9 Listeners

    The New Screen Savers (Audio) by TWiT

    The New Screen Savers (Audio)

    50 Listeners

    Ask The Tech Guy (Vintage) (Audio) by TWiT

    Ask The Tech Guy (Vintage) (Audio)

    29 Listeners

    Hands-On Photography (Audio) by TWiT

    Hands-On Photography (Audio)

    31 Listeners

    Ask The Tech Guy (Video) by TWiT

    Ask The Tech Guy (Video)

    0 Listeners