0% found this document useful (0 votes)
126 views

Introductions & Arduino Tutorial: by Christine Vu

This document provides an overview and introduction to using Arduino. It discusses using Arduino sketches to enable communication between a control panel and Bluetooth. It also outlines some of the core Arduino functions like pinMode, digitalWrite, analogRead and analogWrite which configure pins as inputs/outputs and read/write values. The document lists the analog and digital pins on the Arduino Uno and their capabilities.

Uploaded by

api-308151707
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
126 views

Introductions & Arduino Tutorial: by Christine Vu

This document provides an overview and introduction to using Arduino. It discusses using Arduino sketches to enable communication between a control panel and Bluetooth. It also outlines some of the core Arduino functions like pinMode, digitalWrite, analogRead and analogWrite which configure pins as inputs/outputs and read/write values. The document lists the analog and digital pins on the Arduino Uno and their capabilities.

Uploaded by

api-308151707
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Introductions

&
Arduino
Tutorial

By Christine Vu

Sections
Section 4.2 Technical Requirements
Provides thought process of creating a requirement

Appendix C: Page A
Requirement Checklist

Arduino

WTF are we doing with it

Missions, Systems, & Tests with


Arduino
Arduino Sketch bridges the communication between Control
Panel and Bluetooth
i.e. Arxterra app presses up button, Bluetooth receives that
message. The steps after that is done by Electronics and Controls
(message received by Bluetooth is translated to move up)

Creating Sketches: Base code is usually found somewhere

ArduinoUno Overview

Sketch Structure

Arduino Pins

Pins A0-A5 are analog inputs. Can be used as digital input or


output as well.
Pins 0-13 are digital inputs/outputs. Max current is 40mA per
pin.
Pins 3, 5, 6, 9, 10, and 11 can be configured as 8-bit PWM
output.

Inputs & Outputs


pinMode(pin, mode)

analogRead(pin)

Configures a digital pin to behave either as an


input or an output.
mode: INPUT, OUTPUT

Reads the voltage applied to an analog input pin


(0- 5) and returns a number between 0 and 1023
that represents the voltages between 0 and 5 V.

digitalWrite(pin, value)

analogWrite(pin, value)

Turns a digital pin either on or off.

Changes the PWM rate on one the digital pins 3, 5,


6, 9, 10, and 11.

value: HIGH or LOW


digitalRead(pin)
Reads the value from a specified digital pin,
either HIGH or LOW.
Usually use an int variable to store the value.

Value may be a number between 0 and 255. 0


means OFF, 255 means 100% duty cycle.
Need to use pinMode to set pin as output before
using.

You might also like