Diferència entre revisions de la pàgina «Introducció a Internet de les Coses - juny 2018»
(→HMI de baix cost. Pantalla tàctil Nextion) |
(→Pantalla Nextion connectada a la Raspberry Pi) |
||
Línia 201: | Línia 201: | ||
== Pantalla Nextion connectada a la Raspberry Pi == | == Pantalla Nextion connectada a la Raspberry Pi == | ||
[https://www.itead.cc/blog/how-to-use-nextion-to-work-with-raspberry-pi How to use Nextion to work with Raspberry Pi?] | [https://www.itead.cc/blog/how-to-use-nextion-to-work-with-raspberry-pi How to use Nextion to work with Raspberry Pi?] | ||
+ | |||
+ | [https://www.itead.cc/blog/raspberry-pi-3-add-on-supplementary-document Raspberry Pi 3 add-on supplementary document v1.0] |
Revisió del 11:03, 11 juny 2018
En construcció / Under construction
Programa del curset d'introducció a Internet de les Coses - juny 2018
Contingut
- 1 Instal·lació de tot el programari
- 2 Presa de contacte amb el maquinari
- 3 Perifèrics sense bus de comunicació
- 3.1 Convertidors bidireccionals (3,3V <-> 5V). Font d'alimentació de 5V a 3,3V
- 3.2 Botons. Concepte de pull-up
- 3.3 Microrruptors
- 3.4 Relés Reed
- 3.5 Relés de bobina
- 3.6 Detecció per infrarojos
- 3.7 Potenciòmetres
- 3.8 Encoders
- 3.9 Sensors tàctils
- 3.10 Pont en H. Motors
- 3.11 Servomotors
- 3.12 Sensor ultrasònic
- 4 Perifèrics amb bus de comunicació
- 5 Comunicacions industrials amb port sèrie i ModBus RTU. Introducció a Indusoft
- 6 Comunicacions amb xarxa Ethernet. Introducció al NodeRED
- 7 Alternatives al C de l'Arduino IDE
- 8 Visualització al núvol
- 9 MQTT
- 10 LoRaWAN
- 11 Comunicació remota amb Raspberry Pi
- 12 HMI de baix cost. Pantalla tàctil Nextion
Instal·lació de tot el programari
Controladors
CH340
Guia d'instal·lació en pdf (document de makeit.cat)
Arxiu comprimit del controlador CH341SER.zip
FT232
IDE d'Arduino 1.8.5
Descàrrega de l'Arduino IDE per a instal·lar-ho a l'escriptori
Prova de l'Arduino Nano
Afegint targeta Arduino MKR WAN 1300
Afegint targeta ESP8266
Prova witty (NodeMCU1.0)
Afegint targeta ESP32
Prova TTGO (DOIT ESP32 DEVKIT V1)
putty / gtkterm
Filezilla / Nautilus
sftp://
Nextion Editor
Indusoft
Gestió de les llicències d'ús acadèmic
Presa de contacte amb el maquinari
Placa Arduino Nano (vermella. MakeIt)
Placa witty ESP8266
Placa IoT (blanca. ttn.cat)
Placa ESP32 (TTGO)
Raspberry Pi
Test amb el NodeRED
An unofficial Python port of Gordon's WiringPi library
Perifèrics sense bus de comunicació
Convertidors bidireccionals (3,3V <-> 5V). Font d'alimentació de 5V a 3,3V
Botons. Concepte de pull-up
Microrruptors
Relés Reed
Relés de bobina
Detecció per infrarojos
Detectors de seguidors de línies
PIR
Potenciòmetres
Encoders
Sensors tàctils
Pont en H. Motors
Servomotors
Sensor ultrasònic
Perifèrics amb bus de comunicació
One Wire Interface
DS28B20
Exemple en micropython de comunicació MQTT amb un ESP32 i el sensor DS18B20 (One Wire Interface)
SPI
Sensor de temperatura, humitat i altímetre. BME280
Ethernet. ENC28J60
RFID
I2C
Expansor d'entrades/sortides PCF8574
Sensor de temperatura, humitat i altímetre. BME280
Pantalla OLED
U8g2. Monochrome graphics library for embedded devices
UART
Software Serial
HMISerial
Bluetooth
Comunicacions industrials amb port sèrie i ModBus RTU. Introducció a Indusoft
Ús d'Indusoft
Comunicacions amb xarxa Ethernet. Introducció al NodeRED
Ús del NodeRED
Comunicació UDP
Comunicació ModBus TCP
Serveis extra del NodeRED
Instal·lació de nous nodes
Correu electrònic
Open Weather
Panell de control (dashboard)
OPC-UA
Instal·lació a la Raspberry Pi i control des d'Indusoft
Alternatives al C de l'Arduino IDE
LUA
MicroPython
Get on the Good Foot with MicroPython on the ESP32
Exemple en micropython de comunicació MQTT amb un ESP32 i el sensor BME280
Mongoose OS
Visualització al núvol
Plotly
ThinkSpeak
Grafana?
MQTT
Concepte
Mosquitto local a l'ordinador
Mosquitto local a la Raspberry Pi
Brokers remots
Ús al NodeRED
Ús a Indusoft
Ús a Android (MQTTDash)
Exemples
Exemple en micropython de comunicació MQTT amb un ESP32 i el sensor BME280 (I2C)
Exemple en micropython de comunicació MQTT amb un ESP32 i el sensor DS18B20 (One Wire Interface)
LoRaWAN
Introducció. Bones pràctiques
LoRa vs LoRaWAN Uplink Downlink
The Things Network
Termòstat