1 00:00:00,000 --> 00:00:01,280 Hi, everybody. 2 00:00:01,960 --> 00:00:09,220 I got to warn you in advance, if you're expecting a very serious AI talk about vibe coding, this is not this talk. 3 00:00:09,220 --> 00:00:13,660 This is a deeply unserious talk, I have to tell you in advance. 4 00:00:13,920 --> 00:00:15,700 But I think it's kind of fun. 5 00:00:15,700 --> 00:00:21,220 So welcome to vibe school, making dumb devices smart with AI. 6 00:00:21,260 --> 00:00:32,320 My name is Katie, also known as Insider PhD, and I am a YouTuber, I'm a security advocate, which means I have a really fun job of just going to a company and telling them, by the way, do you know that security is important? 7 00:00:32,320 --> 00:00:33,220 And they go, yeah. 8 00:00:33,220 --> 00:00:36,040 I'm like, great, can you buy the product my company sells? 9 00:00:36,320 --> 00:00:37,960 I work for Semgrep. 10 00:00:37,960 --> 00:00:42,060 So I am very new to hardware hacking. 11 00:00:42,100 --> 00:00:45,100 So this is my first and most recent project. 12 00:00:45,100 --> 00:00:46,580 I'm very proud of it. 13 00:00:46,700 --> 00:00:51,140 It programs eink labels for me for my 3D printing filament. 14 00:00:51,140 --> 00:01:01,880 I designed everything from the box to the little thing on the bottom and all of the little parts, including cadding them, and it worked. 15 00:01:01,880 --> 00:01:08,420 And off of the back of this immense achievement, I decided I'm good at this. 16 00:01:08,780 --> 00:01:14,420 Now, something I want you to keep in mind as I talk about this is this thing my partner said. 17 00:01:14,500 --> 00:01:21,980 So when I started to take up electronics, he said to me, it's expensive to be bad at this, huh? 18 00:01:22,020 --> 00:01:25,320 After I tell him I need to make another order on AliExpress. 19 00:01:25,460 --> 00:01:29,740 And I want you to remember this throughout the presentation, because this will come up. 20 00:01:29,740 --> 00:01:31,420 There is a test at the end. 21 00:01:31,640 --> 00:01:33,720 I'm pretty sure you know what the answer is. 22 00:01:33,720 --> 00:01:34,960 Now, I'm British. 23 00:01:34,960 --> 00:01:36,320 I live in the U.K. 24 00:01:36,700 --> 00:01:38,440 We all look forward to summer. 25 00:01:38,440 --> 00:01:40,420 The rain gets warmer in the U.K. 26 00:01:40,420 --> 00:01:47,720 And to be honest, in the U.K., you really can't join topical conversations unless you are very informed about the weather. 27 00:01:47,720 --> 00:01:49,640 Heat wave, moan and complain. 28 00:01:49,840 --> 00:01:51,740 Rain, moan and complain. 29 00:01:51,980 --> 00:01:53,980 Ice, moan and complain. 30 00:01:54,180 --> 00:01:56,320 Snow, guess what? 31 00:01:57,000 --> 00:02:00,000 Grey, but it doesn't actually rain yet, moan and complain. 32 00:02:00,140 --> 00:02:01,720 Brits love talking about the weather. 33 00:02:01,720 --> 00:02:03,920 It's the first thing we do whenever we do anything. 34 00:02:04,120 --> 00:02:09,540 So in order to join this hot topical conversation, I want a weather station, right? 35 00:02:09,540 --> 00:02:11,180 I want a smart weather station. 36 00:02:11,180 --> 00:02:16,520 I want one that fits into my home assistant, because I'm really into my smart home stuff. 37 00:02:16,760 --> 00:02:24,380 And I look at the price of these and I'm like, jeez, 135 quid, that's a lot of money. 38 00:02:24,380 --> 00:02:27,640 And again, I want you to remember it's expensive to be bad at this. 39 00:02:27,640 --> 00:02:44,260 So instead of ordering the 135 pound weather station that I know works with home assistant and that I know will work with everything else, I decide my order is going to be for, one, a radio weather station with these little sensors that talk to a base station, 40 00:02:44,260 --> 00:02:45,860 and an ESP32. 41 00:02:46,260 --> 00:02:48,220 So here's the plan, right? 42 00:02:49,360 --> 00:02:53,920 We're going to get AI to do it for me, because I'm not going to do it. 43 00:02:53,920 --> 00:02:56,420 So one, define my goal. 44 00:02:56,500 --> 00:02:57,880 It's to make a weather station. 45 00:02:57,900 --> 00:03:00,080 Two, get AI to do it for me. 46 00:03:00,420 --> 00:03:04,320 Three, for profit. 47 00:03:04,640 --> 00:03:08,640 So my AI of choice in this adventure is Gemini. 48 00:03:08,640 --> 00:03:10,180 There's a few reasons why. 49 00:03:10,220 --> 00:03:14,960 One is because it can use the internet as sources and it's less likely to make stuff up. 50 00:03:15,240 --> 00:03:17,880 Now, is it impossible for Gemini to hallucinate? 51 00:03:17,880 --> 00:03:18,640 No, of course it's not. 52 00:03:18,640 --> 00:03:19,980 It's going to make stuff up all the time. 53 00:03:19,980 --> 00:03:22,760 But it does use the internet, so that's slightly better. 54 00:03:23,420 --> 00:03:25,500 It can generate code pretty well. 55 00:03:25,920 --> 00:03:29,520 It supports deep research to research presumably deeply. 56 00:03:30,120 --> 00:03:34,640 And it comes free with my subscription to my smart doorbell. 57 00:03:34,640 --> 00:03:40,140 So if I want to have the smart doorbell, I may as well use the thing I already purchased. 58 00:03:40,800 --> 00:03:43,780 And so the way I started is by creating a gem. 59 00:03:43,780 --> 00:03:49,920 So a gem in Gemini allows you to kind of customize the output of Gemini by feeding it stuff. 60 00:03:49,940 --> 00:03:51,560 So you get ten files. 61 00:03:51,660 --> 00:03:54,360 So I was like, what ten files are going to help me the most? 62 00:03:54,380 --> 00:03:56,060 And I picked these books. 63 00:03:56,060 --> 00:04:00,180 So I picked Eugene Lim's from day zero to zero day. 64 00:04:00,180 --> 00:04:02,160 That's about hacking stuff, right? 65 00:04:02,240 --> 00:04:04,180 Zero day is probably relevant. 66 00:04:04,180 --> 00:04:07,800 Practical IoT hacking sounds practical and relevant. 67 00:04:07,800 --> 00:04:10,160 Hacking APIs by Cory Ball. 68 00:04:10,660 --> 00:04:14,080 The hardware hackers handbook. 69 00:04:14,080 --> 00:04:19,040 Some ESP stuff and some other stuff about programming in C. 70 00:04:19,420 --> 00:04:24,200 Now, I had to give it a I had to give it instructions as well. 71 00:04:24,200 --> 00:04:27,140 So it started with you're an expert. 72 00:04:27,140 --> 00:04:34,240 You're an IoT and API security expert, which it kept reminding me of every single message. 73 00:04:34,240 --> 00:04:38,740 As a cyber security expert, as a cyber security we get it. 74 00:04:38,740 --> 00:04:39,740 You're an expert. 75 00:04:40,200 --> 00:04:42,280 So what are the rules? 76 00:04:42,280 --> 00:04:44,180 Here are the rules I come up with. 77 00:04:44,180 --> 00:04:45,160 Gemini only. 78 00:04:45,160 --> 00:04:46,760 No Googling anything, right? 79 00:04:46,760 --> 00:04:49,180 Like if we have to Google something, we've cheated. 80 00:04:50,120 --> 00:04:54,880 AI generated code can be debugged by a human, but also by AI. 81 00:04:55,700 --> 00:04:58,580 I can buy parts, but only what Gemini tells me to buy. 82 00:04:58,580 --> 00:05:01,920 If Gemini tells me to buy the wrong thing, well, sucks to be me. 83 00:05:02,520 --> 00:05:07,240 And I can include libraries, but again, only what Gemini tells me to do, right? 84 00:05:07,240 --> 00:05:09,100 No thoughts, just vibes. 85 00:05:09,100 --> 00:05:10,700 Like that is what we're going for. 86 00:05:11,320 --> 00:05:11,780 Okay. 87 00:05:11,780 --> 00:05:13,740 So step one, what is the first step? 88 00:05:13,740 --> 00:05:14,800 Great question. 89 00:05:14,880 --> 00:05:16,360 Gemini, what's the first step? 90 00:05:16,360 --> 00:05:18,220 So I started with deep research. 91 00:05:18,220 --> 00:05:26,200 So if you've never used this in Gemini, it basically tries to create, like, a research report around your, like, projects. 92 00:05:26,200 --> 00:05:28,420 And this is how it develops it into an action plan. 93 00:05:29,220 --> 00:05:32,880 And it will kind of turn it into, like, a step by step. 94 00:05:33,060 --> 00:05:37,220 Honestly, this took, like, so long, and I should have just Googled it. 95 00:05:37,400 --> 00:05:38,880 It was not great. 96 00:05:38,880 --> 00:05:39,820 And it took forever. 97 00:05:39,820 --> 00:05:41,220 I was sitting there being like, is it done yet? 98 00:05:41,220 --> 00:05:41,700 Is it done yet? 99 00:05:41,700 --> 00:05:42,220 Is it done yet? 100 00:05:42,220 --> 00:05:43,100 Is it done yet? 101 00:05:43,520 --> 00:05:44,440 So here's the prompt. 102 00:05:44,440 --> 00:05:45,320 Here's what I said. 103 00:05:45,760 --> 00:05:59,800 So I want to complete a project to combine my specific radio weather station that will come up, an ESP32C6, again, very specific, that's the one I had, via Zigbee, because that one supports Zigbee. 104 00:06:00,620 --> 00:06:04,740 Identify what needs to be done, what the deliverables are, any sources that will be needed. 105 00:06:05,760 --> 00:06:11,860 And then, you know, I said, can we also include steps to implement the ESP32 at the main hub weather station? 106 00:06:11,860 --> 00:06:15,300 And I started with the sniffing SPI lines. 107 00:06:16,480 --> 00:06:22,160 And they basically ‑‑ Gemini told me, you idiot, why are you sniffing SPI lines? 108 00:06:22,160 --> 00:06:24,520 You can do radio frequency. 109 00:06:25,460 --> 00:06:29,620 Don't worry, this won't be actually the first time Gemini insults my intelligence. 110 00:06:29,620 --> 00:06:31,560 It does it multiple times. 111 00:06:31,680 --> 00:06:33,140 So, okay. 112 00:06:33,140 --> 00:06:34,240 What's the result? 113 00:06:34,260 --> 00:06:35,740 There's a lot of steps here. 114 00:06:35,740 --> 00:06:36,600 There's a lot of text. 115 00:06:36,600 --> 00:06:38,420 It just produced a really long report. 116 00:06:39,100 --> 00:06:41,360 I'm going to keep it for reference. 117 00:06:41,500 --> 00:06:43,400 But, like, this is too much. 118 00:06:43,660 --> 00:06:49,380 But it's okay, because we can get Gemini to turn it into a TLDR, which is what we do. 119 00:06:49,820 --> 00:06:52,180 Please turn it into, like, five steps. 120 00:06:52,180 --> 00:06:56,300 So, one, we're going to capture the weather data with an SDR dongle. 121 00:06:56,300 --> 00:06:58,980 Didn't know what that was, by the way, when I first started. 122 00:07:00,060 --> 00:07:02,100 I'm going to have a receiver. 123 00:07:02,400 --> 00:07:04,760 Again, sure, I guess. 124 00:07:04,940 --> 00:07:07,340 Get it working with Visual Studio Code. 125 00:07:07,340 --> 00:07:08,320 Get it working with Zigbee. 126 00:07:08,580 --> 00:07:10,820 Problem solved, right? 127 00:07:12,140 --> 00:07:19,200 Here's the slight problem here, though, because the ESP32 needs to be configured before we add a receiver to it. 128 00:07:19,200 --> 00:07:22,000 So, I corrected it and told it it's wrong. 129 00:07:22,000 --> 00:07:22,700 So, it's fine. 130 00:07:22,700 --> 00:07:24,060 We got it fixed. 131 00:07:24,160 --> 00:07:25,440 And then shopping time. 132 00:07:25,440 --> 00:07:28,220 So, I bought everything they told me to buy. 133 00:07:28,540 --> 00:07:32,320 Again, it's expensive to be bad at this, huh? 134 00:07:33,880 --> 00:07:38,240 You will very quickly see what the end result of this is. 135 00:07:38,240 --> 00:07:43,100 So, step one, capture weather data with an SDR dongle. 136 00:07:43,100 --> 00:07:47,520 So, dongle check, software check, knowing how to use it. 137 00:07:47,520 --> 00:07:48,000 Like, no. 138 00:07:48,000 --> 00:07:48,920 No idea. 139 00:07:48,920 --> 00:07:52,900 But it created these nice pretty pictures and I assumed there was some data coming out of it. 140 00:07:52,900 --> 00:07:53,900 But it's okay. 141 00:07:53,940 --> 00:07:56,120 Because it told me what to use. 142 00:07:56,120 --> 00:07:58,640 So, I looked at the analyzing signals. 143 00:07:58,740 --> 00:08:03,100 I get a little screenshot and it's like, yes, correct, it is working. 144 00:08:03,560 --> 00:08:06,300 And it was like, now you have to use RTL433. 145 00:08:06,480 --> 00:08:08,540 And I was like, okay, great. 146 00:08:09,140 --> 00:08:10,220 What's that? 147 00:08:12,080 --> 00:08:13,560 But it decoded it, right? 148 00:08:13,560 --> 00:08:14,780 So, yeah, we got this. 149 00:08:14,780 --> 00:08:15,140 Okay. 150 00:08:15,140 --> 00:08:15,660 Cool. 151 00:08:15,660 --> 00:08:16,140 Right. 152 00:08:16,140 --> 00:08:18,320 So, then we have the packets. 153 00:08:19,340 --> 00:08:19,940 Wow. 154 00:08:19,940 --> 00:08:20,440 Okay. 155 00:08:20,440 --> 00:08:24,180 So, I tried to like it's explained to me what the packet structure was. 156 00:08:24,700 --> 00:08:31,180 And I was looking at GitHub and it was like, hey, you should check out GitHub to see the implementation of this. 157 00:08:31,180 --> 00:08:32,440 And I was like, is that cheating? 158 00:08:33,540 --> 00:08:37,320 So, I did get the information and I sent it the source file. 159 00:08:37,320 --> 00:08:39,580 I said, here, please extract the packet structure. 160 00:08:39,960 --> 00:08:42,120 And then we set up Visual Studio Code. 161 00:08:42,300 --> 00:08:46,220 Then we gave up with Visual Studio Code because it was not working very well. 162 00:08:46,260 --> 00:08:50,940 And then we went back to good old fashioned Arduino's IDE instead. 163 00:08:51,740 --> 00:08:55,400 It would turn on like this, but it would do literally nothing else. 164 00:08:55,520 --> 00:08:56,700 So, throw that away. 165 00:08:56,700 --> 00:08:57,620 That doesn't matter. 166 00:08:57,840 --> 00:08:59,100 Where do we plug everything in? 167 00:08:59,100 --> 00:08:59,520 Okay. 168 00:08:59,520 --> 00:09:03,180 So, I ask it, here is the schematics for the dev board. 169 00:09:03,200 --> 00:09:04,360 Where do I plug stuff in? 170 00:09:04,360 --> 00:09:06,500 Again, I don't know how to do electronics. 171 00:09:06,540 --> 00:09:11,600 So, we're vibe soldering, vibe electronicsing. 172 00:09:12,020 --> 00:09:14,640 And I said, here, tell me where to put it in. 173 00:09:14,660 --> 00:09:18,320 So, I put it in and it was like, hey, this is where you put the antenna. 174 00:09:19,220 --> 00:09:19,920 Sorry, what? 175 00:09:19,920 --> 00:09:21,260 I didn't buy an antenna. 176 00:09:21,260 --> 00:09:23,120 Do I need to buy one of those on Amazon? 177 00:09:24,600 --> 00:09:27,300 I then learned that I could make an antenna. 178 00:09:28,180 --> 00:09:29,100 Good day, right? 179 00:09:29,100 --> 00:09:32,020 We don't need to buy another Amazon purchase. 180 00:09:32,020 --> 00:09:36,640 Instead, we've just got a piece of wire that I stripped and I kind of turned upwards like this. 181 00:09:37,500 --> 00:09:38,420 So, great. 182 00:09:38,700 --> 00:09:38,980 Right. 183 00:09:38,980 --> 00:09:40,380 Then it came to the packet structure. 184 00:09:40,380 --> 00:09:46,160 So, I gave it the structure that I had found and I said, here's the file, please extract the packet structure. 185 00:09:46,660 --> 00:09:50,120 And this took a lot of prompting. 186 00:09:50,860 --> 00:09:52,820 This was an absolute nightmare. 187 00:09:52,820 --> 00:09:55,820 Like, I cannot tell you how broken this was. 188 00:09:55,820 --> 00:09:57,320 It could not decode it. 189 00:09:57,320 --> 00:10:00,260 Like, it doesn't matter exactly what I did. 190 00:10:00,260 --> 00:10:01,700 I just couldn't do it. 191 00:10:01,700 --> 00:10:05,600 And I was like, okay, I got channel one to work, channel two doesn't work. 192 00:10:05,600 --> 00:10:09,860 And it was like, okay, I got it to work a little bit and then there's not enough data for the packet. 193 00:10:09,860 --> 00:10:13,140 And I'm like, nope, not working, still not working, please fix it. 194 00:10:13,680 --> 00:10:23,100 And the sass I got, my God, what a cheeky, it was like the amount of sass of you are absolutely correct. 195 00:10:23,160 --> 00:10:25,920 Your observation that this is not working is correct. 196 00:10:25,920 --> 00:10:28,700 Like, I can see that it's not working. 197 00:10:29,260 --> 00:10:34,420 And when I tried to help it debug its code, I was like, hey, can you try this, this, and this? 198 00:10:34,420 --> 00:10:40,620 And telling it what was wrong, it was like, no, you are wrong. 199 00:10:40,620 --> 00:10:40,960 Okay. 200 00:10:40,960 --> 00:10:41,240 Right. 201 00:10:41,240 --> 00:10:42,720 Well, it then sent me this. 202 00:10:42,720 --> 00:10:45,800 It's like, please upload this final sketch to ESP32. 203 00:10:46,080 --> 00:10:50,860 When our weather station transmits, you should now see the fully decoded data printed in the serial monitor. 204 00:10:50,960 --> 00:10:52,160 It's a very bold claim. 205 00:10:52,160 --> 00:10:53,420 Was it correct? 206 00:10:53,460 --> 00:10:55,540 Oh, actually, yeah, it was actually correct. 207 00:10:55,540 --> 00:10:56,460 It worked. 208 00:10:56,460 --> 00:10:59,160 And I was like, yes, sorted, done. 209 00:10:59,800 --> 00:11:03,700 And then this was the final decode algorithm. 210 00:11:03,760 --> 00:11:11,300 It was essentially like the InafiniFactory C from the RTL433. 211 00:11:12,320 --> 00:11:16,140 And it just, like, it was literally the same code in Arduino. 212 00:11:16,280 --> 00:11:17,260 So, perfect. 213 00:11:17,260 --> 00:11:18,040 Sorted. 214 00:11:18,160 --> 00:11:20,260 I then let AI take the lead. 215 00:11:20,260 --> 00:11:26,340 You know, I said the problem why it wasn't working, maybe it was the loop. 216 00:11:26,340 --> 00:11:27,940 It was going a bit too fast. 217 00:11:28,080 --> 00:11:31,040 And there were some quirks here to, like, get it to work. 218 00:11:31,340 --> 00:11:38,160 Often when it comes to working with AI, you have to get it to regenerate its whole code from scratch all the time. 219 00:11:38,260 --> 00:11:42,580 Because you, like, as soon as you touch it, it forgets how to program. 220 00:11:42,580 --> 00:11:43,420 It's like, I'm done. 221 00:11:43,420 --> 00:11:44,520 I'm out of here. 222 00:11:44,520 --> 00:11:46,360 Like, I can't do this. 223 00:11:46,380 --> 00:11:56,440 And every single time, and I've made this mistake multiple times, over many projects, by the way, as well, when code worked, I didn't actually commit that anywhere. 224 00:11:56,620 --> 00:12:00,080 So, what would often happen is it would give me working code. 225 00:12:00,260 --> 00:12:02,360 It would break something on something else. 226 00:12:02,360 --> 00:12:06,500 And I have to go back to the working code and remind it, hey, this is the code that worked. 227 00:12:06,820 --> 00:12:10,860 And it doesn't quite understand how its code becomes, like, output. 228 00:12:10,860 --> 00:12:13,340 So, it can't really debug things. 229 00:12:13,360 --> 00:12:15,920 And this eventually got to this state. 230 00:12:16,040 --> 00:12:17,980 I understand your frustration. 231 00:12:18,060 --> 00:12:19,880 And I sincerely apologize. 232 00:12:19,880 --> 00:12:22,920 The custom code that has been so unreliable. 233 00:12:22,980 --> 00:12:36,460 We have reached the point where the problem is no longer a simple bug, but a very difficult timing and signal to noise issue that is extremely hard to solve reliably on a microcontroller with this type of receiver. 234 00:12:37,020 --> 00:12:38,120 Challenge accepted. 235 00:12:38,120 --> 00:12:39,400 I don't give up. 236 00:12:39,480 --> 00:12:40,740 Why did it work? 237 00:12:40,740 --> 00:12:44,020 Well, it turns out it was working when it was printing stuff. 238 00:12:44,100 --> 00:13:00,900 Now, what was happening is because I was printing to the serial port, it was slowing down the loop enough that it was able to actually, like, slow it down so it could not be milliseconds between each packet capture. 239 00:13:01,040 --> 00:13:03,380 And then I told it that it worked. 240 00:13:03,400 --> 00:13:06,080 I don't know why I told it it was working now. 241 00:13:06,080 --> 00:13:07,780 I just wanted to show off to it. 242 00:13:07,780 --> 00:13:10,260 I was like, you gave up, but I didn't. 243 00:13:11,080 --> 00:13:13,360 And, you know, it said I nailed it. 244 00:13:13,720 --> 00:13:14,680 Thanks. 245 00:13:14,680 --> 00:13:15,640 I did. 246 00:13:15,640 --> 00:13:18,020 I have a degree in computer science, by the way. 247 00:13:18,520 --> 00:13:21,860 And finally, we have it working. 248 00:13:22,180 --> 00:13:23,960 Can anyone see the problem? 249 00:13:24,520 --> 00:13:28,420 They were right next to each other and the temperatures are completely wrong. 250 00:13:28,880 --> 00:13:29,140 Okay. 251 00:13:29,140 --> 00:13:32,220 Let's not worry too much about the weather station being broken. 252 00:13:32,640 --> 00:13:33,360 ESPHome. 253 00:13:33,360 --> 00:13:44,380 So, originally my plan was to use ZigBee on the ESP32 and use the existing Sky Connect little dongle that I have that I've already used in my ZigBee Home Assistant. 254 00:13:44,700 --> 00:13:46,320 And AI talked me out of it. 255 00:13:46,320 --> 00:13:47,920 Because I was like, I really want to use ZigBee. 256 00:13:47,920 --> 00:13:49,560 And it was like, no. 257 00:13:49,980 --> 00:13:51,540 No, don't use ZigBee. 258 00:13:51,540 --> 00:13:53,300 Use ESPHome instead. 259 00:13:54,060 --> 00:13:58,700 And also, at this time, it was like, you are not capable of doing this. 260 00:14:00,620 --> 00:14:01,420 Wounded. 261 00:14:01,420 --> 00:14:01,700 Right. 262 00:14:01,700 --> 00:14:02,580 Let's keep going. 263 00:14:02,580 --> 00:14:06,220 So, then it started arguing with ESPHome. 264 00:14:06,220 --> 00:14:10,260 When it came to, like, generating the config files, this took a while. 265 00:14:10,260 --> 00:14:18,720 Here is a lovely screen, like a video of my chat with it trying to, like, actually get it to generate the config files correctly. 266 00:14:18,840 --> 00:14:21,020 I thought it would be cheating to do it myself. 267 00:14:21,020 --> 00:14:24,180 So, I thought, well, I'm just gonna continue to use AI. 268 00:14:25,060 --> 00:14:29,620 And I had to tell the AI, can you read the documentation, please? 269 00:14:30,940 --> 00:14:36,600 I've got to say, like, the more I was working with AI on this project, the more angry I was getting at it. 270 00:14:36,600 --> 00:14:40,560 I was genuinely becoming quite abusive to the poor little AI. 271 00:14:42,340 --> 00:14:46,880 And, like, I really struggled with the YAML configuration. 272 00:14:46,920 --> 00:14:50,920 So much so, I then ran out of time on the good coding version. 273 00:14:51,460 --> 00:14:54,660 So, it took four or five hours of prompting. 274 00:14:54,700 --> 00:14:58,400 And this entire time, I was thinking to myself, it's just YAML. 275 00:14:58,460 --> 00:15:02,740 Like, would it be cheating that much if I just did it myself? 276 00:15:03,320 --> 00:15:06,180 And I decided to commit to the bit. 277 00:15:06,180 --> 00:15:14,560 And I was like, nope, I'm gonna keep going, I'm gonna keep going, I'm gonna keep going . 278 00:15:14,740 --> 00:15:19,460 My ESP32C6 does not work for the ESP home and that was the problem. 279 00:15:19,500 --> 00:15:29,240 But finally, finally, it's finally happened that I did the thing that wasn't gonna work, but I had the parts for it. 280 00:15:29,240 --> 00:15:31,000 I didn't have to buy anything. 281 00:15:31,300 --> 00:15:34,460 So, I had another ESP32 lying around. 282 00:15:34,500 --> 00:15:37,000 So, I just switched it out and then it worked. 283 00:15:38,260 --> 00:15:39,200 And there we go. 284 00:15:39,200 --> 00:15:41,900 There's my final hardware configuration. 285 00:15:42,040 --> 00:15:45,180 You can see it has all of, like, eight wires. 286 00:15:45,640 --> 00:15:47,780 This took me several days. 287 00:15:47,780 --> 00:15:48,480 Okay? 288 00:15:49,200 --> 00:15:54,720 I cannot tell you how much my soul left my body for this project. 289 00:15:54,840 --> 00:15:57,620 And the temperature sensors are also, like, wrong. 290 00:15:57,620 --> 00:15:59,120 They're completely wrong. 291 00:15:59,480 --> 00:16:02,280 But here it is in all its glory. 292 00:16:02,280 --> 00:16:04,100 The final output. 293 00:16:05,060 --> 00:16:06,780 Over a second. 294 00:16:11,860 --> 00:16:19,260 Unfortunately, over a second, you can see channel one has massive temperature fluctuations that had absolutely nothing to do with me. 295 00:16:19,260 --> 00:16:20,220 Channel two was fine. 296 00:16:20,220 --> 00:16:21,500 They were next to each other. 297 00:16:21,560 --> 00:16:25,020 Unfortunately, the weather station, it's broken. 298 00:16:26,820 --> 00:16:28,000 Wait a second. 299 00:16:28,140 --> 00:16:29,580 Why are the temperatures so different? 300 00:16:29,580 --> 00:16:30,600 They're right next to each other. 301 00:16:30,600 --> 00:16:32,160 They should have the same value. 302 00:16:32,820 --> 00:16:34,620 Yeah, it's expensive to be bad at this, huh? 303 00:16:34,620 --> 00:16:36,620 Because I bought all of those parts. 304 00:16:37,140 --> 00:16:40,660 And I had to just buy one anyway because it didn't work. 305 00:16:40,980 --> 00:16:42,720 But it's expensive to be bad at this. 306 00:16:42,720 --> 00:16:50,080 I encourage you, should you have the disposable income to give IoT hacking a try, and why not get Gemini to do it for you? 307 00:16:50,080 --> 00:16:51,320 You can vibe. 308 00:16:51,320 --> 00:16:55,360 You can enjoy it while the rest of us break into tears. 309 00:16:55,360 --> 00:16:56,980 Thank you very much, everybody. 310 00:17:03,920 --> 00:17:07,700 I have five minutes for questions, if anybody wants to ask questions. 311 00:17:07,700 --> 00:17:08,740 Yeah, go for it. 312 00:17:15,210 --> 00:17:16,930 2.5 pro. 313 00:17:19,410 --> 00:17:29,150 Honestly, though, I also not included in this because I was getting, like, chat GPT to check Gemini's work because I wasn't sure exactly which one I'd commit to in the final presentation. 314 00:17:29,430 --> 00:17:32,410 And actually, I did find that Gemini worked better than chat GPT. 315 00:17:32,470 --> 00:17:35,050 But I don't have, like, a subscription for that. 316 00:17:35,050 --> 00:17:37,250 So it's literally just because I had the Google subscription. 317 00:17:37,330 --> 00:17:38,290 Yeah, go for it. 318 00:17:41,850 --> 00:17:47,150 So I think it's probably just because there's probably less in its training data, likely. 319 00:17:47,790 --> 00:17:53,330 YAML isn't really, like, especially ESP, sorry, Home Assistant stuff. 320 00:17:53,330 --> 00:17:54,930 It's so specific. 321 00:17:54,930 --> 00:18:02,570 And it's so specific to, like, your configurations that I wonder if it was just that actually it didn't have any training data. 322 00:18:02,570 --> 00:18:05,050 So it was essentially hallucinating what to tell me. 323 00:18:05,050 --> 00:18:06,650 And just guessing. 324 00:18:06,690 --> 00:18:08,530 Though, to be honest, I don't really know. 325 00:18:08,770 --> 00:18:10,270 Not included in this. 326 00:18:10,270 --> 00:18:18,310 But one time when I was actually playing with the YAML, I managed to break Google Gemini and have it output, a bunch of absolute garbage. 327 00:18:18,450 --> 00:18:20,430 I think from its training data. 328 00:18:20,630 --> 00:18:22,090 And I could not replicate that. 329 00:18:22,090 --> 00:18:25,310 So I was gonna submit that as a bug to Gemini. 330 00:18:25,310 --> 00:18:26,690 But it didn't work. 331 00:18:27,230 --> 00:18:27,790 Yep. 332 00:18:34,950 --> 00:18:39,710 So if I'd done that, I probably wouldn't have spent four to five hours prompting it. 333 00:18:39,790 --> 00:18:43,330 It's that kind of ingenious that vibe coders are missing. 334 00:18:43,570 --> 00:18:44,530 No, I didn't. 335 00:18:44,530 --> 00:18:47,490 I mean, part of it is also because I didn't want to cheat too much. 336 00:18:47,490 --> 00:18:50,210 I wanted to try and get the AI to do it on its own. 337 00:18:50,210 --> 00:18:53,990 Because I thought it would make a funny talk more than anything else. 338 00:18:54,570 --> 00:19:09,970 But, yeah, I would suspect that if you were doing this for real and actually trying to get this to... you're actually using it as a coding buddy, a kind of emotional support AI as you're working on electronics projects, that would probably be a better approach. 339 00:19:11,250 --> 00:19:11,770 Yep. 340 00:19:16,890 --> 00:19:20,890 I think it would have been more effective, yeah. 341 00:19:20,890 --> 00:19:25,930 If I just sat there and spoke to the duck and been like, please help me with my C code. 342 00:19:26,030 --> 00:19:27,130 Yeah, probably. 343 00:19:27,710 --> 00:19:36,230 Honestly, AI... what made it so convincing was this project I showed at the start. 344 00:19:36,230 --> 00:19:42,350 So a lot of the UI for this was vibe coded, because I wasn't really familiar with this touchscreen interface. 345 00:19:42,530 --> 00:19:44,810 And I was trying to load it from an API. 346 00:19:44,810 --> 00:19:47,570 So my background is in web development. 347 00:19:47,850 --> 00:19:51,530 So I was like, okay, I'm gonna make it a RESTful API. 348 00:19:51,750 --> 00:19:55,970 So this gave me a lot of hope that AI would be good at something. 349 00:19:56,070 --> 00:20:00,850 Unfortunately, if it doesn't have an API, AI is really bad at it, actually. 350 00:20:02,210 --> 00:20:02,530 Here you go. 351 00:20:02,530 --> 00:20:09,210 There's my thing here of having my little tags update. 352 00:20:09,830 --> 00:20:12,510 Again, this gave me a lot of hope that AI would be good at this. 353 00:20:12,510 --> 00:20:14,770 And that was dashed very quickly. 354 00:20:17,050 --> 00:20:19,130 Any other questions? 355 00:20:20,110 --> 00:20:20,790 Yep. 356 00:20:23,170 --> 00:20:24,790 Sorry, can you say that a bit louder? 357 00:20:28,250 --> 00:20:30,330 I don't know, to be honest. 358 00:20:30,330 --> 00:20:36,750 I feel like it did simply because it knew that radio frequency analysis would be the best approach. 359 00:20:36,750 --> 00:20:38,830 Because I didn't know that at the start. 360 00:20:38,830 --> 00:20:41,850 Radio frequency analysis was very, very new to me. 361 00:20:42,390 --> 00:20:47,550 Actually, the first thing I did when I got one of the dongles, okay, it's time to listen to air traffic control. 362 00:20:47,730 --> 00:20:50,030 Because I learned that's what you can do with it. 363 00:20:50,090 --> 00:20:52,830 But I didn't know it was a thing. 364 00:20:52,830 --> 00:21:06,330 I was fully intending to open up the main body and then go into the SPI lines and get the data from there and hook something onto the back of that PCB, rather than the approach I ended up doing, which is going for the radio frequency analysis. 365 00:21:06,450 --> 00:21:08,210 And it did tell me it would be easier. 366 00:21:08,470 --> 00:21:12,750 And of course, I didn't have the skills to do the other one, which is probably right. 367 00:21:14,670 --> 00:21:15,470 Yeah? 368 00:21:20,220 --> 00:21:22,280 Do you want to see the code? 369 00:21:22,640 --> 00:21:24,080 I will. 370 00:21:25,560 --> 00:21:26,460 I'll upload it. 371 00:21:26,460 --> 00:21:27,320 I'll upload it tonight. 372 00:21:27,320 --> 00:21:27,620 Check my... 373 00:21:35,750 --> 00:21:38,910 Oh, and see what I could improve on. 374 00:21:43,040 --> 00:21:45,180 I was getting so angry at Gemini. 375 00:21:45,180 --> 00:21:47,800 I don't think I would have the patience for another AI. 376 00:21:48,540 --> 00:21:50,860 I cannot tell you, I was getting genuinely angry. 377 00:21:54,260 --> 00:21:56,260 The ship of Theseus. 378 00:22:01,190 --> 00:22:02,510 It's a good idea. 379 00:22:02,510 --> 00:22:08,270 I'll put the code up on GitHub if people want to have a go and see if they can ship a Theseus, my code. 380 00:22:08,270 --> 00:22:09,170 You're welcome to. 381 00:22:09,170 --> 00:22:11,790 This, actually, this vibe coded project is on GitHub. 382 00:22:11,790 --> 00:22:15,290 It's in a GitHub gist under my username inside a PhD. 383 00:22:17,690 --> 00:22:18,230 All right. 384 00:22:18,230 --> 00:22:20,270 Thank you so much, everybody. 385 00:22:25,150 --> 00:22:26,930 Enjoy the rest of the conference.