ECEN 421 Quizzes (5-8)

studied byStudied by 3 people
0.0(0)
Get a hint
Hint
  1. How many pins of the DHT11 sensor need to be connected to circuitry in order for it to operate correctly?

1 / 15

flashcard set

Earn XP

Description and Tags

16 Terms

1
  1. How many pins of the DHT11 sensor need to be connected to circuitry in order for it to operate correctly?

3

New cards
2
  1. How many data pins are needed on a single device for I2C Communications?

2

New cards
3
  1. For the Homework 5 assignment, what code change had to made without xTaskCreate?

Directly calling the function with no arguments

New cards
4
  1. Write a segment of code that you would use to display the sentence “hello world” on the bottom row of the LCD 1602

string = “Hello World”;

sprintf(strl”%s”,string);

LCD(strl)

char buff(17)

memset(buff, 0, sizeof(buff));

sprintf(buff, “Hello World”);

LCD_set cursor(0,1);

LCD_writestr(buff);

New cards
5
  1. What is the unit for the amount of time specified by the second input parameter for the ESP-IDE function?

microseconds

New cards
6
  1. Which ESP-IDF function is used to give a name to a GPIO interrupt service routine?

gpio_isr_handler_add

New cards
7
  1. How many pins of the LCD1602 device are used for data communication?

1

New cards
8
  1. Assume that one terminal of a normally-closed push-button is connected to GPIO27 of the ESP32, while the other terminal is connected to Vcc. Write the segment of code that will allow the press of this button to generate an interrupt on the ESP32

esp_rom_gipo_pad_select_gipo(27);

gipo_set_direction(27, GPIO_MODE_INPUT);

gipo_pulldown_en(27);

gipo_pullup_dis(27);

gipo_set_intr_type(27, GPIO_INTR_NEGEDGE);

gipo_install_isr_service(0);

gipo_isr_handler_add(27,gipo_ISR,NULL);

New cards
9
  1. What basic electrical property does the ESP32 touch sensor rely on?

Capacitance

New cards
10
  1. For the concurrent state machines in HW 7, which of the following was used for communication between the two state machines?

Global Variable

New cards
11
  1. The technique of using sleep modes in an embedded systems program is an example of what type of optimization?

Power

New cards
12
  1. In an ESP IDR program, what instructions should replace the following instruction in order to create the same amount of delay while in light sleep mode?

esp_sleep_enable_time_wakeup(200000); //in 20000 microseconds = 20 milliseccond esp_light_sleep_start();

New cards
13
  1. In FreeRTOS, a task has to be contained with what type loop?

Infinite loop

New cards
14
  1. Which of the following RTOS objects is used to protect a critical section of a program?

Mutex

New cards
15
  1. What type of access does a queue data structure have?

FIFO

New cards
16
  1. Draw the diagram of a circuit that will allow for a photoresistor to provide a Logic 0 value for an input pin when it is not exposed to any light

knowt flashcard image
New cards

Explore top notes

note Note
studied byStudied by 26 people
... ago
5.0(2)
note Note
studied byStudied by 56 people
... ago
5.0(1)
note Note
studied byStudied by 28 people
... ago
5.0(1)
note Note
studied byStudied by 97 people
... ago
5.0(3)
note Note
studied byStudied by 40 people
... ago
5.0(1)
note Note
studied byStudied by 9 people
... ago
5.0(1)
note Note
studied byStudied by 39 people
... ago
5.0(1)
note Note
studied byStudied by 20 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (31)
studied byStudied by 34 people
... ago
5.0(3)
flashcards Flashcard (39)
studied byStudied by 175 people
... ago
5.0(1)
flashcards Flashcard (63)
studied byStudied by 32 people
... ago
5.0(1)
flashcards Flashcard (127)
studied byStudied by 15 people
... ago
5.0(1)
flashcards Flashcard (25)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (59)
studied byStudied by 102 people
... ago
5.0(4)
flashcards Flashcard (251)
studied byStudied by 16 people
... ago
5.0(1)
flashcards Flashcard (410)
studied byStudied by 106 people
... ago
4.7(3)
robot