Predict the output of the following code if the object is moving towards the sensor.
int op = 6;int isBarrier = HIGH;void setup() {pinMode(op, INPUT);Serial.begin(9600);}void loop(){isBarrier = digitalRead(op);if (isBarrier == LOW) {Serial.print("1+");}else{Serial.print("clear+"); delay(100);}
clear+clear+1+1
1+1+clear+1
1+1+clear+clear
clear+clear+clear+clear
Air Quality Monitoring
Distance Measurement
Humidity Detection
Motion Detection
All pins are having a function without reserved
Some pins are reserved
Pins have more than one function
Multiplexing of some pins
setup () and loop () function
Only setup () function
Only loop () function
None of these
Pulse Width Modulation.
Pulse Wide Modulation
Plain width modulation
3.5V
5V
10V
3.3V
12
16
8
14
Use lcd.setCursor(0, 0) and lcd.print("Text").
Use lcd.begin(0, 0) and lcd.display("Text").
Use lcd.print(0, "Text")
Use lcd.text("Text", 0)
Arduino Duemileanove
Arduino Diecimila
Arduino Esplora
Arduino Due
Microprocessor
Coprocessor
microcontroller
controller
Comma ( , )
Colon ( : )
Semicolon ( ; )
Fullstop ( . )
Integrated Development Environment
Interfaced Developed Module
Interleaving Deficit Expander
Interleaving The Developed Environment
To read analog signals
To output digital signals
To output PWM signals
To write digital HIGH/LOW values
Arduino nano
Lilypad
Arduino uno
Arduino mega
ATmega328m
ATmega328P
ATmega2560
None
IoT System
Embedded System
Grid System
Cloud System
What will be the output of the following Arduino code?
#define X 10;void setup(){ X=0; Serial.begin(9600); Serial.print(X);}void loop(){ //Do nothing…}
0xAB
0xa
0
Error
LiquidCrystal.h
LCD16x2.h
Display.h
LCD.h
dataType const PROGMEM variableName [] = {};
data type PROFMEM const variableName [] = {};
const data Type variableName [] PROGMEM = {};
const data Type PROGMEM variableName []= {};
50-60
0-1023
0-255
16 MHz
12 MHZ
18 MHz
14 MHz
Voltage
Frequency
Time Duration
Distence
Turbine
Windmill
Solar cell
Open source programmable circuit board.
proprietary programmable circuit board.
Open source non-programmable circuit board.
None of the Above.
Data rate
Bits rate
Baud rate
Crumb board
breadboard
Slice board
None of the above
What is the objective of the code given below if it is executed on the Arduino Uno?
#include<EEPROM.h>int pin=13;void setup(){pinMode(pin,OUTPUT);Serial.begin(9600); void loop(){for(int i-0; i<EEPROM.length(); i++) {EEPROM.write(i, 1);digitalWrite(pin, HIGH);exit(0); }
Clear EEPROM
Fill EEPROM with 1's
Export EEPROM data
Fill EEPROM with 0's
for
while
do-while
nested for
Ohm
Farad
Henry
Coulomb
servo.attach()
servo.write()
servo.move()
servo.setPosition()
To generate a PWM signal
To produce a sound on a buzzer with a specific frequency
To control the brightness of an LED
To read analog values
void loop()
void setup()
OUTPUT
2
4
sketches
drawings
links
notes
Measure light intensity
Detect motion
Measure temperature and humidity
Monitor air pressure
Add on modules
extra peripherals
connectivity modules
another arduinos
Predict the output of the following code if the object is moving away from the sensor
int op = 7; int isBarrier = HIGH; void setup() { pinMode(op, INPUT); Serial.begin(9600); } void loop() { isBarrier = digitalRead(op); if (isBarrier == LOW) { Serial.println("1+"); } else { Serial.print("clear+"); } delay(100); }
MQ-135 gas sensor
PIR sensor
DHT22
BMP280
digitalWrite()
analogRead()
analogWrite()
pinMode()
Transmits
Receivers
Ground
Restarts
Receives
Software
Devices
Cloud
Management system
loop()
setup()
selay()
VHDL programming
IDE
ICSP
इनमें से कोई नहीं
setPin()
Capacitance
Resistance
Inductance
0–255
0–1023
0–4095
0–65535
Digital Pin
Analog Pin
PWM Pin Only
Ground Pin
Soldering iron
digital multimeter
voltmeter
ammeter