Homemade Solar Tracker

It was a bright, sunny day, so why not build a homemade solar tracker? Solar trackers help solar panels always point at the sun as the sun moves from east to west across the sky. They slightly improve efficiency of panels connected to them.

We took an old “C-band” satellite rotator and controller, and soldered some wires up to the “east” and “west” movement buttons to give us a couple of dry contacts that we could control with electronics. We chose (2) X-10 Universal Modules which momentarily close the dry contacts when a signal for it comes down the powerline (which a computer can control). One module for east, one module for west. The contacts short for about a second and a half with every ON command. Starting at the east-most side, 18 WEST ON commands make it go to the extreme west-most side.

After verifying the modules worked properly, it was then time to start writing code! After calculating the number of possible minutes of sunlight after subtracting the Sunrise time from Sunset time, we took the result and divided by 18 to find out how many minutes between ON commands. It is this interval (45 minutes right now) that the rotator will move west. At the end of the day when the rotator is at its west limit and the sun sets, the rotator will turn all the way back to the east limit to prepare for the next day.

This was a pretty fun project to conceptualize and put in to operation in a single day. The jury is still out on whether or not the extra energy produced will offset running the rotator, especially on non-sunny days.

MisterHouse control for a Samsung Smart TV

UntitledAnother piece of my home, now automated. With assistance from a thread on the Samygo forum, I created a module for the MisterHouse Home Automation System which allows it to control a network-connected Samsung Smart TV. For instance, when you leave the house for more than 10 minutes, it could turn the TV off for you. It could also switch the TV automatically to match your favorite show schedule, or switch to an HDMI input to monitor a surveillance camera if motion is detected on your property. It’s available right here for free:  https://gist.github.com/hollie/ed1fa39871e93e36e24e. It’s written in Perl so it’s cross-platform or can be adapted for other uses.

I’ve tested this with my Samsung UN40EH5300 and it works well. It should work on pretty much any Samsung TV that has an open port 55000. The code is based off of another Perl/HTML program from http://forum.samygo.tv/viewtopic.php?f=12&t=1792 created from some Wireshark traces.

To use this code, you’ll have to modify a few things:

– Change the IP 192.168.2.155 below to your own TV’s IP Address.
– Change $myip to your MisterHouse server’s IP Address.
– Change $mymac to your MisterHouse server’s MAC Address.