JavaScript on Microcontrollers

A presentation at YGLF Lithuania in May 2019 in Vilnius, Lithuania by Niels Leenheer

Slide 1

Slide 1

JavaScript on Microcontrollers

Slide 2

Slide 2

I am Niels Leenheer

Slide 3

Slide 3

Slide 4

Slide 4

Slide 5

Slide 5

I tweet at @html5test

Slide 6

Slide 6

I suck at drawing

Slide 7

Slide 7

I the web

Slide 8

Slide 8

I electronics

Slide 9

Slide 9

Slide 10

Slide 10

Slide 11

Slide 11

Why should I care about this?

Slide 12

Slide 12

electronics + web = IoT

Slide 13

Slide 13

IoT can be very useful.

Slide 14

Slide 14

IoT can be very interesting.

Slide 15

Slide 15

IoT can be very fun.

Slide 16

Slide 16

Slide 17

Slide 17

JavaScript on Microcontrollers

Slide 18

Slide 18

but

Slide 19

Slide 19

Microcontrollers are slow.

Slide 20

Slide 20

sloooooooooooooo

Slide 21

Slide 21

Raspberry Pi Zero W 1 GHz CPU and 512MB RAM

Slide 22

Slide 22

micro:bit 16 MHz CPU and 16KB RAM

Slide 23

Slide 23

micro:bit 16 MHz CPU and 16KiB RAM

Slide 24

Slide 24

60 x faster

Slide 25

Slide 25

30.000 x memory

Slide 26

Slide 26

Slide 27

Slide 27

Slide 28

Slide 28

“ JavaScript on microcontrollers? Are you crazy? Me – two years ago

Slide 29

Slide 29

JavaScript is easy.

Slide 30

Slide 30

Slide 31

Slide 31

Slide 32

Slide 32

Microcontrollers are very power efficient.

Slide 33

Slide 33

Microcontrollers only need to be fast enough to solve the probem.

Slide 34

Slide 34

Microcontrollers do not have an operating system.

Slide 35

Slide 35

Microcontrollers do not need 45 seconds to boot.

Slide 36

Slide 36

how

Slide 37

Slide 37

Espruino

Slide 38

Slide 38

Espruino is a JavaScript interpreter for microcontrollers.

Slide 39

Slide 39

Espressif ESP8266 & ESP32

Slide 40

Slide 40

NodeMCU

Slide 41

Slide 41

Nordic Semiconductor nRF52

Slide 42

Slide 42

Puck.js

Slide 43

Slide 43

Pixl.js

Slide 44

Slide 44

micro:bit

Slide 45

Slide 45

Thingy:52

Slide 46

Slide 46

demo

Slide 47

Slide 47

Experimental technology

Slide 48

Slide 48

#1 Connected lightbulb

Slide 49

Slide 49

Slide 50

Slide 50

Slide 51

Slide 51

Slide 52

Slide 52

#2 Pixelart display

Slide 53

Slide 53

Slide 54

Slide 54

Slide 55

Slide 55

Slide 56

Slide 56

Slide 57

Slide 57

#3 Remote controlled car

Slide 58

Slide 58

Slide 59

Slide 59

Slide 60

Slide 60

Slide 61

Slide 61

Slide 62

Slide 62