ASK THE CAT
  • Ask
  • FAQ
  • Summer 2020 Tutoring
    • :: REPRESENT IT!
    • Pre-Algebra Sessions >
      • :: Basic Division
      • :: Complex Division
      • :: Estimation Division
      • :: Division Practice Problems
    • Algebra II >
      • :: Cubic Equations
      • :: Complex Numbers
    • Chemistry >
      • Molarity Basics
    • C++ Sessions >
      • :: Introduction
      • :: Style v Syntax
      • :: Variables & Data Types
      • :: Intialize/Declare Variables
      • :: Types of Operators
      • :: Strings and Input - Output
      • :: How to Construct Arrays
  • AP Bio
    • :: Sketch Notes >
      • :: Part 1
      • :: Part 2
    • :: Chi-Squared Tests
    • :: Cancer
    • :: Hox Genes
    • :: Hardy-Weinberg Principle
    • :: Rule of Multiplication + Addition for Punnett Squares
    • :: CRISPR
    • :: Amino Acid
    • :: Peptide
    • :: Why study Peptides
    • :: Aquaporins
    • :: Gram Stains
    • :: Graph on Excel for Bio Lab
  • AP Chem
    • Organic Chemistry
    • I. Properties of Matter >
      • Neutralization
    • II. Periodic table >
      • Org of Periodic Table
      • :: Groups
    • III. Chemical bonding >
      • :: Mass to Mass conversion
      • :: Naming Acids
      • :: Cross Drop Charge
      • :: Predicting Products
      • :: Balance Equation Question
      • :: Learn to Balance Equation
      • :: VSEPR Simulation
    • IV. Molar Mass >
      • ::LR ER and excess reatant
      • :: Molecular/Formula Mass
      • :: Empirical Formula & Molar Mass
      • :: Percentages & Empirical Formula
      • :: Empirical formula
    • IV. Solutions and Solubility >
      • :: Types of Solutions with Solubility Curves
      • :: Solubility Curve
    • V. Easy Tricks and Tips >
      • :: Tip to Molecular Shapes
      • Memorizing Bond Angles and Polarity
      • :: Chemistry Formulas
      • :: Trick Polyatomic ions
    • VI. General AP Concepts >
      • :: Potential Energy Diagrams
      • :: Haber-Bosch
      • :: Le Chatelier
      • :: Pressure & Moles
      • ::Rydberg's Constant vs Unit of Energy
      • :: Equilibrium and RICE Tables
      • :: Kinetics
      • Galvanic Cells
    • :: Flash cards
    • :: VSEPR
  • AP Stats
    • Chi-Squared Tests
    • Solving Chi-Sqd Test Using Sheets
    • Applications of Statistics
    • Standardized Scores
    • Distributions Transformations
  • AP Calc
    • DI Method - Tabular Integration
    • Polar Curves: Tangent Line and Slope
    • Riemann Sums: Left and Right Approximations
    • :: Conic Sections Flash cards
    • :: Parent Functions Flash cards
    • Worked Out Problems >
      • :: Worked Out Problems I
      • :: Worked Out Problems II
      • :: Worked Out Problems III
      • :: Worked Out Problems IV
      • :: Worked Out Problems V
      • :: Worked Out Problems VI
      • :: Worked Out Problems VII
      • :: Worked Out Problems VIII
      • :: Worked Out Problems IX
      • :: Worked Out Problems X
      • :: Worked Out Problems XI
      • :: Worked Out Problems XII
      • :: Worked Out Problems XIII
    • Applying Trig Identities
    • L'Hopital's Rule
    • Differences Between Conic Sections
    • Graphing Conic Sections
    • :: Pre-Calc - Trig Identities
    • Tangent & Normal Lines
    • Indefinite integrals: U Sub
    • Calculus Derivatives >
      • Product Rule
      • Quotient Rule
      • Chain Rule
  • AP CS A
    • Studying for AP CSA 2020
    • :: Control Structures
    • :: What is Networking
    • :: Recursion
    • :: While Do While Loops in Java
    • :: Interface in Java
    • :: ArrayLists
    • :: Java Naming Conventions
    • :: Logic Circuits
    • :: Getters and Setters
    • :: Binary & Hexadecimal
  • AP Español
    • AP Español Salsa
  • Arduino
    • Quick Look
    • Project #1: Blinking LED
    • Project #2: Button LED
    • Project #3: Flowing LED
    • Project #4: LCD Display
    • Project #5: Serial Monitor
  • App
    • AP Go Pow How?
    • AP Go Pow APP Page
  • Musings
    • :: Backward induction
    • :: what is ISS
    • :: Rotational Matrices
    • :: Primary v Secondary Pollutants
    • :: Black Hole
    • :: Covid-19 Hackathon
    • :: Evolution of Immunizations
    • :: Predictions of Diseases
    • :: Book List
    • :: Patterncount
    • :: Binary Classification
    • :: Cybersecurity
    • :: Self Similarity
    • :: Trig Identities
    • :: UIL Number S
    • :: Box Offensive Play
    • :: Why Card Trick Works
    • :: Easy Multiplication
  • AP CREDIT
  • About

Project #1: Blinking LEDs


Picture

Arduino is a prototype platform (open-source) based on an easy-to-use hardware and software. It consists of a circuit board, which can be programed (referred to as a microcontroller) and a ready-made software called Arduino IDE (Integrated Development Environment), which is used to write and upload the computer code to the physical board. 
​
The Arduino language is merely a set of C/C++ functions that can be called from your code. Your sketch undergoes minor changes (e.g. automatic generation of function prototypes) and then is passed directly to a C/C++ compiler (avr-g++). All standard C and C++ constructs supported by avr-g++ should work in Arduino.


Follow the circuit diagram above and hook up the components on the breadboard as shown in the image above.

Note: To find out the polarity of an LED, look at it closely. The shorter of the two legs, towards the flat edge of the bulb indicates the negative terminal. Open the Arduino IDE software on your computer. Coding in the Arduino language will control your circuit.

Open the new sketch File by clicking New. pinMode(ledPin, OUTPUT) − Before you can use one of Arduino’s pins, you need to tell Arduino Uno R3 whether it is an INPUT or OUTPUT. We use a built-in “function” called pinMode() to do this.

digitalWrite(2, HIGH) − When you are using a pin as an OUTPUT, you can command it to be HIGH (output 5 volts), or LOW (output 0 volts).
​
RESULT:  You should see your LED turn on and off. If the required output is not seen, make sure you have assembled the circuit correctly, and verified and uploaded the code to your board.



Picture

keentween

  • Ask
  • FAQ
  • Summer 2020 Tutoring
    • :: REPRESENT IT!
    • Pre-Algebra Sessions >
      • :: Basic Division
      • :: Complex Division
      • :: Estimation Division
      • :: Division Practice Problems
    • Algebra II >
      • :: Cubic Equations
      • :: Complex Numbers
    • Chemistry >
      • Molarity Basics
    • C++ Sessions >
      • :: Introduction
      • :: Style v Syntax
      • :: Variables & Data Types
      • :: Intialize/Declare Variables
      • :: Types of Operators
      • :: Strings and Input - Output
      • :: How to Construct Arrays
  • AP Bio
    • :: Sketch Notes >
      • :: Part 1
      • :: Part 2
    • :: Chi-Squared Tests
    • :: Cancer
    • :: Hox Genes
    • :: Hardy-Weinberg Principle
    • :: Rule of Multiplication + Addition for Punnett Squares
    • :: CRISPR
    • :: Amino Acid
    • :: Peptide
    • :: Why study Peptides
    • :: Aquaporins
    • :: Gram Stains
    • :: Graph on Excel for Bio Lab
  • AP Chem
    • Organic Chemistry
    • I. Properties of Matter >
      • Neutralization
    • II. Periodic table >
      • Org of Periodic Table
      • :: Groups
    • III. Chemical bonding >
      • :: Mass to Mass conversion
      • :: Naming Acids
      • :: Cross Drop Charge
      • :: Predicting Products
      • :: Balance Equation Question
      • :: Learn to Balance Equation
      • :: VSEPR Simulation
    • IV. Molar Mass >
      • ::LR ER and excess reatant
      • :: Molecular/Formula Mass
      • :: Empirical Formula & Molar Mass
      • :: Percentages & Empirical Formula
      • :: Empirical formula
    • IV. Solutions and Solubility >
      • :: Types of Solutions with Solubility Curves
      • :: Solubility Curve
    • V. Easy Tricks and Tips >
      • :: Tip to Molecular Shapes
      • Memorizing Bond Angles and Polarity
      • :: Chemistry Formulas
      • :: Trick Polyatomic ions
    • VI. General AP Concepts >
      • :: Potential Energy Diagrams
      • :: Haber-Bosch
      • :: Le Chatelier
      • :: Pressure & Moles
      • ::Rydberg's Constant vs Unit of Energy
      • :: Equilibrium and RICE Tables
      • :: Kinetics
      • Galvanic Cells
    • :: Flash cards
    • :: VSEPR
  • AP Stats
    • Chi-Squared Tests
    • Solving Chi-Sqd Test Using Sheets
    • Applications of Statistics
    • Standardized Scores
    • Distributions Transformations
  • AP Calc
    • DI Method - Tabular Integration
    • Polar Curves: Tangent Line and Slope
    • Riemann Sums: Left and Right Approximations
    • :: Conic Sections Flash cards
    • :: Parent Functions Flash cards
    • Worked Out Problems >
      • :: Worked Out Problems I
      • :: Worked Out Problems II
      • :: Worked Out Problems III
      • :: Worked Out Problems IV
      • :: Worked Out Problems V
      • :: Worked Out Problems VI
      • :: Worked Out Problems VII
      • :: Worked Out Problems VIII
      • :: Worked Out Problems IX
      • :: Worked Out Problems X
      • :: Worked Out Problems XI
      • :: Worked Out Problems XII
      • :: Worked Out Problems XIII
    • Applying Trig Identities
    • L'Hopital's Rule
    • Differences Between Conic Sections
    • Graphing Conic Sections
    • :: Pre-Calc - Trig Identities
    • Tangent & Normal Lines
    • Indefinite integrals: U Sub
    • Calculus Derivatives >
      • Product Rule
      • Quotient Rule
      • Chain Rule
  • AP CS A
    • Studying for AP CSA 2020
    • :: Control Structures
    • :: What is Networking
    • :: Recursion
    • :: While Do While Loops in Java
    • :: Interface in Java
    • :: ArrayLists
    • :: Java Naming Conventions
    • :: Logic Circuits
    • :: Getters and Setters
    • :: Binary & Hexadecimal
  • AP Español
    • AP Español Salsa
  • Arduino
    • Quick Look
    • Project #1: Blinking LED
    • Project #2: Button LED
    • Project #3: Flowing LED
    • Project #4: LCD Display
    • Project #5: Serial Monitor
  • App
    • AP Go Pow How?
    • AP Go Pow APP Page
  • Musings
    • :: Backward induction
    • :: what is ISS
    • :: Rotational Matrices
    • :: Primary v Secondary Pollutants
    • :: Black Hole
    • :: Covid-19 Hackathon
    • :: Evolution of Immunizations
    • :: Predictions of Diseases
    • :: Book List
    • :: Patterncount
    • :: Binary Classification
    • :: Cybersecurity
    • :: Self Similarity
    • :: Trig Identities
    • :: UIL Number S
    • :: Box Offensive Play
    • :: Why Card Trick Works
    • :: Easy Multiplication
  • AP CREDIT
  • About