Tuesday, September 18, 2018

LED Street Lights with Auto Intensity Control by Arduino Projects

Arduino based LED Street Lights with Auto Intensity Control

The main goal of this project is to control the automatic intensity of the street lights using an Arduino board. This project uses LED lights instead of HID lamps in streetlights. An Arduino board is used to control the intensity of the lights by developing PWM signals that transform the MOSFET into a set of light-emitting diodes to achieve the desired operation.

 

Auto-Intensity-Controlling-of-LED-Street-Lights arduino

Auto Intensity Control LED Street Lights by Arduino

LEDs last longer than HID lamps because LEDs consume less power. The Arduino board includes programmable controls that control the light intensity based on the PWM signals produced. The light intensity is kept high during the night when the traffic on the roads decreases slowly and the light intensity decreases more and more until the morning. LED Street Lights with Auto Intensity Control Finally, the light intensity stops completely in the morning at 6 o’clock in the morning and restarts at 6 o’clock in the morning. in the evening and this process is common.

Tags: arduino projects for engineering students, Auto Intensity Control arduino projects for beginners, LED Street Lights arduino projects

Friday, September 14, 2018

PIR Motion Sensor Arduino based Mini Projects with Alarm Code

PIR Motion Sensor: Arduino based Mini Project

Many people have alarms throughout the house and Alarms are very common nowadays. But what about your internal warning? For example, your siblings may be prevented from entering your room. This project will help you create a simple PIR motion sensor using the Arduino Uno board.

This project has no type of switch to stop it. The only way to stop it is to leave the installed room or stop it. This project also tells you how the tone function works.

Material Required for PIR Motion Sensor Arduino Project

In this project required three main Important Parts

1 x Arduino Uno Board
1 x PIR sensor
1 x Buzzer

PIR sensors allow you to sense motion and is mostly used to detect whether a human has moved in its range.

 

arduino projects

Related: ARDUINO LED KNIGHT RIDER ARDUINO PROJECTS FOR BEGINNERS

I set the frequency to 3000 Hz using these frequency alarms on the Internet, It is now time to download the program for PIR Motion Sensor Arduino based Mini Project. In the comments, you can find a description of the complete code The PR sensor is primarily a motion sensor, which determines the progress when it detects a movement, you control the time of this high state and controls the two powerful indicators displayed in the image under the sensitivity of your sensor.

 

This PIR Motion Sensor Arduino based Mini Project creates beep sounds when movements are detected. You can easily change the time of the beep by changing the delay time at the end of for loop.

Code for PIR Motion Sensor Arduino based Mini Projects with Alarm Code

bool isToneOn = false;
int frequency = 3000;

void setup() {
//here is our PIR sensor
pinMode(2, INPUT);
//here is our buzzer
pinMode(3, OUTPUT);

}

void loop() {
//when PIR sensor gives us HIGH it means that it detects movement
if(digitalRead(2) == HIGH){
//we will turn on alarm for 15 seconds
//we are using tone() so we can control frequency of our beep sound
//to turn tone off we have to use noTone()
//if you want to change frequency of tone you can do it in the variable
//on the top of the code
for(int a = 0; a < 30; a++){
if(isToneOn){
noTone(3);
isToneOn = false;
}else{
//3 means our pin where buzzer is connected
tone(3, frequency);
//we have to change this variable to true, we have to know
//when to turn buzzer on and when to turn it on
isToneOn = true;
}
//delay 0.5 second, you can change this value so it will
//beep slower or faster
delay(500);
}
}
}

 

Wednesday, September 12, 2018

Arduino LED Knight Rider Arduino Projects for Beginners

Arduino LED Project – Knight Rider:

Therefore, we will make a flashing LED game. You can find the code to make the Knight Rider on the Arduino page. Here we will try to show a simpler and shorter code. I will make a version of 10 LEDs.

Let’s start with what we will need for this project, if you purchased one of these Arduino starter kits, you should find each of these components in the box for Arduino based mini projects

This project used to help you learn how to use LEDs with Arduino and how to use for loops. First we have to do is connect everything together, the schematic given below is how to connect all the connections. Here I used 220Ω resistors in place of 200Ω resistors can work for this project as well.

Whenever you use LED’s for light, we have to use the resistor this resistor acting as the current limiting resistor some people will say you don’t need to use the resistor for LED’s which is not true for Arduino. We always LED connect with the resistor to Arduino otherwise LED and Arduino may damage.

Material Required for Arduino LED Project

Arduino Uno Board
10 x LEDs
10 x 200Ω resistors or 220Ω resistors
Breadboard

Arduino Projects for Beginners

How to Connect Arduino LED Project for Beginners

Put the negative leg (shorter one) of the LED in the negative bar of the breadboard and the positive leg in the breadboard row. then connect the resistor to the LED and the resistor with the Arduino using a male-male jumper wire. Do the same for all 10 LEDs. Don’t forget about Connecting the negative bar to GND of the Arduino.

Arduino LED Project Working

 

Now you can upload a program by disconnect jumper wires from pins 0 and 1, Just keep in mind that when you want to upload the program because they are shared with the UART communication pins RX and TX. It is impossible to upload a program on the board when LEDs are plugged into these pins.

Arduino programming for Knight Rider Arduino Projects for Beginners

//here you can change speed of the effect, it can be faster or slower, as you wish
int time_between_blinks = 50;
void setup() {

//here we are setting up all pins as an outputs for LEDs
pinMode(0, OUTPUT);
pinMode(1, OUTPUT);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);

}

void loop() {
//that’s the for loop, the first parameter is a value that is equal to 0, the loop
//will work as long as the value of a will be higher or equal to 10 (second parameter)
//and at the end we are incrementing a by 1
int volume = analogRead(A0);
volume = map(volume, 0, 1023, 0, 10);
for(int a = 0; a <10; a++){ if(volume >= a){
digitalWrite(a, HIGH);
}else{
digitalWrite(a, LOW);
}
}
}

IR Sensor Module Working with Arduino

IR Sensor Module Working Introduction Introduction : Start with a brief introduction to the IR Sensor Module and its applications. Mention t...