Explanation of Project
I have been working on a project to create a scaled down version of the Bellagio Fountains in Las Vegas. I'm wishing to drive four different PWM signals; red, green, blue, and motor. I have made one fountain in the past and it worked flawlessly, however I'm wishing to increase the number of fountains from one to ten. My plan is to integrate a PCB into each fountain, thus driving each fountain locally. I will be using an Arduino Nano to drive the PWM signals and a MAX 485 Communication board to communicate between the fountains. There are two major differences between the first fountain I built and the fountains I'm currently working on, they are...
- The first fountain used an Arduino Mega rather than an Arduino Nano
- The first fountain used USB to power the Arduino and the new fountain is attempting to use a 12V power supply.
I believe the problem is occurring from my attempts at powering the Arduino using a 12V power supply.
Explanation of Problem
I began testing the board by hooking up the 7805 voltage regulator. After verifying that it indeed was outputting 5V I loaded up the blink sketch to the Nano and tested it with the Nano running off the 7805 and it worked. Next I wrote a program that would slowly fade the LEDs and pump from low to high to low again. I then tested the Arduino using the circuit found in the schematic I've attached. After just starting to ramp the LEDs went full bright then two of the colors shut-off completely and pump switched to full on. Thinking that this odd behavior was just a result of faulty code I used an integrated RGB LED circuit to test that the code was working as I expected it to. The code was working properly, so I moved forward. I tried the LEDs and pump again, but this I read out the output voltage of the regulator using a multi-meter (Wished I had an oscilloscope but I don't). As the LEDs and pump were ramping the voltage output of the regulator was ramping to, it ramped from 5.0V to 6V and when it reached 6V the LEDs would flash and the program would reset. I tried driving just the LEDs and the voltage only ramped from 5V to 5.1V, but all of the LEDs were flickering. I tried driving just the pump and the voltage ramped from 5V to 6V and caused the Arduino to reset(I assume, let me know if I'm wrong). After reading a lot more about voltage regulators I tried adding a cap of 1000uF between the input and the ground(I realize this isn't close to the value recommended in the datasheet, but I read the bigger the better and it happened to be the only cap I had that could handle 12V). This helped a little bit so I added another cap of the same values, which helped a bit more. Finally I added all 9 of the caps that I had and I managed to get the LEDs and pump to complete the ramp...mostly. As they reached the top of the ramp the blue LEDs would shut-off and the voltage coming out of the regulator would reach 5.8~5.9V.
The Big Questions - Why is the voltage out of the regulator ramping?
- How do I go about preventing this behavior?
Bonus Questions - I plan on altering the schematic in the future and would like to know how to calculate the value for the decoupling output capacitor(Labeled CO in the datasheet).
Datasheets and Part Numbers of Components - Linear Voltage Regulator -SCD7805BTG
- DC Power Supply - LRS-350-12 Meanwell Switching Power Supply
- Capacitor - 1000uf Electrolytic Capacitor
- Red Led - 2V-2.2V 20mA
- Green Led - 3V-3.2V 20mA
- Blue Led - 3V-3.2V 20mA
(Note - Leds are wired with 4 LEDs in series and 6 sets in parallel. Thus the LEDs draw ~4.5 watts )
Thanks in advance, any help is appreciated.
(I tried to include all of the information that I thought was relevant, however if there is any other information that would be helpful in solving my problem please request it.)
dancingfountain.pdf (16.6 KB)