I am student at Gaziantep University from Turkey. It is my last semester (I hope) and I want to add more project untill graduation. It is my second project and it is a task right now. Later I will give you what process is going on this project. Date and date...
***March 15th, 2013
I am still preparing plan of my project and I planned to have these specifications on my project.
Energy Source: In daylight, it provides using renewable energy source as solar power by using PV panel(s). Otherwise I planned to supply normal process.
Sensors and Applications
1) Lighting System: If daylight is enough, lights will be turned off automatically. And if it is not enough, lights will be turned on.
2) Energy System: If daylight is enough PV panel(s) move(s) for best angle to take daylight efficiently on the roof.
3) Alarm System: If somebody does not keep out enough to the door, alarm system will be on and in a narrow time you have to enter password otherwise security will be activated. Also fire alarm can be added.
4) Weather Control System: If outside is fine enough, windows are opened by system. If there is rain or not good enough, windows are closed. Also system can be connected to the climate system.
5) Safety System: When you at bathroom and no move for long time, system warns you by a buzzer. If you don't reply the system,, security will be activated. This specification for older people. Activation can be classified as turning on/off the tap or adusting the flow rate etc.
By a LCD and keypad, you can control system for on/off and you can observe inputs.
Micro controller and PLC will be used (if has enough time).
***April 30th, 2013
Introduction video is added https://www.youtube.com/watch?v=BTkDKYWLrhI . English subtitle is added.
***May 14th, 2013
3) Alarm System: I finished the algorithm of Alarm System by using PIR- motion sensor. Alarm system is activated by controller on menu interface. If Alarm system is on and motion is detected. You have to enter 4 characters/numbers by using 4*3 keypad correctly. You have 30 seconds to enter true numbers. if you enter 3 times wrong combination or you wait 30 seconds. Alarm system will worn to security guards and buzzer will be run. After that point if you enter true combination(e.g.1400), you can only shut down buzzer and alarm system but also security guards still be worned. Security will come and check your situation. If they think no problem and everything ok. they shut down their warning system by using their own codes (1408). All delay times can be changed by obtaining on C codes. Alarm activation time is 5 seconds to show on example video, entering alarm system deactivating code time by user is 30 seconds.
Components:
Arduino Mega R3 micro controller, 4 lines 20 columns LCD (4*20 LCD TC2004A), 4*3 keypad, buzzer, 2*green LEDs (5mm), PIR sensor, 4*10kΩ resistors (for keypad Over current protection), 1*22kΩ trimmer( for LCD contrast adjustment), jumpers or cables.
let's see the run process of Alarm system on youtube.com/hasansnk
http://www.youtube.com/watch?v=6WDS0GjUMNI
***May 19th, 2013
1) Lighting System: Objective is to control LEDs (represent LAMPs) by micro controller Arduino Mega 2560 R3, I used LDR to check envirement's light level. Arduino checks light level. If light is not enough LED will be turned on otherwise it turns off LED.
I used two LDRs for two LEDs to be independent to each other. By using DIP switch you can turn on/off system and LEDs manually. I used 1N4001 diodes two protect Arduino pins while LEDs are turned on manually. 1N4001 diodes can be used up to 35V DC applications. LED resister can be calculated by that formula. (Supply voltage-LED voltage)/(20*10^-3). LED voltage values are different dependent to their type and colors. but current which flows on LED is constant; 20mA. By using these conditions, you can calculate resister value. Also you can adjust threshold value for best usage. I also connected extra cables to Arduino on LED brenches to check LED is on or off. I used DIP switch to control system, LEDs on/off. System can be controlled by DIP switch #1. It is connected to Arduino pin, +5V source and to protect Arduino 10KΩ. DIP switch #2 and #3 are connected to the LEDs to turn on/off them manually. For manual usage 90Ω resister have to be used. but I have minimum 120Ω.
To control system I used 4*20 LCD and 4*3 keypad.


Components:
2*LDRs, 2*LEDs, 2*1N4001 diodes, 2*90Ω resisters, 1*10KΩ resister, 2*4.7KΩ and cables/jumpers.
*** May 25th, 2013
1) Energy System: A controlling PV panel(s) by servo motor
As I mentioned before, I think to use photovoltaic panels to supply my smart home voltage. And for best efficient at this process, I have to adjust panels' position for best angle to the sun so, I have to design an automation to control panels' position. At this point, I think cheaper and best way to use LDR components for using them as sensors. For each panel, I used one servo motor for one motion axis. 2*LDR sensors will enough to check servo motor's motion direction CW or CCW. Arduino controls servo motor to the which sensor has more voltage value. so best angle (vertical to the sun) is provided by sensors. you can use 2 servo motors and 4 LDR sensors for 2 different axis. I programmed my Arduino for this purpose. I also added timer function to the Arduino, because I don't want that servo always runs. I used 2 time integers. first is to start pause time, second is to finish pause time for the servo motor. With this way motor will run for a narrow time and stays on standby. For some adjestments you can follow my directions. They are,
First of all, you have to read analogRead() function value for each LDR sensor on the screen for offset adjustment when you use light source to the 2 of LDR sensors in the same time in same angle to the light.
Secondly, I used a threshold value for panel to not run always. If enough light is exist, panel will run. In same logic, I used again a threshold value to compare two sensors' value to decide turn or not. For example; if digital value difference is bigger than 15, panel turns CW or CCW. Otherwise, there is no motion.
As you know servo motor has 3 cables; Black (brown) for ground, red for +5V supply and orange (yellow) is for data cable to connect micro controller pin.
Third of all, I think to determine a start position to the servo motor. It is 40 degrees If there is no enough light, servo motor turns to the start positon (40 degrees) and keeps its position. You can change it for your purpose. And I can observe SYSTEM ON/OFF information. While SYSTEM is ON, Angle value also can be observed. Also my servo motor runs between 20 degrees and 160 degrees.
For second part of Energy System video, I will mention about supplying home voltage by PV panel(s).
To control system I used 4*20 LCD and 4*3 keypad.
Components:
2*LDRs, 2*4.7KΩ resisters, servo motor and cables/jumpers.

Hiç yorum yok:
Yorum Gönder