Simple Arduino LED grow lamp

11 May 2014


I have always loved Arduino’s, but never really had the time to actually do anything useful with them. If you don’t already know what Arduino is:

Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. it's intended for artists, designers, hobbyists and anyone interested in creating interactive objects or environments.

But I explain them to people as a microcontroller that lets you write code to interact with electronics.

Recently I moved into a new house where we have limited garden space but wanted to be able to grow herbs and various other plants to brighten up the house. The only issue where we had decided to use was a slight lack of light, due to the angles of the building the natural light was only strong enough during mid day.

The only electronics I had was my Arduino Uno, a Luxeonstar Rebel Tri-Star LED and a externally dimmable driver (specifically a Luxeonstar 3023-D-E-700). I’m not going to go into too much detail on the actual setup as I will probably post about this in the future.

Currently you can only specify an on and off time which will dim the LED in/out at these times. Eventually you will be able to specify your location (lon/lat) to which it will calculate the sunrise / sunset times automatically.

You will need both Time.h & TimeAlarms.h libraries for this to work.

But basically you will need to connect pin 11 (or any PWM pin) to the Ctrl wire on the LED driver and the Ref wire to the Gnd on the Arduino.

I have no RTC (real time clock) for my Arduino so the time is set in the code of the Arduino, this means you will have to reprogram it each time you restart the device which is a pain! You may want to look at getting one of these Sparkfun RTC modules.

You will see this line in the code for setting the date & time.

// Set time to start the clock here

The format is (hr, min, sec, day, month, yr).

Latest code can be found over on my GitHub, this will allow me to update it and add more features over time.

Let me know if you have any suggestions!

See full post

Hello World

23 Apr 2014

Hey there! Welcome to my new website & blog that I'm going to be using for the foreseeable future (Until I decide to change it all again).

I used to use Wordpress for my previous blog, but due to the slowness and the security concerns I decided to go with something else, and as nowadays static sites are all the rage that's what I wanted to use.

My new site is built using Jekyll, Bootstrap for the framework and my own theme to make it my own.

It's likely I will put the theme up on my GitHub for anyone to use and copy, but first I need to tidy it up a little. I'm also going to write about how I got Jekyll to do most of the things I needed.

BTW: You may find more posts pop up going back over time as I bring them over from my old blog (Don't worry it's not time travel).

See full post

Wireshark on a remote Linux host using SSH

19 Sep 2013

First you need tshark installed on the remote linux host: sudo yum install tshark -y or sudo apt-get install tshark -y. On the local linux machine you need the normal wireshark GUI packages.

Then from your local linux machine you can run:

[user@linux ~]# wireshark -k -i <(ssh -l root REMOTEHOST tshark -w - not tcp port 22)

Where REMOTEHOST is the remote linux host. The Wireshark GUI should open on your computer and you will see the flow of packets come in.

See full post