Experiment 1:
Blinking LED Light
Equipment:
Arduino
LED
Procedure:
Connect Arduino to the GUI interface from a windows system. This configuration is initially done and all the required settings are made. Connect anode of LED to Ground and cathode to Input pin in Arduino D7(PIN NO : 13). This initial set ups is to be made. Then we can use in build in program to blink LED. Go to File and then select Examples. Here different kinds of examples are given, we can use them directly or modify according to our use. Go to Basics folder there select Blink file. This will open a new window with blink program. Check if the port number to which LED is connected is correctly give in the file or not. If not change it to correct port number. Upload the program. This is the process of writing program to Arduino. This will put Blink file to Arduino. This will take quite long time to load. Once the program is being written to Arduino we can observe blinking light. After that the program is loaded/written to Arduino LED starts blinking. LED will blink with time lapse mentioned in Blink file. This time lapse can be changed and blinking speed can be varied.
Video:
Code:
Blink file in Basics from Examples.
Reference:
https://www.arduino.cc/en/Tutorial/Blink
Experiment 2:
DHT11 with Arduino
Equipment:
Arduino
DHT11
Resistor
Breadboard
Connectors
Procedure:
DHT11 is a sensor used for measuring Temperature and Humidity. I have used this with Arduino and measured temperature and humidity and stored results. Connect DHT11on breadboard. Now connect ground pin of DHT11 to Arduino ground. Data pin is connected one of the IO pins of Arduino. Other pin of DHT11 is connected to one end of resistor. Other end of resistor is connected to power supply of 3.3v. This is the required connection set up. Then we have to open file. Go to file in Arduino GUI and select examples. Then select DHT Sensor Library and select file DHTtester. Upload this file into Arduino. This will start taking temperature and humidity values from DHT11 and report in Arduino GUI. To see result we have to open window from Tools->Serial Plotter. In this window we can see temperature and humidity values.
Picture:
Code:
DHTtester from DHT Sensor Library in Examples
Reference:
http://playground.arduino.cc/Main/DHT11Lib
Experiment 3:
Raspberry Pi setup with Arduino
Raspberry Pi can be connected to Arduino and operated. This will be same as connecting Arduino to a windows system. This is simple process to do.
Initially we install Arduino GUI in Raspberry Pi by following the command: sudo apt-get install Arduino
This will install Arduino interface in Raspberry Pi.
In addition to this I have installed packages which will be useful for programing with Arduino.
sudo pip install nanpy
sudo pip install pyserial
I tried to operate LED light with program from Raspberry Pi but I faced many problems. I read many pages and blogs and finally found that Arduino which I am working on is not a supporter of the latest version of the software. I was not able to continue forward and operate LED with Arduino. I did not find a proper solution for this problem. I am giving links of all the pages which I referred regarding this problem.
References:
https://www.raspberrypi.org/blog/raspberry-pi-and-arduino/
http://www.akeric.com/blog/?p=2420
https://www.youtube.com/watch?v=Jw06KLLkapU
Experiment 4:
Multiple LED
This is the experiment in which multiple LED are connected and each light will blink one after other. Looping is done and so all the lights will glow continuously till the program is terminated on Arduino. For this experiment i have used Arrays program file from experiments in Arduino.
Equipment:
Arduino
Breadboard
6 LED
6 Resistors
Connectors
Procedure:
Connect all the 6 lights to one resistor each as shown below in the video. Each LED will be connected to resistor at one end and ground at other end. Now each resistor is connected to different IO pins in Arduino. We make use of IO pins and program the logic for blinking LED. One light will blink after other. After making connections open the file Arrays from Controls in Examples from file in Arduino GUI. This will pop up a new window. This contains multiple lights blink program. Check the IO pin numbers for which each resistor is connected and make changes in port numbers in the opened file. I needed we can change blinking time for the LED. After all the required changes are done Upload the program. This will operate LED on breadboard. As a result we can see 6 blinking LED.
Video:
Code:
Arrays program file from Controls in Examples.
Experiment 5:
LED control with Button
In this experiment I tried controlling operations of LED with inputs from push button.
Equipment:
Arduino
LED
Push Button
Breadboard
Connectors
Procedure:
Connect one button on breadboard. To one pin of button connect resistor. To other end of resistor connect it to IO pin (D4). Connect other pin from button to ground. Below is the circuit of connection and how it works. Once the file is written to Arduino LED will not glow. When the button is pushed down it is taken as input and the mode of LED is changed from LOW to HIGH. Then LED starts glowing. This works as interaction with user through button and operating LED from user input.
Video:
Code:
int input=2; // to store on or off value
void setup()
{
// put your setup code here, to run once:
pinMode(2,INPUT);
pinMode(13,OUTPUT);
}
void loop()
{
// put your main code here, to run repeatedly:
input=digitalRead(2);
if(input==0)
{
digitalWrite(13,HIGH);
}
else
{
digitalWrite(13,LOW);
}
}
Reference:
http://www.instructables.com/id/How-to-use-a-push-button-switch-with-arduino/?ALLSTEPS
Blinking LED Light
Equipment:
Arduino
LED
Procedure:
Connect Arduino to the GUI interface from a windows system. This configuration is initially done and all the required settings are made. Connect anode of LED to Ground and cathode to Input pin in Arduino D7(PIN NO : 13). This initial set ups is to be made. Then we can use in build in program to blink LED. Go to File and then select Examples. Here different kinds of examples are given, we can use them directly or modify according to our use. Go to Basics folder there select Blink file. This will open a new window with blink program. Check if the port number to which LED is connected is correctly give in the file or not. If not change it to correct port number. Upload the program. This is the process of writing program to Arduino. This will put Blink file to Arduino. This will take quite long time to load. Once the program is being written to Arduino we can observe blinking light. After that the program is loaded/written to Arduino LED starts blinking. LED will blink with time lapse mentioned in Blink file. This time lapse can be changed and blinking speed can be varied.
Video:
Code:
Blink file in Basics from Examples.
Reference:
https://www.arduino.cc/en/Tutorial/Blink
Experiment 2:
DHT11 with Arduino
Equipment:
Arduino
DHT11
Resistor
Breadboard
Connectors
Procedure:
DHT11 is a sensor used for measuring Temperature and Humidity. I have used this with Arduino and measured temperature and humidity and stored results. Connect DHT11on breadboard. Now connect ground pin of DHT11 to Arduino ground. Data pin is connected one of the IO pins of Arduino. Other pin of DHT11 is connected to one end of resistor. Other end of resistor is connected to power supply of 3.3v. This is the required connection set up. Then we have to open file. Go to file in Arduino GUI and select examples. Then select DHT Sensor Library and select file DHTtester. Upload this file into Arduino. This will start taking temperature and humidity values from DHT11 and report in Arduino GUI. To see result we have to open window from Tools->Serial Plotter. In this window we can see temperature and humidity values.
Picture:
Results:
Code:
DHTtester from DHT Sensor Library in Examples
Reference:
http://playground.arduino.cc/Main/DHT11Lib
Experiment 3:
Raspberry Pi setup with Arduino
Raspberry Pi can be connected to Arduino and operated. This will be same as connecting Arduino to a windows system. This is simple process to do.
Initially we install Arduino GUI in Raspberry Pi by following the command: sudo apt-get install Arduino
This will install Arduino interface in Raspberry Pi.
In addition to this I have installed packages which will be useful for programing with Arduino.
sudo pip install nanpy
sudo pip install pyserial
I tried to operate LED light with program from Raspberry Pi but I faced many problems. I read many pages and blogs and finally found that Arduino which I am working on is not a supporter of the latest version of the software. I was not able to continue forward and operate LED with Arduino. I did not find a proper solution for this problem. I am giving links of all the pages which I referred regarding this problem.
References:
https://www.raspberrypi.org/blog/raspberry-pi-and-arduino/
http://www.akeric.com/blog/?p=2420
https://www.youtube.com/watch?v=Jw06KLLkapU
Experiment 4:
Multiple LED
This is the experiment in which multiple LED are connected and each light will blink one after other. Looping is done and so all the lights will glow continuously till the program is terminated on Arduino. For this experiment i have used Arrays program file from experiments in Arduino.
Equipment:
Arduino
Breadboard
6 LED
6 Resistors
Connectors
Procedure:
Connect all the 6 lights to one resistor each as shown below in the video. Each LED will be connected to resistor at one end and ground at other end. Now each resistor is connected to different IO pins in Arduino. We make use of IO pins and program the logic for blinking LED. One light will blink after other. After making connections open the file Arrays from Controls in Examples from file in Arduino GUI. This will pop up a new window. This contains multiple lights blink program. Check the IO pin numbers for which each resistor is connected and make changes in port numbers in the opened file. I needed we can change blinking time for the LED. After all the required changes are done Upload the program. This will operate LED on breadboard. As a result we can see 6 blinking LED.
Video:
Code:
Arrays program file from Controls in Examples.
Experiment 5:
LED control with Button
In this experiment I tried controlling operations of LED with inputs from push button.
Equipment:
Arduino
LED
Push Button
Breadboard
Connectors
Procedure:
Connect one button on breadboard. To one pin of button connect resistor. To other end of resistor connect it to IO pin (D4). Connect other pin from button to ground. Below is the circuit of connection and how it works. Once the file is written to Arduino LED will not glow. When the button is pushed down it is taken as input and the mode of LED is changed from LOW to HIGH. Then LED starts glowing. This works as interaction with user through button and operating LED from user input.
Video:
Code:
int input=2; // to store on or off value
void setup()
{
// put your setup code here, to run once:
pinMode(2,INPUT);
pinMode(13,OUTPUT);
}
void loop()
{
// put your main code here, to run repeatedly:
input=digitalRead(2);
if(input==0)
{
digitalWrite(13,HIGH);
}
else
{
digitalWrite(13,LOW);
}
}
Reference:
http://www.instructables.com/id/How-to-use-a-push-button-switch-with-arduino/?ALLSTEPS
No comments:
Post a Comment