-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhack-the-moon.slide
146 lines (83 loc) · 2.66 KB
/
hack-the-moon.slide
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
Hack the Moon
Brian G. Merrell
Software Engineer
bgmerrell (Twitter, Gmail, GitHub, etc)
* Goal of this talk
Help with ideas and basic skills for hardware projects
* The problem
Story time...
* Equipment
* SparkFun Inventor's Kit
[[https://www.sparkfun.com/products/12001]]
* Arduino and Breadboard
.image hack-the-moon/img/arduino-and-breadboard.jpg
* Arduino
- ATmega328 Microcontroller
- Operates at 5v (powered via USB or AC-to-DC adapter)
- 14 digital i/o pins
- 6 analog i/o pins
- 32KB flash memory
- 2KB SRAM
- 1K EEPROM
- 16 MHz clock speed
* Breadboard
.image hack-the-moon/img/breadboard.jpg
* IR Receiver Breakout ($9.95)
.image hack-the-moon/img/ir-receiver.jpg
* Max Power IR LED Kit ($2.95)
.image hack-the-moon/img/power-ir-assembled.jpg
* Grove Sound Sensor
.image hack-the-moon/img/sound-sensor.jpg 626 848
* Putting it together...
* Max Power IR LED Kit (didn't come assembled)
.image hack-the-moon/img/power-ir.jpg
* Adventures in Soldering
.image hack-the-moon/img/solder1.jpg 498 819
* Adventures in Soldering
.image hack-the-moon/img/solder2.png 473 837
* Soldering how-to
[[https://www.youtube.com/watch?v=f95i88OSWB4]]
* Grove Sound Sensor, modified
.image hack-the-moon/img/mic.jpg 574 761
* Prototype
.image hack-the-moon/img/prototype.jpg 558 753
* Step one: detect sound
* Infrared
*Pros*
- Cheap
- Widespread
*Cons*
- So many protocols
- Confusing
- Line-of-sight
- Software libraries are difficult to find
* Infrared
"Unfortunately there are almost as many infrared protocols as there are devices that use them."
-- arduino.cc
"If you want to integrate the arduino into an existing infrared remote system, then you need to identify the protocol in use."
-- arduino.cc
"The lack of standardization creates many problems for consumers [such as] universal remotes that do not adequately control [all] devices."
-- Wikipedia
"Infrared is simple and solving your problem will be super easy."
-- Some guy at work
* Step two: decode signal
* Step three: replay signal
* Video
* Next steps
1) Add light sensor
2) Put it on a PCB
- Do the board layout (using Eagle, probably)
- Generate gerber files (de facto standard used by PCB industry)
- Send to DorkPCB, BatchPCB (3 boards, $5-$10, 2+ weeks)
- Remember to add ways to program the microcontroller (FTDI Serial USB, storage)
* Bonus hacks
* Baby swing
[[http://www.instructables.com/id/Repair-your-FisherPrice-cradle-swing]]
* H2OhNo! + Moteino for indoor/outdoor water sensors
[[https://www.sparkfun.com/products/12069]]
[[http://lowpowerlab.com/moteino/]]
* Piezo music code
* Go Programming Language
- [[http://gobot.io]]
- [[http://embd.kidoman.io]]
- [[http://utahgophers.com]]