P3 Q2 Flashcards
is an open-source electronics platform based on easy-to-use hardware and software.
arduino
are able to read inputs - light on a sensor, a finger on a button, or a Twitter message -
and turn it into an output - activating a motor, turning on an LED, publishing something online.
arduino boards
Arduino was born at the _____ as an easy tool for fast prototyping,
aimed at students without a background in electronics and programming.
Ivrea Interaction Design Institute
features of arduino
- inexpensive
- cross-platform
- simple, clear programming environment
- open source and extensible software
- open source and extensible hardware
Arduino boards are relatively inexpensive compared to other microcontroller
platforms. The least expensive version of the Arduino module can be assembled by hand, and
even the preassembled Arduino modules cost less than 1000 php
inexpensive
The Arduino Software (IDE) runs on Windows, Macintosh OSX, and Linux
operating systems. Most microcontroller systems are limited to Windows.
cross-platform
The Arduino Software (IDE) is easy-to-use for
beginners, yet flexible enough for advanced users to take advantage of as well. For teachers,
it’s conveniently based on the Processing programming environment, so students learning to
program in that environment will be familiar with how the Arduino IDE works.
simple, clear programming environment
The Arduino software is published as open source
tools, available for extension by experienced programmers. The language can be expanded
through C++ libraries, and people wanting to understand the technical details can make the
leap from Arduino to the AVR C programming language on which it’s based.
open source and extensible software
The plans of the Arduino boards are published
under a Creative Commons license, so experienced circuit designers can make their own
version of the module, extending it and improving it. Even relatively inexperienced users can
build the breadboard version of the module in order to understand how it works and save
money.
open source and extensible hardware
is software with source code that anyone can inspect, modify, and enhance.
open source
When does Arduino created?
2005
In 2005, building upon the work of _________ (creator of Wiring), ________ and
_________ created Arduino, an easy-to-use programmable device for interactive art design
projects, at the Interaction Design Institute Ivrea in Ivrea, Italy.
Hernando Barragán, Massimo Banzi, David Cuartielles
Microcontroller of arduino
ATmega328P
SPI
Serial Peripheral Interface
ISCP
In Circuit Serial Programming
AREF
analog reference
Parts of Ardunio
- Power USB
- Power Barrel Jack
- Voltage Regulator
- Crystal Oscillator
- Arduino Reset
6-9. 3.3V, 5V, GND, GND, Vin - Analog Pins
- Main Microcontroller
- ISCP Pin
- Power LED indicator
- Tx and Rx LEDs
- Digital I/O
- AREF
is the ability of a microcontroller to be programmed without
disconnecting from the circuitry.
ICSP
is a synchronous serial data protocol used by microcontrollers
for communicating with one or more peripheral devices quickly over short distances. It can also be used
for communication between two microcontrollers.
SPI
Software structure consist of two main functions:
Setup() function
Loop() function
is called when a sketch starts. Use it to initialize the variables, pin modes,
start using libraries, etc. Only run once
setup() function
is used only in function declarations. It indicates that the function is expected
to return no information to the function from which it was called.
void
Variables that are declared inside a function or block are
local variables
are defined outside of all the functions, usually at the top of the program
global variables