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.println("1+"); } else{ Serial.print("clear+"); delay(100); }
यदि वस्तु सेंसर की ओर बढ़ रही है तो निम्नलिखित कोड के आउटपुट का आउटपुट बताये ?
The microcontroller used in the Arduino UNO prototyping board is the ATmega328P. The ATmega328P is a popular 8-bit AVR microcontroller manufactured by Atmel (now a part of Microchip Technology). It is the main processing unit on the Arduino UNO board and is responsible for executing the program (sketch) uploaded to the board.