Lego Car

Here are the updates from the lego car challenges. So this past week I was able to make up with most of the challenges. I finished up challenge 7 completely. It took a while to play around with the coding of challenge 7. First off, I had trouble saving the procedures I made...it kept causing problems. So I had to keep recoding each of the procedures. :(. But it meant that I got to play around a LOT with the coding which is useful. I also used a mix of text and blocks for the coding.

The shaft encoding is difficult way of thinking. I used a forever loop to run multiple threads of control. Interesting you can use the stop stack command to break out of a forever loop. I used this to count the wheel rotations and then break out of the loop and run different car commands, like this way, or bear left. I had no problems writing the code for the different car commands. I am using Robbie's car command program from 8.3 to finish up challenge 8. I need to wire in a sensor that allows for entering a distance the car will go...Basically at this point I need to put all of the different coding pieces together to start the final challenge of making my car run straight regardless of terrain and elevation.

I also finished the lego car and got the wiring correct for it. I had some problems with it because of misunderstanding the directions. Here are some pictures of the lego car. Funnily enough, I had the battery wired backward but it still worked! Luckily I fixed it thanks to Robbie!

 So here are the pictures of my lego car! It is called Jainabot.

Here are my procedures that I made (you can see how modular it all is).
These are all of the different procedures that I use for the car program.

Just another closeup of some of my procedures.

Comments

Popular posts from this blog

Hopper Last

Thermal Work - Matlab -- Write up

Hopper Finale