1 00:00:00,000 --> 00:00:02,120 Let's get started with our first speaker. 2 00:00:03,680 --> 00:00:10,140 She is an 11-year-old girl who loves hacking, science, technology, and learning. 3 00:00:10,840 --> 00:00:16,000 She is constantly inventing new things, researching interesting unexplored topics, 4 00:00:16,200 --> 00:00:20,600 teaching kids and adults, electronics and programming. 5 00:00:20,920 --> 00:00:25,880 This year, she was the youngest speaker ever at H-O-P-E. 6 00:00:32,160 --> 00:00:37,100 With her talk, inspiring the next, next generation of hackers. 7 00:00:37,560 --> 00:00:42,940 When she's not working on talks, hacking, teaching lockpicking, or inventing new things, 8 00:00:43,140 --> 00:00:47,020 she's enjoying fencing, archery, singing, and acting. 9 00:00:47,340 --> 00:00:51,980 Make sure you follow her on the Twitters, at BSI Lab, 10 00:00:52,660 --> 00:00:59,300 and check her always-changing website, www.bsilab.com. 11 00:01:00,000 --> 00:01:04,220 Put your hands together for the exciting and dynamic, BSI Lab. 12 00:01:10,400 --> 00:01:14,340 Hi, guys. Thanks for coming to my talk. I'm so excited. 13 00:01:17,240 --> 00:01:21,380 I'll try to chill. I'll do my best. I promise, people. 14 00:01:22,040 --> 00:01:29,740 And welcome to the WaterBot, the hackable plant control system with yours truly, BSI Lab. 15 00:01:30,000 --> 00:01:35,400 If you didn't hear his long intro about me, here we go again. 16 00:01:36,180 --> 00:01:41,160 Who am I? I'm an 11-year-old girl, as you heard, turning 12 soon. Yay. 17 00:01:41,800 --> 00:01:49,180 Into science, programming, electronics, fencing, singing, archery, lockpicking, hacking, and playing. 18 00:01:49,720 --> 00:01:54,280 See, there's me fencing an adult over there, and then that's me archery. 19 00:01:57,040 --> 00:01:59,980 So, since this is the WaterBot, where do this come from? 20 00:01:59,980 --> 00:02:01,860 And where did this idea even start? 21 00:02:02,280 --> 00:02:04,780 Well, it started at Hope 11. 22 00:02:05,480 --> 00:02:09,380 I met Sebastian, who's a biologist and a biohacker. 23 00:02:09,500 --> 00:02:11,960 He's a super cool guy. Very tall, too. 24 00:02:12,540 --> 00:02:15,620 He guided me on researching oxalstricta. 25 00:02:15,800 --> 00:02:22,480 And look, over here, this is me cloning a tobacco plant in the MS Media gel form of it. 26 00:02:22,560 --> 00:02:24,160 You'll hear what that is later. 27 00:02:24,460 --> 00:02:28,740 And then this is me using a pipette for my project, 28 00:02:28,740 --> 00:02:30,260 when I studied it and weighed it. 29 00:02:31,440 --> 00:02:34,180 And speaking of oxalstricta, you're all like, 30 00:02:34,280 --> 00:02:36,580 dude, what is that anyway? 31 00:02:38,860 --> 00:02:40,960 It's not a clover. 32 00:02:41,040 --> 00:02:43,660 See, this is a clover over here. That's oxalis. 33 00:02:43,900 --> 00:02:49,720 It's also called common yellow wood sorrel, but no one should call it that. 34 00:02:49,820 --> 00:02:50,840 It's just too long. 35 00:02:51,240 --> 00:02:52,740 So just call it oxalis. 36 00:02:53,200 --> 00:02:54,780 It's edible. Not too much. 37 00:02:54,800 --> 00:02:58,400 Kidney failure, because it has oxalic acid in it. 38 00:02:58,740 --> 00:03:02,060 And oxalic acid causes kidney stone. 39 00:03:02,860 --> 00:03:06,700 Oxalic acid was also named after oxalis because, you know, 40 00:03:06,740 --> 00:03:08,960 it has the most oxalic acid because it's oxalis. 41 00:03:09,600 --> 00:03:11,380 And this is the clover. 42 00:03:11,540 --> 00:03:16,740 See how the clover is round-shaped and has sometimes those white spot things in the middle? 43 00:03:16,920 --> 00:03:21,040 Well, oxalis has yellow flowers in it. 44 00:03:21,140 --> 00:03:23,460 It's heart-shaped leaves. Literally heart-shaped. 45 00:03:23,460 --> 00:03:27,260 Like a perfect heart and doesn't have any of this white gunk on it. 46 00:03:29,880 --> 00:03:31,020 Oxalis acid. 47 00:03:31,540 --> 00:03:38,140 Its name comes from the fact that early investigators isolated oxalic acid 48 00:03:38,520 --> 00:03:41,960 from wood sorrel, oxalis, flowering plants. 49 00:03:45,480 --> 00:03:48,100 And what are the uses of it? 50 00:03:48,420 --> 00:03:51,260 For, like, cleaning agents. 51 00:03:51,400 --> 00:03:57,620 Like, a barkeeper's friend, whatever that's for, they use it in that. 52 00:03:59,440 --> 00:04:05,460 And then vaporized oxalic acid is used by some beekeepers as a miteicide. 53 00:04:05,800 --> 00:04:07,860 See those little mites over here? 54 00:04:07,960 --> 00:04:09,540 They kill the bees. 55 00:04:09,720 --> 00:04:12,580 So they spray it on, see that little white dusty stuff? 56 00:04:12,760 --> 00:04:16,540 And it kills those ugly mites things. 57 00:04:16,800 --> 00:04:18,740 But they're actually kind of cute if you look at them. 58 00:04:18,820 --> 00:04:20,320 But anyway, they're horrible. 59 00:04:22,880 --> 00:04:26,180 Back to the bots, because you're tired of hearing about plants. 60 00:04:28,100 --> 00:04:31,140 Well, in my fifth grade science fair, 61 00:04:31,380 --> 00:04:35,320 I used the MS Media Modulation of oxalis stricta. 62 00:04:35,680 --> 00:04:38,880 No one has done any real research on this plant. 63 00:04:38,980 --> 00:04:42,000 Like, if you look at Wikipedia, you get a few sentences done, you know? 64 00:04:42,300 --> 00:04:44,420 And I want to learn more about it. 65 00:04:44,480 --> 00:04:48,260 So I did the MS Media Modulation is the first step. 66 00:04:48,380 --> 00:04:51,160 Because, you know, you need to know what a plant likes to eat 67 00:04:51,160 --> 00:04:52,740 so you can clone and study it. 68 00:04:58,140 --> 00:05:00,180 Morosage or enskuge. 69 00:05:00,360 --> 00:05:03,940 I know that's very hard to pronounce, and I'm not even sure how to pronounce it. 70 00:05:04,020 --> 00:05:05,040 Because it's Japanese. 71 00:05:05,380 --> 00:05:07,200 But I call it the MS Media. 72 00:05:07,760 --> 00:05:09,280 Yeah, because that's easier. 73 00:05:10,740 --> 00:05:15,560 And it contains all the macronutrients and micronutrients 74 00:05:15,560 --> 00:05:19,080 that a plant needs, separated into five groups of chemicals. 75 00:05:19,820 --> 00:05:24,400 The amount of each group is modulated, like more, more, more, you know. 76 00:05:24,900 --> 00:05:26,160 And it's about what? 77 00:05:26,180 --> 00:05:29,780 120 dollars for the whole set of chemicals. 78 00:05:30,060 --> 00:05:31,540 The strongest one wins. 79 00:05:32,840 --> 00:05:34,740 So I did it. 80 00:05:34,840 --> 00:05:39,000 And I did groups one through five are modulated individually. 81 00:05:39,820 --> 00:05:43,000 Amount of one chemical group is modulated. 82 00:05:43,080 --> 00:05:44,260 I did ammonium nitrate. 83 00:05:44,380 --> 00:05:50,140 And others are left standard, you know, normal, common, whatever. 84 00:05:50,780 --> 00:05:54,460 Plants are then dried and measured and weighed. 85 00:05:54,460 --> 00:05:59,660 Because, I mean, plants consist of a lot of water. 86 00:05:59,820 --> 00:06:04,520 So to see their normal actual weight, you have to dry them. 87 00:06:04,740 --> 00:06:08,400 And see that little tiny thing, that little funnel thing over there? 88 00:06:08,480 --> 00:06:13,280 That is horrible, evil, the devil in a form of a funnel. 89 00:06:13,400 --> 00:06:14,660 You'll see why later. 90 00:06:18,000 --> 00:06:21,440 So I did it on ammonium nitrate, one of the chemicals. 91 00:06:21,540 --> 00:06:22,740 Actually, the first chemical. 92 00:06:22,740 --> 00:06:29,060 And I varied the amount by zero, half, one, one and a half, and then two. 93 00:06:29,480 --> 00:06:33,320 I did five sets of ten pots, three seeds each. 94 00:06:33,460 --> 00:06:34,900 Don't worry about doing the math. 95 00:06:35,260 --> 00:06:38,480 I did it on a calculator because it's easier that way. 96 00:06:38,600 --> 00:06:40,060 And that's 150 plants. 97 00:06:40,400 --> 00:06:45,180 I grew the plants in a 50-50 mix of vermiculite and perlite. 98 00:06:46,680 --> 00:06:48,960 Organic with no extras, like no extra minerals. 99 00:06:49,060 --> 00:06:50,020 More about that later. 100 00:06:50,020 --> 00:06:52,180 The plants were fed on a cycle. 101 00:06:52,840 --> 00:06:55,020 See, that's me putting all the tiny seeds. 102 00:06:55,140 --> 00:06:58,400 The seeds are so small, you can barely even see them. 103 00:06:58,500 --> 00:06:59,140 Trust me. 104 00:06:59,340 --> 00:07:00,280 It was painful. 105 00:07:02,740 --> 00:07:04,400 So the neutral growth medium. 106 00:07:04,540 --> 00:07:06,500 You know I talked about perlite and vermiculite? 107 00:07:06,640 --> 00:07:08,200 Well, basically, what are those? 108 00:07:09,180 --> 00:07:10,960 Vermiculite holds water. 109 00:07:11,380 --> 00:07:15,240 You know, it just collects all the water and holds it in. 110 00:07:15,520 --> 00:07:18,820 And then the perlite gives the plant something to hold onto. 111 00:07:18,820 --> 00:07:20,820 Like sand does, you know? 112 00:07:20,860 --> 00:07:23,740 So the plant just grips it like soil, you know? 113 00:07:23,800 --> 00:07:25,580 But it has nothing in it. 114 00:07:26,100 --> 00:07:28,540 Always get the organic ones with no fertilizer 115 00:07:28,540 --> 00:07:33,280 if you want to add your own fertilizers to see if that works. 116 00:07:33,960 --> 00:07:37,760 And the first time, me and Dad didn't look at the package 117 00:07:37,760 --> 00:07:40,120 and got the one with fertilizer. 118 00:07:40,600 --> 00:07:45,080 We had to redo the whole project all over again. 119 00:07:45,160 --> 00:07:47,600 All of those 150 plants. 120 00:07:48,600 --> 00:07:50,000 God, that was painful. 121 00:07:53,860 --> 00:07:57,680 For my control, back to the bots, like I said, 122 00:07:57,840 --> 00:08:03,560 I used a Raspberry Pi to turn on the lights for 16 hours each day. 123 00:08:03,600 --> 00:08:07,600 The Pi would turn on the lights, take three pictures during the day, 124 00:08:07,640 --> 00:08:11,940 then turn off the lights and tweet every other day via Biolab. 125 00:08:12,080 --> 00:08:14,360 It's different than via Scilab, different Twitter account, 126 00:08:14,520 --> 00:08:15,840 and you can see all the pictures. 127 00:08:16,040 --> 00:08:16,740 For example, 128 00:08:17,600 --> 00:08:19,200 here's a picture, see, of the oxalis growing. 129 00:08:19,620 --> 00:08:21,960 It's almost a water bot. 130 00:08:22,160 --> 00:08:25,340 It connected the relay to control the lights. 131 00:08:25,400 --> 00:08:28,380 The Pi cam takes all the pictures. 132 00:08:28,920 --> 00:08:31,060 Twython took care of the tweets 133 00:08:31,520 --> 00:08:36,980 and used a cron to do a job for the timing. 134 00:08:40,380 --> 00:08:42,840 And this is a little video of it growing. 135 00:08:43,240 --> 00:08:46,000 It shifted a lot, but it's fine. 136 00:08:46,000 --> 00:08:47,500 Better than nothing, eh? 137 00:08:47,900 --> 00:08:48,860 So just watch it. 138 00:08:53,720 --> 00:08:55,000 And it's about to grow. 139 00:08:56,140 --> 00:08:58,180 Well, something else is going to grow first. 140 00:08:58,340 --> 00:08:58,780 You'll see. 141 00:09:01,220 --> 00:09:01,980 Wait for it. 142 00:09:02,340 --> 00:09:03,040 Wait for it. 143 00:09:03,380 --> 00:09:04,880 See, look, they're kind of sprouting. 144 00:09:04,920 --> 00:09:07,160 See that one little green one right over there? 145 00:09:07,240 --> 00:09:10,120 And see this green stuff just oozing all around? 146 00:09:10,400 --> 00:09:11,100 That's moss. 147 00:09:11,360 --> 00:09:13,600 The green moss that was like floating in the air, 148 00:09:13,660 --> 00:09:15,800 all those particles, came on and grew. 149 00:09:15,800 --> 00:09:17,500 But that didn't change anything. 150 00:09:17,940 --> 00:09:20,400 You know, it was just there like a little, 151 00:09:21,120 --> 00:09:24,260 a little piece of gum stuck on your shoe that one night, 152 00:09:24,380 --> 00:09:25,960 you know, that you just hate. 153 00:09:26,960 --> 00:09:28,860 Hint, never spit your gum on the floor. 154 00:09:28,920 --> 00:09:29,200 It's horrible. 155 00:09:29,980 --> 00:09:31,200 See, look, they're growing. 156 00:09:31,400 --> 00:09:32,600 Aren't they so pretty? 157 00:09:32,960 --> 00:09:34,760 And as you can notice, 158 00:09:34,880 --> 00:09:37,240 see how they close from time to time? 159 00:09:37,420 --> 00:09:40,920 At nighttime, they actually close at night 160 00:09:40,920 --> 00:09:42,740 because they can't collect any more light. 161 00:09:42,880 --> 00:09:43,820 See, isn't that cool? 162 00:09:44,000 --> 00:09:44,880 Like little umbrellas, 163 00:09:44,880 --> 00:09:46,800 like at nighttime you close the umbrella. 164 00:09:49,020 --> 00:09:50,720 It's as if they're not even there, 165 00:09:50,740 --> 00:09:51,500 like they're hiding. 166 00:09:52,720 --> 00:09:53,580 Camouflage, am I right? 167 00:09:53,980 --> 00:09:55,280 Blend in with that moss. 168 00:09:55,520 --> 00:09:56,720 And look how big they grow. 169 00:09:56,840 --> 00:09:58,320 This is in how many weeks, Dad? 170 00:09:58,800 --> 00:09:59,280 Twelve. 171 00:09:59,520 --> 00:10:00,220 Twelve weeks. 172 00:10:01,520 --> 00:10:02,260 And done. 173 00:10:02,360 --> 00:10:03,200 And then black. 174 00:10:05,820 --> 00:10:06,300 Results. 175 00:10:06,520 --> 00:10:09,560 The plants were measured and dried and weighed again 176 00:10:09,560 --> 00:10:10,560 because of the water. 177 00:10:10,800 --> 00:10:12,940 And I saw the less ammonium nitrate, 178 00:10:12,980 --> 00:10:14,040 the better the plant did. 179 00:10:14,040 --> 00:10:16,800 Then I'll do every single group of chemicals 180 00:10:16,800 --> 00:10:19,280 and then study the plant and do everything. 181 00:10:19,540 --> 00:10:20,920 And you remember that little, 182 00:10:20,980 --> 00:10:23,460 stupid little funnel thing I pointed out? 183 00:10:23,640 --> 00:10:26,620 Well, this sucks. 184 00:10:27,880 --> 00:10:29,800 I had to carefully, 185 00:10:30,060 --> 00:10:31,440 like really carefully, 186 00:10:31,560 --> 00:10:34,860 pour MS Media into a one-inch funnel, 187 00:10:34,940 --> 00:10:36,340 that little twink. 188 00:10:37,700 --> 00:10:40,020 And spilling was not an option 189 00:10:40,020 --> 00:10:42,180 because if one plant got more than the rest, 190 00:10:42,180 --> 00:10:42,980 it'll grow like whoo 191 00:10:42,980 --> 00:10:44,520 while the others are dee-ba-doo. 192 00:10:45,840 --> 00:10:48,080 So I told Dad, 193 00:10:48,200 --> 00:10:50,080 literally face to face, 194 00:10:50,140 --> 00:10:50,580 I said, 195 00:10:51,260 --> 00:10:54,200 next year we build a robot. 196 00:10:55,380 --> 00:10:56,640 So we did. 197 00:10:57,740 --> 00:11:01,460 So we knew what the bot must do even. 198 00:11:01,780 --> 00:11:04,640 Well, it had to sense when the liquid is out, 199 00:11:04,700 --> 00:11:06,280 you know, to the bottom, 200 00:11:06,360 --> 00:11:08,960 and then fill to a set level on a cycle, 201 00:11:09,140 --> 00:11:10,940 measure the amount dispensed, 202 00:11:11,140 --> 00:11:12,320 and then print the results 203 00:11:12,320 --> 00:11:13,580 or save to a database. 204 00:11:13,980 --> 00:11:17,840 And then the Raspberry Pi must be open source. 205 00:11:20,760 --> 00:11:23,380 So I had to measure the liquid level. 206 00:11:23,580 --> 00:11:26,280 I used two wires to sense the voltage 207 00:11:26,280 --> 00:11:27,540 through the liquid. 208 00:11:28,080 --> 00:11:29,620 Not the best way. 209 00:11:29,780 --> 00:11:31,720 Cheap, good for the science fair. 210 00:11:31,840 --> 00:11:32,600 You know why? 211 00:11:33,100 --> 00:11:35,580 Copper corrodes people. 212 00:11:36,020 --> 00:11:37,740 Have you seen that Statue of Liberty? 213 00:11:37,900 --> 00:11:40,260 She's like green and covered in bird poop now. 214 00:11:45,820 --> 00:11:47,100 Other methods, 215 00:11:47,340 --> 00:11:48,760 you could use a level sensor, 216 00:11:48,900 --> 00:11:50,520 you know, that measures the right level. 217 00:11:51,040 --> 00:11:54,320 You could use a soil moisture sensor. 218 00:11:54,440 --> 00:11:57,340 It measures the resistance in the soil. 219 00:11:57,620 --> 00:11:59,380 Or a float switch. 220 00:11:59,460 --> 00:12:00,980 When it gets to a certain level, 221 00:12:01,100 --> 00:12:01,960 it closes. 222 00:12:04,260 --> 00:12:06,080 So filling with liquid. 223 00:12:06,420 --> 00:12:08,320 I used a peristaltic pump. 224 00:12:08,680 --> 00:12:10,680 The same ones they use for like 225 00:12:10,680 --> 00:12:11,840 the blood machines 226 00:12:11,840 --> 00:12:13,360 when they like remove your heart 227 00:12:13,360 --> 00:12:14,400 and heart surgery. 228 00:12:14,580 --> 00:12:15,720 Those that pump the blood. 229 00:12:15,760 --> 00:12:16,960 That's a peristaltic pump. 230 00:12:17,840 --> 00:12:19,340 Some use a stepper mortar 231 00:12:19,340 --> 00:12:21,460 to dispense a set amount. 232 00:12:21,740 --> 00:12:22,660 Like over here, 233 00:12:22,700 --> 00:12:24,380 pretend that's like four milliliters. 234 00:12:24,380 --> 00:12:24,920 I don't know. 235 00:12:25,180 --> 00:12:26,580 And then it dispenses. 236 00:12:27,600 --> 00:12:29,260 And once it does two, 237 00:12:29,440 --> 00:12:31,200 that means it's eight milliliters. 238 00:12:31,500 --> 00:12:33,760 But the more affordable ones, 239 00:12:33,920 --> 00:12:35,840 which are great because it's affordable, 240 00:12:36,120 --> 00:12:36,860 money people, 241 00:12:37,980 --> 00:12:40,280 it just uses a motor. 242 00:12:40,600 --> 00:12:41,600 Which is bad 243 00:12:41,840 --> 00:12:42,720 because it doesn't measure 244 00:12:42,720 --> 00:12:43,740 the amount like really. 245 00:12:43,920 --> 00:12:44,260 So, 246 00:12:45,020 --> 00:12:46,480 measuring the liquid. 247 00:12:46,820 --> 00:12:48,080 Did this turn off? 248 00:12:48,460 --> 00:12:50,180 Dad, it ran out of battery I think. 249 00:12:51,840 --> 00:12:52,360 Okay. 250 00:12:52,800 --> 00:12:53,580 Just great. 251 00:12:55,020 --> 00:12:56,200 What, now it turns on? 252 00:12:56,380 --> 00:12:56,900 Dude. 253 00:12:57,240 --> 00:12:57,760 Okay. 254 00:12:57,960 --> 00:12:59,680 It measured the liquid 255 00:12:59,680 --> 00:13:01,180 with a flow sensor. 256 00:13:01,460 --> 00:13:03,320 It generates the pulses 257 00:13:03,320 --> 00:13:04,460 as liquid flows 258 00:13:04,460 --> 00:13:06,020 and the pi counts all the pulses. 259 00:13:06,120 --> 00:13:06,420 See? 260 00:13:06,520 --> 00:13:08,340 Look at that handy dandy little guy. 261 00:13:09,320 --> 00:13:11,200 And then we had to print 262 00:13:11,200 --> 00:13:11,980 the results. 263 00:13:12,160 --> 00:13:14,060 I used a thermal printer 264 00:13:14,060 --> 00:13:16,840 from Adafruit's thermal library. 265 00:13:17,280 --> 00:13:18,420 It could store 266 00:13:18,420 --> 00:13:19,880 or write to a database. 267 00:13:20,280 --> 00:13:21,960 Lots of code if not, 268 00:13:22,140 --> 00:13:23,580 but it made it easy 269 00:13:23,580 --> 00:13:24,560 like Adafruit people. 270 00:13:24,700 --> 00:13:24,980 Yay. 271 00:13:28,180 --> 00:13:30,400 And then I had to put it all together. 272 00:13:30,600 --> 00:13:32,760 I made a prototype on a breadboard. 273 00:13:33,240 --> 00:13:35,300 And then I did all my schematics 274 00:13:35,300 --> 00:13:36,160 and fritzing. 275 00:13:36,240 --> 00:13:36,580 See? 276 00:13:36,680 --> 00:13:37,760 These are my schematics. 277 00:13:38,060 --> 00:13:38,580 Ta-da. 278 00:13:39,140 --> 00:13:39,700 See? 279 00:13:39,700 --> 00:13:40,500 For example, 280 00:13:40,740 --> 00:13:41,980 there's the pump. 281 00:13:42,740 --> 00:13:44,260 And then here's the raspberry pi. 282 00:13:44,540 --> 00:13:45,520 Here are those dumb little 283 00:13:45,520 --> 00:13:47,020 copper wire things. 284 00:13:47,900 --> 00:13:49,380 Here's the thermal printer. 285 00:13:49,900 --> 00:13:50,280 You know. 286 00:13:51,440 --> 00:13:51,920 Resistor. 287 00:13:52,020 --> 00:13:53,060 Resistors are handy. 288 00:13:53,140 --> 00:13:54,100 People steal a little thing. 289 00:13:55,680 --> 00:13:56,820 And then I moved it 290 00:13:56,820 --> 00:13:57,780 to the actual board 291 00:13:57,780 --> 00:13:59,760 in my PJs as you see here. 292 00:14:00,080 --> 00:14:00,560 See? 293 00:14:01,040 --> 00:14:02,000 Isn't that pretty? 294 00:14:02,160 --> 00:14:04,060 Better than that model type. 295 00:14:04,260 --> 00:14:05,720 And this is the final product. 296 00:14:05,940 --> 00:14:07,160 This is a waterproof container. 297 00:14:07,440 --> 00:14:08,540 Oh, and these stickers 298 00:14:08,540 --> 00:14:09,540 will be available 299 00:14:09,540 --> 00:14:10,240 afterwards. 300 00:14:10,280 --> 00:14:10,760 Be a bot. 301 00:14:10,840 --> 00:14:11,320 Lab stickers. 302 00:14:13,740 --> 00:14:14,220 See? 303 00:14:14,360 --> 00:14:15,100 This is the side. 304 00:14:15,240 --> 00:14:16,160 There's the pump 305 00:14:16,160 --> 00:14:17,640 and the flow sensor. 306 00:14:17,960 --> 00:14:18,160 See? 307 00:14:18,300 --> 00:14:19,060 Look how pretty 308 00:14:19,060 --> 00:14:20,380 and confusing that is. 309 00:14:20,440 --> 00:14:20,600 See? 310 00:14:20,660 --> 00:14:21,220 Because it has 311 00:14:21,220 --> 00:14:21,940 all those wires. 312 00:14:22,840 --> 00:14:24,200 And this is the inside. 313 00:14:24,320 --> 00:14:25,020 There's the pi 314 00:14:25,020 --> 00:14:26,260 and the breadboard. 315 00:14:27,140 --> 00:14:27,940 And ta-da. 316 00:14:28,560 --> 00:14:29,940 Upgrades and add-ons 317 00:14:29,940 --> 00:14:30,880 because who doesn't like 318 00:14:30,880 --> 00:14:31,960 upgrades and add-ons? 319 00:14:32,780 --> 00:14:33,760 No one, right? 320 00:14:34,220 --> 00:14:35,500 Unless you're old school. 321 00:14:38,000 --> 00:14:39,320 The raspberry pi 322 00:14:39,320 --> 00:14:39,520 is made of 323 00:14:39,520 --> 00:14:41,460 multiple GPIO 324 00:14:41,460 --> 00:14:42,440 general purpose 325 00:14:42,440 --> 00:14:43,140 input output 326 00:14:43,140 --> 00:14:43,660 um 327 00:14:44,820 --> 00:14:45,360 pins 328 00:14:45,360 --> 00:14:46,140 and 329 00:14:46,140 --> 00:14:47,300 there are actually 330 00:14:47,300 --> 00:14:47,740 27 331 00:14:47,740 --> 00:14:48,980 so you can do a lot 332 00:14:48,980 --> 00:14:49,460 with it. 333 00:14:49,760 --> 00:14:50,620 The water bot 334 00:14:50,620 --> 00:14:51,580 only uses four. 335 00:14:51,880 --> 00:14:52,760 Empty, full, 336 00:14:52,940 --> 00:14:53,920 pump and flow. 337 00:14:54,500 --> 00:14:55,780 And you could do 338 00:14:55,780 --> 00:14:56,240 the full 339 00:14:56,240 --> 00:14:57,240 five part 340 00:14:57,240 --> 00:14:58,040 MS media 341 00:14:58,040 --> 00:14:58,800 including 342 00:14:59,900 --> 00:15:00,980 the photos 343 00:15:00,980 --> 00:15:01,800 and the printer 344 00:15:01,800 --> 00:15:02,960 all with just 345 00:15:02,960 --> 00:15:03,840 one raspberry pi. 346 00:15:04,000 --> 00:15:04,940 They're so useful 347 00:15:04,940 --> 00:15:05,440 people. 348 00:15:05,580 --> 00:15:06,160 Like get one. 349 00:15:06,220 --> 00:15:06,800 If you don't know 350 00:15:06,800 --> 00:15:07,320 what that is 351 00:15:07,320 --> 00:15:08,880 go ask someone. 352 00:15:09,520 --> 00:15:09,640 Get one. 353 00:15:09,720 --> 00:15:10,280 Buy one. 354 00:15:10,340 --> 00:15:11,060 Play with it 355 00:15:11,060 --> 00:15:11,380 people. 356 00:15:11,660 --> 00:15:12,100 It's awesome. 357 00:15:13,300 --> 00:15:14,320 And what else? 358 00:15:14,600 --> 00:15:15,920 Well these are 359 00:15:15,920 --> 00:15:16,700 a few more things 360 00:15:16,700 --> 00:15:17,380 you could do. 361 00:15:17,520 --> 00:15:18,560 You could control 362 00:15:18,560 --> 00:15:19,700 the LED lighting 363 00:15:19,700 --> 00:15:20,300 to shift 364 00:15:20,300 --> 00:15:21,700 the color temperature 365 00:15:21,700 --> 00:15:23,080 to trick the plants 366 00:15:23,080 --> 00:15:24,240 thinking it's 367 00:15:24,240 --> 00:15:24,880 a different season 368 00:15:24,880 --> 00:15:25,860 like making them 369 00:15:25,860 --> 00:15:26,320 flower 370 00:15:26,320 --> 00:15:27,300 or make fruit 371 00:15:27,300 --> 00:15:27,760 quicker 372 00:15:27,760 --> 00:15:29,700 or things like that. 373 00:15:29,940 --> 00:15:30,960 And then control 374 00:15:30,960 --> 00:15:31,720 heating pad 375 00:15:31,720 --> 00:15:32,400 to read 376 00:15:32,400 --> 00:15:33,420 the soil temperature 377 00:15:33,420 --> 00:15:34,300 and you can make it 378 00:15:34,300 --> 00:15:34,920 even hotter 379 00:15:34,920 --> 00:15:35,640 or colder 380 00:15:35,640 --> 00:15:36,860 like if you want 381 00:15:36,860 --> 00:15:37,580 to grow cactus 382 00:15:39,520 --> 00:15:39,880 you can add 383 00:15:39,880 --> 00:15:40,620 that pad 384 00:15:40,620 --> 00:15:42,440 and you can 385 00:15:42,440 --> 00:15:43,180 control the heating 386 00:15:43,180 --> 00:15:43,960 and make it 387 00:15:43,960 --> 00:15:44,600 nice and cozy. 388 00:15:45,160 --> 00:15:46,480 And then you could 389 00:15:46,480 --> 00:15:47,160 add additional 390 00:15:47,160 --> 00:15:48,020 liquids like 391 00:15:48,020 --> 00:15:49,300 liquid fertilizer 392 00:15:50,020 --> 00:15:51,180 or you could 393 00:15:51,180 --> 00:15:51,820 put it in a 394 00:15:51,820 --> 00:15:52,880 sealed space 395 00:15:52,880 --> 00:15:54,300 and allow 396 00:15:54,300 --> 00:15:55,000 gas control 397 00:15:55,000 --> 00:15:55,620 like more 398 00:15:55,620 --> 00:15:56,480 carbon dioxide 399 00:15:56,480 --> 00:15:58,020 or less oxygen 400 00:15:58,020 --> 00:15:59,560 or no oxygen. 401 00:16:00,600 --> 00:16:01,860 No that wouldn't 402 00:16:01,860 --> 00:16:02,240 work out. 403 00:16:03,940 --> 00:16:04,920 Code time. 404 00:16:05,060 --> 00:16:05,380 The time 405 00:16:05,380 --> 00:16:05,740 you've all 406 00:16:05,740 --> 00:16:06,180 been waiting 407 00:16:06,180 --> 00:16:06,380 for. 408 00:16:06,460 --> 00:16:06,820 Yay. 409 00:16:08,400 --> 00:16:09,280 All the 410 00:16:09,280 --> 00:16:09,480 codes 411 00:16:09,480 --> 00:16:09,500 are in 412 00:16:09,520 --> 00:16:10,440 my GitHub 413 00:16:10,440 --> 00:16:11,200 repository 414 00:16:11,200 --> 00:16:12,360 all in 415 00:16:12,360 --> 00:16:12,760 Python. 416 00:16:13,000 --> 00:16:14,060 I use global 417 00:16:14,060 --> 00:16:14,660 constants. 418 00:16:14,960 --> 00:16:15,860 I know in 419 00:16:15,860 --> 00:16:16,600 Python there are 420 00:16:16,600 --> 00:16:17,280 no constants 421 00:16:17,280 --> 00:16:18,940 but it's 422 00:16:18,940 --> 00:16:19,740 easy to add 423 00:16:19,740 --> 00:16:20,260 and upgrade 424 00:16:20,260 --> 00:16:21,180 and comment. 425 00:16:21,340 --> 00:16:21,660 Yay. 426 00:16:23,460 --> 00:16:24,480 These are my 427 00:16:24,480 --> 00:16:24,780 pin 428 00:16:25,210 --> 00:16:25,580 constants. 429 00:16:26,200 --> 00:16:27,480 See water 430 00:16:27,480 --> 00:16:28,100 empty 431 00:16:28,100 --> 00:16:28,880 was four 432 00:16:28,880 --> 00:16:29,380 waterfall 433 00:16:29,380 --> 00:16:30,440 is 17 434 00:16:30,440 --> 00:16:31,240 flow sensor 435 00:16:31,240 --> 00:16:31,780 is 18 436 00:16:31,780 --> 00:16:33,020 relay is 27 437 00:16:33,020 --> 00:16:33,800 and you can 438 00:16:33,800 --> 00:16:34,660 change that around 439 00:16:34,660 --> 00:16:35,380 or if you 440 00:16:35,380 --> 00:16:36,020 wanted to 441 00:16:36,020 --> 00:16:36,960 add the next 442 00:16:36,960 --> 00:16:37,780 you know 443 00:16:37,780 --> 00:16:38,840 chemical set 444 00:16:38,840 --> 00:16:40,080 you could do 445 00:16:40,080 --> 00:16:41,560 water empty 446 00:16:41,560 --> 00:16:42,440 two is 447 00:16:42,440 --> 00:16:42,880 seven 448 00:16:42,880 --> 00:16:43,600 full is 449 00:16:43,600 --> 00:16:43,960 12, 450 00:16:44,180 --> 00:16:44,640 16, 451 00:16:44,700 --> 00:16:45,280 23. 452 00:16:45,760 --> 00:16:46,380 You can do 453 00:16:46,380 --> 00:16:46,780 anything. 454 00:16:47,020 --> 00:16:47,640 I mean raspberry 455 00:16:47,640 --> 00:16:48,140 pies people. 456 00:16:48,380 --> 00:16:49,300 Now get your 457 00:16:49,300 --> 00:16:50,220 pens and paper 458 00:16:50,220 --> 00:16:51,040 out and get 459 00:16:51,040 --> 00:16:52,080 ready to write 460 00:16:52,080 --> 00:16:53,320 down all the 461 00:16:53,320 --> 00:16:53,680 code. 462 00:16:53,780 --> 00:16:54,800 In 3, 463 00:16:55,020 --> 00:16:55,600 2, 464 00:16:55,680 --> 00:16:55,940 1. 465 00:16:58,020 --> 00:16:59,040 I hope you 466 00:16:59,040 --> 00:16:59,420 got that 467 00:16:59,420 --> 00:16:59,740 all. 468 00:17:09,360 --> 00:17:10,280 In other 469 00:17:10,280 --> 00:17:11,220 applications I'm 470 00:17:11,560 --> 00:17:12,620 working on if 471 00:17:12,620 --> 00:17:13,620 you guys like 472 00:17:13,620 --> 00:17:14,540 horses then 473 00:17:14,540 --> 00:17:15,520 hold your 474 00:17:15,520 --> 00:17:16,000 horses. 475 00:17:17,100 --> 00:17:18,140 I know that 476 00:17:18,140 --> 00:17:18,940 was funny I'm 477 00:17:18,940 --> 00:17:19,880 sorry I like my 478 00:17:19,880 --> 00:17:20,600 puns. 479 00:17:20,780 --> 00:17:21,820 This is really 480 00:17:21,820 --> 00:17:22,560 sad so I'm 481 00:17:22,560 --> 00:17:23,340 going to try to 482 00:17:23,340 --> 00:17:24,260 stay positive 483 00:17:24,940 --> 00:17:25,680 and you guys 484 00:17:25,680 --> 00:17:26,280 try to too. 485 00:17:26,860 --> 00:17:27,880 So in the 486 00:17:27,880 --> 00:17:28,760 winter if 487 00:17:28,760 --> 00:17:29,620 horses don't 488 00:17:29,620 --> 00:17:30,120 drink enough 489 00:17:30,120 --> 00:17:31,740 water or 490 00:17:31,740 --> 00:17:32,540 drink too much 491 00:17:32,540 --> 00:17:33,900 water then 492 00:17:33,900 --> 00:17:34,920 they get dry 493 00:17:34,920 --> 00:17:36,000 poop stuck in 494 00:17:36,020 --> 00:17:37,220 their stomach. 495 00:17:39,120 --> 00:17:40,580 And they have 496 00:17:40,580 --> 00:17:41,380 to get surgery 497 00:17:41,380 --> 00:17:42,260 to get it 498 00:17:42,260 --> 00:17:42,620 removed. 499 00:17:43,000 --> 00:17:44,460 And 80% of 500 00:17:44,460 --> 00:17:45,200 the time the 501 00:17:45,200 --> 00:17:46,040 horses die. 502 00:17:47,460 --> 00:17:48,900 So I thought 503 00:17:48,900 --> 00:17:49,740 there must be 504 00:17:49,740 --> 00:17:50,440 a way to fix 505 00:17:50,440 --> 00:17:50,600 that. 506 00:17:50,700 --> 00:17:51,500 So I'm 507 00:17:51,500 --> 00:17:52,140 thinking of 508 00:17:52,140 --> 00:17:52,840 making a 509 00:17:52,840 --> 00:17:53,640 horse water 510 00:17:53,640 --> 00:17:53,840 bot. 511 00:17:53,960 --> 00:17:54,760 It will measure 512 00:17:54,760 --> 00:17:55,900 the amount of 513 00:17:55,900 --> 00:17:56,420 water the 514 00:17:56,420 --> 00:17:57,440 horses drink 515 00:17:57,440 --> 00:17:58,100 in the winter. 516 00:17:58,380 --> 00:17:59,280 Use machine 517 00:17:59,280 --> 00:18:00,180 learning to 518 00:18:00,180 --> 00:18:01,360 alert care 519 00:18:01,360 --> 00:18:02,300 takers if the 520 00:18:02,300 --> 00:18:02,940 horse is not 521 00:18:02,940 --> 00:18:03,740 drinking enough. 522 00:18:03,880 --> 00:18:05,060 If the horses 523 00:18:05,060 --> 00:18:05,680 do not drink 524 00:18:06,020 --> 00:18:06,160 enough they 525 00:18:06,160 --> 00:18:07,220 can die from 526 00:18:07,220 --> 00:18:08,140 the surgery like 527 00:18:08,140 --> 00:18:08,580 I said. 528 00:18:08,820 --> 00:18:10,000 Like Shadow. 529 00:18:10,200 --> 00:18:11,180 This is my 530 00:18:11,180 --> 00:18:12,040 neighbor Ed. 531 00:18:13,000 --> 00:18:14,160 Well basically 532 00:18:14,160 --> 00:18:14,820 across the 533 00:18:14,820 --> 00:18:15,800 street diagonally. 534 00:18:16,280 --> 00:18:17,460 He has a 535 00:18:17,460 --> 00:18:18,300 horse, he 536 00:18:18,300 --> 00:18:18,860 works at a 537 00:18:18,860 --> 00:18:19,940 horse farm and 538 00:18:19,940 --> 00:18:20,540 this is one of 539 00:18:20,540 --> 00:18:21,080 his horses 540 00:18:21,080 --> 00:18:21,580 Shadow. 541 00:18:21,860 --> 00:18:22,600 So he can 542 00:18:22,600 --> 00:18:23,260 tell like if 543 00:18:23,260 --> 00:18:23,960 Shadow isn't 544 00:18:23,960 --> 00:18:24,680 drinking enough 545 00:18:24,680 --> 00:18:26,600 water they can 546 00:18:26,600 --> 00:18:27,380 like alert the 547 00:18:28,420 --> 00:18:29,000 doctor's 548 00:18:29,000 --> 00:18:30,040 vets I mean 549 00:18:30,040 --> 00:18:31,440 because like who 550 00:18:31,440 --> 00:18:31,840 takes their 551 00:18:31,840 --> 00:18:32,440 horse to a 552 00:18:32,440 --> 00:18:33,060 real doctor. 553 00:18:33,060 --> 00:18:33,660 That's just 554 00:18:33,660 --> 00:18:33,960 weird. 555 00:18:35,640 --> 00:18:36,280 Unless you 556 00:18:36,280 --> 00:18:36,740 have a horse 557 00:18:36,740 --> 00:18:37,120 throat. 558 00:18:45,600 --> 00:18:46,660 Okay that was 559 00:18:46,660 --> 00:18:47,340 funny I know. 560 00:18:50,480 --> 00:18:51,600 So there are a 561 00:18:51,600 --> 00:18:52,520 lot of things you 562 00:18:52,520 --> 00:18:53,000 can do with 563 00:18:53,000 --> 00:18:53,660 this water 564 00:18:53,660 --> 00:18:53,840 bot. 565 00:18:53,880 --> 00:18:54,500 You can add 566 00:18:54,500 --> 00:18:56,320 on anything to 567 00:18:56,320 --> 00:18:56,580 it. 568 00:18:56,760 --> 00:18:57,560 You could even 569 00:18:57,560 --> 00:18:58,380 think of some 570 00:18:58,380 --> 00:18:58,960 things you could 571 00:18:58,960 --> 00:18:59,640 add on to it 572 00:18:59,640 --> 00:18:59,840 now. 573 00:18:59,960 --> 00:19:01,340 So now it's 574 00:19:01,340 --> 00:19:02,780 your turn to 575 00:19:02,780 --> 00:19:03,040 make your 576 00:19:03,040 --> 00:19:03,240 horse drink 577 00:19:03,240 --> 00:19:03,660 something awesome. 578 00:19:03,900 --> 00:19:04,900 Everything is 579 00:19:04,900 --> 00:19:05,220 awesome. 580 00:19:05,800 --> 00:19:06,720 Everything is 581 00:19:06,720 --> 00:19:06,980 cool. 582 00:19:07,120 --> 00:19:07,600 No. 583 00:19:07,780 --> 00:19:08,240 No one. 584 00:19:08,280 --> 00:19:09,060 Lego movie. 585 00:19:09,760 --> 00:19:10,620 If you didn't 586 00:19:10,620 --> 00:19:11,500 watch it, watch 587 00:19:11,500 --> 00:19:11,720 it. 588 00:19:13,280 --> 00:19:13,840 Questions?