Android IOIO Project | IOIOSeek

I hope you don’t mind, but I went ahead and stepped it up a few notches.

My newest project brings my end-goal a few steps closer. I now have the pieces in place to put together an actual robotic implementation with the IOIO…since things have officially reached the cool stage, I decided to drop this as a stand-alone project. Complete with pics, a vid, and an app.

IOIOSeek:

IOIO android servo seek

dig the lighting

What I have here are two slider bar controlled servos, an analog input-read solar panel, and some LEDs toggled via a button. The control is via the IOIO / Android.

servos and solar panels on ioio android

dig the wires

The pictures, however nice, don’t really tell the story. Take a look at the video to see this thing in action:

As the video alludes to, I am going to run with this concept. The automation (robotics) lies in the analog reading with respect to the servo positions. I plan to ‘scan’ the panel…that is the piece that is missing. Once I can implement that mess, I will have a tracking system. Implementations will fall out of that.

analog input ioio

+1 tape

As with the last few projects, I have dumped the app on the Android Market for general perusal. The app’s description provides the details of the pin configuration, which is straight forward. I have two PWM outputs, a pure 3.3V digital toggle, and a pin configured for analog input. That is that.

I will push my code to GitHub as well eventually, and provide a link therein. I still need to polish my generic servo code, since my latency was borderline awful in retrospect. Look for that in the near future as well.

As always, drop any questions to joe[at]swantron[dot]com. Feel free to share your IOIO projects with me…

IOIO Servo Controller

I just doubled my Android Market presence with one fell swoop. IOIO project number two is in the books: IOIO Servo Controller.

IOIO Servo Controller

servo in altoids can smells like altoids

This project is a one-off of the PowerSwitch Tail relay project I have out in the wild. I took the button out of the mix and implemented a slider bar…removed the relay and am now driving a hobby servo.

IOIO Android app

brand placement

Displayed is the relative level (zero to one) of the slider, the slider itself, and a shameless plug. The onboard LED also fires with a brightness relative to the slider position…which I implemented in the coding and sort of left in there.

The basic concept was to get the PWM output configured correctly, in order to control the servo positioning…the slider function is pretty much just the stock slider from the Android Development docs, widened a bit for the sake of video capture. The rest was just mashing around the code I had out there…not too bad.

Check the thing in action:

This project is available for download in app form on the Android Market. Right next to my other guy…search for IOIO. I will toss the code on my GitHub account as well. Fun project…I may branch and see If I can do anything cool with a few servos. We’ll see.

Shoot any comments to joe(at)swantron(dot)com. I can help with any setup issues, if they may arise. Good luck…

IOIO PowerSwitch Project

I can finally report a conclusion of sorts on the IOIO / PowerSwitch Tail project. The ‘of sorts’ disclaimer is in regards to my Android App, which is pretty much a working beta. I have some issues with my onResume code, and want to put some polish on the UI. That said, I have released the code to the interwebs, so had better provide a write-up.

The setup is the same as I have been posting. Dual open drain pins with a 10K pull to 5V do the lifting…triggering of pins is handled via my IOIO board…Android app providing a UI to do the switching.

ioio-example-project

beta version: check.

I went ahead and published my app on the Android Market. It will pop for sure by searching for IOIO.

android market app

apptastic

Price: free ninety nine. Can’t beat that.

I also tossed this code up on GitHub. Go nuts.

github example

/swantron

Video time: see this in action.

Basically, between all of the shaky camera work, I download my app from the Android Market, connect via USB, and control the 120V relay via my Droid 2. I will shoot a better video once I clean up my code a bit.

Stay tuned. The README on GitHub and the app details section should have all of the connection information. I can provide any further details via email / comments / @swantron. Have fun with this one…

Link to android market
Link to project code at GitHub

HTML to Python to Arduino to LCD

Last week found me standing tall upon my shell script soapbox, shouting command line praises to all who would listen.

Thou ought direct thine output aftways, to-wards thine USB port of thee. And that is well and righteous.

Well, that still is the case. My latest project has made it glaringly obvious that sometimes a little Python script will render a whole bunch of shell scripting moot. Namely, parsing HTML. Let’s see a picture…

outdoor hacking

bad lab mobile

Lunch hour project: parse the comments from swantron.com; feed said comments to an LCD screen.

I was horsing around with wget from a CLI a few days ago. I found myself trying to smash through the resultant file via pure regular expressions…which is incredibly clumsy. Well, as luck would have it, my go-to after my main go-to is Python, and this type of thing has been issue enough to warrant a library. BeautifulSoup. It acts to parse the HTML info into items, that can be smashed around as I see(med) fit.

My setup was simple: py script to snag my comments and write serial, Arduino sketch to drive a LCD and read/write serial. And a source of shade. And a WiFi signal to snag.

mobile mobile

bad lab mobile-mobile

Check, check, check, etc. Video time:

Pretty slick…hit the fold for the code, as promised, and a summary.
Continue reading

How to Use a Ladder

Ladder safety is a must in my book. Before tackling that weekend project around the house, take a look at these ladder tips I have collected.

* Ensure the roof of the vehicle you are using is obstruction free
* Make sure the ladder is fully opened, with both supports extended to their maximums
* Look for and remove any dangerous/pointy objects from around the vehicle
* Take note of any overhead power lines and or cables

dangerous ladder setup

plus one dangerous

Here, I have safely used a ladder to open this second-story window that had been painted shut. Safely used a ladder like a baller.

DIY Minority Report

Spoiler1: This is awesome.
Spoiler2: I’ve never seen Minority Report.

I do know that there is some sort of hands free interface, and that is what I have put together.

minority report

+1 dizzy

Long story short, I have extended upon my PING))) project to include some sweet touchless home automation. I have the ultrasonic sensor interfacing with my garage door and a lamp, utilizing a servo and a PowerSwitch Tail, respectively.

Hit the bump for an awesome video of this thing in action, and for my spippet.

Continue reading

Garage Door Hack

Introducing Open-er-o-matic 3000. OOM3K. My finest project to date. I have my Arduino poking around with a PING))) sensor, a servo, some LEDs, and best of all…my garage door opener. End result: some Star Trek-ass shit.

hit the vid

Ronco alert

Check this footage of the OOM3K in action. Here, I had it configured to open the door when the ultrasonic sensor echoes off of something within 8 cm…

After the bump, of course

Continue reading

How to Fix a Paper Cutter

I walked into my designated printer room at work today to find the paper cutter broken. What a tragedy, right? I have absolutely no idea why we need a paper cutter, let alone several paper cutters, at our software shop FWIW. Regardless, I took it upon myself to remedy the problem. Sleep tight, thy co-workers…rest assured that you can again transform 8.5″ x 11″ paper sheets into 8.25″ x 11″ paper sheets, thanks to my pro bono paper cutter fixing skills. Observe.

What You’ll Need:

*Broken Paper Cutter
*Tape (Scotch)

Steps:

1) Locate Point of Failure

You can see that this particular cutter has malfunctioned due to a broken cutting arm.

paper cutter

brokos

2) Procure a section of tape

(If you are unsure with what to do with the tape at this point, don’t worry…this will come into play in step 3)

paper cutter

tapos

3) Place tape section on the displaced cutting arm

fix

applyum

4) Place displaced cutting arm on cutting arm articulating housing; secure tape

paper cutter

fixdos

That’s that. Leave it in the printer room for the next idiot who actually uses a paper cutter…I bet bewilderment will ensue

How to Make Breakfast Burgers

Trying to spice things up around the breakfast table? Here is something new and interesting: breakfast burgers! Boy Howdy!

breakfast burger

too many noms to count. there are countlessly many noms here.

Not only are these breakfast burgers nutricious and delicious, they are uber easy to make. Follow these easy steps.

1) Make two too many bacon turkey burgers for dinner
2) Place said bonus burgers in a Rubbermaid container (here, I went for a 1L with rounded square edges)
3) Bring to work
4) Open container
5) Eat breakfast burgers at work, in the morning

***Note: breakfast burgers are best when enjoyed with multi-vitamin and coffee***