Tuesday, September 30, 2008

First code

After all the parts came in we had to put them together.  Some soldering was involved to connect the vehicle power to the arduino board, to put in a power switch, and how to mount all the sensors and board and everything.  None of it was complex, just some detail.  If I can create a "kit" that has all the wires and such that a team would need then you wouldn't even need to solder to enter the contest.

The first software read the IR sensors and spit out the values, we used that to make sure they were working at all.  Then we got the servos working.  Then a simple routine to try to keep the wall distance at a set value (too close, turn away, too far, turn towards).  We left the speed control on the remote, and let the software control the steering.

We built a little course using whatever white flat surfaces we could find, then started debugging what went right and wrong.  It turns out that the angle the wheels can turn out is really important when trying to figure out how much to turn.

Kallahar

No comments: