ar11 crystal ball

Post on 19-Jan-2017

90 Views

Category:

Art & Photos

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

AR11 - Crystal BallBy Riley, Trevon, Keegan, Reid, Liam

Arduino Code

Arduino Code

Circuit

New Components This example demonstrates the use of a pushbutton as a switch: each time you press the button,

the LED (or whatever) is turned on (if it's off) or off (if on). It also debounces the input, without which pressing the button once would appear to the code as multiple presses.

The LiquidCrystal library allows you to control LCD displays that are compatible with the Hitachi HD44780 driver. There are many of them out there, and you can usually tell them by the 16-pin interface.

A potentiometer is a simple knob that provides a variable resistance, which we can read into the Arduino board as an analog value. In this example, that value controls the rate at which an LED blinks.

top related