-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
26 lines (21 loc) · 1.02 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
RobotGeek Floormat Demo
This example demonstrates the use of pinMode(INPUT_PULLUP) to read from
a floormat switch. The code reads digital input on pin 2 and turns
Digital Pin 4 HIGH when pin 2 goes LOW.
The circuit:
Digital pin 2 - Floor Mat Switch
Digital pin 4 - LED / Buzzer / Relay / PowerSwitch Tail
Since a raw switch like a floormat leaves the digital pin open we need to make
use of an internal 20K-ohm resistor to pull up to 5V. This configuration causes
the input to read HIGH when the switch is open, and LOW when it is closed.
Products Used in this demo
- http://www.robotgeek.com/store/Search.aspx?SearchTerms=floor%20mat
- http://www.robotgeek.com/robotgeek-geekduino-sensor-kit
- http://www.robotgeek.com/robotgeek-led-driver
- http://www.robotgeek.com/robotgeek-buzzer
- http://www.robotgeek.com/store/p/6437-PowerSwitch-Tail-II.aspx
- http://www.robotgeek.com/robotgeek-relay
- http://www.robotgeek.com/robotgeek-small-workbench.aspx
- http://www.robotgeek.com/p/power-supply-6vdc-2a.aspx
*/