kds - how to put a face on a server

47
How to put a face on your server Knowit Developer Summit 2015 Peter Tollnes Flem peter.tollnes.flem@knowit. no Knowit Reaktor Oslo Håvard Fjær havard.fjaer@knowit .no Knowit Reaktor Oslo

Upload: peter-tollnes-flem

Post on 13-Apr-2017

94 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: KDS - How to put a face on a server

How to put a face on your server

Knowit Developer Summit 2015

Peter Tollnes [email protected] Reaktor Oslo

Håvard Fjæ[email protected] Reaktor Oslo

Page 2: KDS - How to put a face on a server
Page 3: KDS - How to put a face on a server
Page 4: KDS - How to put a face on a server

source inputprovider router output

provider receiver

The pipeline of the system

Page 5: KDS - How to put a face on a server

source inputprovider router output

provider receiver

As long as you write an input provider that supports it, a source can be whatever you need.

Page 6: KDS - How to put a face on a server

source inputprovider router output

provider receiver

Page 7: KDS - How to put a face on a server

source inputprovider router output

provider receiver

● TeamCity input provider● Git input provider● “Your own system” input provider● ...

Page 8: KDS - How to put a face on a server

source inputprovider router output

provider receiver

MESSAGE FROM SOURCE TO INPUT PROVIDER

● TeamCity input provider● Git input provider● “Your own system” input provider● ...

Page 9: KDS - How to put a face on a server

source inputprovider router output

provider receiver

Here we create an endpoint

Page 10: KDS - How to put a face on a server

source inputprovider router output

provider receiver

Create an endpointPut the data received into the internal data format, and pass it to the router

Page 11: KDS - How to put a face on a server

source inputprovider router output

provider receiver

Create an endpointPut the data received into the internal data format, and pass it to the routerFor now I just respond with 200 OK

Page 12: KDS - How to put a face on a server

source inputprovider router output

provider receiver

input provider

Page 13: KDS - How to put a face on a server

source inputprovider router output

provider receiver

input provider

router mapping

Page 14: KDS - How to put a face on a server

source inputprovider router output

provider receiver

input provider

router mapping

The “pi” output provider

{ title: ‘’, status: ‘’, message: ‘’, dato: ‘’, additional-data: ‘’ }

{ title: ‘’, status: ‘’, message: ‘’, dato: ‘’, additional-data: ‘’ }

Page 15: KDS - How to put a face on a server

source inputprovider router output

provider receiver

The “pi” output provider The receiver

The output provider notifies the receiver

Page 16: KDS - How to put a face on a server

The receiver: Split-flap

Page 17: KDS - How to put a face on a server

vs.

+

+

Programming of electronics

= Firmware

= Connectivity

= High-level drivers

Hardware and software

Page 18: KDS - How to put a face on a server

USB Serial port - Arduino HW → Raspberry Pi

Device drivers - Arduino SW→ node.js

Web API - Raspberry Pi → Internet

packages.json

Page 19: KDS - How to put a face on a server

Loading

Libraries

Wait for Arduino

Set up hardware

Page 20: KDS - How to put a face on a server

Web API

http://<host>:3000/api/position/6

v1: HTTP

v2: Sockets to

Page 21: KDS - How to put a face on a server

Stepper motor

200 to 3200 steps per rotation

Electronics are functions

Page 22: KDS - How to put a face on a server

Power

Arduino Nano

Prototyping boardStepper driver

Raspberry Pi Electronics

LCD Display

Laser sensor

Page 23: KDS - How to put a face on a server

Prototyping

Page 24: KDS - How to put a face on a server

Soldering

Page 25: KDS - How to put a face on a server

v0.1 - Spaghetti

Avoid overlapping

Page 26: KDS - How to put a face on a server

v0.2 - Modularization

Page 27: KDS - How to put a face on a server

Assembly

Page 28: KDS - How to put a face on a server

Standard parts

Custom partsHardware design

Page 29: KDS - How to put a face on a server

Traditional modelling

Page 30: KDS - How to put a face on a server

http://www.designcoding.net/parametric-design-of-a-cellular-canopy/

Parametric modelling

Page 31: KDS - How to put a face on a server

The Story of the “Flap Mount”

Page 32: KDS - How to put a face on a server

Parametric modelling - 2D

Page 33: KDS - How to put a face on a server

Parametric 2D drawing

Extrude into 3D

2D drawing on top of 3D

Cut in 3D using 2D drawing

Parametric modelling - 3D

Page 34: KDS - How to put a face on a server

Center points

Dimensions

Plans

Page 35: KDS - How to put a face on a server

Drilling center points

Hardware

Page 36: KDS - How to put a face on a server

- Turning diameter- Facing edge

Page 37: KDS - How to put a face on a server

Drilling shaft hole

Page 38: KDS - How to put a face on a server

Parting

Page 39: KDS - How to put a face on a server

Finished part

Page 40: KDS - How to put a face on a server

Assembly

Page 41: KDS - How to put a face on a server

Design Finished

Page 42: KDS - How to put a face on a server
Page 43: KDS - How to put a face on a server
Page 44: KDS - How to put a face on a server
Page 45: KDS - How to put a face on a server
Page 46: KDS - How to put a face on a server
Page 47: KDS - How to put a face on a server

Peter Tollnes [email protected] Reaktor Oslo

Håvard Fjæ[email protected] Reaktor Oslo

Knowit Developer Summit 2015