Ict #3 Flashcards

(34 cards)

1
Q

selecting a microcontroller

A

The features and functionality of a microprocessors are unique to each brand or model. Before coding a microcontroller for your project, you must select a model that meets all the requirements of your design

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Common features people look for in a microcontroller include I/O pins, clock frequency and storage memory, however ______.

A

a countless number of other specifications exist. Writing code is pointless if the hardware can’t interact with your circuit the way you need it to.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

For beginners, is a brand of microcontroller commonly used amongst hobbyists and professionals alike. Its software is open source, meaning anyone can contribute to the growing pool of resources available to its users.

A

Arduino

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

are typically programmed in higher level languages such as C++ or Java.

A

Microcontrollers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

One of the essential tools needed to program a microcontroller is an ____.

This software is usually developed by the creators of the microcontroller, and contains useful tools to help you program your microcontroller.

A

integrated development environment (IDE).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Common tools found in IDE’s include, _____

Depending on the application of the microcontrollers, additional features may be added as well.

A

code editors, compilers, and debuggers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Once a suitable IDE is obtained, ____

A

you can begin writing code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The program started with a _____ containing a general description of what the code/program does.

A

Comments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

While this section has no effect on the programs functionality, it’s always a good to document it for future reference. User instructions, company and copyright information are also commonly placed here as well.

A

Comments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

•The second section is the _____.

A

Variable Declaration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

These variables are global, and can be called in any sections that follow. It is also common to create variables to describe each pins function, and set them equal to the pin number on the board to make coding more intuitive.

A

Variable Declaration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

are commonly used as inputs or outputs, but very rarely can they be both.

A

void setup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

In this section, the user defines which pins are inputs or outputs, as well as any other parameters that must be initialized. While the method of doing so varies for different microcontrollers, almost all of them require a similar step to configure the microcontrollers internal circuitry to fit the needs of your design.

A

Void setup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

This section is where the function of your microcontroller is written. Any actions that require reading or writing values from pins, or computing the values of different variables is done here.

A

Void Loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

This step is almost always handled by the IDE. Once your code is written, it must be uploaded to the microcontrollers. Most have USB interfaces, but some smaller microcontrollers require a special hardware to be programmed. While we typically program microcontrollers in higher level languages, the microcontroller itself runs on assembly.

A

Compiling and Uploading

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

To translate code to a format usable by a microcontroller, a must be used.

17
Q

is a software tool that takes higher level code and optimizes it for assembly. Assembly provides specific instructions to the microcontroller on what register operations to perform to match the operation of the original code. Once the assembly code is created, it can be uploaded to the microcontroller for testing.

18
Q

is the process of identifying and removing errors from computer hardware or software Most IDE’s contain debuggers that are able to run the code step by step at the users control while keeping track of variable and register values so the user can learn exactly what point the program behaves differently than as intended. This is a form of white box testing, and provides much more information that can be used to deduce the cause of a faulty program.

19
Q

Programming process in arduino

A

Step 1: Set Up the Hardware

Step 2: Install the Arduino IDE
3: Set Up the Arduino IDE
4: Write Your Code (Sketch)
Step 5: Compile and Upload the Code
Step 6: Monitor and Debug
Step 7: Testing
Step 8: Iterate

20
Q

Take advantage of existing libraries for more complex functionalities without needing to write everything from scratch.

A

Arduino Libraries:

21
Q

The onboard LED, usually labelled “ON” or “PWR” on many Arduino boards, indicates that the board is receiving power. It is typically powered when the Arduino is connected to a power source, such as a USB port or External power supply.

A
  1. Power LED –
22
Q

The heart of the Arduino UNO. This chip executes the code you upload to the board and all the input and output operations, controlling how the boards interact with sensors and actuators

A

ATmega microcontroller

23
Q

A LED is connected to a digital pin 13. It can be used for basic testing (e.g. blink the LED to check if the program is running) or for debugging purposes

A
  1. Pin 13 LED –
24
Q

These 6 pins are used to read analog signals (like from sensors). They convert analog voltage (0 to 5 V) into a digital value ranging from 0 to 1023, which can be used in your program

A

Analog pins (A0-A5)

25
These 14 pins can be configured as input or output. They are used to connect devices like switches, LEDs, motors and sensors
Digital pins(0-13) –
26
These pins are used for serial communication. These pins can be used to communicate with a computer, another microcontroller, or serial devices.
4. TX and RX LEDs –
27
When pressed, it restarts the programming running on the microcontroller. This is useful if you wants to reinitialize the system or after uploading a new program
Reset Button –
28
Used to connect the Arduino to a computer for programming and communication. It also powers the Arduino when connected to the computer.
USB port –
29
This pin allows you to supply external power to the board. If you are using an external power supply (e.g. battery) you can connect it here. The voltage will be regulated down to the required levels by the onboard voltage regulator
Power connector –
30
- `a popular, open-source microcontroller board based on the ATmega328P.
Arduino-Uno
31
Provides the common ground reference for all electrical components connected to the Arduino board. Completing the circuit by connecting devices to ground is essential for proper operation
GRN pins (Ground)
32
–Provides a regulated 5V output to power external component (e.g. sensors, module) IT can also power the Arduino itself
5V
33
is used to transmit data from the Arduino,
TX
34
is used to receive data.
Rx