-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemos.txt
100 lines (75 loc) · 1.96 KB
/
demos.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
========================
DEMO 1 : BLINKING LIGHTS
========================
SETUP: None
KEY POINTS
- It's SO easy!
=============================
DEMO 2: MODULES: ACCELERATION
=============================
SETUP
A: Acceleration Module
STEPS
1. npm install <module name>
(in our case, just npm install will restore from packages.json)
KEY POINTS
- Modules are easy too
- NPM for libraries
- Package name is on the module
=================================
DEMO 3: MODULES WORKING TODGETHER
=================================
SETUP
A: RFID
B: RFID
B (Passthrough): Relay
C: Ambient
Relay switch 1: Light bulb
PIR Sensor
black: GPIO Ground
red: GPIO +5V
yellow: GPIO G4
STEPS
1. npm install
2. Start with only rfid
3. Add motion detection - uncomment PIR code and hook up PIR
4. Add clapper support - uncomment clapper code, attach Ambient
KEY POINTS
- Modules can work together nicely to do useful things
- The Clapper is back!
============================================
DEMO 4: WEB SERVER - HOME CLIMATE MONITORING
============================================
SETUP
A: Climate module
STEPS
1. npm install
2. tessel wifi -l (get tessel's current IP)
3. tessel run index
4. Navigate to http://<TESSEL IP>:8080
5. Go to climate page
KEY POINTS
- ExpressJS doesn't work yet (support is hopefully coming soon)
- tiny-router is a good replacement for now
- Wifi built-in is awesome, but can have some issues
- It's just as easy to push commands to the tessel (including over websockets)
==============
DEMO 5: FINALE
==============
SETUP
A: Ambient Module
NEOPIXELS
5V Power Supply to breadboard
Capacitor between + and -
Resistor between GPIO G4 and Tessel input
Power wires to breadboard power
STEPS
1. Before going over code, have everyone text 402-858-9600
2. Paste twilio info into file
3. npm install
KEY POINTS
- NPM libraries for 3rd party services and components
- Twilio
- Neopixels
- 10% Discount!
Neopixels are pretty