WorksheetsArduino Analog Write Concepts
Total questions: 12
Worksheet time: 6mins
What is the resistance value of the resistor specified for use with the LED in this project?
100 Ohm
220 Ohm
330 Ohm
1000 Ohm
Which pins on the Arduino Uno board are designated for analog writes (PWM) and are indicated by a 'squiggly' symbol?
All digital pins (2-13)
Only pins 0 and 1
Pins 3, 5, 6, 9, 10, and 11
Analog input pins (A0-A5)
What is the function of the `pinMode(redPin, OUTPUT);` command in the Arduino setup function?
To read analog values from the redPin
To declare the redPin as a variable
To set the redPin to a high voltage
To configure the redPin to send out electrical signals
What voltage does the number 255 correspond to in the system discussed?
0 Volts
2.5 Volts
5 Volts
255 Volts
The range of numbers from 0 to 255 (256 total values) is used because it represents how many bits of resolution?
4 bits
8 bits
16 bits
32 bits
If you want to set an LED to approximately half its maximum brightness using analogWrite(), what value should you use?
0
5
125
255
What is considered a good programming practice when using analogWrite() for values like brightness?
Directly using numerical constants in the function call
Defining a variable for the value and using the variable in the function call
Always using the maximum value (255) for simplicity
Avoiding analogWrite() for brightness control
A micro-controller is...
small CPU made of transistors and conductors of heat and sound sensor
portable circuits capable of making other circuits
small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals
small chip made of silver
What does IDE stand for?
Integrated Development Environment
In Deep Environment
Internal Deep Escape
IDE
Which Python codes does the program output is/are ?
name = 'Dave'
print (name)
