Categories
Uncategorized

Friday Night Drawbot

Drawbot
Arduino-Powered Drawbot

Friday night turned into Robotics/Art night at the 2XL Makerspace. I remembered seeing this Drawbot Project, and while you can modify normal servos to be continuous rotation servos, I already had some continuous rotation servos on-hand, so we got to work. (Or play, if you prefer.)

Drawbot parts
Drawbot parts

The Drawbot consists of just a handful of parts. Here’s a list of the items we used:

All of these pieces are available from our friends at Adafruit Industries. You can probably find the parts elsewhere as well, and you don’t need a Boarduino specifically, as any Arduino board will work. I just used the Boarduino because it’s small.

Sharpies and Corrugated Cardboard
A Pack of Sharpie Markers

Oh, you’ll also need some Sharpie markers (I recommend a nice 8-pack of various colors) and a 9 volt battery, a platform, and something to hold it all together.

Servos taped together
Servo motors held together with some tape

The building of the Drawbot was pretty simple. I started by using a bit of tape to stick the servos together with the wheels facing out. This gave me the width of the “platform” I would need. (It had to fit between the wheels.) I used corrugated plastic because it was handy. It’s very lightweight, easy to cut, and pretty strong. You could certainly use cardboard or something like a plastic CD case, but I’m telling you now… corrugated plastic is awesome. (I’m already using it in my next project!)

Once I had the servos secured to the platform with some rubber bands, I put the battery and the breadboard on top of the platform. The placement may be a little tricky, as you need to determine the correct balance. I wanted it to be a bit heavier on the side that would hold the marker, but didn’t want too much weight on that side. Rubber bands make it really easy to move things around.

Close-up of Drawbot
Close-up of Drawbot

With most of the pieces in place, I added the jumper wires between the servos and the breadboard. That’s it for the wiring.

At this point I wanted to test it out. I was impatient and just wanted to find some continuous rotation servo code. A quick search led me to the post Controlling a Parallax (Futaba) Continuous Rotation Servo with Arduino. I ended up simplifying my code even more. Right now the Drawbot just goes in a circle. Yeah, it’s simple, but that’s the way I like to start things. Get the simplest thing working first, and then go from there. (Code is at the bottom of the post.)

Marker holders
Marker holders made out of corrugated plastic

So we now had a robot that went in circles. At this point we figured it was time to draw something! Back to the corrugated plastic. This is another place where the plastic shines. I cut a small piece, and then cut a hole with an X-Acto knife where the marker was going to go. I cut the hole a bit small, and when i slide the marker it, it held it nice and tight. I’m glad I didn’t use cardboard, as it just doesn’t have the strength of the plastic.

Drawbot on it's first run
Drawbot on it’s first run

With the marker in, it was time to test it. We put it down in the center of a 24″ x 18″ drawing pad and turned it on. It spun around drawing circles. Success! We managed to build a robot that can create artwork. :)


Artwork by Drawbot

Since things were all loosey goosey, meaning, our marker holder could shift around, the pad was on an uneven floor, the servos were probably not perfectly matched, etc. We got a circle, and another circle, and another one, all overlapping. In a perfect world I’d suppose you’d just get a circle with every other circle drawn directly on top of it. I think it turned out better our way.

Drawbot making overlapping circles
Drawbot making overlapping circles

We figured that two markers would be better than one, so we tried that next. The results were pretty good. Here you can see how the circles start to overlap. We’re hoping to try with some bigger paper to see what happens when it doesn’t run out of room.

Here’s our code…

/*
 * Drawbot.pde
 */

int servoPinL = 9;
int servoPinR = 10;

void setup() {
  pinMode(servoPinL,OUTPUT);
  pinMode(servoPinR,OUTPUT);
}

void loop() {
    digitalWrite(servoPinL,HIGH);
    digitalWrite(servoPinR,HIGH);
    delayMicroseconds(1500);
    digitalWrite(servoPinL,LOW);
    digitalWrite(servoPinR,LOW);
    delay(50);
}

Again, this code is really simple. All you’ll get is a circle, or, a bunch of circles. But now that we’ve got the Drawbot working, we can start playing around with modifying the code to change it up a bit. We look forward to more robot-created artwork in the future!

Note: Check the project page for more info.

Categories
Uncategorized

Visitor Stats

For some reason (probably the whole “end of one year, beginning of another” thing, I felt like grabbing the visitor stats for this site.

I hadn’t realized that it was only about 6 months since the last time I did this. Even better, now we can compare! See the July 2010 stats if you want to review.

Visitor Stats

Compared to last time, Firefox is down, while Chrome is up. I guess that’s not surprising. Chrome is gaining in popularity. As for this site, I write about Firefox and Mozilla a lot more than I write about Chrome, so I’d still expect some good Firefox numbers.

Internet Explorer is down (thank goodness!) but so is Safari. I’d almost expect Safari to go up a bit due to the iOS… but I guess not.

Visitor Stats

Windows went up slightly, while the Mac stayed about the same. iPad went from less than 2% to over 11%. I really didn’t write much about the iPad until the end of December, of course, a lot more iPads are out there now.

Visitor Stats

The interesting number here is the second one, 768×1024, which I believe correlates to iPad in portrait mode. Very interesting! The other numbers are all pretty close. Do I really have that many visitors to this site using iPads?

I’ll have to remind myself to check the numbers again in 6 months…

Categories
Uncategorized

iPad Needs a Case

Macally METROLPAD

I finally got a case for my iPad. I’ve used the Apple iPad case with one of the iPads we have at the office. It seems like a nice case, and I contemplated getting one. I do think it’s overpriced at $40 (but it is from Apple.) I did some searching and found that so many cases were made of leather or some other leather-like material, or folded, or had stands built-in, or pockets, or other weird stuff. All I really wanted was a simple case to add a bit of protection. When I got my iPhone I bought the cheapest case the AT&T store had, and I actually really like it. It’s just a no-frills slip-on rubberized cover. This is pretty much what I wanted for the iPad.

I finally found the Macally METROLPAD which, despite being listed for $29.99 on the Macally site, was available for about $13 on Amazon. (There’s a few other cheap Macally cases on Amazon as well.)

I typically hold the iPad with both hands, often while sitting on the couch, or while laying in bed. I do a lot of reading so it’s common for me to hold the iPad with two hands, swiping or touching to get to the next item. I didn’t want a bulky case with any sort of cover or flap to deal with. I don’t do a whole lot of typing or playing games, both of which probably lean more towards resting the iPad on your legs or something.

Macally METROLPAD

The METROLPAD does have (at least) one annoying feature. The volume control is not exposed, but instead contolled via pushing on a “rocker” type piece of the case. And I mean pushing. It takes a good amount of pressure to get it to work. Maybe it will loosen up over time (or maybe I need to hack my own solution.) The mute slider switch is also hard to move. I can get at it with my pinky finger… most of the time.

I’m really liking the Macally METROLPAD. It was well worth the $13 I paid. I’m glad I didn’t drop $40 on a different case not knowing if I’d like it or not. I’d recommend the METROLPAD if you just want a simple cover-type case. Note that I do have an old laptop sleeve I put the iPad into if it’s going in my backpack to take somewhere. If you want the best of both words, either use this case, and a sleeve, or look for another solution. This one works for me though, so take that as you will.

Oh, I didn’t talk about how I stand the iPad up… Well, there’s always the next post.

(Thanks for reading this. If you’re reading it on Facebook or Google Reader or somewhere else it got syndicated to, consider visiting the original post, especially if you’d like to leave a comment.)

Categories
Uncategorized

Twitter vs. Blogging

Blogging in the House!

On Anil’s piece titled If You Didn’t Blog It, It Didn’t Happen, I left the following comment:

Twitter is like going to a restaurant. Blogging is like buying a house.

I thought I should expand on that… and what better place than right here, on my own blog, where I’m allowed to.

As I’ve said before (in fact, I said it just yesterday) there are things I don’t like about Twitter, but my not liking these things, or complaining about them probably isn’t going to change them. That’s OK… I don’t own Twitter, I don’t control Twitter, I just visit Twitter.

Twitter is like going to a restaurant. You can talk to people you know, and people you don’t know. They can talk to you. You can overhear conversations. You’re at the mercy of the management. They can kick you out.

Blogging is like buying a house. It requires maintenance and upkeep. You’re free to do what you want, you can redecorate, or hang some pictures, or ramble on as long as you want. It’s your home, you own it, and you make the rules.

Anyway, that’s how I see it. I’ve had this blog since 1997. I’ve been using Twitter since 2006. I can still get to every single blog post I’ve written here (and so can you) while Twitter only lets me see a portion of the content I’ve put into it. I’ve started archiving as much of it as I can over here… on my own site, because I don’t trust Twitter with my data the way I trust myself with my data.

Categories
Uncategorized

Visualizing Data

We all know that management loves its charts & graphs but normal people like us? We love data visualizations!

Why, just take a look at sites such as information aesthetics, Information Is Beautiful, or FlowingData for some examples.

I’m proud to say I’ve been dabbling in data visualization myself recently, and I’d like to share a few things with you.

visualization showing how dark is it at midnight
This is a visualization showing how dark is it at midnight.

visualization showing how bright is it at noon
This is a visualization showing how bright is it at noon.

visualization showing what color genderists think girls like
This is a visualization showing what color genderists think girls like.

visualization showing what color genderists think boys like
This is a visualization showing what color genderists think boys like.

visualization showing how dirty dirt really is
This is a visualization showing how dirty dirt really is.

visualization of a successful stabbing attempt
This is a visualization of a successful stabbing attempt.

visualization showing the color of oranges
This is a visualization showing the color of oranges.

Whew, that’s a lot of data! Aren’t you glad you were able to visualize it with my help? So many others make visualizing data complex, but we work hard to make it simple.

Data Visualization is just one of the many services we offer here at RasterWeb! Contact us for your next Data Visualization project.