start	end	text
1400	6120	Hi, I'm AbleDamond and today's talk is on door sims.
6120	10440	I hate traveling for conferences and you will find out why in this talk.
11020	12340	First off, who am I?
12340	13720	Some of you know me.
13740	15260	Quite a few of you know me.
15460	16840	This is me.
16940	19080	I'm known for making a lot of stickers.
19800	23720	I also talk a bit about physical security and stuff in Australia.
23980	24920	RFID.
24920	27920	Trying to, you know, just trying to be cool and all that.
27920	29260	Want to be a cool hacker.
29480	34520	And this was what it looked like when I tried to travel to a conference earlier in the year.
34740	36560	All of this had to fit in a suitcase.
39080	42220	So that's two physical access control systems.
42440	43780	Mini doors.
43860	45240	More mini doors.
45240	46360	More RFID readers.
46360	47160	Everything else.
47160	50060	And I still had two suitcases and a big box to ship.
50060	52580	And I said, this sucks.
53060	54200	Simple problem.
55060	56940	This is all expensive as fuck.
56940	59960	Cost me like 900 bucks to buy an access control system.
59960	61380	I don't want to do that.
61780	66540	So let's make a new version of it that is less expensive.
66860	68260	Easy to make.
68600	69660	And, you know, fuck it.
69660	71960	We're just going to make this for training and CTFs as well.
71960	73240	Just because we can.
74820	77500	Now, a quick acknowledgement of previous work.
77500	79800	Two people have done really cool stuff with this in the past.
79800	81240	And they're big inspirations for this.
81240	84480	First off, we got RTA and their RFID door simulator.
84540	87360	They mainly use it for, like, training at their courses.
89060	91180	They never released it open source.
91340	92180	It's really cool.
92180	92820	I love it.
92820	95940	But that screen is so tiny and I can't read it for the life of me.
95940	98440	The other one, Tusk by Team Walrus.
98440	99500	Mainly fish.
99960	104180	Really cool thing with MaxiProx to try and get longer read ranges.
104800	111680	They inspired me because they had this really cool user interface for a web and beautiful, beautiful start.
112140	117080	So, with those out of the way, here's our key requirements.
117600	119980	I wanted this to be open for everyone.
119980	121580	You can have it, you can make it.
121580	123820	It's going to be cheap, open source, and hackable.
123820	126300	It has to be portable and self-contained.
126300	128960	None of this extra box that you need to run it.
129680	132540	It has to have a physical display and a web GUI.
133680	137200	And it has to have a common RFID interface.
137200	140920	WeGand, RS-485, and a modern power source.
140920	145560	Because I've had enough of random barrel jacks, random connectors that I don't like.
146340	147380	Simple run through.
147380	148680	We're going to speed through it.
149520	150900	ESP32 as a base.
150900	153020	Really cheap, really inexpensive.
153300	155500	Comes from the magical land of China.
155780	157380	And very easy to program.
157560	159000	And it's like $5.
159560	161920	And I'm going to be a little bit fun here.
162540	168140	Buying the dev board is like $9 cheaper than getting it pick and placed at a PCB assembly.
168440	172280	So, me telling you to solder it in is saving you like $9.
173220	181460	So, if your time is worth more than $9 for 10 minutes of soldering, your billable rates are better than mine.
182840	184620	Now, displays.
185060	188540	OLED sucks because it is small and hard to read.
188540	192180	No one's made really cheap and inexpensive large OLEDs.
192420	195680	Same with LEDs, but character displays.
195680	198420	Character displays have been around for fucking ever.
198900	201220	So, this is a 2004A.
201220	205040	20 characters, 4 lines, beautiful, readable.
205040	207500	They're used in industrial systems for a reason.
208340	209880	And they're cheap as hell.
210980	211700	Power.
212180	214180	We've got a little bit of stuff we have to contend with.
214180	216140	We've got a 5V rail, 12V rail.
216300	219980	We could make it a 3.3, RFID readers go up to 24.
220320	224400	We need a solution, but let's just get the highest voltage out of the way.
225400	227740	And we went with USB PD trigger boards.
228600	231200	These, coming out of China, are like $1 each.
231200	235680	You can plug them in, you can choose the voltage from 5, 12, 18, 24.
235740	237000	Easy as anything.
237620	239160	Super easy to bolt in.
239460	247400	And if you've got a random power supply where you're like, I don't have the barrel jack for this or something, a USB PD solves that problem for you, makes your life easy.
247400	250980	As long as you're not drawing, like, 3 amps, you'll be fine.
251820	254040	And this is where we get to the fun part.
254040	257680	This is called the speedrun any% to get on a no-fly list.
259360	261520	This is what my first prototype looked like.
261520	266400	It was just a bunch of perf boards, whacking everything together and just going, yeah, it's good enough.
266580	268960	You know, I've got a screen, I've got everything looking in there.
269120	272140	But here's the thing, it looked okay.
272420	275800	And I got the reader to work and, you know, read data off of it.
276000	278560	It's enough to say, we got the basics, right?
278840	283520	And, you know, when I say it worked, I mean, you could whack a card on there, you'd get the data off of it.
284180	287800	And, yeah, as I said, any% to the no-fly list.
287800	290680	If you try and take this on a plane, do not do that.
291840	293280	But, yeah, it works.
293860	296300	And then, you know, do a little bit of 3D printing.
296300	297800	We get a nice little thing.
297960	304740	And it makes it less likely that you're going to get on a no-fly list because, you know, it has a nice little fitting thing on there.
304740	305720	We'll be fine.
306680	309400	This is where we get to the part that I suck at.
309480	310200	PCB.
311620	314160	Now, JBO PCB and EasyADA.
314340	316360	Great integration.
316360	323420	You can whack them together, send it off to the magical land of China, get it shipped on the longboat back for 45 days, and bam.
323420	325880	You now have a PCB in your hand.
326260	329040	Plugged in, worked, used an LDO.
329040	332080	This will come back later as a fun little surprise for me.
332160	333620	And it worked.
334340	336440	Fit in a little electronic case.
336500	338780	So, you know, it looks better.
338780	340180	And this is where I remembered.
340180	341760	An LDO does something fun.
341760	347700	It takes a high voltage, makes it into a low voltage by converting the energy to thermal energy.
347700	351140	Also known as, if you touch it, it is hot.
351640	356240	And you will burn yourself very quickly unless you have a good ground plane.
356300	358560	I did not have a good ground plane.
361410	364090	So, we get to the second PCB revision.
364090	366010	Slightly less bad.
366010	370210	I started using squeeze terminals because I thought, eh, it looks better.
370210	371630	Add a couple more components.
372130	373170	And it kind of worked.
373170	374490	It looked a little bit better.
374970	378810	And now this is the part where I fucked up and called it alpha instead of version 3.
379130	381290	Because I fucked my own naming schema.
382010	387950	But switching it around, added screw terminals, added multiplexers so I can actually control the lights and the speakers.
387950	389230	You know, you want to be cool.
389230	390050	You want to have the lights.
390050	391490	You want to have the fancy hacking.
392850	394910	And, you know, it was good enough.
394910	396330	It was fine.
396730	399150	But, you know, so many fucking issues as well.
399310	402450	This thing caused me a fucking nightmare of debugging and issues.
402450	404630	And , oh, you do not want to get into it.
404850	410410	But it had a lot of small quirks and I was like, you know, this sounds like a problem for that guy I do not like.
410410	411430	Future me.
412310	413650	So he can deal with it later.
413650	415670	So I went to the fun part of 3D printing.
416550	431610	So, instead of having to go down to a hobby shop, purchase like a box and everything, and do all that, I decided 3D print it, make it easy, assemblable, and make it so that you can send this to some manufacturer, get it printed for yourself, and it is done.
431950	435670	And, you know, modeling it yourself you can do a few interesting things.
435770	443750	Made it all FDM printable so you do not have to use some SLA printer because breathing in resin is not fun.
444530	450030	And threaded inserts make it a little bit better than trying to screw into plastic, which is not fun.
450030	454730	And pre-slicing the holes because I did not want to have to drill holes into plastic.
456510	459170	And, you know, we got a couple of different revisions.
459490	465270	So you can whack this on any type of reader that you have got because it will fit all these different generations.
465870	469350	As a fun note, I have named them all different things.
469350	471310	Good luck figuring out which one is which.
471410	474590	All I will say is one of them is called Long Boy for a reason.
477330	480690	Now, as a little fun aside, I am just going to add this.
480890	482190	Entirely forgot about it.
482190	487590	There is a mild slant on here to make the reading angle on the screen slightly better.
488370	491270	It is annoying as hell for printing.
491330	495870	And it caused me so many issues because I had to add an individual raft to the bottom.
495870	500050	And added like an hour and a half of print time to every single print.
500050	506290	But it looks slightly better so all of you can suffer with me to have that mild aesthetic.
507750	512110	Anyway, now we get to the fun part where I started actually doing PCB properly.
512170	514610	And, you know, we got a four layer PCB.
514670	519370	That makes all of my vias and everything else way easier to map through.
519370	523050	I do not have to worry about horrible trace routing.
523090	524590	Four layers is simple.
525290	527250	Add some nice silk screens.
527250	533310	I had enough of the spring terminals because I kept having to squeeze a screwdriver in there to get something out.
533310	535050	And then it would stab me in the hand.
535730	539630	And after about 20 of those, I went, screw it, we are just using screw terminals.
539630	545530	Because if I am dumb enough to do this, someone else who picks one up is going to do the exact same thing way more times.
547790	550190	And one fun part about this revision.
550190	551590	This is a cursed revision.
551590	554330	Many people do not have this revision for a reason.
554330	558750	I am pretty sure the only person I actually gave this revision specifically to was you, Iceman.
558750	559970	Get scammed.
560070	564490	There is an LDO that I used on it, which worked fine.
564490	570050	But I put a diode in there that was not calculated for in the voltage drop.
570210	574070	So instead of a 5 volt rail, you get a 4.3.
574650	575930	Enjoy that.
576470	578950	Your screen will be slightly dimmer.
581250	584790	Outside of that, we have the 3.1 and 3.2.
584790	591470	The only difference between these two is I added a screw terminal instead of having to hand solder the power in.
591470	594290	And just some very tiny things that no one will ever notice.
594870	596610	And this is the now public revision.
596610	598030	You can go download this.
598030	599050	It works great.
599690	603410	And if you want to go poke at one, I will be down there later on.
603410	604390	Come have a play.
605570	608370	Now, we are going to get to fun parts of firmware.
608370	609990	Firmware sucks.
611150	613090	ChatGPT, thank you.
613370	614350	Same with Copilot.
614350	616310	You have saved me so many hours.
616670	621730	And because I am lazy, I quite literally raw literal-ed a HTML page into this.
621730	625850	Because I did not want to have to figure out how to dynamically do that.
626190	630590	This is heavily based on TeamWorx's work on Tusk.
630590	635030	Just because their implementation of Weagand was better than a lot of others.
635030	636410	And their card decoding.
636410	639750	And we had a couple of cool features in there.
640550	643810	You have the ability to just read the card data instead of on a screen.
643810	645730	On a nice little user interface.
645970	649890	You can go onto a web access point, click on it, copy data.
649890	650770	All of that.
651750	654590	Now, as I said, a big part of this is...
654590	658130	I made this not just for people who want to do training.
658130	660670	But people who want to do CTFs and everything.
661050	665790	So there is a built-in CTF mode where you can add authorized cards, unauthorized cards.
665790	667990	And you can lock people out.
668290	671730	And you can just have this board open and just click that card data.
671730	672930	Hide it all away.
673090	674350	So that people can see...
674350	677310	Oh, I can see on the event logs I am not accessing it.
677310	678850	But it is reading this card data.
678850	679750	Or maybe you do not want to.
679750	682250	Maybe you want your CTF participants to suffer.
682470	683250	Either or.
683250	684070	Up to you.
684070	685130	I am not to judge.
685550	687850	And, you know, you get some standard settings.
687850	691770	You can modify CTF mode and demo mode on the fly from the web UI.
691770	701330	You can make it so the Wi-Fi access point is hidden if you do not want people to try and join your Wi-Fi access point and steal all of the card data running on it.
701870	705090	And, yeah, you can make the display go away.
705830	706970	But here is the question.
706970	713010	Did I actually, after all of this, stick to my goal of making this cheap, accessible, and open source?
713010	714730	The answer is yes.
714730	721510	The entire cost of this version of the DoorSim, which has no reader and a thing.
721510	723310	It has got everything else you need, though.
723310	725150	It is $30 USD.
727810	729590	I am not selling it.
731610	737630	Enjoy trying to get that made by JLBPCB and ordering all of the components yourself off AliExpress.
737750	739410	But it is so easy to make.
739410	742970	It is a fun little project if you want to just do soldering as well.
744010	750150	Now, as a little extra aside, there is future project parts to finish here.
750650	752010	Now, there is a sneaky little trick.
752010	753890	I left GPIO ports on there.
754070	756430	You can add a relay board directly to this.
756430	758450	I just have not added it in the software yet.
759610	764630	Future hardware revisions will probably have RS-485 and OSDP for communication protocols.
764790	766970	So you can do different forms of readers.
767230	770450	You can maybe add a whole string of readers if you want.
771130	776670	PAX level rate limiting is in my dev branch of it that I have not pushed yet.
776830	778030	But it works.
778290	781850	And the UI needs to be changed from looking like the 1990s.
782890	785070	At some point I will get around to that.
785670	788750	Now, I am speed running through this talk at this stage.
788990	791150	So I am just going to do the thanks real quick.
791510	793330	Fish, fuck yeah.
793490	795450	Drunk Rhino for printing all of this stuff.
795450	799570	Iceman, because you had to deal with my beta testing and random stuff.
799570	801890	And Topi for giving me design ideas.
802310	804190	I am going to take any questions people want.
804190	806010	Feel free to ask.
806130	811330	Otherwise, I am going to be floating around with all of the DAW sims just for people to come play around with.
811610	813630	As a note, it is open source.
813710	815930	100% unlicensed.
815990	818030	You can do whatever the hell you want with it.
818230	822310	If you want to slap your logo on it and say it is mine now, you can do that.
822310	823450	It is unlicensed.
833540	834560	Cool, cool.
