Hello,
I am not an engineer,but am in school for an electrical related degree and had to build a project. As is intended with projects like this I learned a TON with the help of this forum and website, but I still have lingering issues that were never really solved or that I feel could have been done better. So, I want to post a detailed write up of my project here and see what kind of answers I can get to help me understand what was/is going on.
My project was to create an Arduino controlled fire alarm system that provided the following functionality:
I used an Arduino Mega 2560 as my main board.
-
Use a Graphic LCD screen for message and data display. I used this one… https://www.adafruit.com/products/188
-
Monitor ambient temperature with this temp sensor…https://www.sparkfun.com/products/11050
-
Connect to a wireless network and send an email notification whenever the system activated.
For this part I used the Arduino WiFi shield.
- When the ambient temperature reached a value higher than my set trigger temperature, the system would activate doing the
following:
a. Turn on a submersible water pump that would start the sprinkler system… I used this pump with small rain bird dripper
sprayers…https://www.sparkfun.com/products/10455
b. Start an actual fire strobe light that draws 12VDC 300mA.
c. Turn on a buzzer that operates anywhere from 5 - 15 volts.
d. Send one email notification to me that the system was activated.
e. Continue to monitor the temp and stop the system once the ambient temperature was once again below the trigger temp.
This was all for a basic demonstration for my class, so no need for big sprinklers or anything.
To accomplish this I set up my Arduino Mega with the LCD screen connected as indicated, and it worked fine. The WiFi shield was stacked on the Mega. To run the pump, strobe and buzzer I used a motor driver board recommended for use with the pump…
https://www.sparkfun.com/products/9815?
I also attached a small 5 VDC 25mm cooling fan in my 10x8x10 foam board enclosure for airflow.
The final project consisted of a different configuration. I ended up using a small 5VDC relay with 12VDC 2A as the pass through power instead of the Ardumoto board. The Ardumoto would not power the pump/strobe/buzzer even when given the entirety of the 12VDC 2A through the external power connection.
I was not able to use the temp sensor for some unknown reason because I could not get it to be reliable nor stable enough, so it was replaced by a standard TM36 sensor.
The LCD screen seemed to work ok, but would become unstable anytime the pump was going, but the temperature displays were always erratic. I used the LCD to show very basic information as in the example below:
Trigger Temp: 80 F
Current Temp: 70 F
System Status: OFF or ACTIVE
Pump: Off or On
Connected To:
Network Name
My biggest problem was with power. I was never able to get enough to the places that needed it and I seemed to be at or exceeding the requirements of the components, but this is where I know the least.
I bought a AC to DC power supply rated at an output of 12VDC at 2A and thought I would be ok with everything, but it was not. I ended up having a 12VDC 2 A supply to just the pump/strobe/buzzer, a separate 9VDC 1A supply for the Mega, WiFi, and LCD screen, and another 9VDC 1A supply running through a 5VDC regulator to power my proto board, for connections to pots and my LCD. I also used standard 10k pots for adjusting the screen contrast, for adjusting the trigger temp through the software and displaying on the screen, and a third pot for setting the volume of the buzzer. I ended up having to remove the trigger temp set pot because it was REALLY erratic and the system would turn on and off because of the jumping value of the temp.
I was finally not able to get the proper voltage from the digital pin on the Mega to properly trigger the 5VDC relay that only requires about 30mA of current to trigger it. The relay would trigger in random ways. Sometimes really fast on and off or not at all. Then after sometime the whole system would slowly lose power to where the screen was barely on and everything else just shut off. I now have 3 power adapters inside to power everything separately, as mentioned above.
I am including some images so you can see different setups I used and what i finally ended up with.
I know this is long and complicated, but I need to learn as much as possible about all this. I thank you in advance for reading all of this and hope that some of you can and will take some time and start a discussion with me on this. Thank you.