Variables and Identifiers
Qus. 1 : <p>What will be the output of the following Arduino code?</p><pre><span style="font-size: 14px;">#define X 10;<br></span><span style="font-size: 14px;">void setup()<br></span><span style="font-size: 14px;">{<br></span><span style="font-size: 14px;"><span style="white-space:pre"> </span>X=0;<br></span><span style="font-size: 14px;"><span style="white-space:pre"> </span>Serial.begin(9600);<br></span><span style="font-size: 14px;"><span style="white-space:pre"> </span>Serial.print(X);<br></span><span style="font-size: 14px;">}<br></span><span style="font-size: 14px;">void loop()<br></span><span style="font-size: 14px;">{<br></span><span style="font-size: 14px;"><span style="white-space:pre"> </span>//Do nothing…<br></span><span style="font-size: 14px;">}</span></pre><div><br></div>
- 0xAB
- 0xa
- 0
- Error
- Value
- Size
- Address
- None of the above
- While
- If.else
- #define
- Case
Programs
Arduino Program to take input from serial and on the led based on input.
Arduino program to fade the led bulb using for loop
Arduino program to connect a led through push button
Arduino program to change the blinking speed of led using the potentiometer
Arduino program to print all integer number from 0 to 99 using for loop
Arduino program to print odd numbers from 1 to 99
Arduino program to print odd numbers from 99 to 1
arduino program to interface buzzer with Arduino board to buzz on off with the delay of 1sec
Arduino program to Blink a Light Emitting Diode LED
Arduino program to print Hello word in LCD
Arduino program to run a counter and display in LCD
Arduino program to interface the sensor and led
Arduino program to sound the buzzer on press on push button for 1 second
Arduino program to interface buzzer with LDR and LED
Arduino program to create automatic street light control by using LDR sensor
Arduino program to read a integer number and print its table
Arduino program to print the square root of a given number
Design a night lamp using a LDR and a LED using Arduino Uno and find out the time delays associated in keeping ON the lamp
Design a counter using an atmega microcontroller (like ATMEGA328P) using Arduino to display the number of entries per day in an office.
Write a program to interface a temperature sensor (LM35) and water Nozzle with the Arduino.
Arduino program to interface led buzzer with Arduino or raspberry pi and turn ON LED for 2 second after every 3 second