Introduction to Programming using IoT

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/79

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary flashcards covering fundamental electronics, Arduino programming, sensors, actuators, and cloud-connected IoT systems based on the DS1201 course lectures.

80 Terms

1
New cards

Circuit

A closed conducting path consisting of a power source, electrical components, and connections (such as copper wires) through which electric current can continuously flow.

2
New cards

Voltage

The electrical potential difference between two points in a circuit or across the terminals of a power source, measured in volts (VV).

3
New cards

Electric Current

The flow of electric charge through a closed circuit, conventionally flowing from the positive (+$) terminal to the negative (-$$) terminal of the power source.

4
New cards
<p>Light-Emitting Diode (LED) Polarity</p>

Light-Emitting Diode (LED) Polarity

A semiconductor light source with strict polarity: the longer leg is the positive terminal (anode) and the shorter leg is the negative terminal (cathode). Current enters through the anode and exits through the cathode.

5
New cards
<p>Resistor</p>

Resistor

A non-polarized passive electrical component with color-coded bands that regulates or limits the amount of electric current flowing through a circuit, measured in ohms (Ω\Omega).

6
New cards

Ohm's Law

A fundamental electrical law defining the direct mathematical relationship between voltage, current, and resistance: V=I×RV = I \times R, where VV is voltage, II is current, and RR is resistance.

7
New cards
<p>Piezo Buzzer</p>

Piezo Buzzer

A non-polarized electronic component composed of two discs of differing materials that converts electrical energy into sound by vibrating when voltage is applied.

8
New cards
<p>Pushbutton</p>

Pushbutton

A mechanical switch with no polarity that connects two points of a circuit when pressed (closing the circuit) and disconnects them when released (opening the circuit).

9
New cards

Microcontroller

A compact computer on an integrated circuit (such as the Arduino UNO WiFi Rev2) designed to act as the digital brain of a circuit by executing programmed instructions sequentially.

10
New cards

Flowchart

A standardized visual diagram mapping out the sequential logic of an algorithm or program before coding, using ovals for start/end, rectangles for actions, and diamonds for conditions.

11
New cards

Digital Signal

An electrical signal that exists in only one of two discrete binary states: HIGH (5 V5\,V or 11) and LOW (0 V0\,V or 00).

12
New cards

pinMode()

A built-in setup function used to configure a specific digital pin to behave either as an INPUT (receiving data) or an OUTPUT (sending data).

13
New cards

digitalRead()

A function that reads the electrical voltage level on a specified digital pin and returns either HIGH or LOW.

14
New cards

digitalWrite()

A function that outputs a specified digital state, either HIGH (5 V5\,V) or LOW (0 V0\,V), to a designated digital output pin.

15
New cards

Pull-Down Resistor

A high-value resistor (typically 10 kΩ10\,k\Omega) connecting an input pin to ground (0 V0\,V) to hold the line at a definite LOW state when a switch is unpressed, preventing floating inputs.

16
New cards

Conditional Statement

A programming construct (if, else if, else) that evaluates a condition to boolean true or false and determines which subsequent code block the microcontroller executes.

17
New cards

Assignment Operator vs. Equality Operator

A single equals sign (=) is used strictly to assign a value to a variable, whereas a double equals sign (==) is a comparison operator used to evaluate whether two expressions are identical.

18
New cards

Logical Operators (&& and ||)

Logical operators used to combine multiple conditions: && (AND) requires all evaluated conditions to be true, whereas || (OR) requires at least one condition to be true.

19
New cards

random(min, max)

An Arduino function that generates pseudo-random numbers within a specified boundary, where the minimum value is inclusive and the maximum value is exclusive.

20
New cards

Serial Communication

A digital communication protocol where data is transmitted sequentially bit by bit between a microcontroller board and a computer over Tx (transmit) and Rx (receive) channels.

21
New cards

Baud Rate

The speed of serial data transmission expressed in bits per second (such as 9600 baud9600\,\text{baud} or 115200 baud115200\,\text{baud}), which must be configured identically on both the board and the host receiver.

22
New cards

Serial.println() vs. Serial.print()

Serial.println() prints data to the Serial Monitor followed by a carriage return and newline character (moving to the next line), whereas Serial.print() prints data on the exact same line.

23
New cards

Hardware Serial Pins (Tx / Rx)

Pins 1 (Tx) and 0 (Rx) on the Arduino Uno, which are internally wired to the board's USB-to-serial transceiver and must remain disconnected during sketch upload to avoid signal interference.

24
New cards

Serial Buffer

A dedicated FIFO (First-In, First-Out) memory storage area that temporarily holds incoming serial data until the microcontroller processes it using Serial.read().

25
New cards

Serial.available()

A function that returns the total count of bytes or characters currently stored in the serial receive buffer ready to be read.

26
New cards

Serial.read()

A function that extracts and removes the first available character or byte of incoming data from the serial receive buffer.

27
New cards

char Data Type

A data type used to store single alphanumeric characters or symbols enclosed in single quotation marks (such as 'a'), represented internally by their ASCII numeric values.

28
New cards

Array

A collection of variables of the exact same data type grouped under a single name, allocated contiguously in memory, and accessed via an index starting at index 00.

29
New cards

for Loop

A programmatic loop structure that repeatedly executes a block of code a specified number of times using an initialization variable, a termination condition, and an incremental/decremental step.

30
New cards

Global Variable vs. Local Variable

Global variables are declared outside functions, reside in memory continuously, and are accessible everywhere; local variables are declared within specific curly braces, exist only during execution of that block, and cannot be accessed outside it.

31
New cards

sizeof()

A compile-time C++ operator that returns the total number of bytes or array elements allocated to a specified variable or array.

32
New cards

Analog Signal

A continuous electrical signal capable of taking an infinite number of voltage values within a defined range (such as 0 V0\,V to 5 V5\,V), reflecting real-world environmental phenomena.

33
New cards

analogRead()

A function that reads an incoming voltage from an analog pin (A0–A5) via a 10-bit analog-to-digital converter, mapping 0 V0\,V to 00 and 5 V5\,V to 10231023.

34
New cards

Potentiometer

A three-terminal variable resistor whose adjustable knob or wiper divides voltage, allowing manual analog control over circuit signals.

35
New cards
<p>Phototransistor</p>

Phototransistor

A light-sensitive polarized semiconductor component that regulates the current passing through it in proportion to the intensity of light falling on its surface.

36
New cards

Ultrasonic Sensor (US-016)

A sonar-based proximity sensor equipped with an ultrasonic emitter ('T') and receiver ('R') that measures distance based on the flight time of reflected high-frequency sound waves.

37
New cards

Serial Plotter

A built-in diagnostic utility in the Arduino IDE (Tools > Serial Plotter) that automatically renders real-time numerical serial values as continuous lines on an axis.

38
New cards

Pulse Width Modulation (PWM)

A method of producing an analog-like output voltage from digital pins marked with ~ by rapidly alternating the digital signal between HIGH and LOW.

39
New cards

Duty Cycle

The percentage of time a periodic digital signal spends in the active HIGH state over one complete cycle: Duty Cycle=Pulse WidthPeriod×100%\text{Duty Cycle} = \frac{\text{Pulse Width}}{\text{Period}} \times 100\%.

40
New cards

analogWrite()

A function that outputs an 8-bit PWM wave (28=2562^8 = 256 steps, from 00 to 255255) to an enabled pin, where 00 represents 0%0\% duty cycle (0 V0\,V) and 255255 represents 100%100\% duty cycle (5 V5\,V).

41
New cards

map()

A built-in scaling function formatted as map(value, fromLow, fromHigh, toLow, toHigh) that linearly translates a numerical value from an original range into a target range.

42
New cards

tone() and noTone()

tone(pin, frequency) generates a square-wave sound signal of a specified frequency on any digital pin connected to a piezo buzzer, and noTone(pin) terminates that signal.

43
New cards
<p>Standard Servo Motor</p>

Standard Servo Motor

An actuator containing a DC motor, a gearbox, a potentiometer, and a control circuit that rotates its shaft precisely to any angle between 0∘0^{\circ} and 180∘180^{\circ}.

44
New cards

Servo Gearbox

A mechanical gear assembly internal to a servo motor that reduces the high rotational speed of the DC motor to increase output torque and power.

45
New cards

Common Ground

The practice of tying the negative terminal of an external power source directly to the Arduino's GND pin to establish a shared 0 V0\,V electrical reference baseline across the entire circuit.

46
New cards

Datasheet

A manufacturer document specifying electrical operating ratings, pin configurations, current consumption limits, mechanical dimensions, and tolerances of a component.

47
New cards

Watt's Law

The mathematical relationship determining electrical power consumption in watts, defined as: Power (Watts)=Voltage (Volts)×Current (Amperes)\text{Power (Watts)} = \text{Voltage (Volts)} \times \text{Current (Amperes)}.

48
New cards

Function

A named, modular block of code designed to perform a distinct task, which can be reused throughout a sketch to eliminate repetitive coding and ease debugging.

49
New cards

Parameter vs. Argument

A parameter is the placeholder variable declared in a function definition; an argument is the concrete value supplied to that parameter when invoking the function.

50
New cards

Return Value

The data handed back to the calling expression by a function upon completing its instructions, initiated using the return statement.

51
New cards

void Keyword

A function declaration keyword specifying that the function performs an action but returns no data value to the caller upon completion.

52
New cards

Class and Object

A class is an abstract blueprint defining structure and behavior (e.g., Servo), while an object is an instantiated, usable entity created from that class (e.g., Servo myServo;).

53
New cards
<p>Method vs. Function</p>

Method vs. Function

A function is a standalone tool (e.g., analogRead(A0)), whereas a method is a specialized function permanently bound to an object and invoked via an access dot operator (e.g., myServo.write(90)).

54
New cards

Application Programming Interface (API)

The standardized documentation and command interface detailing the methods, parameters, and behaviors provided by a pre-written library.

55
New cards

Serial.parseInt()

A stream-processing function that skips incoming non-digit characters in the serial buffer and parses the first encountered group of digits into an integer.

56
New cards

Internet of Things (IoT)

A global infrastructure of uniquely addressable, interconnected physical objects embedded with sensors and network electronics that collect and exchange data over the internet.

57
New cards

Arduino MKR WiFi 1010

A microcontroller board based on the SAMD21 architecture equipped with onboard Wi-Fi and Bluetooth connectivity, serving as the central brain of the Explore IoT Kit.

58
New cards
<p>MKR IoT Carrier</p>

MKR IoT Carrier

An expansion shield designed for the Arduino MKR family featuring built-in environmental sensors, an IMU, an RGB display, relays, capacitive touch buttons, and an SD slot.

59
New cards

HTS221 Sensor

An integrated sensor on the MKR IoT Carrier that reads relative humidity (±3.5% rH\pm 3.5\%\,\text{rH} accuracy) and temperature over a range from −40 ∘C-40\,^{\circ}\text{C} to +120 ∘C+120\,^{\circ}\text{C}.

60
New cards

Capacitive Touch Buttons

Five integrated touch-sensitive pads (labeled 00 to 04 / TOUCH0 to TOUCH4) on the MKR IoT Carrier that detect capacitance changes caused by finger contact.

61
New cards
<p>Arduino Cloud Agent</p>

Arduino Cloud Agent

A background software service installed on a local computer that enables browser-based Arduino tools (like Cloud Editor) to communicate serially with connected boards via USB.

62
New cards

Arduino Cloud Thing

A virtual object in the Arduino Cloud representing an IoT project, containing the configuration of associated hardware, cloud variables, network credentials, and auto-generated sketches.

63
New cards

Cloud Dashboard

A customizable visual web interface in the Arduino IoT Cloud composed of interactive widgets that allow users to display real-time sensor streams and trigger remote actuators.

64
New cards

Cloud Widget

A modular graphical user interface component (such as a Gauge, Slider, Messenger, Chart, or Switch) in an Arduino Cloud dashboard bound to a specific cloud variable.

65
New cards
<p>CoolTerm</p>

CoolTerm

A third-party serial port terminal utility used to monitor and log raw incoming serial data from an Arduino board directly into local CSV or text files.

66
New cards

millis()

A built-in timekeeping function that returns the total elapsed time in milliseconds since the board began running the current program, useful for non-blocking timing and timestamps.

67
New cards

Serial Peripheral Interface (SPI)

A synchronous serial communication bus protocol used for high-speed, short-distance data exchange between microcontrollers and peripherals such as SD memory cards.

68
New cards

LPS22HB

A digital barometric pressure sensor on the MKR IoT Carrier that measures atmospheric pressure between 260260 and 1260 hPa1260\,\text{hPa} using an internal piezoresistive silicon membrane.

69
New cards

LUX

A photometric unit of illuminance equivalent to one lumen per square meter (lm/m2\text{lm}/\text{m}^2), quantifying light intensity calibrated to the human eye's spectral sensitivity.

70
New cards

APDS-9960

An integrated multi-functional optical sensor on the MKR IoT Carrier used to detect ambient light intensity, RGB colors, proximity, and directional gestures.

71
New cards

Inertial Measurement Unit (IMU)

An integrated electronic sensor module (LSM6DS3) combining a 3-axis accelerometer and a 3-axis gyroscope to track an object's acceleration, velocity, and angular orientation.

72
New cards

Gyroscope

A sensor that measures angular rotational velocity along the orthogonal xx, yy, and zz axes to determine the physical orientation and tilt of a device.

73
New cards

Accelerometer

A sensor that measures dynamic acceleration, vibration, and static gravitational forces along the xx, yy, and zz axes.

74
New cards

Actuator

An electronic component (such as a motor, relay, screen, or speaker) designed to convert an electrical control signal into a physical output or action.

75
New cards

RGB LED (Carrier)

A multi-color lighting component containing red, green, and blue light elements whose brightness values are individually set from 00 to 255255 in the order pixel index, green, red, blue.

76
New cards

Relay

An electrically operated switch that uses an electromagnet to mechanically open or close higher-power circuits, producing an audible 'tick-tack' clicking sound.

77
New cards

On Change Update Mode

An Arduino Cloud variable setting configured so that variable updates are pushed over the network only when the value changes, saving bandwidth.

78
New cards

ST77XX

The display driver controller chip family that drives the integrated 240×240240 \times 240 pixel color screen on the MKR IoT Carrier.

79
New cards

Switch Case Statement

A control-flow structure that evaluates an integer expression against multiple matching case values, utilizing break statements to exit and prevent fall-through.

80
New cards

Over-The-Air (OTA) Upload

A cloud feature that allows sketches to be flashed wirelessly to an internet-connected Arduino board without requiring a physical USB cable connection.