Monday, April 28, 2008

I has a pic programmer and two chassies.


So the pic programmer arrived from Bulgaria today, I have absolutley no idea what I am doing.
I downloaded a program called WinPic. I am able to connect the pic, and verify it and stuff, but now what to do? Learn how to program the thing I guess.

I thought the big problem with this was going to be that I intended to program the pic using a USB-RS232 converter and everything I read about them told me not to - but it seems to work just apples. The problem I neglected to address (and I imagine everyone has this when they program one of these for the first time) is I actually don't know how to program microcontrollers. Not even a little bit. Details huh. There's plenty of websites out there on how tho, but this is going to take longer than I thought if there keeps being parts of it that I actually have no idea how to do.

My Frankston carpet sweeper arrived as well, a few days after I went and bought one from Bunnings, I am a little annoyed that both of them aren't built the way I thought they'd be.
They have two flaps underneath them rather than a solid base which sorta flick upwards to hold the dust. I am putting some thought this week into how to actually build a solid base - I don't know which of the wood one or the plastic one I am going to use - the wood one is bigger but significantly heavier. I'd prefer to use the plastic one but it'll be tricky to mount all this junk in it and still have room for dust.

Thursday, April 10, 2008

Chasis

I won this on eBay earlier today, it's a carpet sweeper just like I need but I have a little concern that it IS made of wood. Should be ok, a little heavier but generally speaking I assume it is going to be somewhat easier to work with. Looking at a photo of the underside it has four wheels that are fixed in position, so I don't know how I am going to play this, I may wind up attaching new wheels to the side. I also picked up 6 infrared LEDs to project infrared in front of the thing and four IR transistors to pick up the bouncing infrared off an obstacle, at least that is the plan. This thing will arrive in a few days from Frankston, Victoria (WTF is someone in Frankston Victoria doing selling (just the head of) a carpet from the 1950s on eBay?). The PIC programmer I bought (for $17!!! w00t!![+7p/h]) will take longer because it's coming from Bulgaria. I might tool with the infrared leds tonight and see how they work, I'll rig the emitters and see if I can't make a light light-up connected to a receiver - good to test range too.

Monday, April 07, 2008

First parts purchased

Went and brought some bits and pieces today, some of the bits that I know I'll need but not anything I was unsure about. My current thinking is to use a floor sweeper (box on a stick with a rotary brush in it powered by the force of pushing it along, my wife's idea) and put a drive motor in it and use a second motor to spin the brushes. Further I need the thing to not drive into walls or obstacles so a couple of proximity sensors (either ultrasonic which I've seen online or infrared like the ones they use in parking sensors), likely on each of the front corners and a PIC controller to make decisions about if it gets close to something on the sensor, to trigger some sort of steering mechanism.

So far the bits purchased today were;

  • PIC16F628A microcontroller and a PCB socket for it
  • A switch to power it on :-)
  • Two LED lights, one red to indicate it's found an obstacle and steering, and a green power light
  • A motor, 12v to drive the wheels
  • A worm gear
  • A breadboard
  • An 8x AA battery holder so I can power the 12v motor with some wires
  • A plastic hobby box to mount parts in, inside the floor sweeper to protect them

I also got a little cordless hobby drill for mounting things, I am super excited :-D Now I just need to find a floor sweeper :-(

Starting the robot

Ok,
I hate the fact that my floor at home is messy but I also dislike vaccuming, it's not that the task is arduous but more that I don't have the attention span to vaccum an entire loungeroom without getting bored; particularly frustrating is getting the shits at the fact that the power cord on my vaccum usually gets accidently pulled out of the wall while I am vaccuming. The solution, I believe, is clear. What I need is a robot to vaccum my house for me.

You can buy them, Roomba and the like but they aren't without their problems - without doing something so nasty as accusing anyone who has spent $600 on this a f****ing idiot I'll be satisfied with saying that Roombas have problems such as;

1. The "virtual wall" feature that they use to stop them going into a proscribed area uses infrared which means they get freaked out in bright sunlight or other scenarios where lots of infrared is used.

2. They have stupid features that nobody wants to use, including "max clean" where you can make the thing focus on a particular area of the floor.

3. $600

So the obvious answer to the problem is to make one.