Arduino Mega + Raspberry Pi controlled LEDs journal - The Planted Tank Forum
 
LinkBack Thread Tools Display Modes
post #1 of 7 (permalink) Old 07-04-2013, 12:38 AM Thread Starter
Algae Grower
 
PTrader: (2/100%)
Join Date: Jun 2012
Location: Burlington MA
Posts: 63
Arduino Mega + Raspberry Pi controlled LEDs journal

I am making an LED fixture for my tank, which will be controlled by an Arduino Mega board. I will also use a Raspberry Pi to make the settings adjustable.
The first step was to get the minimum required components to check whether I can make the Arduino board talk with CAT 4101 drivers. So this is the setup:


Other than the Arduino Mega board, everything else was bought from http://www.stevesleds.com/
The driver uses CAT 4101 constant current driver IC which gives upto 1A o/p. a
Arduino Mega PWM is 0-5V at around 500 Hz. This is compatible with the CAT 4101 (100 Hz - 5 kHz).
StevesLeds makes it easy, and gives a 5V output to drive the Arduino

I have slightly modified the sample arduino sketch (Fading) so that the max PWM duty cycle is 50%. More over, the pot on the driver also reduces the intensity. Still the LEDs are too bright so I have covered them with an envelope
Here is the video:
www.youtube.com/v/Ty-zg3yxKDI

Any feedback is appreciated
ashtricks is offline  
Sponsored Links
Advertisement
 
post #2 of 7 (permalink) Old 07-05-2013, 09:31 AM
Algae Grower
 
PTrader: (0/0%)
Join Date: Mar 2007
Location: Ind
Posts: 122
hello, I tried doing this and got my Pi too. Unfortunately for a begginer like me Linux and stuff looked too complicated and I just stuck to arduino. Searching further I realized having a Ethernet shield is a better way out, as there are loads of resourses, and will do what our hobby needs.

This is about 6months ago, no idea how easy Pi has become now.

...and better to step down the voltage by a regulator before you feed to Arduino, just to stay in safer zone.


All the best!
saiko is offline  
post #3 of 7 (permalink) Old 07-05-2013, 11:14 AM Thread Starter
Algae Grower
 
PTrader: (2/100%)
Join Date: Jun 2012
Location: Burlington MA
Posts: 63
Thanks saiko!
My previous plan was using just the Arduino. But then I wanted to put a touch screen with decent graphics on it... putting it on the LAN.... All these shields started piling on the costs and power reqiorement complications....
With the Pi, it being a computer... I can use virtually any device that I can find a driver for without extra hardware.
... And yes the 5V is coming off of a 7805 on the LED driver chip
ashtricks is offline  
 
post #4 of 7 (permalink) Old 07-05-2013, 03:43 PM
Children Boogie
 
mistergreen's Avatar
 
PTrader: (13/100%)
Join Date: Dec 2006
Location: Cincinnati
Posts: 16,743
Quote:
Originally Posted by ashtricks View Post
All these shields started piling on the costs and power reqiorement complications....
That's a good point. I wish there's a good reference site on how to use it like the arduino website. That's what holding me back on working with it.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
mistergreen is offline  
post #5 of 7 (permalink) Old 07-05-2013, 06:14 PM Thread Starter
Algae Grower
 
PTrader: (2/100%)
Join Date: Jun 2012
Location: Burlington MA
Posts: 63
Yeah... the sites for arduino are much more detailed out there. But Raspberry Pi has MagPi ... their magazine... it is pretty cool too...
ashtricks is offline  
post #6 of 7 (permalink) Old 07-09-2013, 01:14 PM Thread Starter
Algae Grower
 
PTrader: (2/100%)
Join Date: Jun 2012
Location: Burlington MA
Posts: 63
Was able to get to my second milestone.
Modified the LED driver to control two channels independently. Connected the red LEDs to a different channel and used a different PWM arduino pin to control it.
The code has a small glitch.
ashtricks is offline  
post #7 of 7 (permalink) Old 10-04-2013, 01:26 PM Thread Starter
Algae Grower
 
PTrader: (2/100%)
Join Date: Jun 2012
Location: Burlington MA
Posts: 63
I am not getting any time to finish this darn thing off! But... I found a cool app that will make my life easier
http://www2.milocreek.com:8080/index.html
I am sure everyone else who wants to control their Arduinos and Pis with their iphones would love this!
ashtricks is offline  
Reply

Tags
None

Quick Reply
Message:
Options

Register Now



In order to be able to post messages on the The Planted Tank Forum forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.

Password:


Confirm Password:
Email Address
Please enter a valid email address for yourself.

Email Address:
OR

Log-in










Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Linear Mode



Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

 
For the best viewing experience please update your browser to Google Chrome