1 of 112

Virtual Electrical Training

Atholton Robotics 2020-2021

2 of 112

Electrical Training:

Week 1

Atholton Robotics 2020-2021

3 of 112

Welcome to the Electrical

Subteam!

Introductions:

  • Name
  • Grade
  • How long have you been on the team?
  • Favorite food

4 of 112

Voltage, Current, and Resistance

Voltage:

Voltage is essentially pressure. It allows electrons (current) to move through a circuit a conducting loop.

  • Measured in Volts

Resistance:

Resistance is the “stopping power” of current. It reduces the amount of current (Amps) in a circuit.

  • Measured in Ohms (Ω)

Current:

Current is the movement of electrons. It refers to the rate of flow of electrons past a point on a circuit.

  • Measured in Amps

V

I

R

5 of 112

Analogies

  • Pushing marbles through a tube.
  • Water in a river.

https://whiteboard.fi/t9urp Use this to draw analogies

6 of 112

Electrical Week 1 Review

Review:

    • What is voltage, current, and resistance?
    • What do the variables V, R, and I represent?
    • What is one thing you’re looking forward to this season

Any Questions?

7 of 112

Thanks for Coming!

ryandnguyen123@gmail.com I margaret.tyson@gmail.com I shyam.b.pillai@gmail.com

8 of 112

Electrical Training:

Week 2

Atholton Robotics 2020-2021

9 of 112

Google forms, housekeeping stuff

  • Electrical Members info Google Form:

https://forms.gle/zoLvCsYZc7KLFsvX8

  • Improvements Google Form:

https://forms.gle/eeMghH6CBzfJVn528

10 of 112

The Very Basics...

  • What is electricity?

→ Electrical Circuit Basics

  • Voltage, Current, Resistance
  • Voltage → Volts → V
  • Current → Amps → I
  • Resistance → Ohms → R

  • Ohm’s Law → What is it?
    • V = IR
    • I = V/R
    • R = V/I

I

V

R

V = Volts

I = Amperes (Amps)

R = Ohms (Ω)

11 of 112

Ohm’s Law Cont.

  • Ohm’s Law
    • V = IR
    • I = V/R
    • R = V/I

  • What is it used for?
    • Ohm’s law is used to identify the relationship between voltage, current and resistance in an electrical circuit

  • Practice Questions:
    • If there are 10 Volts across a 5 Ohm resistor, what is the current?
    • If there are 40 Volts and 5 Amps running through an electrical circuit, what is the resistance of the circuit?
    • If there are 7 Amps running through a 3 Ohm resistor, what will the voltage be across the resistor?

12 of 112

There is a Fourth value of electricity

  • Watts.
  • What is a watt? It is a number that signifies the amount of work that electricity can do.
  • How do we calculate it? W = I*V, or W = I*I*R, or I2R. These are all exactly the same, just written differently.

13 of 112

Demo of Ohm’s law in TinkerCad

14 of 112

Ohm’s Law Video

15 of 112

Electrical Safety

101

  • Electrical safety
    • Talking points:
      • Ohm’s Law applied to safety
      • What situation is dangerous, lethal?
      • Ground, neutral, and hot
      • Correlating colors
      • Outlet terminals
      • Safety protocol for probing a circuit
      • How do I avoid electrical shock?

16 of 112

Video about ground, neutral, and hot wires.

17 of 112

Cleaning a Battery Spill:

  1. Notify a mentor of the spill

  • Protect your hands by wearing disposable gloves (latex, rubber or nitrile) and eyes with safety goggles.

  • Place battery in a non-metallic leak proof container (OR double bag the battery and tie/seal closed immediately if a container isn’t available)
  • For smaller batteries transparent bags are okay
  • For large batteries (eg. a car battery) double bag with large trash bags

  • Clean the spill:
  • Pour sodium bicarbonate (baking soda) on all wetted areas to neutralize any exposed acid electrolyte
  • After the spill has been neutralized, clean the resulting residue conventionally (rinse with water)
  • If skin comes into contact with any chemicals seek medical attention immediately

  • Properly dispose of the battery

18 of 112

Safety 101 Kahoot!

19 of 112

Thanks for Coming!

ryandnguyen123@gmail.com I margaret.tyson@gmail.com I shyam.b.pillai@gmail.com

20 of 112

Electrical Training:

Week 3

Atholton Robotics 2020-2021

21 of 112

Getting Started with Arduino

What is it?

  • The arduino board allows you to write code and then execute that code to interact with different outputs

Parts of your Arduino Kit

  • Arduino
  • Breadboard
  • LED
  • Buttons

  • Jumper Wires
  • Ultrasonic sensor
  • Resistors
  • USB

22 of 112

Arduino UNO

23 of 112

Downloading the Arduino Software

→ Open link

→ Select option that applies to your computer software

→ Just download

24 of 112

Project 1:

Light up an LED

  1. Plug your Arduino into your Computer
  2. Open the Arduino IDE
  3. Connect longer leg of the LED to the digital pin of your Arduino
  4. Connect a resistor between the shorter leg of the LED and the negative column of the bread board.
  5. Connect the GND pins of the Arduino through your breadboard

25 of 112

The LED

  • Longer leg is called anode, which means positive.
  • Shorter leg is called cathode, which means negative.
  • LEDs only allow electrons to flow through it in 1 direction, so identifying these are important.

26 of 112

Direct Current

  • Direct current (DC) is an electric current that is unidirectional, meaning that the flow of charge is always in the same direction
  • Commonly used in household electronics and most anything that uses a battery
  • Some DC sources include: batteries and solar cells (panels)
  • DC can be converted to AC through an inverter

27 of 112

Alternating Current

  • Alternating current (AC) is an electrical current that periodically reverses the direction it travels in
  • Transporting AC across long distances is much easier than transporting DC
  • In the US the voltage reverses itself 60 times per second (this is the frequency which is expressed in hertz)
  • AC powers nearly all households and offices, our outlets are AC
    • Eg. refrigerators, toasters, the TV, any chargers for your computer or phone, etc.

28 of 112

Thanks for Coming!

ryandnguyen123@gmail.com I margaret.tyson@gmail.com I shyam.b.pillai@gmail.com

29 of 112

Electrical Training:

Week 4

Atholton Robotics 2020-2021

30 of 112

Moving Deeper into what Voltage, Current, and Resistance are

  • We’ve talked about how voltage acts as a pushing force for electrons, how current is the amount of electrons passing by per second, and resistance is the resisting force of a circuit, but what is it really?
  • V = J/Q = Work per coulomb (work measured in joules (J), coulomb (Q) = 6.242 x 1018 electrons.
  • I = Q/S = Coulombs (Q) passing by per second (S).
  • R = V/I = ratio between voltage (work per coulomb) and current (coulombs passing by per second).
  • https://whiteboard.fi/t9urp Use to draw examples.

31 of 112

Parallel and Series Circuits

  • What’s the difference?
  • Why use parallel as opposed to series?
  • https://whiteboard.fi/t9urp Use to draw examples.

32 of 112

Kirchhoff’s Current Law

  • States that all current amounts (measured in amps, which is electric charge per second) going into a junction (where wires meet) is exactly equal to the current amounts leaving the junction.
  • Current entering a junction can be seen as having a positive value, while current leaving a junction can be seen as having a negative value.
  • Analogy: A single river splitting into multiple rivers.
  • The water would be split between multiple smaller rivers.
  • The amount of water in each mini river depends on the width of the river (The wider the river, the more water can fit, and the thinner, less water can fit).
  • https://whiteboard.fi/t9urp Use to draw examples.

33 of 112

Kirchhoff's Voltage Law

  • States that all the voltage is “used up” from a voltage supply like a battery in a series circuit (In a loop).
  • Ex: A series circuit connected to a 12v battery will “use up” all of the 12v.
  • In more specific terms, the sum of the voltage drops across each resistor in a series circuit will be the same as the voltage supplied by the battery.
  • Voltage in a purely parallel circuit stay the same. However, if there are resistors in series in the branches of the parallel circuit, then the voltage would be divided among those resistors.
  • https://whiteboard.fi/t9urp Use to draw examples.

34 of 112

How do Voltage, Current, and Resistance work in Series?

  • Voltage: Voltage gets split amongst the components. Think back to V = IR. The V represents the voltage drop across the resistor you are finding values for.
  • Current: It stays the same throughout the series circuit, calculate using I = V/R.
  • Resistance: To get total resistance of circuit, simply add the ohms of each component. To get unknown resistance of component, use R = V/I. (V being voltage drop of resistor).
  • You can also find the last missing resistance value by finding total resistance, and subtracting the known resistances to get the unknown resistance.
  • https://whiteboard.fi/t9urp Use to draw examples.

35 of 112

How do Voltage, Current, and Resistance work in Parallel?

  • Voltage: When voltage goes into a parallel circuit, each branch gets the same voltage. Now, if there are resistors in series in a branch, then the rules for voltage in series apply (it gets split).
  • Current: Current gets split when going into a parallel circuit. Why? Current is the amount of electrons, and if there are multiple branches of connections, then that current has to be split among the branches. More current goes to branches with less resistance (I = V/R).
  • Resistance: Calculated by 1/(1/R1)+(1/R2) etc…
  • https://whiteboard.fi/t9urp Use this to draw examples.

36 of 112

To Sum it up...

  • Voltage gets divided in series, whereas it stays the same in parallel.
  • Current gets divided in parallel, while it stays the same in series.
  • To find total resistance in series, you add, but in parallel, you take the reciprocal of the sums of the reciprocals of the resistance values (1/(1/R1)+(1/R2) etc…)

37 of 112

TinkerCad Demo

38 of 112

Project 2:

  1. Using your knowledge of circuits and working with LEDs on your Arduino, use TinkerCad to create a series circuit that will light up 2 LEDs.
    1. What might happen if one of the LEDs stops working? Will the other continue to light up by itself?
  2. Now, try to create a parallel circuit that can light up more than 1 LED.
    • What do you notice about the LEDs? (Their brightness compared to each other?)
    • What happens if one LED stops working?
  3. Which of the two types of circuits needs all of the LEDs to work? Why?

Making Multiple LEDs Light Up

39 of 112

Things to Consider...

  • When might someone use a series circuit as opposed to a parallel circuit, and vise versa? (give examples)

  • How are voltage, resistance and current affected by series circuits vs. parallel circuits?

40 of 112

Thanks for Coming!

41 of 112

Electrical Training:

Week 5

Atholton Robotics 2020-2021

42 of 112

What is Capacitance?

  • Capacitance is a unit used to describe the ability of a component to hold charge (like electrons).
  • C = Q/V
  • So, for the equation above, C is capacitance, Q is coulombs of charge (like electrons), and V is voltage, or how much work is needed per group of electrons (coulomb).
  • How is capacitance determined in a component? It deals with the area of the conductive plates, and the distance between the two plates. We won’t need the equation to solve for capacitance as we won’t create a capacitor ourselves.

43 of 112

Capacitors

  • Capacitors are like mini batteries, in that they can hold charge (like electrons), just not that much.
  • Capacitors do have a trait that sets them apart from a battery, which is that it can discharge energy really fast, quicker than a battery.
  • Applications include: Temporary power storage, gradual decrease of voltage, and electronic noise filtering.
  • Symbols on the capacitor: There is a white stripe on some capacitors, like the one in the picture, which indicates that it needs to be connected to the negative side of the circuit.
  • Voltage across a capacitor is the same amount as the voltage being supplied to it (ex 12v battery would mean 12v across the capacitor.)

44 of 112

Analogies

  • River flowing into a lake.
  • Water tower.
  • Use this:https://whiteboard.fi/t9urp to draw analogies

45 of 112

Capacitors in Series

  • Capacitors in series would actually not be the sum of the capacitance of each capacitor.
  • Similarly to finding the amount of resistance of resistors in parallel, you would need to take the reciprocals of the sums of the reciprocals of the capacitance.
  • So, 1/(1/C1) + (1/C2) etc…) for capacitors in series.
  • Why? Capacitors in series basically lengthen the distance between the conductive plate of the first capacitor and the last capacitor. If the distance between the plates increase, the capacitance decreases.

46 of 112

Capacitors in Parallel

  • The total capacitance of the capacitors in parallel is simple. You add the values.
  • Why do we add? Well as said before, capacitance is determined by the area of the conductive plates, as well as the distance. More area = more capacitance, and less distance = more capacitance.
  • In a parallel circuit, the distances of the conductive plates are considered the same, while the area of the conductive plates are combined, increasing capacitance. This is why we add the capacitance values together in parallel.

47 of 112

Demo of capacitors in TinkerCad

48 of 112

Video on Capacitors

49 of 112

Push Buttons

  • What are they for?
  • How do they work?

  • A simple switch mechanism used to operate/control a specific part of a machine or process

button is pushed → allows a mechanism to function by making a temporary electrical connection

This connection is made when the button is pushed → two pieces of metal are joined → metal completes the circuit → allows the mechanism to work

50 of 112

Project 3:

Push Buttons in TinkerCad

TinkerCad Demo:https://www.tinkercad.com/things/bXZbfzsjZZO-pushbutton-demo/editel

  1. Watch short demonstration on how push buttons can be added to an LED light circuit.
    1. How does the push button effect the mechanism?
  2. Create an LED circuit with your kits.
  3. Using what we have learned today about push buttons, play around with adding a push button to your own circuit until you reach something that works.

51 of 112

Push Buttons Further Applied:

How does what we learned today relate to robotics?

  • When might push buttons be used for in robotics?
    • What about at home?
  • What are some examples of when we might use buttons on the robot?

How could push buttons be used in a series circuit?

How could push buttons be used in a parallel circuit?

52 of 112

Electrical Training:

Week 6

Atholton Robotics 2020-2021

53 of 112

  • Arduino Applied to Robotics
  • Sensors: Photoresistor
  • How can we relate Arduino to our competition bot?
  • Arduino compared to roboRio

Similarities:

    • Both control electrical components
    • Both have digital pins and analog pins.
    • The roboRio can take in sensor information just like the Arduino does

54 of 112

Photoresistor

  • What is it?
  • When are they used?
  • A photoresistor is a light controlled variable resistor
    • This means its resistance can change/be adjusted
  • The resistance of a photoresistor changes based on the amount of light it receives
  • Resistance decreases with the increase of light intensity

Examples: streetlights, night lights, camera light meters, clock radios

55 of 112

Photoresistor Demo

56 of 112

Project 4:

Photoresistors in TinkerCad/Arduino

  1. For this project, try to incorporate a photoresistor, or two in your own circuits.
  2. There should be an input (the photoresistor) and an output or two, like an LED connected to the photoresistor to demonstrate the component.

57 of 112

Time to play with your Arduino Kits!

  • For the rest of the meet, we will be playing around with the Arduino Kits!
  • Only word of caution we would give you is to not power and LED with 5v supply, its too much for it.
  • Similar to last meeting, we will give some answers to your questions if you have any.

58 of 112

Thanks for Coming!

ryandnguyen123@gmail.com I margaret.tyson@gmail.com I shyam.b.pillai@gmail.com

59 of 112

Electrical Training:

Week 7

Atholton Robotics 2020-2021

60 of 112

Sensors:

Potentiometers and Ultrasonics

61 of 112

Potentiometers

  • Like the photoresistor, the potentiometer is also a variable resistor
  • Resistance can be changed/adjusted when the user turns a knob
  • the farther the metal slider is from the power source, the greater the resistance

62 of 112

Project 5:

Applying Potentiometers to Arduino

  1. With your arduino, create a circuit that includes both an LED light and your potentiometer.
    1. If you need inspiration, feel free to use the images.
    2. How does adding a potentiometer change your circuit and its function?
    3. Can you think of any real-life applications of a potentiometer?

63 of 112

Ultrasonic Sensors

  • An ultrasonic sensor measures the distance of an object by emitting ultrasonic sound waves, and converting the reflected sound into an electrical signal
  • Used to detect objects and measure their distance away.
  • Ultrasonic (ultrasound) is often used in the medical fields as well

64 of 112

How it Works

  • The Ultrasonic sensor only gives a signal when it receives the ultrasonic wave.
  • It doesn’t actually do the measuring.
  • Coding has to be used to measure the distance.
  • Code is used to time how long it took between when the ultrasonic sensor emitted the wave, and when it received it.
  • It takes that time, divides it in half (to get time it took to get to the target).
  • D = S/T.
  • D = Distance, S = speed (speed of sound which is given), T = time.

65 of 112

How it works cont.

  • There are 4 pins: VCC,Trig,Echo, and GND.
  • VCC connects to the power supply like 5v.
  • GND is connected to ground.
  • Trig and echo can be connected to any of the digital pins.
  • Trig is used to send out an ultrasonic signal, while echo is used to let the Arduino know when the signal returns to the ultrasonic sensor.
  • Ultrasonic Demo: https://www.tinkercad.com/things/2EYztgKIGSg-smashing-lappi-densor/editel?tenant=circuits

66 of 112

Ultrasonic Sensor

Project

  • We’ll be working on it for a while in addition to other electrical projects and lessons
  • Time will be given for members to work on this project each week, the length of time allotted to the project will vary depending on how everyone is feeling

Utilizing these components, your circuit should be able to provide distance readings at just the press of a button. The reading will be given by the ultrasonic, but shown through your LED lights.

Objective: Create a breadboard/Arduino circuit that utilizes an ultrasonic sensor, push button, and multiple LED lights to carry out a function that shows what they’ve learned during their electrical training

67 of 112

Ultrasonic Sensor Project Time

68 of 112

Thanks for Coming!

ryandnguyen123@gmail.com I margaret.tyson@gmail.com I shyam.b.pillai@gmail.com

69 of 112

Electrical Training:

Week 8

Atholton Robotics 2020-2021

70 of 112

Electrical Training Projects Available in sub-team Folder

  • You can find it here:Fall Training Arduino Projects - Google Docs
  • Alternatively, there is a team wiki version, but only 1 project from the 5 currently available is on there.

71 of 112

Sensors:

PIR

Passive Infrared Sensor: measures infrared light radiating from objects in its field of view

→ used to detect motion

  • Commonly used in security systems and lighting mechanisms

72 of 112

How it works

  • When a PIR sensor detects motion, it sends an electronic signal through its signal terminal.
  • An Arduino can be used to receive this signal, and can use it as information.
  • Power has to be provided to the PIR sensor to work, so a voltage supply has to be connected to the power terminal, and the ground of the Arduino has to be connected to the ground terminal.

73 of 112

Demo of PIR sensor in TinkerCAD

74 of 112

Project 6:

Applying Motion Detectors (PIR) to Arduino and TinkerCad

  1. Using past knowledge, try to make a circuit using a PIR sensor that has inputs and outputs (input needs PIR sensor)

  • Once you’re done, work on your ultrasonic project.

75 of 112

Ultrasonic Sensor Project Time

76 of 112

Thanks for Coming!

ryandnguyen123@gmail.com I margaret.tyson@gmail.com I shyam.b.pillai@gmail.com

77 of 112

Electrical Training:

Week 10

Atholton Robotics 2020-2021

78 of 112

Motors:

Intro to Motors:

When motors are connected to a positive and negative of a battery, it can rotate the shaft → make things attached to it rotate.

In this the motor is indirectly connected to the battery. Whenever the user presses the button, the motor will rotate.

  • Demonstration of a motor in TinkerCad.

79 of 112

Demo of Motor in TinkerCAD

80 of 112

Project 7:

Applying Motors to TinkerCad

  • make a circuit with motors as the output that also has various inputs
  • Your circuit can have any input, but it will need the motor to be the output/result of those inputs.

  • Once complete, check it over with one of the presenters and start working on your Ultrasonic Sensor Project

81 of 112

Voltage Regulator

  • Regulates voltage (whoa big surprise)
  • Simply put, the voltage regulator takes in input voltage and lowers it to the set lower voltage it was designed to give to the output.
  • If the voltage is too low, it won’t work, as you can’t create more voltage from less.

82 of 112

Project 8:

Using a Voltage Regulator in TinkerCad

  • Watch Ryan demo the voltage regulator circuit
  • Build your own circuit and try to start using the voltage regulator to alter it on your own.

  • Once complete, check it over with one of the presenters and start working on your Ultrasonic Sensor Project

83 of 112

Google forms

84 of 112

Ultrasonic Sensor Project Time

85 of 112

Thanks for Coming!

ryandnguyen123@gmail.com I margaret.tyson@gmail.com I shyam.b.pillai@gmail.com

86 of 112

Electrical Training:

Week 11

Atholton Robotics 2020-2021

87 of 112

Parts of the Robot:

  • PDP
  • roboRIO
  • Motors
  • Motor Controllers
  • Sensors
  • Radio
  • Voltage regulator

88 of 112

Power

Distribution

Panel

89 of 112

roboRIO

90 of 112

Motors

CIM motor

91 of 112

Motor Controllers

Talon SRX

Spark Max

92 of 112

Sensors

Ultrasonic

Infrared

Encoder

93 of 112

Radio

94 of 112

Google forms

95 of 112

Ultrasonic Sensor Project Work Time

96 of 112

Ultrasonic Sensor

Project

  • We’ll be working on it for a while in addition to other electrical projects and lessons
  • Time will be given for members to work on this project each week, the length of time allotted to the project will vary depending on how everyone is feeling

Utilizing these components, your circuit should be able to provide distance readings at just the press of a button. The reading will be given by the ultrasonic, but shown through your LED lights.

Objective: Create a breadboard/Arduino circuit that utilizes an ultrasonic sensor, push button, and multiple LED lights to carry out a function that shows what they’ve learned during their electrical training

97 of 112

Fill out Status Update Document

98 of 112

Thanks for Coming!

ryandnguyen123@gmail.com I margaret.tyson@gmail.com I shyam.b.pillai@gmail.com

99 of 112

Electrical Training:

Week 12

Atholton Robotics 2020-2021

100 of 112

Electrical Tools

  1. Multimeter
  2. Amp meter
  3. Voltmeter

Multimeter → can carry out many different electrical measurement functions… eg. can measure voltage, current, and resistance (sometimes more)

Amp meter → measures amps (current)

Voltmeter → solely measures volts

101 of 112

Multimeter

102 of 112

Amp meter

103 of 112

Voltmeter

104 of 112

Most Commonly Used Electrical Tools

  • Wire strippers
  • Crimpers
  • Soldering Iron
  • Anderson Crimper
  • Ferrule Crimper
  • Heat Gun

105 of 112

Google forms

106 of 112

Ultrasonic Project Update

  • Where do you guys stand with the ultrasonic project?
  • Do we need more time to complete them, or would you like to move on to the next/final project?

Final Project:

Pair up with another member, and go all out on either an Arduino creation or TinkerCad creation.

  • They should be fun and out of the box, but still functional

107 of 112

Fill out Status Update Document

108 of 112

Thanks for Coming!

ryandnguyen123@gmail.com I margaret.tyson@gmail.com I shyam.b.pillai@gmail.com

109 of 112

Electrical Training:

Week 13 + 14

Atholton Robotics 2020-2021

110 of 112

Google forms

111 of 112

Fill out Status Update Document

112 of 112

Continue to work on your own projects :)