swan tron dot com

Bad Lab in Action

My enjoyable night of programming my IOIO slowly devolved into a digital multimeter-needing mess. bad lab in action Either I am reading the spec sheet incorrectly, or this thing is wonky. I have implemented a pull-up resister, and *should be pushing 5V. In reality, I am seeing 3.8V…something is amiss. Back to the drawing board.

Android IOIO Digital Output

I am one coding session and one EE session away from having a pretty cool project to post. In the meantime, I am making some progress with the IOIO.

+1 a bunch of wires

Eclipse and I are still having our issues, but the ADK is becoming less Greek to me. The next project should shed some light on what sort of possibilities IOIO presents.

I shot a video of one of my debugging tests. I eventually will be using an ‘open drain’ setup, in order to get 5V output, but am doing some testing at 3.3V. I hooked up an old speaker that I salvaged from a CRT tear-down to my test pins, to verify that my Android App was working.

Stay tuned.

I Need a Camera

I need either a camera, or a backup Android for dev. I’m shooting for the later. For real though…cash for a used Droid X. Anyone know of a good marketplace to pick a used one up? I’ll entertain offers at joe[at]swantron[dot]com. You know you want an iPhone… Here is the motivation: i need a camera I had to swing the laptop around to snap a picture of my Monday-Funday effort for this week. I need to snap (shoot maybe?) a video of my IOIO work, but I find myself in want of a micro SD card. Both of my 2GB cards are at the office, and my IOIO Android app is sitting happily on my Droid 2’s memory card. For the loss. Loss like the Droid X’s battery tendencies. Really, get rid of that phone. It is awful…I will be doing you a favor by taking it off of your hands. The screen is too big…hard to fit in your pocket, etc. Cash. I’ll get a vid up tomorrow. Fear not.

Google Plus Instant Upload Settings

I am still horsing around with Google+ on my Droid 2. A few posts back, I lambasted the Instant Upload feature. The whole idea of tossing geo-location-having pictures onto Google’s servers seems awfully odd to me. As this feature is ‘featured’ in Google+’s Android app, I figured I would play around with it some more, in order to gauge its evilness. The jury is still out. It does work as intended. I snapped a few pictures of my fancy breakfast in my cubicle, with the Instant Upload activated, with the Battery Uploads selection… cubicle bacon via instant upload Surely enough, once I plugged my D2 into the charger, it began to sync/upload. Within several seconds I was notified of my complete upload to G+. So, while I am still unsure of the impacts of this feature, I am impressed by its function. Google’s devs hit the ball out on the park with this one, in regards to pure functionality. Especially, as the Android Facebook and Twitter apps are rough at best. Hats off. Expect a full review of G+ in the near future.

Eclipse and IOIO

Five Volts are so 2010. I’m all over this three and three-tenths Volts stuff. 3.3 volts ioio arduino sketches Don’t call it a comeback. I blew the dust off of my IOIO board, and am ready to do some 3.3V stuffs. I have already deduced that my PowerSwitch Tail won’t relay at 3.3V, but will make a switching noise and fire the on-board LED. Lesson learned. I guess I had better get serious with my EE…this is a circuitry step up from the Arduino without a doubt. Expect a project and some code soon. I am going to make something work.

Android Instant Upload to Google(plus)

I created a Google+ account last week, in order to kick the tires a bit. I am going to hold off on a full review until I get some circles going, test the group video chat functions, etc. I do want to mention one puzzling feature that Google has built into this thing. Instant upload. I don’t get it. google plus instant upload This makes for super easy uploading of images to your profile. Android phone…cellular radio connection…there you go. This app will run a cron job to dump your photos to your Google plus profile. The default setting is to allow this when you set up the Google+ Android app, with all new photos dumped to a private (non-shared) folder on your G+ account. I opened up my settings and let this one rip. webcam shot to google plus via android It took about 20 seconds for that picture to show up in my private folder. Cool implementation, but pretty impractical. Issues I have with this:*** Increased data usage. Especially as unlimited plans are goners. * Battery nukage. One more thing to kill -9. * Location data. Real time seeding a DB with your lat/long. * Duplicate media. Primarily for deletions…two is worse than one. * Neccessary? USB cord…bluetooth…MMS…physical media…email…**Suffice to say, I will have this ‘feature’ disabled. Stay tuned for the full review, and holler if you would like an invite.

Arduino 120V AC Relay Example

I got tired of poking around with LCD drivers with my Arduino. Time for a quick project to mix it up…staring at a surge protector always puts 120V on my mind. As it turns out, I tore apart an old humidifier a while ago on my ‘workbench.’ Monday night is Katie’s reality TV night…time for something sweet. Investigating duty cycles on this plastic fan: fan hack I figured that I could horse around with my PowerSwitch Tail, and make it somewhat mimic a PWM 5V setup. I was curious how long I would have to ‘pulse’ the switch with juice to keep the fan constantly rolling. I started with it fully on, and kicked my ‘active’ duty cycles lower until I reached a nearly-continual state of motion. Pause for Arduino code snippet:

/* PowerSwitch Tail Template - 120V AC Driver w/ LED indicator - Joseph Swanson 2011 | https://swantron.com */ void setup() { // declare pins (13, 7) for writing pinMode(13, OUTPUT); pinMode(7, OUTPUT); } void loop() { // Fire relay / LED digitalWrite(13, HIGH); digitalWrite(7, HIGH); // Configure for “on” time delay (50); // Kill relay / LED digitalWrite(13, LOW); digitalWrite(7, LOW); // Configure for “off” time delay (950); } Pause for a small small-video break: As that code and vid indicate, 1/20th of a second is all it took to keep the fan rolling, with 19/20th of a second idle. Not bad. Not sure what the takeaway is, but that is something to mention. Put that knowledge somewhere safe, provided the question of humidifier fan duty cycles should spring up.

Spoofing User Agent Types from the Command line

I’m back on the command line…look out… ubuntu terminal spoofing user agents So, I am still poking away at various ways to interface between the bash and various web components. This stuff is still shaking out of my Twitter to CLI to LCD project. I have been using some of the usual suspects (wget, python url libraries, etc) in an effort to find one that is best suited to sniffing and parsing html info. I have found that writing to serial is the most fail-proof means of mashing around data quickly, so that is my inspiration. Anyhow, I was horsing around with curl on the command line. It turns out, that spoofing user agents is pretty simple to implement. Take this two-line one liner for instance: swantron@Dell15:$ x=10 swantron@Dell15:$ for (( y=1; y<=x; y++)) ; do curl –user-agent “Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)” swantron.com ; doneIn a nutshell, this is acting to snag this site ten times, with credentials indicating the machine is running Windows 2000 and MS Internet Explorer 5.1. The success is indicated by my server statistics: Before: Windows 2000 IE 5.1 After: IE 5.1 on Windows 2000 Not too bad. I am considering using this as a testing tool for my site. Messing around with PHP and CSS…I can put together a quick regression using some legacy operating systems and browsers to make certain that I can still snag my content. Granted, the example setup may seem like gross overkill, but as those stats indicate, I do see quite a few requests from ancient machines. Makes you wonder.. Anyhow, this layout is in need of some serious testing. If anyone is interested in a copy, drop me a line. Cheers.

Awesome Gadget Blog

As a gadget guy, I am always searching for new tech stuff. Every once in a while, I stumble across a new Gadget Blog that is awe-inspiring. I recently found one that blew my mind, due to some of the inanely cool stuff they dig up. Like this bad boy… iphone calculator case That iPhone case almost makes me want to get rid of my Droid 2 and snag an iPhone 4. Almost… Geekalerts.com is where I found that. I have been checking the site out for a while, and they seem to post a handful of awesome entries a day. I have no idea how they keep coming up with this stuff, but it is great. I obviously need to hone my interweb skills, as I would have a hard time finding a few head-scratcher nerd items in a week, let alone in a day. This whole work thing is for the birds. I need more free time. Or, more time to check this site out; they seem to have it figured out. In addition to the gadgets themselves, these guys do a great job tracking down coupon codes for sweet geeky savings. I ran across an Office Depot coupon that is sort of the catch-all for gadgetry. Office Depot is perhaps a step above gadgetry, since they purvey hardware. Hardwaretry? I am fairly certain that isn’t a word. Take a look at this Vistaprint coupon for another example. Pretty slick…plus it beats checking out the sites of places you might buy from. Again, the whole time thing. Anyhow, I am off to check the webs for a Droid old school calculator case. That is too cool.

WordPress 3.2 Custom Layout

After the whole fiasco that came with my upgrade to WordPress 3.2, I decided to shell my old layout and go with a new free website builder. Not only was it too bloated with jqueries, but the whole thing was sort of outdated. Time for some new blood, to go with my new (faster?) server. Introducing: Swiz3 wordpress 3.2 free layout Way quicker than the Swiz2* series. It turns out that WP has introduced a bunch of the custom menu junk that I formerly have fought with into their release, so out with the old. Consider this a working beta, and pay no attention to anything wonky on IE…haven’t even looked at this site on that. Cheers.