Slide 1

Slide 1 text

Building a label printer using Python, Arduino, duct tape and paperclips. And: ● Hot glue ● Cable ties ● A washing peg ● A ruler ● A hobby servo ● Skateboard bearings ● Polymorph (the plastic, not the company) ● Sandpaper ● A pencil ● A Coke can ● A series of tubes ● Plus various cannibalised bits from my garage

Slide 2

Slide 2 text

Hackathon ● Half a weekend ● Build something useful ● Or not ● One step at a time ● TLAR design methodology I had an idea….

Slide 3

Slide 3 text

The physical build Masking tape roll on a threaded rod, turning slowly. One rotation moves it 1mm sideways (spiral). Detect a starting point (Coke can, paperclips). Raise/lower a pen to create pixels.

Slide 4

Slide 4 text

Software Laptop running a Python script: ● Convert text to image ● Convert image to list of lists of colour values ● Send timed up/down commands to Arduino Arduino is just a dumb controller: ● Drive the motor ● Send a start position trigger to the laptop ● Receive up/down and move the pen

Slide 5

Slide 5 text

Python: Getting the image

Slide 6

Slide 6 text

Python: Control

Slide 7

Slide 7 text

Results: ● 11 hours zero to Hello World ● 48 lines of Python code ● 68 lines of Arduino code ● 0 test coverage ● 40 labels printed to date ● 8 minutes per label ● 1 lightning talk Definitely worth it, would do again.

Slide 8

Slide 8 text

http:/ /johan.beyers.co.za Talk to me about: ● Python ● Takealot (We’re hiring!) ● Maker evenings (on hold) Or some other projects: ● 3D printer ● Dog speedometer ● Simple drawing machine ● Perpetual Pendulum Wave ● Electric bicycle

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content