All you wanted to know about Arduino (and somethings you didn’t) Workshop Connect to PUHSD_Public for WIFI gcardenas@phoenixunion.org
Welcome Morning Session – An Introduction to the wonderful world of Microcontrollers -What’s an Arduino Microcontroller? -How can Arduino be integrated into engineering projects -Intro to circuits -Intro to coding ++ resources -Sparkfun Inventors Kit Project 1: Light -Sparkfun Inventors Kit v4 – Circuit 1A: Blink an LED -Sparkfun Inventors Kit v4– Circuit 1B: Potentiometer -Sparkfun Inventors Kit v4– Circuit 1C: Photoresistor -Sparkfun Inventors Kit v4– Circuit 1D: RGB Night-Light Working Lunch – provided Afternoon Session – A Deeper Dive -IOT (The Internet of Things) and the future -Intro to sensors and stuff (I/O Analog, Digital, PWM, etc) -Using a multimeter -Open Workshop with Sparkfun Inventor Kits v4
What’s an Arduino Microcontroller? Arduino consists of both a physical programmable circuit board (often referred to as a microcontroller) and a piece of software, or IDE (Integrated Development Environment) that runs on your computer, used to write and upload computer code to the physical board……. In other words a relatively easy platform for artist, hobbyist, designers, teachers, students, or anyone to make interactive objects and environments using electronic components and code. https://learn.sparkfun.com/tutorials/what-is-an-arduino
https://learn. sparkfun https://learn.sparkfun.com/tutorials/choosing-an-arduino-for-your-project
How can Arduino be integrated into engineering projects? In many ways…. https://makezine.com/2015/03/28/20-projects-celebrate-arduino-day/ https://opensource.com/article/17/3/arduino-garden-projects https://makezine.com/2014/12/15/laundry-text-message-alerts-with-arduino-yun/ https://makezine.com/projects/pir-sensor-arduino-alarm/ http://www.theinebriator.com/
Any questions?
Intro to Circuits Can you light a light bulb with a single wire, bulb, and “battery”?
Simply put…”It’s the flow of electric charge.” What is electricity? Simply put…”It’s the flow of electric charge.” But you probably have questions like…… Where do the charges come from? How do we move them? Where do they move to? How does an electric charge cause mechanical motion or make things light up? We have to start with the building blocks of the universe….. The Atom and all its glorious bits: Proton (+ charge) Neutron (Neutral/ No Charge) Electron (- charge)
Can you guess the element? To get electricity to flow we need to move an electron, the easiest one to move is the called the valence electron. With the right motivation, the movement of electrons can continue on and on to create a flow of electrons called electric current. Some elemental types of atoms are better than others at releasing their electrons Conductors – metals (aluminum, copper, gold, etc) Insulators – non metals (rubber, plastics, wood, etc) Can you guess the element?
So what is the right motivation to get charges moving So what is the right motivation to get charges moving? (Hint: It’s the ability to make things happen.) Energy When we harness electricity to power our circuits, gizmos, and gadgets, we’re really transforming energy. Electronic circuits must be able to store energy and transfer it to other forms like heat, light, or motion. The stored energy of a circuit is called electric potential energy. One of the most common terms we discuss in evaluating electricity is voltage. A voltage is the difference in potential between two points in an electric field. Voltage gives us an idea of just how much pushing force an electric field has.
How does this work with circuits and Arduino? Charges want to flow from the highest source of potential energy to the lowest. One of the most common ways to harness and store this energy is using a cell/battery
So…………How does this work with circuits and Arduino? Note: This demonstrates conventional current rather than electron flow
An Electrical Circuit is a closed loop network of connected electrical components ( such as wires, lightbulbs, motors, servos, switches, cells/batteries, and many more) A schematic is a technical way of representing circuits using symbols A Fritzing diagram is commonly used to illustrate Arduino circuits
Breadboard How do you connect the components together?
Amperage – Think charge flow Voltage – Think motivator/ potential energy Resistance – is futile Power – How fast you expel energy Name Symbol Current / Amperage A Voltage V Resistance Ohm or Ω Power Watt
If you would like to go further in depth with circuits https://sparkfuneducation.com/video-resources/electricity.html https://sparkfuneducation.com/concept-library/index.html https://phet.colorado.edu/en/simulations/category/physics/electricity-magnets-and-circuits https://www.thephysicsaviary.com/Physics/Programs/Labs/index.html#em http://www.physicsclassroom.com/class/circuits http://theuniverseandmore.com/ Summer Physics Modeling Course - PHS 594: Modeling Instruction in CASTLE Electricity
Intro to Coding/Programming ++ Resources https://www.khanacademy.org/computing/computer-programming/programming/intro-to-programming/v/programming-intro
https://www.learneroo.com/modules/12/nodes/94
https://scratch.mit.edu/ https://www.tinkercad.com/circuits Resources https://www.khanacademy.org/computing https://www.codecademy.com/courses/programming-intro/0/1 https://scratch.mit.edu/ https://www.tinkercad.com/circuits https://sparkfuneducation.com/video-resources/programming.html https://sparkfuneducation.com/classroom-downloads/arduino-cheatsheet.html
By the way Arduino IDE accepts C/C++ Now lets jump in to some hands on stuff https://www.sparkfun.com/products/14265
Sparkfun Inventors Kit Project 1: Light -Sparkfun Inventors Kit v4 – Circuit 1A: Blink an LED -Sparkfun Inventors Kit v4– Circuit 1B: Potentiometer -Sparkfun Inventors Kit v4– Circuit 1C: Photoresistor -Sparkfun Inventors Kit v4– Circuit 1D: RGB Night-Light If having issues with the Arduino IDE use the virtual Arduino https://www.tinkercad.com/circuits
Lunch
Sensors - Potentiometer Potentiometer. These variable resistors are often used for inputs, like volume knobs, which need to be adjustable. Soft Potentiometer - This is a thin and flexible strip that can detect where pressure is being applied. By pressing down on various parts of the strip, you can vary the resistance Flex sensor - uses carbon on a strip of plastic to act like a variable resistor, but instead of changing the resistance by turning a knob, you change it by flexing (bending) the component. int sensorValue; sensorValue = analogRead(sensorPin);
Sensors - Other Photosensor changes resistance based on how much light the sensor receives Temperature Sensor- Just like it sounds but uses voltage rather than resistance for sensor values Push Buttons – Uses a digital input to either be on or off
Sensors - Potentiometer Potentiometer. These variable resistors are often used for inputs, like volume knobs, which need to be adjustable. int sensorValue; sensorValue = analogRead(sensorPin);