Programming :)
Ok so I like this part of the course. It involves programming :). I am ok at the breadboard configuration. I followed the instructions very carefully and was able to go through the intro pdf and make everything work. Here is a picture of my working breadboard.
So this is the basic breadboard that connects to the computer. From here I would build the different configurations that were specified by the intro pdf. Since I have taken the wintersession robotics I am familiar with the programming methods used by picoblocks. Also - I LOVE programming (why I was almost a CS major). Programming is fun (especially NOT in java...I love matlab :)!). Anyways, so most of the challenges went pretty quickly as a result.
I started in order as that was simplest. So toggle fix wasn't too hard because of taking that robotics course (btw edge programming is a PAIN, aka NOT how my brain thinks :(!). So I just added a pause of 10 microseconds in between the waituntil(sensor) and waituntil(~sensor). (~ means NOT FYI). So a basic program. Funny enough, my trigger button was actually very well constructed so there was very little wobble so just doing the basic waituntil(sensor) and then waituntil(~sensor) without the pause actually worked really well.
This is a picture of my breadboard with the trigger sensor attached. I actually figured out how to configure/wire this without help!
The zero to sixty challenge was fun. I wrote a cute little loop that ramps up the program and then ramps it down. I had my engine hooked up to a motion module that made it cuter.
Here is the code for that program. As you can see it was fun! I like the colors of the different coding elements, makes for a happy programmer. I used boolean operators too in this. So this was all I did last week. I'll post an update after spring break, because I am missing class all of this week :(.
So this is the basic breadboard that connects to the computer. From here I would build the different configurations that were specified by the intro pdf. Since I have taken the wintersession robotics I am familiar with the programming methods used by picoblocks. Also - I LOVE programming (why I was almost a CS major). Programming is fun (especially NOT in java...I love matlab :)!). Anyways, so most of the challenges went pretty quickly as a result.
I started in order as that was simplest. So toggle fix wasn't too hard because of taking that robotics course (btw edge programming is a PAIN, aka NOT how my brain thinks :(!). So I just added a pause of 10 microseconds in between the waituntil(sensor) and waituntil(~sensor). (~ means NOT FYI). So a basic program. Funny enough, my trigger button was actually very well constructed so there was very little wobble so just doing the basic waituntil(sensor) and then waituntil(~sensor) without the pause actually worked really well.
This is a picture of my breadboard with the trigger sensor attached. I actually figured out how to configure/wire this without help!
So then for the next challange of counting edges I had lots of fun. It was just programming :). This is a picture with the photocell. Here is a picture of the programming for this counting
Have I mentioned I love programming? The main limitation I have with this program is the lack of while loops...and you can't really use the repeat loop as a for loop that can double as a while loop..I get around it, but it requires some creativity :)The zero to sixty challenge was fun. I wrote a cute little loop that ramps up the program and then ramps it down. I had my engine hooked up to a motion module that made it cuter.
Here is the code for that program. As you can see it was fun! I like the colors of the different coding elements, makes for a happy programmer. I used boolean operators too in this. So this was all I did last week. I'll post an update after spring break, because I am missing class all of this week :(.
Comments
Post a Comment