SlideShare a Scribd company logo
Schedule:
1. Install Arduino and upload a sketch
        2. Intro. to Electrickery
           3. Break < 12.30pm!
           4. Arduino HW/SW
           5. Practical Project
       6. Individual Consulations
Today you will achieve the following:
      Learn the basics of electronics theory.
    Learn the Arduino programming language.
        Learn about prototyping methods.
   Make a component breadboard compatible.
   Convert an analog input into a digital value.
Convert a digital value into a pseudo-analog output.
Introduction to
  Electrickery
    A short primer by
   Justin James Clayden
Where it lies
  Analog
electronics

                          Digital
                        electronics




 Digital electronics is a limited subset of analog electronics
What we’ll cover
  Digital
electronics

                       Analog
                     electronics




     We’ll need some analog electronics knowledge
examples
Digital       micro-controllers          PWM


                     Analog          power
                      sensors
                           audio potentiometers


    We’ll need some analog electronics knowledge
Schematics
•   Simplest representation of a circuit. A single schematic can
    be implemented in any number of ways.

                                       conductor


                        power source


switch                                                light




                           resistor
Conductivity
Conductors allow the flow of
   electrons, i.e. current

Resistors retard the flow of
         electrons

Insulators prevent the flow of
           electrons
The idea of Work


• Electrons have an energy that can do work
• Grossly- the production of heat
• Subtly- the actuation of logic
The Couloumb

•   Approximately equal to 6.241 x 10 18
    elementary particles.
• One C passing past one point per second is
    known as an Ampere.
Electron motivation


• How motivated?
• Result of motivation
• Impediment to motivation
The key concepts


• Potential Difference (PD)
• Current
• Resistance
Better known as..


• Volts
• Amps
• Ohms
The classic scenario


• A potential difference (some Volts) causes
• some current to flow through
• some resistance
Ohm’s Law


• A fixed voltage will cause a greater
• current to flow, given a smaller
• resistance
Ohm’s Law


• A greater voltage is required to cause a
• fixed current to flow through a greater
• resistance
Ohm’s Law


• The greater the voltage,
• the greater the current will flow for a
• fixed resistance
Ohm’s Law

     V

 I       R
Ohm’s Law

           V=IxR

I =V / R    R =V / I
Voltage as P.D.

• A Potential Difference is quite simply a
  difference in energy potential between two
  points in a circuit
• No difference, no P.D. and no current
• Two points might be at 5V, but there will be
  no P.D.
AC/DC

• Seminal rock band
• Alternating Current / Direct Current
• Incompatible!
• Rectification converts to DC
• Where is the GND line?
High/low Voltages
• Static (eg lightning) Millions+ of Volts
• Substations - 10,000’s of Volts
• G.P.O. - 240 V
• Motors, etc - 12-24 V
• Digital circuits - 5V
• Low power digital - 1.2-3.3V
• Microphone signals - thousandths of volts
Kirchoff’s Law
       c



             a    b

       c

  Current c = a + b
Conventional Current

• Throwback to earliest days of electronics
 • Charge was thought to flow from +ve to
    -ve
 • Many schematics still obey this
    convention
Compound quantities


• Watt
• Farad
• Amp Hour
Derived quantities

• 1 Watt = 1 Amp @ 1 Volt
• Farad = 1 Coulomb @ 1 Volt
 • 1 Amp = 1 Coulomb/sec
 • 1 Amp Hour = 1 Amp used over an hour
Restrictions

• Ohm’s Law is a formula; we deal in reality
• Rated Maximums
 • Current carrying capacity
 • Heat dissipation
 • Voltage limits
Signals

• In a 5V digital system, the 2 states are 5v and
  0v
  • Using an oscilloscope to visualise digital
    (and analog) signals is extremely helpful
Components
• Resistors
• Capacitors
• Diodes
• Relays
• Transistors
• Integrated Circuits
Components
• Resistors - resist the flow of current
• Capacitors - store charge
• Diodes - allow one way passage of current
• Relays - can switch a large current from a
  small one (eg 5V to 12V to 240V)
• Transistors - act as switches / amplifiers
• IC’s - many components in one
Components
• Resistors - like mathematical constants
• Capacitors - smoothing, buffering
• Diodes - circuit protection
• Relays - can switch a large current from a
  small one
• Transistors - NPN / PNP
• IC’s - modules
Design Patterns
 Three of my most often used,
 easy to apply design patterns
3 patterns


• Voltage Divider
• Power Decoupler
• “Charlieplexing”
Voltage Divider
   simplest case:
                              5v


500 Ohms
                    = 5 * 500 / 1000
                         = 2.5v
500 Ohms


                              0v
Voltage Divider
      3/7 ratio:
                             5v


300 Ohms
                   = 5 * 700 / 1000
                        = 3.5v
700 Ohms


                             0v
Voltage Divider
   extreme case:
                             5v


1 Ohms
                   = 5 * 999 / 1000
                       = 4.995v
999 Ohms


                             0v
Power Decoupler
        - for power stability
                                5v


+
    50-500 uF




                                0v
Power Decoupler
         - for signal stability
                                  5v


+                +
    50-500 uF        1-10 uF




                                  0v
Power Decoupler
     - for higher frequencies
                                            5v


+               +
    50-500 uF       1-10 uF   .01 - .1 uF




                                            0v
“Charlieplexing”
x*y LEDs from x+y pins




                     Eg 6+7 pins
                    gives 42 LEDs
“Charlieplexing”
      detail




      L.E.D.
“Charlieplexing”
              lighting 0,0: step 1
               col 0: 5v   col 1: 0v



row 0: 0v




row 1: 0v
“Charlieplexing”
              lighting 0,0: step 2
               col 0: 5v   col 1: 0v



row 0: 0v




row 1: 5v
“Charlieplexing”
              summary
• x*y LEDs from x+y pins
• to light LED {x,y} :
 • put 5v on column x and 0v on all other
    columns
 • put 0v on row y and 5v on all other
    rows
 • reversing these steps avoids glitches
 • can light an entire column
Discussables
• Charlieplexing for input
• PWM
• Sensors/Actuators
• IR
• analogue inputs
• LED driver

More Related Content

What's hot

Electronic letter box
Electronic letter boxElectronic letter box
Electronic letter box
Shashank Singh
 
Junior cycle science physics electricity. By Theresa Lowry-Lehnen. Science Te...
Junior cycle science physics electricity. By Theresa Lowry-Lehnen. Science Te...Junior cycle science physics electricity. By Theresa Lowry-Lehnen. Science Te...
Junior cycle science physics electricity. By Theresa Lowry-Lehnen. Science Te...
Theresa Lowry-Lehnen
 
Automatic light control Using LDR
Automatic light control Using LDRAutomatic light control Using LDR
Automatic light control Using LDR
Badrul Alam
 
Junior cycle science physics in action. By Theresa Lowry-Lehnen. Science Teac...
Junior cycle science physics in action. By Theresa Lowry-Lehnen. Science Teac...Junior cycle science physics in action. By Theresa Lowry-Lehnen. Science Teac...
Junior cycle science physics in action. By Theresa Lowry-Lehnen. Science Teac...
Theresa Lowry-Lehnen
 
30.led .projects
30.led .projects30.led .projects
30.led .projects
Toz Koparan
 
Getting Started with Arduino
Getting Started with ArduinoGetting Started with Arduino
Getting Started with Arduino
Siddharth Bhatter
 
Light Sensor (Auto Light on off)
Light Sensor (Auto Light on off)Light Sensor (Auto Light on off)
Light Sensor (Auto Light on off)
Haziq Naeem
 
Internal Resistance, EMF and Oscilloscopes.ppt
Internal Resistance, EMF and Oscilloscopes.pptInternal Resistance, EMF and Oscilloscopes.ppt
Internal Resistance, EMF and Oscilloscopes.ppt
mrmeredith
 
30 led projects
30 led projects30 led projects
30 led projects
Francisco Patricio
 
Ldrppt
LdrpptLdrppt
Ldrppt
Bibin Baby
 
041813 rs 120 rule and test taking strat
041813 rs 120 rule and test taking strat 041813 rs 120 rule and test taking strat
041813 rs 120 rule and test taking strat
solpowerpeople
 
Automatic night lamp
Automatic night lampAutomatic night lamp
Automatic night lamp
ABUBAKKAR SIDDIKI
 
automatic light control at night ppt by Shubhan raj
automatic light control at night ppt by Shubhan rajautomatic light control at night ppt by Shubhan raj
automatic light control at night ppt by Shubhan raj
Shubham Raj
 
Ohm's law
Ohm's lawOhm's law
Ohm's law
sbarkanic
 
Current electricity
Current electricityCurrent electricity
Current electricity
14choiyu
 
Passive compornents
Passive compornentsPassive compornents
Passive compornents
Asanka Lakmal Morawaka
 
A Measurements Project on Light Detection sensor
A Measurements Project on Light Detection sensorA Measurements Project on Light Detection sensor
A Measurements Project on Light Detection sensor
svrohith 9
 
Changes to 2014 NEC Interconnection Rule 705.12
Changes to 2014 NEC Interconnection Rule 705.12Changes to 2014 NEC Interconnection Rule 705.12
Changes to 2014 NEC Interconnection Rule 705.12
solpowerpeople
 
Automatic led emergency light
Automatic led emergency lightAutomatic led emergency light
Automatic led emergency light
sahadev1992
 

What's hot (19)

Electronic letter box
Electronic letter boxElectronic letter box
Electronic letter box
 
Junior cycle science physics electricity. By Theresa Lowry-Lehnen. Science Te...
Junior cycle science physics electricity. By Theresa Lowry-Lehnen. Science Te...Junior cycle science physics electricity. By Theresa Lowry-Lehnen. Science Te...
Junior cycle science physics electricity. By Theresa Lowry-Lehnen. Science Te...
 
Automatic light control Using LDR
Automatic light control Using LDRAutomatic light control Using LDR
Automatic light control Using LDR
 
Junior cycle science physics in action. By Theresa Lowry-Lehnen. Science Teac...
Junior cycle science physics in action. By Theresa Lowry-Lehnen. Science Teac...Junior cycle science physics in action. By Theresa Lowry-Lehnen. Science Teac...
Junior cycle science physics in action. By Theresa Lowry-Lehnen. Science Teac...
 
30.led .projects
30.led .projects30.led .projects
30.led .projects
 
Getting Started with Arduino
Getting Started with ArduinoGetting Started with Arduino
Getting Started with Arduino
 
Light Sensor (Auto Light on off)
Light Sensor (Auto Light on off)Light Sensor (Auto Light on off)
Light Sensor (Auto Light on off)
 
Internal Resistance, EMF and Oscilloscopes.ppt
Internal Resistance, EMF and Oscilloscopes.pptInternal Resistance, EMF and Oscilloscopes.ppt
Internal Resistance, EMF and Oscilloscopes.ppt
 
30 led projects
30 led projects30 led projects
30 led projects
 
Ldrppt
LdrpptLdrppt
Ldrppt
 
041813 rs 120 rule and test taking strat
041813 rs 120 rule and test taking strat 041813 rs 120 rule and test taking strat
041813 rs 120 rule and test taking strat
 
Automatic night lamp
Automatic night lampAutomatic night lamp
Automatic night lamp
 
automatic light control at night ppt by Shubhan raj
automatic light control at night ppt by Shubhan rajautomatic light control at night ppt by Shubhan raj
automatic light control at night ppt by Shubhan raj
 
Ohm's law
Ohm's lawOhm's law
Ohm's law
 
Current electricity
Current electricityCurrent electricity
Current electricity
 
Passive compornents
Passive compornentsPassive compornents
Passive compornents
 
A Measurements Project on Light Detection sensor
A Measurements Project on Light Detection sensorA Measurements Project on Light Detection sensor
A Measurements Project on Light Detection sensor
 
Changes to 2014 NEC Interconnection Rule 705.12
Changes to 2014 NEC Interconnection Rule 705.12Changes to 2014 NEC Interconnection Rule 705.12
Changes to 2014 NEC Interconnection Rule 705.12
 
Automatic led emergency light
Automatic led emergency lightAutomatic led emergency light
Automatic led emergency light
 

Viewers also liked

Sitran visuaalinen ohjeisto 2010
Sitran visuaalinen ohjeisto 2010Sitran visuaalinen ohjeisto 2010
Sitran visuaalinen ohjeisto 2010Sari Tuori
 
Maven
MavenMaven
Maven
MavenMaven
Ivo Pezzuto - "FED BITES THE BULLET - Implements First Rate Hike in Nearly a ...
Ivo Pezzuto - "FED BITES THE BULLET - Implements First Rate Hike in Nearly a ...Ivo Pezzuto - "FED BITES THE BULLET - Implements First Rate Hike in Nearly a ...
Ivo Pezzuto - "FED BITES THE BULLET - Implements First Rate Hike in Nearly a ...
Dr. Ivo Pezzuto
 
sismo
sismosismo

Viewers also liked (7)

Sitran visuaalinen ohjeisto 2010
Sitran visuaalinen ohjeisto 2010Sitran visuaalinen ohjeisto 2010
Sitran visuaalinen ohjeisto 2010
 
Internet
InternetInternet
Internet
 
Maven
MavenMaven
Maven
 
Maven
MavenMaven
Maven
 
Ivo Pezzuto - "FED BITES THE BULLET - Implements First Rate Hike in Nearly a ...
Ivo Pezzuto - "FED BITES THE BULLET - Implements First Rate Hike in Nearly a ...Ivo Pezzuto - "FED BITES THE BULLET - Implements First Rate Hike in Nearly a ...
Ivo Pezzuto - "FED BITES THE BULLET - Implements First Rate Hike in Nearly a ...
 
Bermain Dan Anak
Bermain Dan AnakBermain Dan Anak
Bermain Dan Anak
 
sismo
sismosismo
sismo
 

Similar to Introduction to Electrickery

pedals.pdf
pedals.pdfpedals.pdf
pedals.pdf
ssuser87bfc51
 
Basic electronic components used in robotics
Basic electronic components used in roboticsBasic electronic components used in robotics
Basic electronic components used in robotics
Kshitij Wagle
 
Topic 1 a_basic_concepts_and_theorem
Topic 1 a_basic_concepts_and_theoremTopic 1 a_basic_concepts_and_theorem
Topic 1 a_basic_concepts_and_theorem
Gabriel O'Brien
 
hardware.ppt
hardware.ppthardware.ppt
hardware.ppt
Sandeep754657
 
08_electronics.basics and introduction12
08_electronics.basics and introduction1208_electronics.basics and introduction12
08_electronics.basics and introduction12
vikknaguem
 
08_electronics.basics and introduction23
08_electronics.basics and introduction2308_electronics.basics and introduction23
08_electronics.basics and introduction23
vikknaguem
 
Ntd intro to electronics
Ntd   intro to electronicsNtd   intro to electronics
Ntd intro to electronics
Muhammad Shahid Sharif
 
Intro to electronics
Intro to electronicsIntro to electronics
Intro to electronics
Muhammadalizardari
 
Circuit theory
Circuit theoryCircuit theory
Circuit theory
shajinbal
 
Electronics Essentials.pdf
Electronics Essentials.pdfElectronics Essentials.pdf
Electronics Essentials.pdf
GokrishVenkat1
 
Electronics Essentials.pdf
Electronics Essentials.pdfElectronics Essentials.pdf
Electronics Essentials.pdf
GokrishVenkat1
 
ELECTRONICS 10: SERIES CIRCUIT
ELECTRONICS 10: SERIES CIRCUITELECTRONICS 10: SERIES CIRCUIT
ELECTRONICS 10: SERIES CIRCUIT
paulangelomacaraeg
 
Analog digital corse
Analog digital corseAnalog digital corse
Analog digital corse
Eslam Sherbeeny
 
Basic_electronics (2).pptx
Basic_electronics (2).pptxBasic_electronics (2).pptx
Basic_electronics (2).pptx
MadhuriKulkarni21
 
Introduction To Electrical Engineering
Introduction To Electrical EngineeringIntroduction To Electrical Engineering
Introduction To Electrical Engineering
mike parks
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
Chantel Davis
 
Intro to Electronics design
Intro to Electronics designIntro to Electronics design
Intro to Electronics design
mark_nabil
 
Mosquito repellent circuit
Mosquito  repellent circuitMosquito  repellent circuit
Mosquito repellent circuit
Sagnik Dasgupta
 
Lesson2 (electro mag)
Lesson2 (electro mag)Lesson2 (electro mag)
Lesson2 (electro mag)
Fatima Bianca Gueco
 
new lec electromag.
new lec electromag.new lec electromag.
new lec electromag.
Fatima Bianca Gueco
 

Similar to Introduction to Electrickery (20)

pedals.pdf
pedals.pdfpedals.pdf
pedals.pdf
 
Basic electronic components used in robotics
Basic electronic components used in roboticsBasic electronic components used in robotics
Basic electronic components used in robotics
 
Topic 1 a_basic_concepts_and_theorem
Topic 1 a_basic_concepts_and_theoremTopic 1 a_basic_concepts_and_theorem
Topic 1 a_basic_concepts_and_theorem
 
hardware.ppt
hardware.ppthardware.ppt
hardware.ppt
 
08_electronics.basics and introduction12
08_electronics.basics and introduction1208_electronics.basics and introduction12
08_electronics.basics and introduction12
 
08_electronics.basics and introduction23
08_electronics.basics and introduction2308_electronics.basics and introduction23
08_electronics.basics and introduction23
 
Ntd intro to electronics
Ntd   intro to electronicsNtd   intro to electronics
Ntd intro to electronics
 
Intro to electronics
Intro to electronicsIntro to electronics
Intro to electronics
 
Circuit theory
Circuit theoryCircuit theory
Circuit theory
 
Electronics Essentials.pdf
Electronics Essentials.pdfElectronics Essentials.pdf
Electronics Essentials.pdf
 
Electronics Essentials.pdf
Electronics Essentials.pdfElectronics Essentials.pdf
Electronics Essentials.pdf
 
ELECTRONICS 10: SERIES CIRCUIT
ELECTRONICS 10: SERIES CIRCUITELECTRONICS 10: SERIES CIRCUIT
ELECTRONICS 10: SERIES CIRCUIT
 
Analog digital corse
Analog digital corseAnalog digital corse
Analog digital corse
 
Basic_electronics (2).pptx
Basic_electronics (2).pptxBasic_electronics (2).pptx
Basic_electronics (2).pptx
 
Introduction To Electrical Engineering
Introduction To Electrical EngineeringIntroduction To Electrical Engineering
Introduction To Electrical Engineering
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
 
Intro to Electronics design
Intro to Electronics designIntro to Electronics design
Intro to Electronics design
 
Mosquito repellent circuit
Mosquito  repellent circuitMosquito  repellent circuit
Mosquito repellent circuit
 
Lesson2 (electro mag)
Lesson2 (electro mag)Lesson2 (electro mag)
Lesson2 (electro mag)
 
new lec electromag.
new lec electromag.new lec electromag.
new lec electromag.
 

Recently uploaded

WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
Postman
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Project Management Semester Long Project - Acuity
Project Management Semester Long Project - AcuityProject Management Semester Long Project - Acuity
Project Management Semester Long Project - Acuity
jpupo2018
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
Webinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data WarehouseWebinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data Warehouse
Federico Razzoli
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Jeffrey Haguewood
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 

Recently uploaded (20)

WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Project Management Semester Long Project - Acuity
Project Management Semester Long Project - AcuityProject Management Semester Long Project - Acuity
Project Management Semester Long Project - Acuity
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
Webinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data WarehouseWebinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data Warehouse
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 

Introduction to Electrickery

  • 1. Schedule: 1. Install Arduino and upload a sketch 2. Intro. to Electrickery 3. Break < 12.30pm! 4. Arduino HW/SW 5. Practical Project 6. Individual Consulations
  • 2. Today you will achieve the following: Learn the basics of electronics theory. Learn the Arduino programming language. Learn about prototyping methods. Make a component breadboard compatible. Convert an analog input into a digital value. Convert a digital value into a pseudo-analog output.
  • 3. Introduction to Electrickery A short primer by Justin James Clayden
  • 4. Where it lies Analog electronics Digital electronics Digital electronics is a limited subset of analog electronics
  • 5. What we’ll cover Digital electronics Analog electronics We’ll need some analog electronics knowledge
  • 6. examples Digital micro-controllers PWM Analog power sensors audio potentiometers We’ll need some analog electronics knowledge
  • 7. Schematics • Simplest representation of a circuit. A single schematic can be implemented in any number of ways. conductor power source switch light resistor
  • 8. Conductivity Conductors allow the flow of electrons, i.e. current Resistors retard the flow of electrons Insulators prevent the flow of electrons
  • 9. The idea of Work • Electrons have an energy that can do work • Grossly- the production of heat • Subtly- the actuation of logic
  • 10. The Couloumb • Approximately equal to 6.241 x 10 18 elementary particles. • One C passing past one point per second is known as an Ampere.
  • 11. Electron motivation • How motivated? • Result of motivation • Impediment to motivation
  • 12. The key concepts • Potential Difference (PD) • Current • Resistance
  • 13. Better known as.. • Volts • Amps • Ohms
  • 14. The classic scenario • A potential difference (some Volts) causes • some current to flow through • some resistance
  • 15. Ohm’s Law • A fixed voltage will cause a greater • current to flow, given a smaller • resistance
  • 16. Ohm’s Law • A greater voltage is required to cause a • fixed current to flow through a greater • resistance
  • 17. Ohm’s Law • The greater the voltage, • the greater the current will flow for a • fixed resistance
  • 18. Ohm’s Law V I R
  • 19. Ohm’s Law V=IxR I =V / R R =V / I
  • 20. Voltage as P.D. • A Potential Difference is quite simply a difference in energy potential between two points in a circuit • No difference, no P.D. and no current • Two points might be at 5V, but there will be no P.D.
  • 21. AC/DC • Seminal rock band • Alternating Current / Direct Current • Incompatible! • Rectification converts to DC • Where is the GND line?
  • 22. High/low Voltages • Static (eg lightning) Millions+ of Volts • Substations - 10,000’s of Volts • G.P.O. - 240 V • Motors, etc - 12-24 V • Digital circuits - 5V • Low power digital - 1.2-3.3V • Microphone signals - thousandths of volts
  • 23. Kirchoff’s Law c a b c Current c = a + b
  • 24. Conventional Current • Throwback to earliest days of electronics • Charge was thought to flow from +ve to -ve • Many schematics still obey this convention
  • 25. Compound quantities • Watt • Farad • Amp Hour
  • 26. Derived quantities • 1 Watt = 1 Amp @ 1 Volt • Farad = 1 Coulomb @ 1 Volt • 1 Amp = 1 Coulomb/sec • 1 Amp Hour = 1 Amp used over an hour
  • 27. Restrictions • Ohm’s Law is a formula; we deal in reality • Rated Maximums • Current carrying capacity • Heat dissipation • Voltage limits
  • 28. Signals • In a 5V digital system, the 2 states are 5v and 0v • Using an oscilloscope to visualise digital (and analog) signals is extremely helpful
  • 29. Components • Resistors • Capacitors • Diodes • Relays • Transistors • Integrated Circuits
  • 30. Components • Resistors - resist the flow of current • Capacitors - store charge • Diodes - allow one way passage of current • Relays - can switch a large current from a small one (eg 5V to 12V to 240V) • Transistors - act as switches / amplifiers • IC’s - many components in one
  • 31. Components • Resistors - like mathematical constants • Capacitors - smoothing, buffering • Diodes - circuit protection • Relays - can switch a large current from a small one • Transistors - NPN / PNP • IC’s - modules
  • 32. Design Patterns Three of my most often used, easy to apply design patterns
  • 33. 3 patterns • Voltage Divider • Power Decoupler • “Charlieplexing”
  • 34. Voltage Divider simplest case: 5v 500 Ohms = 5 * 500 / 1000 = 2.5v 500 Ohms 0v
  • 35. Voltage Divider 3/7 ratio: 5v 300 Ohms = 5 * 700 / 1000 = 3.5v 700 Ohms 0v
  • 36. Voltage Divider extreme case: 5v 1 Ohms = 5 * 999 / 1000 = 4.995v 999 Ohms 0v
  • 37. Power Decoupler - for power stability 5v + 50-500 uF 0v
  • 38. Power Decoupler - for signal stability 5v + + 50-500 uF 1-10 uF 0v
  • 39. Power Decoupler - for higher frequencies 5v + + 50-500 uF 1-10 uF .01 - .1 uF 0v
  • 40. “Charlieplexing” x*y LEDs from x+y pins Eg 6+7 pins gives 42 LEDs
  • 41. “Charlieplexing” detail L.E.D.
  • 42. “Charlieplexing” lighting 0,0: step 1 col 0: 5v col 1: 0v row 0: 0v row 1: 0v
  • 43. “Charlieplexing” lighting 0,0: step 2 col 0: 5v col 1: 0v row 0: 0v row 1: 5v
  • 44. “Charlieplexing” summary • x*y LEDs from x+y pins • to light LED {x,y} : • put 5v on column x and 0v on all other columns • put 0v on row y and 5v on all other rows • reversing these steps avoids glitches • can light an entire column
  • 45. Discussables • Charlieplexing for input • PWM • Sensors/Actuators • IR • analogue inputs • LED driver