WEBVTT

00:00.000 --> 00:01.280
Hi, everybody.

00:01.960 --> 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.

00:09.220 --> 00:13.660
This is a deeply unserious talk, I have to tell you in advance.

00:13.920 --> 00:15.700
But I think it's kind of fun.

00:15.700 --> 00:21.220
So welcome to vibe school, making dumb devices smart with AI.

00:21.260 --> 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?

00:32.320 --> 00:33.220
And they go, yeah.

00:33.220 --> 00:36.040
I'm like, great, can you buy the product my company sells?

00:36.320 --> 00:37.960
I work for Semgrep.

00:37.960 --> 00:42.060
So I am very new to hardware hacking.

00:42.100 --> 00:45.100
So this is my first and most recent project.

00:45.100 --> 00:46.580
I'm very proud of it.

00:46.700 --> 00:51.140
It programs eink labels for me for my 3D printing filament.

00:51.140 --> 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.

01:01.880 --> 01:08.420
And off of the back of this immense achievement, I decided I'm good at this.

01:08.780 --> 01:14.420
Now, something I want you to keep in mind as I talk about this is this thing my partner said.

01:14.500 --> 01:21.980
So when I started to take up electronics, he said to me, it's expensive to be bad at this, huh?

01:22.020 --> 01:25.320
After I tell him I need to make another order on AliExpress.

01:25.460 --> 01:29.740
And I want you to remember this throughout the presentation, because this will come up.

01:29.740 --> 01:31.420
There is a test at the end.

01:31.640 --> 01:33.720
I'm pretty sure you know what the answer is.

01:33.720 --> 01:34.960
Now, I'm British.

01:34.960 --> 01:36.320
I live in the U.K.

01:36.700 --> 01:38.440
We all look forward to summer.

01:38.440 --> 01:40.420
The rain gets warmer in the U.K.

01:40.420 --> 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.

01:47.720 --> 01:49.640
Heat wave, moan and complain.

01:49.840 --> 01:51.740
Rain, moan and complain.

01:51.980 --> 01:53.980
Ice, moan and complain.

01:54.180 --> 01:56.320
Snow, guess what?

01:57.000 --> 02:00.000
Grey, but it doesn't actually rain yet, moan and complain.

02:00.140 --> 02:01.720
Brits love talking about the weather.

02:01.720 --> 02:03.920
It's the first thing we do whenever we do anything.

02:04.120 --> 02:09.540
So in order to join this hot topical conversation, I want a weather station, right?

02:09.540 --> 02:11.180
I want a smart weather station.

02:11.180 --> 02:16.520
I want one that fits into my home assistant, because I'm really into my smart home stuff.

02:16.760 --> 02:24.380
And I look at the price of these and I'm like, jeez, 135 quid, that's a lot of money.

02:24.380 --> 02:27.640
And again, I want you to remember it's expensive to be bad at this.

02:27.640 --> 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,

02:44.260 --> 02:45.860
and an ESP32.

02:46.260 --> 02:48.220
So here's the plan, right?

02:49.360 --> 02:53.920
We're going to get AI to do it for me, because I'm not going to do it.

02:53.920 --> 02:56.420
So one, define my goal.

02:56.500 --> 02:57.880
It's to make a weather station.

02:57.900 --> 03:00.080
Two, get AI to do it for me.

03:00.420 --> 03:04.320
Three, for profit.

03:04.640 --> 03:08.640
So my AI of choice in this adventure is Gemini.

03:08.640 --> 03:10.180
There's a few reasons why.

03:10.220 --> 03:14.960
One is because it can use the internet as sources and it's less likely to make stuff up.

03:15.240 --> 03:17.880
Now, is it impossible for Gemini to hallucinate?

03:17.880 --> 03:18.640
No, of course it's not.

03:18.640 --> 03:19.980
It's going to make stuff up all the time.

03:19.980 --> 03:22.760
But it does use the internet, so that's slightly better.

03:23.420 --> 03:25.500
It can generate code pretty well.

03:25.920 --> 03:29.520
It supports deep research to research presumably deeply.

03:30.120 --> 03:34.640
And it comes free with my subscription to my smart doorbell.

03:34.640 --> 03:40.140
So if I want to have the smart doorbell, I may as well use the thing I already purchased.

03:40.800 --> 03:43.780
And so the way I started is by creating a gem.

03:43.780 --> 03:49.920
So a gem in Gemini allows you to kind of customize the output of Gemini by feeding it stuff.

03:49.940 --> 03:51.560
So you get ten files.

03:51.660 --> 03:54.360
So I was like, what ten files are going to help me the most?

03:54.380 --> 03:56.060
And I picked these books.

03:56.060 --> 04:00.180
So I picked Eugene Lim's from day zero to zero day.

04:00.180 --> 04:02.160
That's about hacking stuff, right?

04:02.240 --> 04:04.180
Zero day is probably relevant.

04:04.180 --> 04:07.800
Practical IoT hacking sounds practical and relevant.

04:07.800 --> 04:10.160
Hacking APIs by Cory Ball.

04:10.660 --> 04:14.080
The hardware hackers handbook.

04:14.080 --> 04:19.040
Some ESP stuff and some other stuff about programming in C.

04:19.420 --> 04:24.200
Now, I had to give it a I had to give it instructions as well.

04:24.200 --> 04:27.140
So it started with you're an expert.

04:27.140 --> 04:34.240
You're an IoT and API security expert, which it kept reminding me of every single message.

04:34.240 --> 04:38.740
As a cyber security expert, as a cyber security we get it.

04:38.740 --> 04:39.740
You're an expert.

04:40.200 --> 04:42.280
So what are the rules?

04:42.280 --> 04:44.180
Here are the rules I come up with.

04:44.180 --> 04:45.160
Gemini only.

04:45.160 --> 04:46.760
No Googling anything, right?

04:46.760 --> 04:49.180
Like if we have to Google something, we've cheated.

04:50.120 --> 04:54.880
AI generated code can be debugged by a human, but also by AI.

04:55.700 --> 04:58.580
I can buy parts, but only what Gemini tells me to buy.

04:58.580 --> 05:01.920
If Gemini tells me to buy the wrong thing, well, sucks to be me.

05:02.520 --> 05:07.240
And I can include libraries, but again, only what Gemini tells me to do, right?

05:07.240 --> 05:09.100
No thoughts, just vibes.

05:09.100 --> 05:10.700
Like that is what we're going for.

05:11.320 --> 05:11.780
Okay.

05:11.780 --> 05:13.740
So step one, what is the first step?

05:13.740 --> 05:14.800
Great question.

05:14.880 --> 05:16.360
Gemini, what's the first step?

05:16.360 --> 05:18.220
So I started with deep research.

05:18.220 --> 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.

05:26.200 --> 05:28.420
And this is how it develops it into an action plan.

05:29.220 --> 05:32.880
And it will kind of turn it into, like, a step by step.

05:33.060 --> 05:37.220
Honestly, this took, like, so long, and I should have just Googled it.

05:37.400 --> 05:38.880
It was not great.

05:38.880 --> 05:39.820
And it took forever.

05:39.820 --> 05:41.220
I was sitting there being like, is it done yet?

05:41.220 --> 05:41.700
Is it done yet?

05:41.700 --> 05:42.220
Is it done yet?

05:42.220 --> 05:43.100
Is it done yet?

05:43.520 --> 05:44.440
So here's the prompt.

05:44.440 --> 05:45.320
Here's what I said.

05:45.760 --> 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.

06:00.620 --> 06:04.740
Identify what needs to be done, what the deliverables are, any sources that will be needed.

06:05.760 --> 06:11.860
And then, you know, I said, can we also include steps to implement the ESP32 at the main hub weather station?

06:11.860 --> 06:15.300
And I started with the sniffing SPI lines.

06:16.480 --> 06:22.160
And they basically ‑‑ Gemini told me, you idiot, why are you sniffing SPI lines?

06:22.160 --> 06:24.520
You can do radio frequency.

06:25.460 --> 06:29.620
Don't worry, this won't be actually the first time Gemini insults my intelligence.

06:29.620 --> 06:31.560
It does it multiple times.

06:31.680 --> 06:33.140
So, okay.

06:33.140 --> 06:34.240
What's the result?

06:34.260 --> 06:35.740
There's a lot of steps here.

06:35.740 --> 06:36.600
There's a lot of text.

06:36.600 --> 06:38.420
It just produced a really long report.

06:39.100 --> 06:41.360
I'm going to keep it for reference.

06:41.500 --> 06:43.400
But, like, this is too much.

06:43.660 --> 06:49.380
But it's okay, because we can get Gemini to turn it into a TLDR, which is what we do.

06:49.820 --> 06:52.180
Please turn it into, like, five steps.

06:52.180 --> 06:56.300
So, one, we're going to capture the weather data with an SDR dongle.

06:56.300 --> 06:58.980
Didn't know what that was, by the way, when I first started.

07:00.060 --> 07:02.100
I'm going to have a receiver.

07:02.400 --> 07:04.760
Again, sure, I guess.

07:04.940 --> 07:07.340
Get it working with Visual Studio Code.

07:07.340 --> 07:08.320
Get it working with Zigbee.

07:08.580 --> 07:10.820
Problem solved, right?

07:12.140 --> 07:19.200
Here's the slight problem here, though, because the ESP32 needs to be configured before we add a receiver to it.

07:19.200 --> 07:22.000
So, I corrected it and told it it's wrong.

07:22.000 --> 07:22.700
So, it's fine.

07:22.700 --> 07:24.060
We got it fixed.

07:24.160 --> 07:25.440
And then shopping time.

07:25.440 --> 07:28.220
So, I bought everything they told me to buy.

07:28.540 --> 07:32.320
Again, it's expensive to be bad at this, huh?

07:33.880 --> 07:38.240
You will very quickly see what the end result of this is.

07:38.240 --> 07:43.100
So, step one, capture weather data with an SDR dongle.

07:43.100 --> 07:47.520
So, dongle check, software check, knowing how to use it.

07:47.520 --> 07:48.000
Like, no.

07:48.000 --> 07:48.920
No idea.

07:48.920 --> 07:52.900
But it created these nice pretty pictures and I assumed there was some data coming out of it.

07:52.900 --> 07:53.900
But it's okay.

07:53.940 --> 07:56.120
Because it told me what to use.

07:56.120 --> 07:58.640
So, I looked at the analyzing signals.

07:58.740 --> 08:03.100
I get a little screenshot and it's like, yes, correct, it is working.

08:03.560 --> 08:06.300
And it was like, now you have to use RTL433.

08:06.480 --> 08:08.540
And I was like, okay, great.

08:09.140 --> 08:10.220
What's that?

08:12.080 --> 08:13.560
But it decoded it, right?

08:13.560 --> 08:14.780
So, yeah, we got this.

08:14.780 --> 08:15.140
Okay.

08:15.140 --> 08:15.660
Cool.

08:15.660 --> 08:16.140
Right.

08:16.140 --> 08:18.320
So, then we have the packets.

08:19.340 --> 08:19.940
Wow.

08:19.940 --> 08:20.440
Okay.

08:20.440 --> 08:24.180
So, I tried to like it's explained to me what the packet structure was.

08:24.700 --> 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.

08:31.180 --> 08:32.440
And I was like, is that cheating?

08:33.540 --> 08:37.320
So, I did get the information and I sent it the source file.

08:37.320 --> 08:39.580
I said, here, please extract the packet structure.

08:39.960 --> 08:42.120
And then we set up Visual Studio Code.

08:42.300 --> 08:46.220
Then we gave up with Visual Studio Code because it was not working very well.

08:46.260 --> 08:50.940
And then we went back to good old fashioned Arduino's IDE instead.

08:51.740 --> 08:55.400
It would turn on like this, but it would do literally nothing else.

08:55.520 --> 08:56.700
So, throw that away.

08:56.700 --> 08:57.620
That doesn't matter.

08:57.840 --> 08:59.100
Where do we plug everything in?

08:59.100 --> 08:59.520
Okay.

08:59.520 --> 09:03.180
So, I ask it, here is the schematics for the dev board.

09:03.200 --> 09:04.360
Where do I plug stuff in?

09:04.360 --> 09:06.500
Again, I don't know how to do electronics.

09:06.540 --> 09:11.600
So, we're vibe soldering, vibe electronicsing.

09:12.020 --> 09:14.640
And I said, here, tell me where to put it in.

09:14.660 --> 09:18.320
So, I put it in and it was like, hey, this is where you put the antenna.

09:19.220 --> 09:19.920
Sorry, what?

09:19.920 --> 09:21.260
I didn't buy an antenna.

09:21.260 --> 09:23.120
Do I need to buy one of those on Amazon?

09:24.600 --> 09:27.300
I then learned that I could make an antenna.

09:28.180 --> 09:29.100
Good day, right?

09:29.100 --> 09:32.020
We don't need to buy another Amazon purchase.

09:32.020 --> 09:36.640
Instead, we've just got a piece of wire that I stripped and I kind of turned upwards like this.

09:37.500 --> 09:38.420
So, great.

09:38.700 --> 09:38.980
Right.

09:38.980 --> 09:40.380
Then it came to the packet structure.

09:40.380 --> 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.

09:46.660 --> 09:50.120
And this took a lot of prompting.

09:50.860 --> 09:52.820
This was an absolute nightmare.

09:52.820 --> 09:55.820
Like, I cannot tell you how broken this was.

09:55.820 --> 09:57.320
It could not decode it.

09:57.320 --> 10:00.260
Like, it doesn't matter exactly what I did.

10:00.260 --> 10:01.700
I just couldn't do it.

10:01.700 --> 10:05.600
And I was like, okay, I got channel one to work, channel two doesn't work.

10:05.600 --> 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.

10:09.860 --> 10:13.140
And I'm like, nope, not working, still not working, please fix it.

10:13.680 --> 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.

10:23.160 --> 10:25.920
Your observation that this is not working is correct.

10:25.920 --> 10:28.700
Like, I can see that it's not working.

10:29.260 --> 10:34.420
And when I tried to help it debug its code, I was like, hey, can you try this, this, and this?

10:34.420 --> 10:40.620
And telling it what was wrong, it was like, no, you are wrong.

10:40.620 --> 10:40.960
Okay.

10:40.960 --> 10:41.240
Right.

10:41.240 --> 10:42.720
Well, it then sent me this.

10:42.720 --> 10:45.800
It's like, please upload this final sketch to ESP32.

10:46.080 --> 10:50.860
When our weather station transmits, you should now see the fully decoded data printed in the serial monitor.

10:50.960 --> 10:52.160
It's a very bold claim.

10:52.160 --> 10:53.420
Was it correct?

10:53.460 --> 10:55.540
Oh, actually, yeah, it was actually correct.

10:55.540 --> 10:56.460
It worked.

10:56.460 --> 10:59.160
And I was like, yes, sorted, done.

10:59.800 --> 11:03.700
And then this was the final decode algorithm.

11:03.760 --> 11:11.300
It was essentially like the InafiniFactory C from the RTL433.

11:12.320 --> 11:16.140
And it just, like, it was literally the same code in Arduino.

11:16.280 --> 11:17.260
So, perfect.

11:17.260 --> 11:18.040
Sorted.

11:18.160 --> 11:20.260
I then let AI take the lead.

11:20.260 --> 11:26.340
You know, I said the problem why it wasn't working, maybe it was the loop.

11:26.340 --> 11:27.940
It was going a bit too fast.

11:28.080 --> 11:31.040
And there were some quirks here to, like, get it to work.

11:31.340 --> 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.

11:38.260 --> 11:42.580
Because you, like, as soon as you touch it, it forgets how to program.

11:42.580 --> 11:43.420
It's like, I'm done.

11:43.420 --> 11:44.520
I'm out of here.

11:44.520 --> 11:46.360
Like, I can't do this.

11:46.380 --> 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.

11:56.620 --> 12:00.080
So, what would often happen is it would give me working code.

12:00.260 --> 12:02.360
It would break something on something else.

12:02.360 --> 12:06.500
And I have to go back to the working code and remind it, hey, this is the code that worked.

12:06.820 --> 12:10.860
And it doesn't quite understand how its code becomes, like, output.

12:10.860 --> 12:13.340
So, it can't really debug things.

12:13.360 --> 12:15.920
And this eventually got to this state.

12:16.040 --> 12:17.980
I understand your frustration.

12:18.060 --> 12:19.880
And I sincerely apologize.

12:19.880 --> 12:22.920
The custom code that has been so unreliable.

12:22.980 --> 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.

12:37.020 --> 12:38.120
Challenge accepted.

12:38.120 --> 12:39.400
I don't give up.

12:39.480 --> 12:40.740
Why did it work?

12:40.740 --> 12:44.020
Well, it turns out it was working when it was printing stuff.

12:44.100 --> 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.

13:01.040 --> 13:03.380
And then I told it that it worked.

13:03.400 --> 13:06.080
I don't know why I told it it was working now.

13:06.080 --> 13:07.780
I just wanted to show off to it.

13:07.780 --> 13:10.260
I was like, you gave up, but I didn't.

13:11.080 --> 13:13.360
And, you know, it said I nailed it.

13:13.720 --> 13:14.680
Thanks.

13:14.680 --> 13:15.640
I did.

13:15.640 --> 13:18.020
I have a degree in computer science, by the way.

13:18.520 --> 13:21.860
And finally, we have it working.

13:22.180 --> 13:23.960
Can anyone see the problem?

13:24.520 --> 13:28.420
They were right next to each other and the temperatures are completely wrong.

13:28.880 --> 13:29.140
Okay.

13:29.140 --> 13:32.220
Let's not worry too much about the weather station being broken.

13:32.640 --> 13:33.360
ESPHome.

13:33.360 --> 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.

13:44.700 --> 13:46.320
And AI talked me out of it.

13:46.320 --> 13:47.920
Because I was like, I really want to use ZigBee.

13:47.920 --> 13:49.560
And it was like, no.

13:49.980 --> 13:51.540
No, don't use ZigBee.

13:51.540 --> 13:53.300
Use ESPHome instead.

13:54.060 --> 13:58.700
And also, at this time, it was like, you are not capable of doing this.

14:00.620 --> 14:01.420
Wounded.

14:01.420 --> 14:01.700
Right.

14:01.700 --> 14:02.580
Let's keep going.

14:02.580 --> 14:06.220
So, then it started arguing with ESPHome.

14:06.220 --> 14:10.260
When it came to, like, generating the config files, this took a while.

14:10.260 --> 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.

14:18.840 --> 14:21.020
I thought it would be cheating to do it myself.

14:21.020 --> 14:24.180
So, I thought, well, I'm just gonna continue to use AI.

14:25.060 --> 14:29.620
And I had to tell the AI, can you read the documentation, please?

14:30.940 --> 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.

14:36.600 --> 14:40.560
I was genuinely becoming quite abusive to the poor little AI.

14:42.340 --> 14:46.880
And, like, I really struggled with the YAML configuration.

14:46.920 --> 14:50.920
So much so, I then ran out of time on the good coding version.

14:51.460 --> 14:54.660
So, it took four or five hours of prompting.

14:54.700 --> 14:58.400
And this entire time, I was thinking to myself, it's just YAML.

14:58.460 --> 15:02.740
Like, would it be cheating that much if I just did it myself?

15:03.320 --> 15:06.180
And I decided to commit to the bit.

15:06.180 --> 15:14.560
And I was like, nope, I'm gonna keep going, I'm gonna keep going, I'm gonna keep going .

15:14.740 --> 15:19.460
My ESP32C6 does not work for the ESP home and that was the problem.

15:19.500 --> 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.

15:29.240 --> 15:31.000
I didn't have to buy anything.

15:31.300 --> 15:34.460
So, I had another ESP32 lying around.

15:34.500 --> 15:37.000
So, I just switched it out and then it worked.

15:38.260 --> 15:39.200
And there we go.

15:39.200 --> 15:41.900
There's my final hardware configuration.

15:42.040 --> 15:45.180
You can see it has all of, like, eight wires.

15:45.640 --> 15:47.780
This took me several days.

15:47.780 --> 15:48.480
Okay?

15:49.200 --> 15:54.720
I cannot tell you how much my soul left my body for this project.

15:54.840 --> 15:57.620
And the temperature sensors are also, like, wrong.

15:57.620 --> 15:59.120
They're completely wrong.

15:59.480 --> 16:02.280
But here it is in all its glory.

16:02.280 --> 16:04.100
The final output.

16:05.060 --> 16:06.780
Over a second.

16:11.860 --> 16:19.260
Unfortunately, over a second, you can see channel one has massive temperature fluctuations that had absolutely nothing to do with me.

16:19.260 --> 16:20.220
Channel two was fine.

16:20.220 --> 16:21.500
They were next to each other.

16:21.560 --> 16:25.020
Unfortunately, the weather station, it's broken.

16:26.820 --> 16:28.000
Wait a second.

16:28.140 --> 16:29.580
Why are the temperatures so different?

16:29.580 --> 16:30.600
They're right next to each other.

16:30.600 --> 16:32.160
They should have the same value.

16:32.820 --> 16:34.620
Yeah, it's expensive to be bad at this, huh?

16:34.620 --> 16:36.620
Because I bought all of those parts.

16:37.140 --> 16:40.660
And I had to just buy one anyway because it didn't work.

16:40.980 --> 16:42.720
But it's expensive to be bad at this.

16:42.720 --> 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?

16:50.080 --> 16:51.320
You can vibe.

16:51.320 --> 16:55.360
You can enjoy it while the rest of us break into tears.

16:55.360 --> 16:56.980
Thank you very much, everybody.

17:03.920 --> 17:07.700
I have five minutes for questions, if anybody wants to ask questions.

17:07.700 --> 17:08.740
Yeah, go for it.

17:15.210 --> 17:16.930
2.5 pro.

17:19.410 --> 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.

17:29.430 --> 17:32.410
And actually, I did find that Gemini worked better than chat GPT.

17:32.470 --> 17:35.050
But I don't have, like, a subscription for that.

17:35.050 --> 17:37.250
So it's literally just because I had the Google subscription.

17:37.330 --> 17:38.290
Yeah, go for it.

17:41.850 --> 17:47.150
So I think it's probably just because there's probably less in its training data, likely.

17:47.790 --> 17:53.330
YAML isn't really, like, especially ESP, sorry, Home Assistant stuff.

17:53.330 --> 17:54.930
It's so specific.

17:54.930 --> 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.

18:02.570 --> 18:05.050
So it was essentially hallucinating what to tell me.

18:05.050 --> 18:06.650
And just guessing.

18:06.690 --> 18:08.530
Though, to be honest, I don't really know.

18:08.770 --> 18:10.270
Not included in this.

18:10.270 --> 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.

18:18.450 --> 18:20.430
I think from its training data.

18:20.630 --> 18:22.090
And I could not replicate that.

18:22.090 --> 18:25.310
So I was gonna submit that as a bug to Gemini.

18:25.310 --> 18:26.690
But it didn't work.

18:27.230 --> 18:27.790
Yep.

18:34.950 --> 18:39.710
So if I'd done that, I probably wouldn't have spent four to five hours prompting it.

18:39.790 --> 18:43.330
It's that kind of ingenious that vibe coders are missing.

18:43.570 --> 18:44.530
No, I didn't.

18:44.530 --> 18:47.490
I mean, part of it is also because I didn't want to cheat too much.

18:47.490 --> 18:50.210
I wanted to try and get the AI to do it on its own.

18:50.210 --> 18:53.990
Because I thought it would make a funny talk more than anything else.

18:54.570 --> 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.

19:11.250 --> 19:11.770
Yep.

19:16.890 --> 19:20.890
I think it would have been more effective, yeah.

19:20.890 --> 19:25.930
If I just sat there and spoke to the duck and been like, please help me with my C code.

19:26.030 --> 19:27.130
Yeah, probably.

19:27.710 --> 19:36.230
Honestly, AI... what made it so convincing was this project I showed at the start.

19:36.230 --> 19:42.350
So a lot of the UI for this was vibe coded, because I wasn't really familiar with this touchscreen interface.

19:42.530 --> 19:44.810
And I was trying to load it from an API.

19:44.810 --> 19:47.570
So my background is in web development.

19:47.850 --> 19:51.530
So I was like, okay, I'm gonna make it a RESTful API.

19:51.750 --> 19:55.970
So this gave me a lot of hope that AI would be good at something.

19:56.070 --> 20:00.850
Unfortunately, if it doesn't have an API, AI is really bad at it, actually.

20:02.210 --> 20:02.530
Here you go.

20:02.530 --> 20:09.210
There's my thing here of having my little tags update.

20:09.830 --> 20:12.510
Again, this gave me a lot of hope that AI would be good at this.

20:12.510 --> 20:14.770
And that was dashed very quickly.

20:17.050 --> 20:19.130
Any other questions?

20:20.110 --> 20:20.790
Yep.

20:23.170 --> 20:24.790
Sorry, can you say that a bit louder?

20:28.250 --> 20:30.330
I don't know, to be honest.

20:30.330 --> 20:36.750
I feel like it did simply because it knew that radio frequency analysis would be the best approach.

20:36.750 --> 20:38.830
Because I didn't know that at the start.

20:38.830 --> 20:41.850
Radio frequency analysis was very, very new to me.

20:42.390 --> 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.

20:47.730 --> 20:50.030
Because I learned that's what you can do with it.

20:50.090 --> 20:52.830
But I didn't know it was a thing.

20:52.830 --> 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.

21:06.450 --> 21:08.210
And it did tell me it would be easier.

21:08.470 --> 21:12.750
And of course, I didn't have the skills to do the other one, which is probably right.

21:14.670 --> 21:15.470
Yeah?

21:20.220 --> 21:22.280
Do you want to see the code?

21:22.640 --> 21:24.080
I will.

21:25.560 --> 21:26.460
I'll upload it.

21:26.460 --> 21:27.320
I'll upload it tonight.

21:27.320 --> 21:27.620
Check my...

21:35.750 --> 21:38.910
Oh, and see what I could improve on.

21:43.040 --> 21:45.180
I was getting so angry at Gemini.

21:45.180 --> 21:47.800
I don't think I would have the patience for another AI.

21:48.540 --> 21:50.860
I cannot tell you, I was getting genuinely angry.

21:54.260 --> 21:56.260
The ship of Theseus.

22:01.190 --> 22:02.510
It's a good idea.

22:02.510 --> 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.

22:08.270 --> 22:09.170
You're welcome to.

22:09.170 --> 22:11.790
This, actually, this vibe coded project is on GitHub.

22:11.790 --> 22:15.290
It's in a GitHub gist under my username inside a PhD.

22:17.690 --> 22:18.230
All right.

22:18.230 --> 22:20.270
Thank you so much, everybody.

22:25.150 --> 22:26.930
Enjoy the rest of the conference.

