Skip to main content

Posts

Showing posts with the label pushbutton

How to read analog and digital data both at same time using Arduino

  From the above circuit, we can read both analog and digital data both at the same time and display the reading over a 16X2 LCD display. We have used PIR( passive infrared  sensor ) motion sensor for analog values and push button for digital values. The PID motion sensor is connected to analog pin 0 and push button is connected to digital pin 9 of the Arduino .   PIR motion sensor are used to detects infrared radiation from the environment. It does not emit any energy but passively receives infrared radiation from the environment. There's a amazing fact human body also emit electromagnetic radiation. The radiation emitted by human body depends on the temperature of the body. Radiation emitted by human body is in the infrared region. Pin1 is output pin   Pin2 is VCC pin Pin3 of the sensor connected to the ground   If  you are interested to see the working go to the link below: https://www.tinkercad.com/things/0N5AvKIBaFp-harshal-sawant/editel?sharecode...

Interfacing RELAY with Arduino UNO

  Interfacing RELAY with Arduino UNO What is Relay? Relay is an automatic switch that detects conditions in circuits and causes the contacts to change their positions to close or open the circuit as required. Relays are used in many applications. When the coil of the relay is energized or de-energized, its contacts are ON or Off.          In a relay, we have to consider two important parameters i.e. once is the Trigger Voltage, this is the voltage required to turn on the relay that is to change the contact from Common->NC to Common->NO. Our relay here has a 5V trigger voltage.   Let’s understand the interfacing of relay with Arduino I amusing online simulation software (Tinker cad). Tinker cad helps to interface, code, and simulate online. All the components I have used are present in the software. You can also build your own circuit. All the components have been labeled in the above Figure. The push-button is connected  to pin2 whic...