Recently in Life Category

Automated Lighting

| No Comments | No TrackBacks
So, as I mentioned earlier today, over the past few days, I had an idea to automate the lighting in my apartment.  After talking with some friends of mine, I finally decided on a rather simple implementation, wiring relays in parallel with the existing lightswitches (so all the lightswitches will continue to operate normally).  The relays aren't entirely necessary, since the MicroLogix PLC I'm using has relay outputs, but they do provide an extra layer of safety (not to mention all the signalling is low-voltage, 24vdc).  Relays themselves were squeezed into the electrical box where the switches are.  Also, all the contacts on the relay use crimp-on quick disconnects.

The ladder logic program I'm using is fairly simple: use timers to create a maximum length of time any light can be on, and also provide an automated mode where the lights cycle between on/off periods.  Inputs are wired like pushbuttons to toggle each light, as well as the manual/auto mode.  The whole thing works as expected, blinking lights and all.  Enjoy some pictures after the break.

Triplog

| No Comments | No TrackBacks
So, a few weeks before I had to start work, I decided to take a week long road trip.  I wrote up some of my thoughts as I went, and others after the fact, and I will present them here.

day 0:
8 hours of driving, woot.  Aso, Indiana likes labeling phantom workzones.

day 1:
Holiday World -- where Christmas music can bug you year round!  Also, safety is a priority, and that's why we cross the tracks with the ride in operation (with auto-accept on, too)!
After I got bored of the three coasters, it was 8 hours of more driving. (Well, 7, plus losing an hour).
Arrived at Cedar Point with 10 minutes to spare.  Get to Top Thrill Dragster just in time.  Ride's out of order at that point, and from what I could gather, it had a failed launch.  So, I wait 15 minutes until they get it going again.  After getting off, the last train has empty seats, so I get a reride.  Sweet.  Hair blown back, and it's time for more sleep.

day 2:
Cedar Point -- one, owww, the sun is hot and causes a nasty case of sunburn.  I look something like a racoon, and I didn't even have sunglasses on.  First thing to do after walking back into my room was to strip down and take a cold shower.  All the rides were great--as it should be expected, Arrow Dynamics rides tend to cause the most headache, and all the Intamin rides provided the most fun to me--Dragster, Millenium Force, and as a real surprise, Maverick.  Okay, Maverick isn't smooth in the banked curves, and shakes you up pretty good, but it does it in a really fun way (and unlike Arrow, it's meant to).  Also, when I first arrived at the park and rode Raptor, I could've sworn I saw someone in the queue wearing a collar.  I thought that was funny, said to myself, "lol, furry," and brushed it off.  At the end of the night, just as I'm about to go to my last ride on Maverick, said guy stops and points at me, just saying "that shirt... FurAfinity?"  So, we get to talking, he's on his senior trip, and didn't expect to run into a furry at Cedar Point.  Quite frankly, I figured I might run into one or two (hence wearing the shirt), but didn't think I'd actually get to know any.  Really cool ending to the day, to say the least.  Up for tomorrow?  A long drive to Maryland ahead, then Six Flags Great Adventure and FA:U await.

day 3:
More endless driving.  This time, it comes with about $20 in tolls.  Wonderful, but I make it to Baltimore by dinnertime.  I figure I'm not terribly tired, so I see if I can move my hotel reservation forward a day in New Jersey, and decide to continue on with my friends in tow (RyuRabbit and Alukit).  We get there sometime around 10pm, with pretty chilly weather outside, and also happen to see some nice weather on the way.  Settled into the hotel room, it's time for sleep, as Six Flags is tomorrow.

day 4:
On to pick up another friend (Mex) and my sister (after getting lost in jughandle hell while trying to eat breakfast), we then make our way to Six Flags Great Adventure.  Overall impression of the day is, Great Adventure has the money for some pretty good rides, but has perhaps the worst management of any of the parks I've been to. For one, they prevent a friend from buying a $3 bottle of water because he can't show his driver's license (against Visa rules).  Also, getting squished while someone can't pass the metal detector which is IMMEDIATELY after the turnstyle was a bit uncomfortable.  That said, El Toro is a rather unusual (and fun) wooden roller coaster with pre-fabricated track--using the lift style of Millennium Force, too.  Also had some good B&M coasters (Batman, Bizarro, and Superman).  Of course, there's also Kingda Ka.  Rolling Thunder was perhaps the most painful of the day--despite being designed by the same people who built Screamin' Eagle (and a few years newer), it's in far worse shape.  Finish off the day with the wonderful Rai Rai Ramen #3 (on my sister's recommendation), and get back to the hotel late that evening.

day 5:
First day at FA:U.  I see a lot more of my friends--Nybble had already come down the previous night from NY for the day, also find BlakDrgn, Zero, and CrayWolf are all wandering around working.  I also find Bobskunk and say hello, and see CeriseWlf, but don't really say anything.  Also meet quite a few new people, including Voltage and V-Smok, and ultimately have a great time just hanging out.  I've been addicted to Wawa by this point, and figure I have to get my fix in before it's too late.  Concert and performance by Matthew Ebel and 2 Gryphon are both excellent (though something akin to what I had seen at FWA).  I also get a drink mixed from the wonderful bartender--he agrees to experiment and make a Baltimore Zoo, even though he's missing amaretto.  Doesn't turn out terribly bad, at least.

day 6:
Last day of the con, I get my Wawa fix in, and hang out with everyone until the absolute last minute.  We originally planned on staying until closing ceremonies, but after the ceremonies, I decide to grab a bite to eat with BlakDrgn and RyuRabbit, making the trek up north for one last stop at Rai Rai Ramen.  Everyone loves it, and even though Alukit couldn't make it, we bring some ramen back for him.  We leave kinda later than I had expected, but make it back to Maryland safely, where I promptly pass out.

day 7:
I'm up bright and early, spending just a little bit of time playing IIDX before I have to get on the road again.  Goal is to make it about half-way, somewhere in Ohio.  I succeed, and find perhaps the dirtiest motel I've been in for the entire trip (but also the cheapest at $40/night).  I survive.

day 8:
One last day of driving, and it's a doozie.  11 hours of driving, one time zone change.  I make it back to Kansas City in time for dinner, and also manage to stop at Flatbranch again to pick up a pretzel to go.  It was totally worth it (any time I head east on I-70, I make it a point to stop there--the food's too good to pass up).  Overall, I'm worn out, but the trip was excellent.

MicroLogix 1000 and Linux (er, Win7)

| No Comments | No TrackBacks
So, because I'm a geeky guy, and I wanted something fun to play with (and since I've been taking a course on Factory Automation), I went over to America's junkyard and picked up an Allen-Bradley MicroLogix 1000 PLC on the cheap.  Good deal, and while not very featured (doesn't even have analog inputs), it's still something to tinker with.  Also had to buy a 24V power supply and a cable to program it with (which pretty much doubled my cost), but anyway, on to the fun stuff.

I'm a Linux user.  I prefer it, spend the majority of my day working with it, and don't even have a system that will natively boot to Windows anymore.  The one version of Windows I use on any regular basis is a VMware image of Windows 7.  Well, with this new PLC, I wanted a way to keep this trend going.  Maybe the title is misleading (or I cheated), but... it's the best I can do.

First hurdle was USB.  The drivers for the chipset (CP2102) weren't in Windows 7, and the provided drivers also wouldn't work... so it was off to the vendor to find something compatible with Win7.  That didn't take long, and after a quick reboot, that was up and running.

Next, I had to get RSLinx Classic running to allow communication.  Setting up a DF1 device is pretty simple in RSLinx, and autoconfiguring communications worked great with the PLC, but in Win7, I was getting an odd "Could not create registry" error.  Well, I remembered, it's not running privileged, so I shut it down and restarted it, this time running as an administrator. After I did this, it created the registry and started going, so all was happy there.  It also seems that on subsequent starts, it doesn't need to be run privileged anymore, since all the communication parameters are present.

Third, I just started up RSLogix Micro Starter Lite (I'm poor and it does what I need).  Since everything in RSLinx was good, I just tried going online and uploading the program from the processor to see what was on there, and saw there was a pretty simple program.  I mucked around with it a little, forced a few inputs, toggled a couple bits, and saw the state changing appropriately.  Satisfied all was well, I decided to write this and get some sleep.  But, before I go, I leave you with a pretty picture of my accomplishment.  Enjoy.

PLC Stuff - RSLogix

A Beginning

| No Comments
Well, after about five years of not touching a single page on my website, I decided it was time for a fresh start.  You can read a bit more about me in the "About" section... and a few things you might expect:
  • I ramble
  • I change the topic without any warning
  • I will probably go into more detail than you ever cared to know
Given this, over the next few weeks and months, hopefully I'll be able to give you a glimpse at some of the things I've accomplished.  Right now, as summer's winding down, I've been finishing my internship where I've learned anything from how frustrating certain software packages can be to very intriguing things like control systems security.  Along the way, I also had time to develop a simple application called "Acceleroid" to capture accelerometer/GPS data in near-realtime.  Blame that on my interest in roller coasters.  It's been an experience.

Where it goes from here?  Who knows, but the journey has to start from somewhere.

About this Archive

This page is an archive of recent entries in the Life category.

School is the next category.

Find recent content on the main index or look in the archives to find all content.

Categories

Pages

Powered by Movable Type 5.01