With Dr. Bronakowski

Wednesday, March 7, 2012

3/7/2012

In class today we spent the majority of the time discussing sensors.  We went over the different types of senors, analog and digital and the different kinds of sensors that fall into those categories, such as inductive, capacitive, optical, thermistors, light sensors, and line followers.  We went over the different ways that sensors can be categorized, such as contact and non-contact, active and passive, temperature, position, and load.  The we talked about how we would need to wire sensors onto our board using the Picaxe as well as things we could do within the program that will help us in the future when we start to use senors move heavily.  Then we were given two Bumper Switches to wire onto our boards.  Then in Picaxe we wrote a program that would display in words something to the effect of "the switch is pressed" in a window on our laptops when the switches had been pressed.  We learned to use binary that corresponds with ports on our board to make it easier to program AND statements and also how to use a mask in case we have other inputs in a port that aren't sensors or are different sensors.

Front view of the Bumper Switches

Side view of the Bumper Switches wired in.

No comments:

Post a Comment