2.07 - Hello World - Arduino Circuits
Please review the following:
For these activities you are going to hook up some circuits using TinkerCAD (or on a real Arduino - Breadboard)
Arduino Control Flow
Record the answers to the following questions in your ePortfolio:
In what order do program commands execute in Arduino?
What is a Control Flow command? What do they do?
What is the difference between pseudocode and a flowchart?
What is the purpose of semicolons in Arduino sketches?
Relational Operators and Conditional Statements
Record the answers to the following questions in your ePortfolio:
What are the main relational operators?
What data do relational operators return?
How are conditional statements represented in flowcharts?
Logical Operators
Record the answers to the following questions in your ePortfolio:
Explain how the numbers 0 and 1 are connected to the terms TRUE and FALSE in Arduino.
Explain the difference between an OR (||) and AND (&&) operator in Arduino.
Explain how a == command works in Arduino.
Arduino Loops
Record the answers to the following questions in your ePortfolio:
What is the difference between a Serial.print() and a Serial.println() command?
What is the key difference between an if and a while loop?
Assignments - Basic Circuits
Begin your Arduino journey with the following circuits. Be sure to record what you have done with either pictures, schematics, or code documentation of what you've done.
Hook up a basic LED circuit.
Be ready to demonstrate your knowledge by making your led blink at different intervals.
Hook up a pushbutton that reads information and writes it to either the serial monitor or to an led
Be ready to demonstrate your knowledge by changing your pin assignments and breadboard to match the new assignments
Hook up a dimming led to let your Arduino control an LED to fade in and out of colours.
The Arduino should take the RGB led from no light to full red, then no light to full blue etc...
The easiest way to do this is with a for command (Ardunio - for)
Be ready to demonstrate your knowledge by being able to code in a specific colour in your code to be displayed by the LED.
Hook up a potentiometer to read an analog value into the serial monitor and an led
Be ready to demonstrate your knowledge by changing your pin assignments and breadboard to match the new assignments