Presentation is loading. Please wait.

Presentation is loading. Please wait.

Add a Second Button and Set Point

Similar presentations


Presentation on theme: "Add a Second Button and Set Point"— Presentation transcript:

1 Add a Second Button and Set Point

2 Add a second button Wire an additional button on the main breadboard and connect it to input 31 on the Arduino Note that this time the wiring is reversed. Both the first method and this one are valid configurations

3 Second Button Picture

4 Introducing the Set Point
Our chamber will be assigned a set point which is a temperature we wish to maintain within This is analogous to setting the thermostat in your house We want to be able to increase and decrease the value of this set point using the two buttons on our breadboard It is also necessary to display this value on the LCD screen

5 Button Behavior There are a variety of behaviors that can be programmed for the buttons. How would you want your buttons to behave? One method is to have each button press increment the set point value one step. This is shown in Example Code 1. What if you want to be able to hold down the button to rapidly change the set point? How would you do this? Example Code 2 shows a simple way to do this. Try coming up with your own method for controlling the button.

6 LCD Display Picture


Download ppt "Add a Second Button and Set Point"

Similar presentations


Ads by Google