413980177 by Unknown

413980177 by Unknown

Author:Unknown
Language: eng
Format: epub


digitalWrite(INDICATOR_PIN, HIGH); // make

indicator pin HIGH

delay(20); // wait for 20 mSec

}

else

{

lcd.setCursor(0, 1); // set cursor on LCD

lcd.print(“Motion NOT DETECTED.. “);

// print string on LCD

digitalWrite(INDICATOR_PIN, LOW);

//make indicator pin LOW

delay(20); // wait for 20 mSec

}

}

4.2 Interfacing of the NodeMCU with an Analog Sensor

This section describes the interfacing of an analog sensor with the NodeMCU. To demonstrate the working of an analog sensor, a temperature sensor (LM35) is used with the other components. The system comprises of a NodeMCU, a 12V/1Amp DC adaptor, a 12V to 5V and 3.3V converter, a LM35, a liquid crystal display, a 330ohm resistor, and a LED. The objective is to demonstrate the working of an analog sensor, display the information on a liquid crystal display, and switch the LED ‘on’ or ‘off’.

Fig. 4.3 shows a block diagram of the system.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.