Posts

Image
    Light Activated Circuit Using LDR & TRIAC Need of component   CIRCUIT DIAGRAM
Image
Ultrasonic sensor visitor and people                  counter with arduino need of component   Arduin. ultrasonic sensor. breadboard. Jumper wire. circuit diagram CODE : #include <Wire.h>  // Comes with Arduino IDE #define echoPin 7 // Echo Pin #define trigPin 8 // Trigger Pin const int ledPin = 13;  // the pin that the LED is attached to long duration, distance; // Duration used to calculate distance int sensorCounter = 0;   // counter for the number of button presses int lastsensorDistance = 0; int setCounter = 20; int incomingByte; void setup() {  Serial.begin (9600);  pinMode(trigPin, OUTPUT);  pinMode(echoPin, INPUT); pinMode(ledPin, OUTPUT); } void loop() {      if (Serial.available() > 0) {            // see if there's incoming serial data:   incomingByte = Serial.read();            // read the oldest byte in the serial buffer:   if (incomingByte == 'R') {              // if it's a capital R, r
Image
HOW TO MAKE AROMATIC DARK LIGHT  SENSOR BY USING  ARDUINO AND LDR WITH CODE  AND CIRCUIT DIAGRAM WHO IT IS WORK               This system works by sensing the intensity of light in its environment. The sensor that can be used to detect light is an   LDR . It's inexpensive, and you can buy it from any local electronics store or online.  The LDR gives out an analog voltage when connected to VCC (5V), which varies in magnitude in direct proportion to the input light intensity on it. That is, the greater the intensity of light, the greater the corresponding voltage from the LDR will be. Since the LDR gives out an analog voltage, it is connected to the analog input pin on the Arduino. The Arduino, with its built-in ADC (analog-to-digital converter), then converts the analog voltage (from 0-5V) into a digital value in the range of (0-1023). When there is sufficient light in its environment or on its surface, the converted digital values read from the LDR through the Arduino