kds - how to put a face on a server
TRANSCRIPT
![Page 1: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/1.jpg)
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](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/2.jpg)
![Page 3: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/3.jpg)
![Page 4: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/4.jpg)
source inputprovider router output
provider receiver
The pipeline of the system
![Page 5: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/5.jpg)
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](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/6.jpg)
source inputprovider router output
provider receiver
![Page 7: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/7.jpg)
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](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/8.jpg)
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](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/9.jpg)
source inputprovider router output
provider receiver
Here we create an endpoint
![Page 10: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/10.jpg)
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](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/11.jpg)
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](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/12.jpg)
source inputprovider router output
provider receiver
input provider
![Page 13: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/13.jpg)
source inputprovider router output
provider receiver
input provider
router mapping
![Page 14: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/14.jpg)
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](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/15.jpg)
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](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/16.jpg)
The receiver: Split-flap
![Page 17: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/17.jpg)
vs.
+
+
Programming of electronics
= Firmware
= Connectivity
= High-level drivers
Hardware and software
![Page 18: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/18.jpg)
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](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/19.jpg)
Loading
Libraries
Wait for Arduino
Set up hardware
![Page 20: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/20.jpg)
Web API
http://<host>:3000/api/position/6
v1: HTTP
v2: Sockets to
![Page 21: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/21.jpg)
Stepper motor
200 to 3200 steps per rotation
Electronics are functions
![Page 22: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/22.jpg)
Power
Arduino Nano
Prototyping boardStepper driver
Raspberry Pi Electronics
LCD Display
Laser sensor
![Page 23: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/23.jpg)
Prototyping
![Page 24: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/24.jpg)
Soldering
![Page 25: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/25.jpg)
v0.1 - Spaghetti
Avoid overlapping
![Page 26: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/26.jpg)
v0.2 - Modularization
![Page 27: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/27.jpg)
Assembly
![Page 28: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/28.jpg)
Standard parts
Custom partsHardware design
![Page 29: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/29.jpg)
Traditional modelling
![Page 30: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/30.jpg)
http://www.designcoding.net/parametric-design-of-a-cellular-canopy/
Parametric modelling
![Page 31: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/31.jpg)
The Story of the “Flap Mount”
![Page 32: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/32.jpg)
Parametric modelling - 2D
![Page 33: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/33.jpg)
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](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/34.jpg)
Center points
Dimensions
Plans
![Page 35: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/35.jpg)
Drilling center points
Hardware
![Page 36: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/36.jpg)
- Turning diameter- Facing edge
![Page 37: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/37.jpg)
Drilling shaft hole
![Page 38: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/38.jpg)
Parting
![Page 39: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/39.jpg)
Finished part
![Page 40: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/40.jpg)
Assembly
![Page 41: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/41.jpg)
Design Finished
![Page 42: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/42.jpg)
![Page 43: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/43.jpg)
![Page 44: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/44.jpg)
![Page 45: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/45.jpg)
![Page 46: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/46.jpg)
![Page 47: KDS - How to put a face on a server](https://reader034.vdocuments.mx/reader034/viewer/2022051520/58eeae2f1a28abc9098b45f3/html5/thumbnails/47.jpg)
Peter Tollnes [email protected] Reaktor Oslo
Håvard Fjæ[email protected] Reaktor Oslo
Knowit Developer Summit 2015