swan tron dot com

Arduino Solar Cell Night Light Concept

So, I’ve formalized the solar cell project I have been poking at for a while. I managed to clean up my code and mess with some initial conditions, etc., and now have a fairly solid proof of concept for a solar cell-centered night light. lighty As was the case in my first few runs, my sketch incorporates a five second initialization phase. This acts to set both relative minimum and maximum values which act to provide “full light on” and “full light off” values, respectively. The generated power from the solar cell is read in to the Arduino via analog input, and the LEDs are driven via digital outs. The rest is some simple math that transforms the range of the analog signal into a digital range of zero to two hundo fifty five. It’s giant-ass-text-having snippet time!

// Solar LED IO // Joseph Swanson | https://swantron.com // 2011 // Define constants const int sensorPin = A3; // Solar cell Pin const int ledPin = 5; // varuiable LED Pin // Define variables int sensorValue = 0; // wipe read value int sensorMin = 0; // set initial min int sensorMax = 1023; // set initial max void setup() { // turn on Pin 11 LED…indicates calibration period begin pinMode(11, OUTPUT); digitalWrite(11, HIGH); // stay lit for five seconds while (millis() < 5000) { sensorValue = analogRead(sensorPin); // adjust for real max if (sensorValue < sensorMax) { sensorMax = sensorValue; } // adjust for real min if (sensorValue > sensorMin) { sensorMin = sensorValue; } } // end Pin 11… calibration period finito digitalWrite(11, LOW); } void loop() { // read the solar cell analog sensorValue = analogRead(sensorPin); // apply a little calibration to the sensor reading // bit from example sketch at http://arduino.cc sensorValue = map(sensorValue, sensorMin, sensorMax, 0, 255); // set constraint for outliers with respect to min/max sensorValue = constrain(sensorValue, 0, 255); // fade the LED from one to 255 analogWrite(ledPin, sensorValue); } Pretty straight forward. On to the vid… It’s web2.0-too-many-script-ass-calling embedded video time!Not too bad. Again, I used an Arduino Duemilanove and a Solar World panel. I might try to further this concept by incorporating my 120V switch and getting a lamp up in here. Stay tuned, as always.

Time Wars…Watch vs Cell Phone

If you would have asked me a year ago if I thought there was a need to wear a watch, I would have told you no. More specifically, I would have told you, “why would a person purchase a watch, when it is pretty much a given that there is a cell phone in the pocket of said buyer?” I would have had a valid point. Well, I can give you two reasons. Reason number one: fashion. Yawn. Not my style. Reason number two: cell phone might die. Yawn. My BlackBerry lasts forever. Flash forward to right now…I wear a wedding ring and have a phone that lasts about four hours on a charge. I need a watch. If I was to head out watch shopping right now, there is no doubt that I would buy a Invicta subaqua watch. Without a doubt, the coolest looking watch I have seen to date: subaqua In all honesty, that thing is sweet. I really dig black and silver…cite my SS as evidence. Clean, subtle, and sophisticated. Not to mention the whole sub-aqua thing. Pretty much can’t kill this thing. So, if I am to make a move to be on time, where should I look to buy my beloved Invicta subaqua? Easy. Blue Dial. Check out this price. bluedial Two hundred, sixty seven…down from nearly nine hundo. Beat that, I dare you. Hit that link, see for yourself. Great watches at greater prices…while you do that, I’m going to put my Droid 2 back on the flipping charger. It has been three hours.

Military Watch Technology

I spend all day staring at screens. Be them my work monitors, (also know as “the twin twenties”) or the hi def screen on my mobile phone, (Droid 2, also know as “the D2”) I have screens all over the place. When I get home, I have two large flat screen televisions and a bunch of laptop computers. Honestly, screens everywhere. A side effect of swimming in screens is immediate access to the time. Work computer…time in the bottom left. Debian laptops? Time on the upper right. I have my netbook saving vertical space, so the time on that guy displays in the lower right. My droid spits out time all over the place…TVs are the same with the touch of one button. Everywhere I am, there it is. Has technology rendered watches useless? No way. Watches are awesome. watch this There are a few different routes you could take with something like this. You could buy a stylish watch, or a watch that will serve a purpose of some sort. Or, you could grab something like this: (my new favorite, FWIW) traser h3 I am digging Military Watches right now…good engineering, nice style. Like the one pictured above. The Tracer H3 is a serious machine. MB-Microtec H3 Tritium Illumination. For sure. That is not messing around. I am very impressed by the 200 meter capability of this watch. Very cool. Hit that link to see for yourself…that site has some awesome watches…good prices too.

Mad Solder Skillz

Some time ago, I snagged a robotics kit from Amazon. A few weeks after said time, I assembled the mechanical components of said kit. I assumed that the electrical assembly would be equally as detail-centric. I was quite wrong. xtreme lead ingestion to the maxx It was a son-of-a-bitch. Plus, I had a snaffu with the IR emitters, which are more than likely the same price as the microcontroller that is involved with this kit. Good President’s Day? You better believe it…so much fun horsing around with new connections, crappy directions, and a semi-success. Off to The Shack (Radio Shack’s awesome new advert front) to complete the project tomorrow at lunch, if all goes well. My motors are working, and all three emitters are pushing power, which indicates a solid-ass project as far as connectivity is concerned. Close, but no cigar. Maybe I’ll show off that cigar tomorrow.

Arduino Solar Cell-Based Detector

*Proof of Concept Warning*-*Proof of Concept Warning*-*Proof of Concept Warning* Mission: Utilize a solar cell to vary the intensity of an LED Supplies: Arduino Duemilanove <–> USB <–> Notebook (Linux, por supuesto) Breadboard, Jumper Wires, Make-shift Jumper Wires (spare resisters), LEDs, Solar Cell Setup: Here it is work at work The setup is pretty straight forward: Read analog, write digital. The primary hurdle was figuring out the initialization step. Basically, I needed to provide a time-frame where you can read in minimum / maximum values from the cell. The LEDs in the awesome video below show the results… v This project is full of take-off ideas. Reverse the range on the LED outputs, and you have a setup that powers up a light as the ambient light levels fall. Motion detector…you bet. You could implement a setup to run the initialization cycle at intervals, to provide a real-time average light level, and check for a delta of some size. Boom. There you go. I’ll clean up the code, use some real jumpers, horse around with things in general, and throw up a post. With a snippet. Check back.

Solar Cell Teaser

+1 doing Arduino proofs of concept at work on lunch break solar-y I packed a solar cell and a little breadboard to work today…put together a little sketch together over my lunch break to control LED brightness with solar cell analog readings. I shot a little vid that I will toss on YouTube. Expect a full write-up soon. You suckers might even get a snippet…

Let’s Talk Toner

Where do you buy your toner? From a brick and mortar toner store? Get with the times… toner As with pretty much anything tech-based, the only practical way to buy toner cartridges these days is to buy them online. Not only do you save yourself a trip to the store, but a little shopping around will get you a far better price than heading down to the neighbourhood Staples to grab some toner.

Toner Tips

For the best toner selection, shop online For the best toner price, shop online For the best toner time savings, shop online If I would have heeded my own advice, I would not be writing toner articles to keep the lights on. But, lo and behold, I am. For the loss. Regardless, hit that hyperlink and buy some toner. When all things are said and done, it is, in fact, far cheaper to buy this stuff online than in a store. It is the same racket as HDMI cables…fairly certain that a 8-foot HDMI doesn’t cost thirty bucks to produce. But, I digress…

Woops

Nuked that LED from space… blown led In my ongoing fight with my Ethernet Shield, I had a bright idea that the sucker might have some bad jumpers. Welp, I put together a little blinking LED code and let it rip…which worked. I then tried to run the LED through the 3V lead…but…plugged the bastard into the 5V slot. Fire and brimstone. Long story short, the board is getting power, the jumpers are fine, and that sweet clear LED is toast.

Network Admin Fail

I haven’t had much to publish as of late. Not for lack of trying; I have been quiet because of a damned roadblock. I figured I could smash my way through a few MAC/IP settings, and have my Ethernet Shield doing all sorts of cool stuff with my Arduino. I was sorely mistaken. This afternoon, I took another stab at the thing. Even after attempting to put together a cross-over setup…I still cannot telnet to my goddamned card. I don’t know how many arp and ifconfig commands I have sent, but it has to be in the triple digits. To no avail. Looks like it is back to network 101 for this guy. Son of a bitch. We’re going manual. On the bright side, I worked inside today… pledge Bonus Pledge, courtesy of Katie. For what it is worth, I found a few commands that don’t seem to work on the command line… arp -a I think I will pack this thing to work and tackle it on my lunch breaks. Enough is enough.

Home Security Chat

When I think security system, my brain immediately jumps to a webcam. More specifically, a webcam and a couple of servo motors. Most specifically, a webcam, a couple of servo motors, and a slick web interface with which to drive said servos and see a live stream of said webcam. I’m getting closer to making that a reality. Bear with me. Here is the 20,000 dollar question: what happens when I see something awry? freeze I could take and save footage all day, but then what? I’ll assume that everyone has seen advertisements for ADT…they have the missing piece in the puzzle I laid out. Monitored alarm system…I can throw together a system to capture, but do not have the time to do the monitoring. I think I would sleep better, having someone on the other end of the line. ADT is, without a doubt, the best to have on the other end. I would love to spend some time with one of their systems…they have a lot going on. Pet insensitive sensors? Yep. How do they do that? Must be one hell of an algorithm that goes into that infra-red sensor. Positioning and triggering would be very cool to tear into. Wireless keypads…ditto. Not sure how they keep that secure. I’ll wrap this up. Check into home security, for sure, and more specifically into ADT. Go with the best.