start	end	text
12640	19240	My name is Ask, Ask at the Info. I answer questions here at DEF CON. I've been Goonan
19240	25100	for four years, and I've been a maker in our community for eight. And this year, for one
25100	30900	of the events that I was hosting with my friends, RentAnAssassin.com, we were throwing a client
30900	37200	acquisition party, and I was commissioned to create some drink robots. One of my friends,
37400	43400	a fellow Goon, not going to dox him, asked me if I could use peristaltic pumps and put
43400	46980	together a bar robot. So I was like, I can do that. That sounds like it would be a fun
46980	53560	challenge for me. And I had recently been practicing using OpenSCAD, which is a programming
53560	60100	language for 3D modeling, to create 3D parts. So I wanted to challenge myself to create
60100	66080	something new that would solve the problem using parts off the shelf. Because circuit
66080	70860	board design is something I'm getting into right now. I'm a novice at it. But being able
70860	75260	to hook together all sorts of random kits of things, I am really good at just building
75260	80720	one-off, two-off projects for people. So when my friend challenged me to do this, I said,
80720	84420	yeah, I will totally get that taken care of for you. And so I actually started with figuring
84420	88420	out what the circuit was going to be, what the main circuit chip was going to be. And
88420	95440	recently we had this device come out that all of us are using, called the Pi Pico. And
95440	100100	it's a $4 chip from Raspberry Pi, and it allows you to load a programming language called
100100	107000	CircuitPython on it. And I had recently been using CircuitPython for my friend DBSAU's
107000	111180	PicoDucky, and I even designed a 3D printed case for that and everything. So I had just
111180	114560	gotten a lot of experience on this platform. And I said, well, I've gotten a lot of experience
114560	120360	with object-oriented Python at work recently. And I have gotten a lot of work with 3D printing
120360	126160	recently. Let's put this to work. So I ordered a bunch of parts. I got a bunch of relays.
126160	132140	We got the power rails and everything. And I actually designed a circuit board that I
132140	136680	3D printed. So we went through multiple iterations of this circuit board, where we could actually
137280	142200	put all of these maker parts on there. And we ended up with 12 relays, six on each side,
142200	148820	with PyPico in the middle, 12-volt power source, and a 5-volt and a 3-volt buck converter
148820	155000	to allow it to power the relays and to power the Pico. Because the Pico actually will run
155000	158340	off a 5-volt, and then the relays that we got were 3-volt, and then they were switching
158460	163100	a 12-volt rail. Which actually ended up being a cog in the works that went away as soon
163100	168080	as I stopped touching the robots. So I built up the entire base platform where I could
168080	171840	play with the relays on a button board. So I would put buttons out there and play with
171840	174980	the relays, and then I was trying to figure out how do I want to kit this together. And
174980	180320	originally we wanted to put this in a custom 3D printed housing. So I actually did the
180320	185460	full 3D modeling for a self-contained housing that this all would be mounted into. But in
185460	189120	the end, that ended up being too long of a print, and the printers that we had just were
189120	194260	not up to par, and I don't want to go buy more tools. My lab already has enough tools
194260	198240	in it. So we went with what we had, and I looked around, and I saw an old milk crate
198240	203160	that I had had from when I previously had worked in maintenance at my alma mater. So
203160	206680	I just went and I grabbed the milk crate, and I was like, how does this all fit in here?
206680	211260	And I designed a board for the perisaltic pumps to all mount into. I designed a face
211260	216080	plate for the screen to mount into. I designed a face plate for the buttons to mount into.
216320	220940	And then all that wiring and everything is open in there with a splash guard for the
220940	226140	pour nozzles. And actually that pour nozzle really showed how far I've come with OpenSCAD
226140	229720	because I was challenged by my friend to get that done right before DEF CON, and I
229720	233420	got that done in about an hour and a half. I was able to write all the programming in
233420	236800	about half an hour and get a prototype printed, because I've actually learned how to print
236800	240380	prototypes really fast, too, by taking out the parts you don't need and only printing
240380	244840	the parts you really are caring about measuring. And I was able to successfully last minute
244840	249500	get the whole nozzle system going. So in the end, we ended up with a pair of
249500	254980	senior Drinkenstein robots or Dr. McGillicuddy's magic drink elixir mixer running on Circuit
254980	259720	Python serving eight different drinks from nine different liquid sources. And back to
259720	263720	that problem that we had, we actually have a problem with EMI, electromagnetic interference,
263720	267960	where our 12-volt lines, when switched on, would interfere on the three-volt pull-up
267960	272880	or pull-down buttons and cause the whole thing to lock up completely. We were able to partially
272880	277240	solve that, and what we actually found was as soon as I left tending the robots and left
277240	281620	them to Bonwit to manage the robots, they didn't break at all. They didn't reboot at
281620	285620	all. So we actually think the robots gained sentience and hate their creator.
285620	293800	It can only be attributable to human error. This conversation can serve no purpose anymore. Goodbye.
