¿Qué hace la función analogWrite en Arduino?
2da evaluación de Arduino

Quiz
•
Computers
•
9th Grade
•
Hard
Dylan Portugal
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Lee un valor analógico de un sensor.
Escribe un valor analógico en un pin PWM.
Escribe un valor digital en un pin.
Lee un valor digital de un pin.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
¿Cuál es el rango de valores que se pueden pasar como parámetro a analogWrite ?
0 a 255
-127 a 127
0 a 1023
0 a 250
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
¿Qué hará el siguiente código en Arduino?
Enciende el LED conectado al pin 9 gradualmente y luego lo apaga.
Enciende el LED conectado al pin 9 instantáneamente y luego lo apaga gradualmente.
No hace nada, ya que hay un error en el código.
Hace parpadear el LED conectado al pin 9 a una velocidad constante.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
¿Cuál es el propósito principal de utilizar un bucle for en Arduino junto con analogWrite?
Repetir una secuencia de pulsos digitales.
Leer valores analógicos de sensores.
Generar una señal analógica gradualmente cambiante, como para controlar la intensidad de un LED.
Realizar operaciones matemáticas complejas en un microcontrolador.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
¿Cuál es la sintaxis correcta para utilizar la función analogWrite en Arduino para establecer el valor de PWM en un pin?
analogWrite(255, 13);
writeAnalog(13, 255);
PWM(13, 255);
analogWrite(13, 255);
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
¿Qué valor máximo puede tener el parámetro de ciclo de trabajo en la función analogWrite?
256
255
254
250
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
¿Cuál de las siguientes declaraciones es la forma correcta de definir una función personalizada llamada cambiarBrillo en Arduino que utiliza analogWrite para ajustar el brillo de un LED conectado al pin 9?
void cambiarBrillo(int pinLED, int valorBrillo) {
analogWrite(valorBrillo, pinLED); }
void cambiarBrillo(int valorBrillo, int pinLED) { analogWrite(pinLED, valorBrillo); }
int cambiarBrillo(int pinLED, int valorBrillo) { analogWrite(pinLED, valorBrillo); }
void cambiarBrillo(int pinLED, int valorBrillo) { PWM(pinLED, valorBrillo); }
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Basic Arduino Programming

Quiz
•
9th - 12th Grade
22 questions
Arduino

Quiz
•
9th Grade
15 questions
REPASO DE CONTENIDOS

Quiz
•
1st - 12th Grade
20 questions
PENGENDALI SISTEM ROBOTIK XII_soal 1

Quiz
•
7th - 12th Grade
21 questions
Arduino Challenge 1

Quiz
•
9th Grade
15 questions
Arduino

Quiz
•
7th - 9th Grade
15 questions
Arduino practice 2

Quiz
•
9th - 11th Grade
15 questions
LO11_Lesson 3

Quiz
•
9th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University