5. #DevoxxFR
Cartes ARM ...
Odroid C2
Quad Core 64-bit @1.5 GHz
2 Go RAM
Gigabit Ethernet
Raspberry Pi 3
Quad Core 64-bit @1.2 GHz
1 Go RAM
10/100 Mbps Ethernet + WIFI + BT
5
6. #DevoxxFR
… pour tous les goûts
NanoPi Neo2
Quad Core (H5) 64-bit
512 Mo RAM
Gigabit Ethernet
Orange Pi Zero Plus 2
Quad Core (H5) 64-bit
512 Mo RAM
WIFI + BT 4.2
6
12. #DevoxxFR
Faut-il une résistance ?
●
A quoi ça sert ?
➔
Limiter le courant (intensité)
➔
Protection de la led et de la sortie
➔
Comment choisir ?
U = R.I
Exemple pour RPI:
Led = 1.7v
Tension GPIO = 3.3v
R = 220 Ω → I = 7mA
12
16. #DevoxxFR
SD Read Only sur RPi
●
Configuration variable selon la distribution
➔
Exemple avec une distribution Raspbian
●
Stratégie
➔
Utiliser un système de fichier mémoire (tmpfs)
➔
Limiter les fichiers à modifier
16
17. #DevoxxFR
Suppression du Swap
sudo dphys-swapfile swapoff
sudo dphys-swapfile uninstall
sudo update-rc.d dphys-swapfile remove
pi@raspberrypi:~$ free
total used free shared buffers cached
Mem: 882772 85844 796928 5916 11832 41132
-/+ buffers/cache: 32880 849892
Swap: 0 0 0
Vérification :
Suppression permanente du fichier de swap
17
24. #DevoxxFR
PlatformIO → Arduino IDE Killer ?
Intégration possible dans
votre IDE !
“This is cross platform
code builder and
library manager”
http://platformio.org/
PlatformIO Core → CLI
PlatformIO IDE → Atom
24
25. #DevoxxFR
Firmware Arduino
→ Protocole “standard”
→ Dispo sur Arduino / Particle
→ Librairies clientes nombreuses
Java / JavaScript / go / …
→ Fwk JS comme Johnny-five
25
28. #DevoxxFR
Et Java ?
●
JDK pour Linux ARM
➔
Build OpenJDK Azul : Zulu Embedded
➔
Build JavaSE Oracle
●
Device I/O
➔
Projet OpenJDK pour le hardware (UART, I2C, GPIO, SPI)
➔
Build Azul dispo : Zulu Device API Kit (DAK)
28
29. #DevoxxFR
Alternatives en Java
●
PI4J
➔
Basé sur WiringPi
➔
Dispo pour plusieurs plateformes (RPI, Odroid, ...)
●
JNI / JNA
➔
Interfacer une librairie native avec Java
●
Driver Linux
➔
Module Linux en C
➔
Expose une API sous forme de fichier virtuel
29
41. #DevoxxFR
Quelques liens 1/2
➔
Cartes Odroid : http://www.hardkernel.com
➔
Carte NanoPi : http://www.friendlyarm.com
➔
OrangePi Zero Plus 2 :
https://fr.aliexpress.com/store/product/Orange-Pi-Zero-Plus-2-H5-Quad-core-Bluetooth-mini-PC-Beyond-Raspberry-Pi-2-Wholesale/1553371_328012
49806.html
➔
Infos multiples sur Linux dans l’embarqué : http://elinux.org
➔
Site Espressif officiel : https://espressif.com/
➔
Site sur les ESP32 : http://esp32.net
➔
Firmata : https://github.com/firmata/protocol
➔
NodeMCU : http://nodemcu.com &
https://github.com/nodemcu/nodemcu-firmware &
https://nodemcu.readthedocs.io/
➔
Site de news : https://hackaday.io
➔
Tableaux de résistances :
http://www.positron-libre.com/electronique/tableaux/tableau-resistance-led.php
41
42. #DevoxxFR
➔
IDE Arduino : https://www.arduino.cc/en/main/software
➔
Integration ESP8266 dans IDE arduino : https://github.com/esp8266/Arduino
➔
PlatformIO : http://platformio.org/
➔
Zulu Embedded : http://www.azul.com/downloads/zulu-embedded/
➔
Zulu Device API Kit (Device I/O) :
http://www.azul.com/products/zulu-embedded/zdak-downloads/
➔
The Linux Kernel Module Progamming Guide :
https://github.com/bashrc/LKMPG
Quelques liens 2/2
42