<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
		<id>https://wiki.binefa.cat/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jordi</id>
		<title>Wiki d'en Jordi Binefa - Contribucions de l’usuari [ca]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.binefa.cat/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jordi"/>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php/Especial:Contribucions/Jordi"/>
		<updated>2026-04-24T02:07:20Z</updated>
		<subtitle>Contribucions de l’usuari</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1230</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1230"/>
				<updated>2024-07-10T09:52:12Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Alguns trucs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.com/documentation/computers/raspberry-pi-5.html Raspberry Pi 5]&lt;br /&gt;
&lt;br /&gt;
[https://www.abelectronics.co.uk/kb/article/31/set-a-static-ip-address-on-raspberry-pi-os-bookworm Set a static IP Address on Raspberry Pi OS Bookworm] (Based on Debian 12)&lt;br /&gt;
&lt;br /&gt;
[https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/ Run a Program On Your Raspberry Pi At Startup]&lt;br /&gt;
&lt;br /&gt;
[https://gpiozero.readthedocs.io/en/stable/migrating_from_rpigpio.html Migrating from RPi.GPIO to GPIO Zero] (RPi.GPIO doesn't work on Raspberry Pi 5. GPIO Zero runs on any Raspberry Pi version, at least up to Raspberry Pi 5)&lt;br /&gt;
&lt;br /&gt;
[https://www.tomshardware.com/how-to/control-raspberry-pi-5-gpio-with-python-3 How to Control the Raspberry Pi 5 GPIO with Python 3]&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
 xzcat 2023-02-21-raspios-bullseye-armhf-lite.img.xz | sudo dd of=/dev/sdb bs=64k oflag=dsync status=progress&lt;br /&gt;
&lt;br /&gt;
[https://wireguard.how/client/raspberry-pi-os/ WireGuard Client: Raspberry Pi OS] (VPN)&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[https://eepower.com/resistor-guide/resistor-standards-and-codes/resistor-sizes-and-packages/# Resistor Size and Packages] (Power by size)&lt;br /&gt;
&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
[https://unixcop.com/install-latest-openssl-version-debian-11/ How to Install the latest OpenSSL version on Debian 11] (11 / maig / 2023)&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
Addició d'usuaris (cal tenir instal·lat el paquet '''whois''' per a l'ordre mkpasswd):&lt;br /&gt;
 useradd  tux  -u  1001  -g  users  -d  /home/tux  -m  -s  /bin/bash  -k  /etc/skel  -G adm,sys -p  $(mkpasswd  Clot8Fje@9)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[https://telproce.com/ Empresa de marcat CE]&lt;br /&gt;
&lt;br /&gt;
[https://api.riot-os.org/group__cpu__esp32__esp32.html Propietats dels GPIO de l'ESP32]&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== PureQML ===&lt;br /&gt;
[https://pureqml.com/ Pàgina oficial de PureQML]&lt;br /&gt;
&lt;br /&gt;
==== Posada en marxa del PureQML ====&lt;br /&gt;
* Instal·lació de l'eina '''python-future''':&lt;br /&gt;
 pip3 install future&lt;br /&gt;
&lt;br /&gt;
* Primera aplicació&lt;br /&gt;
 mkdir prjFolder&lt;br /&gt;
 cd prjFolder&lt;br /&gt;
 git clone https://github.com/pureqml/qmlcore.git&lt;br /&gt;
 ./qmlcore/build --boilerplate&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Obriu amb un navegador l'arxiu ''prjFolder/build.web/index.html''&lt;br /&gt;
&lt;br /&gt;
* Modificació de ''prjFolder/src/app.qml'':&lt;br /&gt;
 Text {&lt;br /&gt;
        anchors.fill: context;&lt;br /&gt;
         &lt;br /&gt;
        '''text: 'Primer exemple de pureQML';'''&lt;br /&gt;
        '''color: 'red';'''&lt;br /&gt;
        font.pixelSize: 32;&lt;br /&gt;
        verticalAlignment: Text.AlignVCenter;&lt;br /&gt;
        horizontalAlignment: Text.AlignHCenter;&lt;br /&gt;
 }&lt;br /&gt;
Reconstruïu-ho:&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Torneu a obrir amb un navegador l'arxiu ''prjFolder/build.web/index.html'' per a observar els canvis&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://www.binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
[[Examen de programació de 2n d'SMX. Curs 2021-2022 | Examen de programació de 2n d'SMX-A]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1229</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1229"/>
				<updated>2024-07-10T09:33:16Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Alguns trucs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.com/documentation/computers/raspberry-pi-5.html Raspberry Pi 5]&lt;br /&gt;
&lt;br /&gt;
[https://www.abelectronics.co.uk/kb/article/31/set-a-static-ip-address-on-raspberry-pi-os-bookworm Set a static IP Address on Raspberry Pi OS Bookworm] (Based on Debian 12)&lt;br /&gt;
&lt;br /&gt;
[https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/ Run a Program On Your Raspberry Pi At Startup]&lt;br /&gt;
&lt;br /&gt;
[https://gpiozero.readthedocs.io/en/stable/migrating_from_rpigpio.html Migrating from RPi.GPIO to GPIO Zero] (RPi.GPIO doesn't work on Raspberry Pi 5. GPIO Zero runs on any Raspberry Pi version, at least up to Raspberry Pi 5)&lt;br /&gt;
&lt;br /&gt;
[https://www.tomshardware.com/how-to/control-raspberry-pi-5-gpio-with-python-3 How to Control the Raspberry Pi 5 GPIO with Python 3]&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
 xzcat 2023-02-21-raspios-bullseye-armhf-lite.img.xz | sudo dd of=/dev/sdb bs=64k oflag=dsync status=progress&lt;br /&gt;
&lt;br /&gt;
[https://wireguard.how/client/raspberry-pi-os/ WireGuard Client: Raspberry Pi OS] (VPN)&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[https://eepower.com/resistor-guide/resistor-standards-and-codes/resistor-sizes-and-packages/# Resistor Size and Packages] (Power by size)&lt;br /&gt;
&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
[https://unixcop.com/install-latest-openssl-version-debian-11/ How to Install the latest OpenSSL version on Debian 11] (11 / maig / 2023)&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
Addició d'usuaris:&lt;br /&gt;
 useradd  tux  -u  1001  -g  users  -d  /home/tux  -m  -s  /bin/bash  -k  /etc/skel  -G adm,sys -p  $(mkpasswd  Clot8Fje@9)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[https://telproce.com/ Empresa de marcat CE]&lt;br /&gt;
&lt;br /&gt;
[https://api.riot-os.org/group__cpu__esp32__esp32.html Propietats dels GPIO de l'ESP32]&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== PureQML ===&lt;br /&gt;
[https://pureqml.com/ Pàgina oficial de PureQML]&lt;br /&gt;
&lt;br /&gt;
==== Posada en marxa del PureQML ====&lt;br /&gt;
* Instal·lació de l'eina '''python-future''':&lt;br /&gt;
 pip3 install future&lt;br /&gt;
&lt;br /&gt;
* Primera aplicació&lt;br /&gt;
 mkdir prjFolder&lt;br /&gt;
 cd prjFolder&lt;br /&gt;
 git clone https://github.com/pureqml/qmlcore.git&lt;br /&gt;
 ./qmlcore/build --boilerplate&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Obriu amb un navegador l'arxiu ''prjFolder/build.web/index.html''&lt;br /&gt;
&lt;br /&gt;
* Modificació de ''prjFolder/src/app.qml'':&lt;br /&gt;
 Text {&lt;br /&gt;
        anchors.fill: context;&lt;br /&gt;
         &lt;br /&gt;
        '''text: 'Primer exemple de pureQML';'''&lt;br /&gt;
        '''color: 'red';'''&lt;br /&gt;
        font.pixelSize: 32;&lt;br /&gt;
        verticalAlignment: Text.AlignVCenter;&lt;br /&gt;
        horizontalAlignment: Text.AlignHCenter;&lt;br /&gt;
 }&lt;br /&gt;
Reconstruïu-ho:&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Torneu a obrir amb un navegador l'arxiu ''prjFolder/build.web/index.html'' per a observar els canvis&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://www.binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
[[Examen de programació de 2n d'SMX. Curs 2021-2022 | Examen de programació de 2n d'SMX-A]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Introducci%C3%B3_r%C3%A0pida_a_LoRaWAN_i_The_Things_Network&amp;diff=1228</id>
		<title>Introducció ràpida a LoRaWAN i The Things Network</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Introducci%C3%B3_r%C3%A0pida_a_LoRaWAN_i_The_Things_Network&amp;diff=1228"/>
				<updated>2024-04-19T15:09:07Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://www.binefa.cat/IoT/02_ttncat_taller_presentacio_mkrwan1300.pdf The Things Network.cat - Xarxa comunitària per a l’Internet de les Coses]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/03_introLoRaWAN.pdf Introducció a LoRaWAN]&lt;br /&gt;
&lt;br /&gt;
[https://www.thethingsnetwork.org/forum/t/limitations-data-rate-packet-size-30-seconds-uplink-and-10-messages-downlink-per-day-fair-access-policy/1300 Fair Access Policy]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/04_conjunt02.pdf Conjunt IoT. Prova de connectivitat a The Things Network]&lt;br /&gt;
&lt;br /&gt;
Per saber si l'adreça per defecte del PCF8574 és 0x20 o 0x38 podeu escanejar tots els dispositius I2C amb [https://github.com/jordibinefa/arduino-IDE-codes/blob/master/esp32_i2cScanner_02/esp32_i2cScanner_02.ino esp32_i2cScanner_02.ino]. &lt;br /&gt;
&lt;br /&gt;
Per a determinar quin I2C escollir fem una mirada a l'esquema de la [https://www.binefa.cat/IoT/iot_01.pdf placa base IoT blanca] &lt;br /&gt;
&lt;br /&gt;
Al NodeRED a '''App''' va el nom d''''Application''' a TTN ([https://www.thethingsnetwork.org/ The Things Network])&lt;br /&gt;
&lt;br /&gt;
A l''''Access Key''' del NodeRED va el '''default key''' d''''ACCESS KEYS''' a TTN&lt;br /&gt;
&lt;br /&gt;
A la funció '''Cap a TTN''' del NodeRED al camp '''dev_id''' s'ha de posar el nom del dispositiu corresponent de la llista '''Devices''' a TTN&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/20180927_icm_csic/ Més informació per al taller]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/05_lorawan_usPractic.pdf Ampliació de la connectivitat a The Things Network]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/04b_reflexionsTTN.pdf Algunes reflexions sobre l'ús real de The Things Network]&lt;br /&gt;
&lt;br /&gt;
= Més documentació =&lt;br /&gt;
[https://thethingsnetwork.cat/index.php/The_Things_Network Què és The Things network?] per [https://thethingsnetwork.cat/ TTN.cat]&lt;br /&gt;
&lt;br /&gt;
[https://thethingsnetwork.cat/index.php/LoRaWAN Què és LoRaWAN?] per [https://thethingsnetwork.cat/ TTN.cat]&lt;br /&gt;
&lt;br /&gt;
[https://www.thethingsnetwork.org/docs/lorawan/ LoRaWAN Overview] by [https://www.thethingsnetwork.org/ The Things Network]&lt;br /&gt;
&lt;br /&gt;
[https://arxiv.org/pdf/1607.08011.pdf Understanding the Limits of LoRaWAN] Published in IEEE Communications Magazine in January 2017 by Ferran Adelantado, Xavier Vilajosana, Pere Tuset-Peiro, Borja Martinez, Joan Melià-Seguí and Thomas Watteyne&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Introducci%C3%B3_r%C3%A0pida_a_LoRaWAN_i_The_Things_Network&amp;diff=1227</id>
		<title>Introducció ràpida a LoRaWAN i The Things Network</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Introducci%C3%B3_r%C3%A0pida_a_LoRaWAN_i_The_Things_Network&amp;diff=1227"/>
				<updated>2024-04-19T15:08:38Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://www.binefa.cat/IoT/02_ttncat_taller_presentacio_mkrwan1300.pdf The Things Network.cat - Xarxa comunitària per a l’Internet de les Coses]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/03_introLoRaWAN.pdf Introducció a LoRaWAN]&lt;br /&gt;
&lt;br /&gt;
[https://www.thethingsnetwork.org/forum/t/limitations-data-rate-packet-size-30-seconds-uplink-and-10-messages-downlink-per-day-fair-access-policy/1300 Fair Access Policy]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/04_conjunt02.pdf Conjunt IoT. Prova de connectivitat a The Things Network]&lt;br /&gt;
&lt;br /&gt;
Per saber si l'adreça per defecte del PCF8574 és 0x20 o 0x38 podeu escanejar tots els dispositius I2C amb [https://github.com/jordibinefa/arduino-IDE-codes/blob/master/esp32_i2cScanner_02/esp32_i2cScanner_02.ino esp32_i2cScanner_02.ino]. &lt;br /&gt;
&lt;br /&gt;
Per a determinar quin I2C escollir fem una mirada a l'esquema de la [https://binefa.cat/IoT/iot_01.pdf placa base IoT blanca] &lt;br /&gt;
&lt;br /&gt;
Al NodeRED a '''App''' va el nom d''''Application''' a TTN ([https://www.thethingsnetwork.org/ The Things Network])&lt;br /&gt;
&lt;br /&gt;
A l''''Access Key''' del NodeRED va el '''default key''' d''''ACCESS KEYS''' a TTN&lt;br /&gt;
&lt;br /&gt;
A la funció '''Cap a TTN''' del NodeRED al camp '''dev_id''' s'ha de posar el nom del dispositiu corresponent de la llista '''Devices''' a TTN&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/20180927_icm_csic/ Més informació per al taller]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/05_lorawan_usPractic.pdf Ampliació de la connectivitat a The Things Network]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/IoT/04b_reflexionsTTN.pdf Algunes reflexions sobre l'ús real de The Things Network]&lt;br /&gt;
&lt;br /&gt;
= Més documentació =&lt;br /&gt;
[https://thethingsnetwork.cat/index.php/The_Things_Network Què és The Things network?] per [https://thethingsnetwork.cat/ TTN.cat]&lt;br /&gt;
&lt;br /&gt;
[https://thethingsnetwork.cat/index.php/LoRaWAN Què és LoRaWAN?] per [https://thethingsnetwork.cat/ TTN.cat]&lt;br /&gt;
&lt;br /&gt;
[https://www.thethingsnetwork.org/docs/lorawan/ LoRaWAN Overview] by [https://www.thethingsnetwork.org/ The Things Network]&lt;br /&gt;
&lt;br /&gt;
[https://arxiv.org/pdf/1607.08011.pdf Understanding the Limits of LoRaWAN] Published in IEEE Communications Magazine in January 2017 by Ferran Adelantado, Xavier Vilajosana, Pere Tuset-Peiro, Borja Martinez, Joan Melià-Seguí and Thomas Watteyne&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Introducci%C3%B3_r%C3%A0pida_a_LoRaWAN_i_The_Things_Network&amp;diff=1226</id>
		<title>Introducció ràpida a LoRaWAN i The Things Network</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Introducci%C3%B3_r%C3%A0pida_a_LoRaWAN_i_The_Things_Network&amp;diff=1226"/>
				<updated>2024-04-19T15:07:58Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://www.binefa.cat/IoT/02_ttncat_taller_presentacio_mkrwan1300.pdf The Things Network.cat - Xarxa comunitària per a l’Internet de les Coses]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/03_introLoRaWAN.pdf Introducció a LoRaWAN]&lt;br /&gt;
&lt;br /&gt;
[https://www.thethingsnetwork.org/forum/t/limitations-data-rate-packet-size-30-seconds-uplink-and-10-messages-downlink-per-day-fair-access-policy/1300 Fair Access Policy]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/IoT/04_conjunt02.pdf Conjunt IoT. Prova de connectivitat a The Things Network]&lt;br /&gt;
&lt;br /&gt;
Per saber si l'adreça per defecte del PCF8574 és 0x20 o 0x38 podeu escanejar tots els dispositius I2C amb [https://github.com/jordibinefa/arduino-IDE-codes/blob/master/esp32_i2cScanner_02/esp32_i2cScanner_02.ino esp32_i2cScanner_02.ino]. &lt;br /&gt;
&lt;br /&gt;
Per a determinar quin I2C escollir fem una mirada a l'esquema de la [https://binefa.cat/IoT/iot_01.pdf placa base IoT blanca] &lt;br /&gt;
&lt;br /&gt;
Al NodeRED a '''App''' va el nom d''''Application''' a TTN ([https://www.thethingsnetwork.org/ The Things Network])&lt;br /&gt;
&lt;br /&gt;
A l''''Access Key''' del NodeRED va el '''default key''' d''''ACCESS KEYS''' a TTN&lt;br /&gt;
&lt;br /&gt;
A la funció '''Cap a TTN''' del NodeRED al camp '''dev_id''' s'ha de posar el nom del dispositiu corresponent de la llista '''Devices''' a TTN&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/20180927_icm_csic/ Més informació per al taller]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/IoT/05_lorawan_usPractic.pdf Ampliació de la connectivitat a The Things Network]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/IoT/04b_reflexionsTTN.pdf Algunes reflexions sobre l'ús real de The Things Network]&lt;br /&gt;
&lt;br /&gt;
= Més documentació =&lt;br /&gt;
[https://thethingsnetwork.cat/index.php/The_Things_Network Què és The Things network?] per [https://thethingsnetwork.cat/ TTN.cat]&lt;br /&gt;
&lt;br /&gt;
[https://thethingsnetwork.cat/index.php/LoRaWAN Què és LoRaWAN?] per [https://thethingsnetwork.cat/ TTN.cat]&lt;br /&gt;
&lt;br /&gt;
[https://www.thethingsnetwork.org/docs/lorawan/ LoRaWAN Overview] by [https://www.thethingsnetwork.org/ The Things Network]&lt;br /&gt;
&lt;br /&gt;
[https://arxiv.org/pdf/1607.08011.pdf Understanding the Limits of LoRaWAN] Published in IEEE Communications Magazine in January 2017 by Ferran Adelantado, Xavier Vilajosana, Pere Tuset-Peiro, Borja Martinez, Joan Melià-Seguí and Thomas Watteyne&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1225</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1225"/>
				<updated>2024-01-07T21:29:16Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Raspberry Pi */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.com/documentation/computers/raspberry-pi-5.html Raspberry Pi 5]&lt;br /&gt;
&lt;br /&gt;
[https://www.abelectronics.co.uk/kb/article/31/set-a-static-ip-address-on-raspberry-pi-os-bookworm Set a static IP Address on Raspberry Pi OS Bookworm] (Based on Debian 12)&lt;br /&gt;
&lt;br /&gt;
[https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/ Run a Program On Your Raspberry Pi At Startup]&lt;br /&gt;
&lt;br /&gt;
[https://gpiozero.readthedocs.io/en/stable/migrating_from_rpigpio.html Migrating from RPi.GPIO to GPIO Zero] (RPi.GPIO doesn't work on Raspberry Pi 5. GPIO Zero runs on any Raspberry Pi version, at least up to Raspberry Pi 5)&lt;br /&gt;
&lt;br /&gt;
[https://www.tomshardware.com/how-to/control-raspberry-pi-5-gpio-with-python-3 How to Control the Raspberry Pi 5 GPIO with Python 3]&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
 xzcat 2023-02-21-raspios-bullseye-armhf-lite.img.xz | sudo dd of=/dev/sdb bs=64k oflag=dsync status=progress&lt;br /&gt;
&lt;br /&gt;
[https://wireguard.how/client/raspberry-pi-os/ WireGuard Client: Raspberry Pi OS] (VPN)&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[https://eepower.com/resistor-guide/resistor-standards-and-codes/resistor-sizes-and-packages/# Resistor Size and Packages] (Power by size)&lt;br /&gt;
&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
[https://unixcop.com/install-latest-openssl-version-debian-11/ How to Install the latest OpenSSL version on Debian 11] (11 / maig / 2023)&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[https://telproce.com/ Empresa de marcat CE]&lt;br /&gt;
&lt;br /&gt;
[https://api.riot-os.org/group__cpu__esp32__esp32.html Propietats dels GPIO de l'ESP32]&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== PureQML ===&lt;br /&gt;
[https://pureqml.com/ Pàgina oficial de PureQML]&lt;br /&gt;
&lt;br /&gt;
==== Posada en marxa del PureQML ====&lt;br /&gt;
* Instal·lació de l'eina '''python-future''':&lt;br /&gt;
 pip3 install future&lt;br /&gt;
&lt;br /&gt;
* Primera aplicació&lt;br /&gt;
 mkdir prjFolder&lt;br /&gt;
 cd prjFolder&lt;br /&gt;
 git clone https://github.com/pureqml/qmlcore.git&lt;br /&gt;
 ./qmlcore/build --boilerplate&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Obriu amb un navegador l'arxiu ''prjFolder/build.web/index.html''&lt;br /&gt;
&lt;br /&gt;
* Modificació de ''prjFolder/src/app.qml'':&lt;br /&gt;
 Text {&lt;br /&gt;
        anchors.fill: context;&lt;br /&gt;
         &lt;br /&gt;
        '''text: 'Primer exemple de pureQML';'''&lt;br /&gt;
        '''color: 'red';'''&lt;br /&gt;
        font.pixelSize: 32;&lt;br /&gt;
        verticalAlignment: Text.AlignVCenter;&lt;br /&gt;
        horizontalAlignment: Text.AlignHCenter;&lt;br /&gt;
 }&lt;br /&gt;
Reconstruïu-ho:&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Torneu a obrir amb un navegador l'arxiu ''prjFolder/build.web/index.html'' per a observar els canvis&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://www.binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
[[Examen de programació de 2n d'SMX. Curs 2021-2022 | Examen de programació de 2n d'SMX-A]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1224</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1224"/>
				<updated>2024-01-07T21:28:57Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Raspberry Pi */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.com/documentation/computers/raspberry-pi-5.html Raspberry Pi 5]&lt;br /&gt;
&lt;br /&gt;
[https://www.abelectronics.co.uk/kb/article/31/set-a-static-ip-address-on-raspberry-pi-os-bookworm Set a static IP Address on Raspberry Pi OS Bookworm] (Based on Debian 12)&lt;br /&gt;
&lt;br /&gt;
[https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/ Run a Program On Your Raspberry Pi At Startup]&lt;br /&gt;
&lt;br /&gt;
[https://gpiozero.readthedocs.io/en/stable/migrating_from_rpigpio.html Migrating from RPi.GPIO to GPIO Zero] (RPi.GPIO doesn't work on Raspberry Pi 5. GPIO Zero runs on any Raspberry Pi version, at least uo to Raspberry Pi 5)&lt;br /&gt;
&lt;br /&gt;
[https://www.tomshardware.com/how-to/control-raspberry-pi-5-gpio-with-python-3 How to Control the Raspberry Pi 5 GPIO with Python 3]&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
 xzcat 2023-02-21-raspios-bullseye-armhf-lite.img.xz | sudo dd of=/dev/sdb bs=64k oflag=dsync status=progress&lt;br /&gt;
&lt;br /&gt;
[https://wireguard.how/client/raspberry-pi-os/ WireGuard Client: Raspberry Pi OS] (VPN)&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[https://eepower.com/resistor-guide/resistor-standards-and-codes/resistor-sizes-and-packages/# Resistor Size and Packages] (Power by size)&lt;br /&gt;
&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
[https://unixcop.com/install-latest-openssl-version-debian-11/ How to Install the latest OpenSSL version on Debian 11] (11 / maig / 2023)&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[https://telproce.com/ Empresa de marcat CE]&lt;br /&gt;
&lt;br /&gt;
[https://api.riot-os.org/group__cpu__esp32__esp32.html Propietats dels GPIO de l'ESP32]&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== PureQML ===&lt;br /&gt;
[https://pureqml.com/ Pàgina oficial de PureQML]&lt;br /&gt;
&lt;br /&gt;
==== Posada en marxa del PureQML ====&lt;br /&gt;
* Instal·lació de l'eina '''python-future''':&lt;br /&gt;
 pip3 install future&lt;br /&gt;
&lt;br /&gt;
* Primera aplicació&lt;br /&gt;
 mkdir prjFolder&lt;br /&gt;
 cd prjFolder&lt;br /&gt;
 git clone https://github.com/pureqml/qmlcore.git&lt;br /&gt;
 ./qmlcore/build --boilerplate&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Obriu amb un navegador l'arxiu ''prjFolder/build.web/index.html''&lt;br /&gt;
&lt;br /&gt;
* Modificació de ''prjFolder/src/app.qml'':&lt;br /&gt;
 Text {&lt;br /&gt;
        anchors.fill: context;&lt;br /&gt;
         &lt;br /&gt;
        '''text: 'Primer exemple de pureQML';'''&lt;br /&gt;
        '''color: 'red';'''&lt;br /&gt;
        font.pixelSize: 32;&lt;br /&gt;
        verticalAlignment: Text.AlignVCenter;&lt;br /&gt;
        horizontalAlignment: Text.AlignHCenter;&lt;br /&gt;
 }&lt;br /&gt;
Reconstruïu-ho:&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Torneu a obrir amb un navegador l'arxiu ''prjFolder/build.web/index.html'' per a observar els canvis&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://www.binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
[[Examen de programació de 2n d'SMX. Curs 2021-2022 | Examen de programació de 2n d'SMX-A]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1223</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1223"/>
				<updated>2024-01-07T21:26:49Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Raspberry Pi */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.com/documentation/computers/raspberry-pi-5.html Raspberry Pi 5]&lt;br /&gt;
&lt;br /&gt;
[https://www.abelectronics.co.uk/kb/article/31/set-a-static-ip-address-on-raspberry-pi-os-bookworm Set a static IP Address on Raspberry Pi OS Bookworm]&lt;br /&gt;
&lt;br /&gt;
[https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/ Run a Program On Your Raspberry Pi At Startup]&lt;br /&gt;
&lt;br /&gt;
[https://gpiozero.readthedocs.io/en/stable/migrating_from_rpigpio.html Migrating from RPi.GPIO to GPIO Zero]&lt;br /&gt;
&lt;br /&gt;
[https://www.tomshardware.com/how-to/control-raspberry-pi-5-gpio-with-python-3 How to Control the Raspberry Pi 5 GPIO with Python 3]&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
 xzcat 2023-02-21-raspios-bullseye-armhf-lite.img.xz | sudo dd of=/dev/sdb bs=64k oflag=dsync status=progress&lt;br /&gt;
&lt;br /&gt;
[https://wireguard.how/client/raspberry-pi-os/ WireGuard Client: Raspberry Pi OS] (VPN)&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[https://eepower.com/resistor-guide/resistor-standards-and-codes/resistor-sizes-and-packages/# Resistor Size and Packages] (Power by size)&lt;br /&gt;
&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
[https://unixcop.com/install-latest-openssl-version-debian-11/ How to Install the latest OpenSSL version on Debian 11] (11 / maig / 2023)&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[https://telproce.com/ Empresa de marcat CE]&lt;br /&gt;
&lt;br /&gt;
[https://api.riot-os.org/group__cpu__esp32__esp32.html Propietats dels GPIO de l'ESP32]&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== PureQML ===&lt;br /&gt;
[https://pureqml.com/ Pàgina oficial de PureQML]&lt;br /&gt;
&lt;br /&gt;
==== Posada en marxa del PureQML ====&lt;br /&gt;
* Instal·lació de l'eina '''python-future''':&lt;br /&gt;
 pip3 install future&lt;br /&gt;
&lt;br /&gt;
* Primera aplicació&lt;br /&gt;
 mkdir prjFolder&lt;br /&gt;
 cd prjFolder&lt;br /&gt;
 git clone https://github.com/pureqml/qmlcore.git&lt;br /&gt;
 ./qmlcore/build --boilerplate&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Obriu amb un navegador l'arxiu ''prjFolder/build.web/index.html''&lt;br /&gt;
&lt;br /&gt;
* Modificació de ''prjFolder/src/app.qml'':&lt;br /&gt;
 Text {&lt;br /&gt;
        anchors.fill: context;&lt;br /&gt;
         &lt;br /&gt;
        '''text: 'Primer exemple de pureQML';'''&lt;br /&gt;
        '''color: 'red';'''&lt;br /&gt;
        font.pixelSize: 32;&lt;br /&gt;
        verticalAlignment: Text.AlignVCenter;&lt;br /&gt;
        horizontalAlignment: Text.AlignHCenter;&lt;br /&gt;
 }&lt;br /&gt;
Reconstruïu-ho:&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Torneu a obrir amb un navegador l'arxiu ''prjFolder/build.web/index.html'' per a observar els canvis&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://www.binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
[[Examen de programació de 2n d'SMX. Curs 2021-2022 | Examen de programació de 2n d'SMX-A]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1222</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1222"/>
				<updated>2023-12-15T12:00:32Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Raspberry Pi */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
 xzcat 2023-02-21-raspios-bullseye-armhf-lite.img.xz | sudo dd of=/dev/sdb bs=64k oflag=dsync status=progress&lt;br /&gt;
&lt;br /&gt;
[https://wireguard.how/client/raspberry-pi-os/ WireGuard Client: Raspberry Pi OS] (VPN)&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[https://eepower.com/resistor-guide/resistor-standards-and-codes/resistor-sizes-and-packages/# Resistor Size and Packages] (Power by size)&lt;br /&gt;
&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
[https://unixcop.com/install-latest-openssl-version-debian-11/ How to Install the latest OpenSSL version on Debian 11] (11 / maig / 2023)&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[https://telproce.com/ Empresa de marcat CE]&lt;br /&gt;
&lt;br /&gt;
[https://api.riot-os.org/group__cpu__esp32__esp32.html Propietats dels GPIO de l'ESP32]&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== PureQML ===&lt;br /&gt;
[https://pureqml.com/ Pàgina oficial de PureQML]&lt;br /&gt;
&lt;br /&gt;
==== Posada en marxa del PureQML ====&lt;br /&gt;
* Instal·lació de l'eina '''python-future''':&lt;br /&gt;
 pip3 install future&lt;br /&gt;
&lt;br /&gt;
* Primera aplicació&lt;br /&gt;
 mkdir prjFolder&lt;br /&gt;
 cd prjFolder&lt;br /&gt;
 git clone https://github.com/pureqml/qmlcore.git&lt;br /&gt;
 ./qmlcore/build --boilerplate&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Obriu amb un navegador l'arxiu ''prjFolder/build.web/index.html''&lt;br /&gt;
&lt;br /&gt;
* Modificació de ''prjFolder/src/app.qml'':&lt;br /&gt;
 Text {&lt;br /&gt;
        anchors.fill: context;&lt;br /&gt;
         &lt;br /&gt;
        '''text: 'Primer exemple de pureQML';'''&lt;br /&gt;
        '''color: 'red';'''&lt;br /&gt;
        font.pixelSize: 32;&lt;br /&gt;
        verticalAlignment: Text.AlignVCenter;&lt;br /&gt;
        horizontalAlignment: Text.AlignHCenter;&lt;br /&gt;
 }&lt;br /&gt;
Reconstruïu-ho:&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Torneu a obrir amb un navegador l'arxiu ''prjFolder/build.web/index.html'' per a observar els canvis&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://www.binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
[[Examen de programació de 2n d'SMX. Curs 2021-2022 | Examen de programació de 2n d'SMX-A]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1221</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1221"/>
				<updated>2023-12-15T11:59:00Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Disseny electrònic */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
 xzcat 2023-02-21-raspios-bullseye-armhf-lite.img.xz | sudo dd of=/dev/sdb bs=64k oflag=dsync status=progress&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[https://eepower.com/resistor-guide/resistor-standards-and-codes/resistor-sizes-and-packages/# Resistor Size and Packages] (Power by size)&lt;br /&gt;
&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
[https://unixcop.com/install-latest-openssl-version-debian-11/ How to Install the latest OpenSSL version on Debian 11] (11 / maig / 2023)&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[https://telproce.com/ Empresa de marcat CE]&lt;br /&gt;
&lt;br /&gt;
[https://api.riot-os.org/group__cpu__esp32__esp32.html Propietats dels GPIO de l'ESP32]&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== PureQML ===&lt;br /&gt;
[https://pureqml.com/ Pàgina oficial de PureQML]&lt;br /&gt;
&lt;br /&gt;
==== Posada en marxa del PureQML ====&lt;br /&gt;
* Instal·lació de l'eina '''python-future''':&lt;br /&gt;
 pip3 install future&lt;br /&gt;
&lt;br /&gt;
* Primera aplicació&lt;br /&gt;
 mkdir prjFolder&lt;br /&gt;
 cd prjFolder&lt;br /&gt;
 git clone https://github.com/pureqml/qmlcore.git&lt;br /&gt;
 ./qmlcore/build --boilerplate&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Obriu amb un navegador l'arxiu ''prjFolder/build.web/index.html''&lt;br /&gt;
&lt;br /&gt;
* Modificació de ''prjFolder/src/app.qml'':&lt;br /&gt;
 Text {&lt;br /&gt;
        anchors.fill: context;&lt;br /&gt;
         &lt;br /&gt;
        '''text: 'Primer exemple de pureQML';'''&lt;br /&gt;
        '''color: 'red';'''&lt;br /&gt;
        font.pixelSize: 32;&lt;br /&gt;
        verticalAlignment: Text.AlignVCenter;&lt;br /&gt;
        horizontalAlignment: Text.AlignHCenter;&lt;br /&gt;
 }&lt;br /&gt;
Reconstruïu-ho:&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Torneu a obrir amb un navegador l'arxiu ''prjFolder/build.web/index.html'' per a observar els canvis&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://www.binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
[[Examen de programació de 2n d'SMX. Curs 2021-2022 | Examen de programació de 2n d'SMX-A]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1220</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1220"/>
				<updated>2023-10-20T10:52:16Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Miscel·lània */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
 xzcat 2023-02-21-raspios-bullseye-armhf-lite.img.xz | sudo dd of=/dev/sdb bs=64k oflag=dsync status=progress&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[https://eepower.com/resistor-guide/resistor-standards-and-codes/resistor-sizes-and-packages/# Resistor Size and Packages] (Power by size)&lt;br /&gt;
&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
[https://unixcop.com/install-latest-openssl-version-debian-11/ How to Install the latest OpenSSL version on Debian 11] (11 / maig / 2023)&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== PureQML ===&lt;br /&gt;
[https://pureqml.com/ Pàgina oficial de PureQML]&lt;br /&gt;
&lt;br /&gt;
==== Posada en marxa del PureQML ====&lt;br /&gt;
* Instal·lació de l'eina '''python-future''':&lt;br /&gt;
 pip3 install future&lt;br /&gt;
&lt;br /&gt;
* Primera aplicació&lt;br /&gt;
 mkdir prjFolder&lt;br /&gt;
 cd prjFolder&lt;br /&gt;
 git clone https://github.com/pureqml/qmlcore.git&lt;br /&gt;
 ./qmlcore/build --boilerplate&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Obriu amb un navegador l'arxiu ''prjFolder/build.web/index.html''&lt;br /&gt;
&lt;br /&gt;
* Modificació de ''prjFolder/src/app.qml'':&lt;br /&gt;
 Text {&lt;br /&gt;
        anchors.fill: context;&lt;br /&gt;
         &lt;br /&gt;
        '''text: 'Primer exemple de pureQML';'''&lt;br /&gt;
        '''color: 'red';'''&lt;br /&gt;
        font.pixelSize: 32;&lt;br /&gt;
        verticalAlignment: Text.AlignVCenter;&lt;br /&gt;
        horizontalAlignment: Text.AlignHCenter;&lt;br /&gt;
 }&lt;br /&gt;
Reconstruïu-ho:&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Torneu a obrir amb un navegador l'arxiu ''prjFolder/build.web/index.html'' per a observar els canvis&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://www.binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
[[Examen de programació de 2n d'SMX. Curs 2021-2022 | Examen de programació de 2n d'SMX-A]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1219</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1219"/>
				<updated>2023-05-11T13:56:33Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Sistemes Operatius */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
 xzcat 2023-02-21-raspios-bullseye-armhf-lite.img.xz | sudo dd of=/dev/sdb bs=64k oflag=dsync status=progress&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
[https://unixcop.com/install-latest-openssl-version-debian-11/ How to Install the latest OpenSSL version on Debian 11] (11 / maig / 2023)&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== PureQML ===&lt;br /&gt;
[https://pureqml.com/ Pàgina oficial de PureQML]&lt;br /&gt;
&lt;br /&gt;
==== Posada en marxa del PureQML ====&lt;br /&gt;
* Instal·lació de l'eina '''python-future''':&lt;br /&gt;
 pip3 install future&lt;br /&gt;
&lt;br /&gt;
* Primera aplicació&lt;br /&gt;
 mkdir prjFolder&lt;br /&gt;
 cd prjFolder&lt;br /&gt;
 git clone https://github.com/pureqml/qmlcore.git&lt;br /&gt;
 ./qmlcore/build --boilerplate&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Obriu amb un navegador l'arxiu ''prjFolder/build.web/index.html''&lt;br /&gt;
&lt;br /&gt;
* Modificació de ''prjFolder/src/app.qml'':&lt;br /&gt;
 Text {&lt;br /&gt;
        anchors.fill: context;&lt;br /&gt;
         &lt;br /&gt;
        '''text: 'Primer exemple de pureQML';'''&lt;br /&gt;
        '''color: 'red';'''&lt;br /&gt;
        font.pixelSize: 32;&lt;br /&gt;
        verticalAlignment: Text.AlignVCenter;&lt;br /&gt;
        horizontalAlignment: Text.AlignHCenter;&lt;br /&gt;
 }&lt;br /&gt;
Reconstruïu-ho:&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Torneu a obrir amb un navegador l'arxiu ''prjFolder/build.web/index.html'' per a observar els canvis&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://www.binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
[[Examen de programació de 2n d'SMX. Curs 2021-2022 | Examen de programació de 2n d'SMX-A]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1218</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1218"/>
				<updated>2023-05-11T13:55:53Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Alguns trucs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
 xzcat 2023-02-21-raspios-bullseye-armhf-lite.img.xz | sudo dd of=/dev/sdb bs=64k oflag=dsync status=progress&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
[https://unixcop.com/install-latest-openssl-version-debian-11/ How to Install the latest OpenSSL version on Debian 11]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== PureQML ===&lt;br /&gt;
[https://pureqml.com/ Pàgina oficial de PureQML]&lt;br /&gt;
&lt;br /&gt;
==== Posada en marxa del PureQML ====&lt;br /&gt;
* Instal·lació de l'eina '''python-future''':&lt;br /&gt;
 pip3 install future&lt;br /&gt;
&lt;br /&gt;
* Primera aplicació&lt;br /&gt;
 mkdir prjFolder&lt;br /&gt;
 cd prjFolder&lt;br /&gt;
 git clone https://github.com/pureqml/qmlcore.git&lt;br /&gt;
 ./qmlcore/build --boilerplate&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Obriu amb un navegador l'arxiu ''prjFolder/build.web/index.html''&lt;br /&gt;
&lt;br /&gt;
* Modificació de ''prjFolder/src/app.qml'':&lt;br /&gt;
 Text {&lt;br /&gt;
        anchors.fill: context;&lt;br /&gt;
         &lt;br /&gt;
        '''text: 'Primer exemple de pureQML';'''&lt;br /&gt;
        '''color: 'red';'''&lt;br /&gt;
        font.pixelSize: 32;&lt;br /&gt;
        verticalAlignment: Text.AlignVCenter;&lt;br /&gt;
        horizontalAlignment: Text.AlignHCenter;&lt;br /&gt;
 }&lt;br /&gt;
Reconstruïu-ho:&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Torneu a obrir amb un navegador l'arxiu ''prjFolder/build.web/index.html'' per a observar els canvis&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://www.binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
[[Examen de programació de 2n d'SMX. Curs 2021-2022 | Examen de programació de 2n d'SMX-A]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1217</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1217"/>
				<updated>2023-03-12T18:52:49Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Raspberry Pi */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
 xzcat 2023-02-21-raspios-bullseye-armhf-lite.img.xz | sudo dd of=/dev/sdb bs=64k oflag=dsync status=progress&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== PureQML ===&lt;br /&gt;
[https://pureqml.com/ Pàgina oficial de PureQML]&lt;br /&gt;
&lt;br /&gt;
==== Posada en marxa del PureQML ====&lt;br /&gt;
* Instal·lació de l'eina '''python-future''':&lt;br /&gt;
 pip3 install future&lt;br /&gt;
&lt;br /&gt;
* Primera aplicació&lt;br /&gt;
 mkdir prjFolder&lt;br /&gt;
 cd prjFolder&lt;br /&gt;
 git clone https://github.com/pureqml/qmlcore.git&lt;br /&gt;
 ./qmlcore/build --boilerplate&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Obriu amb un navegador l'arxiu ''prjFolder/build.web/index.html''&lt;br /&gt;
&lt;br /&gt;
* Modificació de ''prjFolder/src/app.qml'':&lt;br /&gt;
 Text {&lt;br /&gt;
        anchors.fill: context;&lt;br /&gt;
         &lt;br /&gt;
        '''text: 'Primer exemple de pureQML';'''&lt;br /&gt;
        '''color: 'red';'''&lt;br /&gt;
        font.pixelSize: 32;&lt;br /&gt;
        verticalAlignment: Text.AlignVCenter;&lt;br /&gt;
        horizontalAlignment: Text.AlignHCenter;&lt;br /&gt;
 }&lt;br /&gt;
Reconstruïu-ho:&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Torneu a obrir amb un navegador l'arxiu ''prjFolder/build.web/index.html'' per a observar els canvis&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://www.binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
[[Examen de programació de 2n d'SMX. Curs 2021-2022 | Examen de programació de 2n d'SMX-A]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=LoRa&amp;diff=1216</id>
		<title>LoRa</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=LoRa&amp;diff=1216"/>
				<updated>2022-10-17T16:48:33Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= LoRa =&lt;br /&gt;
[https://www.binefa.cat/IoT/lora/lorawan/lorawan01d.pdf Presentació LoRaWAN (esborrany v0.4)] (15 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.lora-alliance.org/technology LoRa Alliance Technology]&lt;br /&gt;
&lt;br /&gt;
[https://www.link-labs.com/blog/what-is-lora What is LoRa?. Includes a technical video of about one hour]&lt;br /&gt;
&lt;br /&gt;
== Capa física de LoRa (OSI Layer 1) ==&lt;br /&gt;
&lt;br /&gt;
=== Implementacions amb Arduino Nano i ESP8266 ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/blog/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/blog/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/blog/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/blog/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://absolutelyautomation.com/articles/2015/12/30/internet-things-iot-using-nicerf-lora1276 Internet Of Things (IoT) Using NiceRf LoRa1276 and Arduino Nano]&lt;br /&gt;
&lt;br /&gt;
== LoRaWAN ==&lt;br /&gt;
[https://thethingsnetwork.cat/index.php/LoRaWAN Què és LoRaWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://lora-developers.semtech.com/resources/lorawan-academy/courses/ Curs obert de l'acadèmia LoRaWAN]. Cal registrar-se per accedir als continguts.&lt;br /&gt;
&lt;br /&gt;
=== The Things Network ===&lt;br /&gt;
[[Trametre 3 floats en 12 bytes i visualitzar-los al NodeRED]] (3 de febrer de 2020)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/lora/ttncat/TTN%20-%20Presentaci%c3%b3%20-%20Llibertat%20Maquinari.pdf Presentació de The Things Network Catalunya] a la [http://caliu.cat/blog/2019/03/16/dia-de-la-llibertat-del-maquinari-2019/ Diada de la Llibertat del Maquinari - 2019]&lt;br /&gt;
&lt;br /&gt;
[https://www.thethingsnetwork.org/ Backend de TheThingsNetwork]&lt;br /&gt;
&lt;br /&gt;
[https://thethingsnetwork.cat/index.php/The_Things_Network_Catalunya Xarxa comunitària de l'internet de les coses (ttn.cat, The Things Network Catalunya)]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/04_conjunt02.pdf Conjunt IoT. Prova de connectivitat a The Things Network]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/04b_reflexionsTTN.pdf Algunes reflexions sobre l'ús real de The Things Network]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/02_ttncat_taller_presentacio_mkrwan1300.pdf The Things Network.cat - Xarxa comunitària per a l’Internet de les Coses]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/03_introLoRaWAN.pdf Introducció a LoRaWAN]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/05_lorawan_usPractic.pdf Ampliació de la connectivitat a The Things Network]&lt;br /&gt;
&lt;br /&gt;
=== Implementació de nodes LoRaWAN ===&lt;br /&gt;
[https://thethingsnetwork.cat/index.php/Llista_de_nodes_disponibles Llista de nodes disponibles]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/matthijskooijman/arduino-lmic Arduino-LMIC library]&lt;br /&gt;
&lt;br /&gt;
==== Conjunt IoT. Prova de connectivitat a The Things Network ====&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/04_conjunt02.pdf Conjunt IoT. Prova de connectivitat a The Things Network]&lt;br /&gt;
&lt;br /&gt;
Per saber si l'adreça per defecte del PCF8574 és 0x20 o 0x38 podeu escanejar tots els dispositius I2C amb [https://github.com/jordibinefa/arduino-IDE-codes/blob/master/esp32_i2cScanner_02/esp32_i2cScanner_02.ino esp32_i2cScanner_02.ino]. &lt;br /&gt;
&lt;br /&gt;
Per a determinar quin I2C escollir fem una mirada a l'esquema de la [https://binefa.cat/IoT/iot_01.pdf placa base IoT blanca] &lt;br /&gt;
&lt;br /&gt;
Al NodeRED a '''App''' va el nom d''''Application''' a TTN ([https://www.thethingsnetwork.org/ The Things Network])&lt;br /&gt;
&lt;br /&gt;
A l''''Access Key''' del NodeRED va el '''default key''' d''''ACCESS KEYS''' a TTN&lt;br /&gt;
&lt;br /&gt;
A la funció '''Cap a TTN''' del NodeRED al camp '''dev_id''' s'ha de posar el nom del dispositiu corresponent de la llista '''Devices''' a TTN&lt;br /&gt;
&lt;br /&gt;
==== LoPy ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/lopy/lorawan-otaa.html LoRaWAN OTAA node (OTAA: Over The Air Authentication)]&lt;br /&gt;
&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/lopy/lorawan-abp.html LoRaWAN ABP node (ABP: Authentication By Personalisation)]&lt;br /&gt;
&lt;br /&gt;
==== MKR WAN 1300 (Arduino) ====&lt;br /&gt;
[http://tinkerman.cat/arduino-mkr-wan-1300/ Arduino MKR WAN 1300] (by [https://twitter.com/xoseperez @XosePerez])&lt;br /&gt;
&lt;br /&gt;
==== Microchip RN2483 ====&lt;br /&gt;
[http://tinkerman.cat/low-power-in-lorawan-world-meet-the-rn2483/ Low power in LoRaWan world – Meet the RN2483] (by [https://twitter.com/xoseperez @XosePerez])&lt;br /&gt;
&lt;br /&gt;
==== ESP32 genèric i SX1276 (fent servir la biblioteca LMIC) ====&lt;br /&gt;
&lt;br /&gt;
[http://akirasan.net/nodo-lorawan-con-esp32/ Nodo LoRaWAN con ESP32 (Explicació d'en Jorge @akirasan)]&lt;br /&gt;
&lt;br /&gt;
=== Passarel·les (''gateways'') LoRaWAN ===&lt;br /&gt;
[https://thethingsnetwork.cat/index.php/Llista_de_Gateways Llista de passarel·les comercials]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/lora/lorawan/telegramBot_01.pdf Exemple de notificació de desconnexió de passarel·la LoRaWAN mitjançant un ''bot'' de Telegram]&lt;br /&gt;
&lt;br /&gt;
==== Implementació de passarel·les LoRaWAN multicanal (com ha de ser) ====&lt;br /&gt;
[https://www.hackster.io/naresh-krish/getting-started-with-the-rak-831-lora-gateway-and-rpi3-e3351d Getting started with the RAK 831 Lora Gateway and RPi3]&lt;br /&gt;
&lt;br /&gt;
==== Implementació de passarel·les LoRaWAN monocanal (per a experimentació) ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/lopy/lorawan-nano-gateway.html LoRaWAN Nano-Gateway]&lt;br /&gt;
&lt;br /&gt;
[https://www.hackster.io/ChrisSamuelson/lora-raspberry-pi-single-channel-gateway-cheap-d57d36 LoRa - Raspberry Pi - Single Channel Gateway - Cheap!]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/things4u/ESP-1ch-Gateway-v5.0 Single Channel LoRaWAN Gateway]&lt;br /&gt;
&lt;br /&gt;
== Vídeos ==&lt;br /&gt;
[https://embed.vidyard.com/share/2wZoUi66fKZmg3CxiUAoAA? Semtech LoRa Wireless RF Technology Overview]&lt;br /&gt;
&lt;br /&gt;
[https://embed.vidyard.com/share/u962pVg6vB1Fp8CRAztTQy? LoRa Ecosystem Overview]&lt;br /&gt;
&lt;br /&gt;
[https://embed.vidyard.com/share/wsv2X9rjLeH2WCAqNJx7qw? What is LoRa? What is LoRaWAN?]&lt;br /&gt;
&lt;br /&gt;
=== LoRaWAN Academy ===&lt;br /&gt;
[https://embed.vidyard.com/share/XKAUYoRpBYGWh8Eu7RXVYp? Week 2 - What is lora and why do we need it]&lt;br /&gt;
&lt;br /&gt;
[https://embed.vidyard.com/share/m3TVGZxvkH4SUHtBcNDsjc? Week 2 - LoRaWAN characteristics]&lt;br /&gt;
&lt;br /&gt;
[https://embed.vidyard.com/share/59gNTokDdSwEAha8zEbXEW? Week 2 - LoRaWAN Architecture]&lt;br /&gt;
&lt;br /&gt;
[https://embed.vidyard.com/share/bLaYnEtF6VuLqkpteSMjxG? Week 2 - LoRaWAN Architecture Network Server]&lt;br /&gt;
&lt;br /&gt;
[https://embed.vidyard.com/share/AYawZ7SxY95WKC26BzWETF? Week 2 - Scalability Spreading Factor and Airtime]&lt;br /&gt;
&lt;br /&gt;
[https://embed.vidyard.com/share/MLiRNqDK8tMENM1gGimaDt? Week 2 - LoRaWAN Security]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/ewsXKc3bk1U What is new in LoRaWAN 1.1?]&lt;br /&gt;
&lt;br /&gt;
== Exemples d'ús ==&lt;br /&gt;
[https://www.theverge.com/2017/7/20/16002752/smart-park-rwanda-akagera-poaching-lorawan Rwandan ‘smart park’ uses LoRaWAN to protect threatened animals]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/lora/ttncat/ Presentacions dels tallers] de [http://ttn.cat The Things Network Catalunya]&lt;br /&gt;
&lt;br /&gt;
=== SemTech ===&lt;br /&gt;
[https://lora-developers.semtech.com/uploads/documents/files/Semtech_Meter_WaterFlow_AppBrierf-FINAL.pdf Smart Metering: Water Flow Monitoring]&lt;br /&gt;
&lt;br /&gt;
[https://lora-developers.semtech.com/uploads/documents/files/Semtech_HB_HomeSecurity_AppBrief-FINAL.pdf Smart Home and Buildings: Home Security Systems]&lt;br /&gt;
&lt;br /&gt;
[https://lora-developers.semtech.com/uploads/documents/files/Semtech_Health_FallDetection_AppBrief-FINAL.pdf Smart Healthcare: Fall Detection (for the elderly)]&lt;br /&gt;
&lt;br /&gt;
[https://lora-developers.semtech.com/uploads/documents/files/Semtech_Enviro_AirPollution_AppBrief-FINAL.pdf Smart Environment: Air Pollution]&lt;br /&gt;
&lt;br /&gt;
[https://lora-developers.semtech.com/uploads/documents/files/Semtech_Cities_SmartParking_AppBrierf-FINAL.pdf Smart Cities: Smart Parking]&lt;br /&gt;
&lt;br /&gt;
[https://lora-developers.semtech.com/uploads/documents/files/Semtech-UseCase-Sensoterra-FINAL-web.pdf Smart Agriculture: Soil Moisture]&lt;br /&gt;
&lt;br /&gt;
=== Siarq ===&lt;br /&gt;
[https://twitter.com/JordiBinefa/status/1110147206735122432 LoRaWAN connected Solar Streetlight - Sant Boi Police Station]&lt;br /&gt;
&lt;br /&gt;
[http://things.siarq.net:3000/d/OcxHLA3iz/policia-de-sant-boi?orgId=1&amp;amp;from=now-2d&amp;amp;to=now&amp;amp;refresh=1m Monitoring LoRaWAN connected Solar Streetlight - Sant Boi Police Station]&lt;br /&gt;
&lt;br /&gt;
[https://twitter.com/JordiBinefa/status/1080531165432418304 LoRaWAN connected Solar Streetlight - Metal·lúrgica de Camallera]&lt;br /&gt;
&lt;br /&gt;
[http://iot.siarq.net:3000/d/wJNT6ZUiz/camallera-influxdb?refresh=1m&amp;amp;orgId=1&amp;amp;from=now-2d&amp;amp;to=now Monitoring LoRaWAN connected Solar Streetlight - Metal·lúrgica de Camallera]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Testing_IoT-02_board&amp;diff=1215</id>
		<title>Testing IoT-02 board</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Testing_IoT-02_board&amp;diff=1215"/>
				<updated>2022-07-06T21:30:21Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Testing firmware */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Programming firmware =&lt;br /&gt;
Nice greetings to [http://www.angustech.com/ Nicko] from Barcelona, Catalonia.&lt;br /&gt;
&lt;br /&gt;
== Connecting programmer ==&lt;br /&gt;
Red board: [https://www.aliexpress.com/item/4000566777448.html FT232RL FTDI USB to TTL Serial Adapter Module used as a programmer]&lt;br /&gt;
&lt;br /&gt;
'''It is very important to check jumper socket is at 3.3 volts position (by default it is at 5 volts)'''&lt;br /&gt;
&lt;br /&gt;
[[Image:IoT-02_Programmer.jpg|center|thumb|Programmer board position]]&lt;br /&gt;
&lt;br /&gt;
== Preparing uploading ==&lt;br /&gt;
Follow these steps on VirKO board:&lt;br /&gt;
&lt;br /&gt;
* 1st: Connect 5V microusb power supply&lt;br /&gt;
&lt;br /&gt;
* 2nd: Hold reset (red) button&lt;br /&gt;
&lt;br /&gt;
* 3rd: While holding reset button, hold IO0 button (close to J1 black connector). At this step both buttons are being pressed.&lt;br /&gt;
&lt;br /&gt;
* 4th: Release reset (red) button&lt;br /&gt;
&lt;br /&gt;
* 5th: Release IO0 button&lt;br /&gt;
&lt;br /&gt;
After these steps, board is ready to be programmed.&lt;br /&gt;
&lt;br /&gt;
== Programming from terminal ==&lt;br /&gt;
Software tool: [https://github.com/espressif/esptool esptool.py]&lt;br /&gt;
&lt;br /&gt;
'''Firmware binary files''' (this is '''testing firmware for IoT-02 board'''):&lt;br /&gt;
&lt;br /&gt;
* 1/4) [https://www.binefa.cat/nicko/IoT-02/IoT-02_11_modbus_bme280/IoT-02_11_modbus_bme280.ino.bootloader.bin IoT-02_11_modbus_bme280.ino.bootloader.bin]&lt;br /&gt;
&lt;br /&gt;
* 2/4) [https://www.binefa.cat/nicko/IoT-02/IoT-02_11_modbus_bme280/IoT-02_11_modbus_bme280.ino.partitions.bin IoT-02_11_modbus_bme280.ino.partitions.bin]&lt;br /&gt;
&lt;br /&gt;
* 3/4) [https://www.binefa.cat/nicko/IoT-02/IoT-02_11_modbus_bme280/boot_app0.bin boot_app0.bin]&lt;br /&gt;
&lt;br /&gt;
* 4/4) [https://www.binefa.cat/nicko/IoT-02/IoT-02_11_modbus_bme280/IoT-02_11_modbus_bme280.ino.bin IoT-02_11_modbus_bme280.ino.bin]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Terminal command:&lt;br /&gt;
 esptool.py --chip esp32 --port '''/dev/ttyUSB0''' --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 '''IoT-02_11_modbus_bme280.ino.bootloader.bin''' 0x8000 '''IoT-02_11_modbus_bme280.ino.partitions.bin''' 0xe000 '''boot_app0.bin''' 0x10000 '''IoT-02_11_modbus_bme280.ino.bin'''&lt;br /&gt;
&lt;br /&gt;
'''/dev/ttyUSB0''' in Windows operating system is '''COM'''''x'' port (being ''x'' programmer virtual port number. For instance: COM''3'')&lt;br /&gt;
&lt;br /&gt;
[[Image:Programming_IoT-02_screenshot.png|center|Programming firmware from terminal]]&lt;br /&gt;
&lt;br /&gt;
Once programming is finished, reset button should be pressed again. Or remove red programming board and unplug power supply and plug again.&lt;br /&gt;
&lt;br /&gt;
== Programming from Windows tool ==&lt;br /&gt;
Prepare uploading with previously explained 5 steps, combining RST and IO0 buttons.&lt;br /&gt;
&lt;br /&gt;
Windows program tool: [https://www.espressif.com/en/support/download/other-tools Flash Download Tools] ([https://www.aranacorp.com/en/generating-and-uploading-bin-files-for-esp32/ Explanation about Flash Download Tools use])&lt;br /&gt;
&lt;br /&gt;
Once programming is finished, reset button should be pressed again. Or remove red programming board and unplug power supply and plug again.&lt;br /&gt;
&lt;br /&gt;
= Testing firmware =&lt;br /&gt;
Once testing firmware has been uploaded to board, after a reset (red button), there are different information showing on OLED when pressing white buttons.&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Testing_IoT-02_board&amp;diff=1214</id>
		<title>Testing IoT-02 board</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Testing_IoT-02_board&amp;diff=1214"/>
				<updated>2022-07-06T21:26:22Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Programming from terminal */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Programming firmware =&lt;br /&gt;
Nice greetings to [http://www.angustech.com/ Nicko] from Barcelona, Catalonia.&lt;br /&gt;
&lt;br /&gt;
== Connecting programmer ==&lt;br /&gt;
Red board: [https://www.aliexpress.com/item/4000566777448.html FT232RL FTDI USB to TTL Serial Adapter Module used as a programmer]&lt;br /&gt;
&lt;br /&gt;
'''It is very important to check jumper socket is at 3.3 volts position (by default it is at 5 volts)'''&lt;br /&gt;
&lt;br /&gt;
[[Image:IoT-02_Programmer.jpg|center|thumb|Programmer board position]]&lt;br /&gt;
&lt;br /&gt;
== Preparing uploading ==&lt;br /&gt;
Follow these steps on VirKO board:&lt;br /&gt;
&lt;br /&gt;
* 1st: Connect 5V microusb power supply&lt;br /&gt;
&lt;br /&gt;
* 2nd: Hold reset (red) button&lt;br /&gt;
&lt;br /&gt;
* 3rd: While holding reset button, hold IO0 button (close to J1 black connector). At this step both buttons are being pressed.&lt;br /&gt;
&lt;br /&gt;
* 4th: Release reset (red) button&lt;br /&gt;
&lt;br /&gt;
* 5th: Release IO0 button&lt;br /&gt;
&lt;br /&gt;
After these steps, board is ready to be programmed.&lt;br /&gt;
&lt;br /&gt;
== Programming from terminal ==&lt;br /&gt;
Software tool: [https://github.com/espressif/esptool esptool.py]&lt;br /&gt;
&lt;br /&gt;
'''Firmware binary files''' (this is '''testing firmware for IoT-02 board'''):&lt;br /&gt;
&lt;br /&gt;
* 1/4) [https://www.binefa.cat/nicko/IoT-02/IoT-02_11_modbus_bme280/IoT-02_11_modbus_bme280.ino.bootloader.bin IoT-02_11_modbus_bme280.ino.bootloader.bin]&lt;br /&gt;
&lt;br /&gt;
* 2/4) [https://www.binefa.cat/nicko/IoT-02/IoT-02_11_modbus_bme280/IoT-02_11_modbus_bme280.ino.partitions.bin IoT-02_11_modbus_bme280.ino.partitions.bin]&lt;br /&gt;
&lt;br /&gt;
* 3/4) [https://www.binefa.cat/nicko/IoT-02/IoT-02_11_modbus_bme280/boot_app0.bin boot_app0.bin]&lt;br /&gt;
&lt;br /&gt;
* 4/4) [https://www.binefa.cat/nicko/IoT-02/IoT-02_11_modbus_bme280/IoT-02_11_modbus_bme280.ino.bin IoT-02_11_modbus_bme280.ino.bin]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Terminal command:&lt;br /&gt;
 esptool.py --chip esp32 --port '''/dev/ttyUSB0''' --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 '''IoT-02_11_modbus_bme280.ino.bootloader.bin''' 0x8000 '''IoT-02_11_modbus_bme280.ino.partitions.bin''' 0xe000 '''boot_app0.bin''' 0x10000 '''IoT-02_11_modbus_bme280.ino.bin'''&lt;br /&gt;
&lt;br /&gt;
'''/dev/ttyUSB0''' in Windows operating system is '''COM'''''x'' port (being ''x'' programmer virtual port number. For instance: COM''3'')&lt;br /&gt;
&lt;br /&gt;
[[Image:Programming_IoT-02_screenshot.png|center|Programming firmware from terminal]]&lt;br /&gt;
&lt;br /&gt;
Once programming is finished, reset button should be pressed again. Or remove red programming board and unplug power supply and plug again.&lt;br /&gt;
&lt;br /&gt;
== Programming from Windows tool ==&lt;br /&gt;
Prepare uploading with previously explained 5 steps, combining RST and IO0 buttons.&lt;br /&gt;
&lt;br /&gt;
Windows program tool: [https://www.espressif.com/en/support/download/other-tools Flash Download Tools] ([https://www.aranacorp.com/en/generating-and-uploading-bin-files-for-esp32/ Explanation about Flash Download Tools use])&lt;br /&gt;
&lt;br /&gt;
Once programming is finished, reset button should be pressed again. Or remove red programming board and unplug power supply and plug again.&lt;br /&gt;
&lt;br /&gt;
= Testing firmware =&lt;br /&gt;
[https://www.binefa.cat/nicko/VirKO/v1.02/virko_testing.mp4 Video with expecting test behavior]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Testing_IoT-02_board&amp;diff=1213</id>
		<title>Testing IoT-02 board</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Testing_IoT-02_board&amp;diff=1213"/>
				<updated>2022-07-06T21:19:07Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Programming firmware =&lt;br /&gt;
Nice greetings to [http://www.angustech.com/ Nicko] from Barcelona, Catalonia.&lt;br /&gt;
&lt;br /&gt;
== Connecting programmer ==&lt;br /&gt;
Red board: [https://www.aliexpress.com/item/4000566777448.html FT232RL FTDI USB to TTL Serial Adapter Module used as a programmer]&lt;br /&gt;
&lt;br /&gt;
'''It is very important to check jumper socket is at 3.3 volts position (by default it is at 5 volts)'''&lt;br /&gt;
&lt;br /&gt;
[[Image:IoT-02_Programmer.jpg|center|thumb|Programmer board position]]&lt;br /&gt;
&lt;br /&gt;
== Preparing uploading ==&lt;br /&gt;
Follow these steps on VirKO board:&lt;br /&gt;
&lt;br /&gt;
* 1st: Connect 5V microusb power supply&lt;br /&gt;
&lt;br /&gt;
* 2nd: Hold reset (red) button&lt;br /&gt;
&lt;br /&gt;
* 3rd: While holding reset button, hold IO0 button (close to J1 black connector). At this step both buttons are being pressed.&lt;br /&gt;
&lt;br /&gt;
* 4th: Release reset (red) button&lt;br /&gt;
&lt;br /&gt;
* 5th: Release IO0 button&lt;br /&gt;
&lt;br /&gt;
After these steps, board is ready to be programmed.&lt;br /&gt;
&lt;br /&gt;
== Programming from terminal ==&lt;br /&gt;
Software tool: [https://github.com/espressif/esptool esptool.py]&lt;br /&gt;
&lt;br /&gt;
'''Firmware binary files''' (this is '''testing firmware for VirKO board'''):&lt;br /&gt;
&lt;br /&gt;
* 1/4) [https://www.binefa.cat/nicko/VirKO/v1.02/boot_app0.bin boot_app0.bin]&lt;br /&gt;
&lt;br /&gt;
* 2/4) [https://www.binefa.cat/nicko/VirKO/v1.02/bootloader_qio_40m.bin bootloader_qio_40m.bin]&lt;br /&gt;
&lt;br /&gt;
* 3/4) [https://www.binefa.cat/nicko/VirKO/v1.02/miniVirKO_03_test.ino.bin miniVirKO_03_test.ino.bin]&lt;br /&gt;
&lt;br /&gt;
* 4/4) [https://www.binefa.cat/nicko/VirKO/v1.02/miniVirKO_03_test.ino.partitions.bin miniVirKO_03_test.ino.partitions.bin]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Terminal command:&lt;br /&gt;
 esptool.py --chip esp32 --port '''/dev/ttyUSB0''' --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 '''IoT-02_11_modbus_bme280.ino.bootloader.bin''' 0x8000 '''IoT-02_11_modbus_bme280.ino.partitions.bin''' 0xe000 '''boot_app0.bin''' 0x10000 '''IoT-02_11_modbus_bme280.ino.bin'''&lt;br /&gt;
&lt;br /&gt;
'''/dev/ttyUSB0''' in Windows operating system is '''COM'''''x'' port (being ''x'' programmer virtual port number. For instance: COM''3'')&lt;br /&gt;
&lt;br /&gt;
[[Image:Programming_IoT-02_screenshot.png|center|Programming firmware from terminal]]&lt;br /&gt;
&lt;br /&gt;
Once programming is finished, reset button should be pressed again. Or remove red programming board and unplug power supply and plug again.&lt;br /&gt;
&lt;br /&gt;
== Programming from Windows tool ==&lt;br /&gt;
Prepare uploading with previously explained 5 steps, combining RST and IO0 buttons.&lt;br /&gt;
&lt;br /&gt;
Windows program tool: [https://www.espressif.com/en/support/download/other-tools Flash Download Tools] ([https://www.aranacorp.com/en/generating-and-uploading-bin-files-for-esp32/ Explanation about Flash Download Tools use])&lt;br /&gt;
&lt;br /&gt;
Once programming is finished, reset button should be pressed again. Or remove red programming board and unplug power supply and plug again.&lt;br /&gt;
&lt;br /&gt;
= Testing firmware =&lt;br /&gt;
[https://www.binefa.cat/nicko/VirKO/v1.02/virko_testing.mp4 Video with expecting test behavior]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Fitxer:Programming_IoT-02_screenshot.png&amp;diff=1212</id>
		<title>Fitxer:Programming IoT-02 screenshot.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Fitxer:Programming_IoT-02_screenshot.png&amp;diff=1212"/>
				<updated>2022-07-06T21:17:09Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Fitxer:IoT-02_Programmer.jpg&amp;diff=1211</id>
		<title>Fitxer:IoT-02 Programmer.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Fitxer:IoT-02_Programmer.jpg&amp;diff=1211"/>
				<updated>2022-07-06T21:16:50Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Testing_IoT-02_board&amp;diff=1210</id>
		<title>Testing IoT-02 board</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Testing_IoT-02_board&amp;diff=1210"/>
				<updated>2022-07-06T21:16:31Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : Es crea la pàgina amb «= Programming firmware = Nice greetings to [http://www.angustech.com/ Nicko] from Barcelona, Catalonia.  == Connecting programmer == Red board: [https://www.aliexpress...».&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Programming firmware =&lt;br /&gt;
Nice greetings to [http://www.angustech.com/ Nicko] from Barcelona, Catalonia.&lt;br /&gt;
&lt;br /&gt;
== Connecting programmer ==&lt;br /&gt;
Red board: [https://www.aliexpress.com/item/4000566777448.html FT232RL FTDI USB to TTL Serial Adapter Module used as a programmer]&lt;br /&gt;
&lt;br /&gt;
'''It is very important to check jumper socket is at 3.3 volts position (by default it is at 5 volts)'''&lt;br /&gt;
&lt;br /&gt;
[[Image:IoT-02_Programmer.jpg|center|thumb|Programmer board position]]&lt;br /&gt;
&lt;br /&gt;
== Preparing uploading ==&lt;br /&gt;
Follow these steps on VirKO board:&lt;br /&gt;
&lt;br /&gt;
* 1st: Connect 5V microusb power supply&lt;br /&gt;
&lt;br /&gt;
* 2nd: Hold reset (red) button&lt;br /&gt;
&lt;br /&gt;
* 3rd: While holding reset button, hold IO0 button (close to J1 black connector). At this step both buttons are being pressed.&lt;br /&gt;
&lt;br /&gt;
* 4th: Release reset (red) button&lt;br /&gt;
&lt;br /&gt;
* 5th: Release IO0 button&lt;br /&gt;
&lt;br /&gt;
After these steps, board is ready to be programmed.&lt;br /&gt;
&lt;br /&gt;
== Programming from terminal ==&lt;br /&gt;
Software tool: [https://github.com/espressif/esptool esptool.py]&lt;br /&gt;
&lt;br /&gt;
'''Firmware binary files''' (this is '''testing firmware for VirKO board'''):&lt;br /&gt;
&lt;br /&gt;
* 1/4) [https://www.binefa.cat/nicko/VirKO/v1.02/boot_app0.bin boot_app0.bin]&lt;br /&gt;
&lt;br /&gt;
* 2/4) [https://www.binefa.cat/nicko/VirKO/v1.02/bootloader_qio_40m.bin bootloader_qio_40m.bin]&lt;br /&gt;
&lt;br /&gt;
* 3/4) [https://www.binefa.cat/nicko/VirKO/v1.02/miniVirKO_03_test.ino.bin miniVirKO_03_test.ino.bin]&lt;br /&gt;
&lt;br /&gt;
* 4/4) [https://www.binefa.cat/nicko/VirKO/v1.02/miniVirKO_03_test.ino.partitions.bin miniVirKO_03_test.ino.partitions.bin]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Terminal command:&lt;br /&gt;
 esptool.py --chip esp32 --port '''/dev/ttyUSB0''' --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0xe000 '''boot_app0.bin''' 0x1000 '''bootloader_qio_40m.bin''' 0x10000 '''miniVirKO_03_test.ino.bin''' 0x8000 '''miniVirKO_03_test.ino.partitions.bin'''&lt;br /&gt;
&lt;br /&gt;
'''/dev/ttyUSB0''' in Windows operating system is '''COM'''''x'' port (being ''x'' programmer virtual port number. For instance: COM''3'')&lt;br /&gt;
&lt;br /&gt;
[[Image:Programming_IoT-02_screenshot.png|center|Programming firmware from terminal]]&lt;br /&gt;
&lt;br /&gt;
Once programming is finished, reset button should be pressed again. Or remove red programming board and unplug power supply and plug again.&lt;br /&gt;
&lt;br /&gt;
== Programming from Windows tool ==&lt;br /&gt;
Prepare uploading with previously explained 5 steps, combining RST and IO0 buttons.&lt;br /&gt;
&lt;br /&gt;
Windows program tool: [https://www.espressif.com/en/support/download/other-tools Flash Download Tools] ([https://www.aranacorp.com/en/generating-and-uploading-bin-files-for-esp32/ Explanation about Flash Download Tools use])&lt;br /&gt;
&lt;br /&gt;
Once programming is finished, reset button should be pressed again. Or remove red programming board and unplug power supply and plug again.&lt;br /&gt;
&lt;br /&gt;
= Testing firmware =&lt;br /&gt;
[https://www.binefa.cat/nicko/VirKO/v1.02/virko_testing.mp4 Video with expecting test behavior]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1209</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1209"/>
				<updated>2022-05-05T14:30:48Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Posada en marxa del PureQML */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== PureQML ===&lt;br /&gt;
[https://pureqml.com/ Pàgina oficial de PureQML]&lt;br /&gt;
&lt;br /&gt;
==== Posada en marxa del PureQML ====&lt;br /&gt;
* Instal·lació de l'eina '''python-future''':&lt;br /&gt;
 pip3 install future&lt;br /&gt;
&lt;br /&gt;
* Primera aplicació&lt;br /&gt;
 mkdir prjFolder&lt;br /&gt;
 cd prjFolder&lt;br /&gt;
 git clone https://github.com/pureqml/qmlcore.git&lt;br /&gt;
 ./qmlcore/build --boilerplate&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Obriu amb un navegador l'arxiu ''prjFolder/build.web/index.html''&lt;br /&gt;
&lt;br /&gt;
* Modificació de ''prjFolder/src/app.qml'':&lt;br /&gt;
 Text {&lt;br /&gt;
        anchors.fill: context;&lt;br /&gt;
         &lt;br /&gt;
        '''text: 'Primer exemple de pureQML';'''&lt;br /&gt;
        '''color: 'red';'''&lt;br /&gt;
        font.pixelSize: 32;&lt;br /&gt;
        verticalAlignment: Text.AlignVCenter;&lt;br /&gt;
        horizontalAlignment: Text.AlignHCenter;&lt;br /&gt;
 }&lt;br /&gt;
Reconstruïu-ho:&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Torneu a obrir amb un navegador l'arxiu ''prjFolder/build.web/index.html'' per a observar els canvis&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://www.binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
[[Examen de programació de 2n d'SMX. Curs 2021-2022 | Examen de programació de 2n d'SMX-A]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1208</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1208"/>
				<updated>2022-05-05T14:30:00Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Posada en marxa del PureQML */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== PureQML ===&lt;br /&gt;
[https://pureqml.com/ Pàgina oficial de PureQML]&lt;br /&gt;
&lt;br /&gt;
==== Posada en marxa del PureQML ====&lt;br /&gt;
* Instal·lació de l'eina '''python-future''':&lt;br /&gt;
 pip3 install future&lt;br /&gt;
&lt;br /&gt;
* Primera aplicació&lt;br /&gt;
 mkdir prjFolder&lt;br /&gt;
 cd prjFolder&lt;br /&gt;
 git clone https://github.com/pureqml/qmlcore.git&lt;br /&gt;
 ./qmlcore/build --boilerplate&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Obriu amb un navegador l'arxiu ''prjFolder/build.web/index.html''&lt;br /&gt;
&lt;br /&gt;
* Modificació de ''prjFolder/src/app.qml'':&lt;br /&gt;
 Text {&lt;br /&gt;
        anchors.fill: context;&lt;br /&gt;
         &lt;br /&gt;
        '''text: 'Primer exemle de pureQML';'''&lt;br /&gt;
        '''color: 'red';'''&lt;br /&gt;
        font.pixelSize: 32;&lt;br /&gt;
        verticalAlignment: Text.AlignVCenter;&lt;br /&gt;
        horizontalAlignment: Text.AlignHCenter;&lt;br /&gt;
 }&lt;br /&gt;
Reconstruïu-ho:&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Torneu a obrir amb un navegador l'arxiu ''prjFolder/build.web/index.html'' per a observar els canvis&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://www.binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
[[Examen de programació de 2n d'SMX. Curs 2021-2022 | Examen de programació de 2n d'SMX-A]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1207</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1207"/>
				<updated>2022-05-05T14:29:01Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Posada en marxa del PureQML */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== PureQML ===&lt;br /&gt;
[https://pureqml.com/ Pàgina oficial de PureQML]&lt;br /&gt;
&lt;br /&gt;
==== Posada en marxa del PureQML ====&lt;br /&gt;
* Instal·lació de l'eina '''python-future''':&lt;br /&gt;
 pip3 install future&lt;br /&gt;
&lt;br /&gt;
* Primera aplicació&lt;br /&gt;
 mkdir prjFolder&lt;br /&gt;
 cd prjFolder&lt;br /&gt;
 git clone https://github.com/pureqml/qmlcore.git&lt;br /&gt;
 ./qmlcore/build --boilerplate&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Obriu amb un navegador l'arxiu ''prjFolder/build.web/index.html''&lt;br /&gt;
&lt;br /&gt;
* Modificació de ''prjFolder/src/app.qml'':&lt;br /&gt;
 Text {&lt;br /&gt;
	anchors.fill: context;&lt;br /&gt;
 &lt;br /&gt;
	'''text: 'Primer exemle de pureQML';'''&lt;br /&gt;
	'''color: 'red';'''&lt;br /&gt;
	font.pixelSize: 32;&lt;br /&gt;
	verticalAlignment: Text.AlignVCenter;&lt;br /&gt;
	horizontalAlignment: Text.AlignHCenter;&lt;br /&gt;
 }&lt;br /&gt;
Reconstruïu-ho:&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Torneu a obrir amb un navegador l'arxiu ''prjFolder/build.web/index.html'' per a observar els canvis&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://www.binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
[[Examen de programació de 2n d'SMX. Curs 2021-2022 | Examen de programació de 2n d'SMX-A]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1206</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1206"/>
				<updated>2022-05-05T14:28:01Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Programació */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== PureQML ===&lt;br /&gt;
[https://pureqml.com/ Pàgina oficial de PureQML]&lt;br /&gt;
&lt;br /&gt;
==== Posada en marxa del PureQML ====&lt;br /&gt;
* Instal·lació de l'eina '''python-future''':&lt;br /&gt;
 pip3 install future&lt;br /&gt;
&lt;br /&gt;
* Primera aplicació&lt;br /&gt;
 mkdir prjFolder&lt;br /&gt;
 cd prjFolder&lt;br /&gt;
 git clone https://github.com/pureqml/qmlcore.git&lt;br /&gt;
 ./qmlcore/build --boilerplate&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Obriu amb un navegador l'arxiu ''prjFolder/build.web/index.html''&lt;br /&gt;
&lt;br /&gt;
* Modificació de ''prjFolder/src/app.qml'':&lt;br /&gt;
 Text {&lt;br /&gt;
	anchors.fill: context;&lt;br /&gt;
&lt;br /&gt;
	'''text: 'Primer exemle de pureQML';'''&lt;br /&gt;
	'''color: 'red';'''&lt;br /&gt;
	font.pixelSize: 32;&lt;br /&gt;
	verticalAlignment: Text.AlignVCenter;&lt;br /&gt;
	horizontalAlignment: Text.AlignHCenter;&lt;br /&gt;
 }&lt;br /&gt;
Reconstruïu-ho:&lt;br /&gt;
 ./qmlcore/build &lt;br /&gt;
&lt;br /&gt;
Torneu a obrir amb un navegador l'arxiu ''prjFolder/build.web/index.html'' per a observar els canvis&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://www.binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
[[Examen de programació de 2n d'SMX. Curs 2021-2022 | Examen de programació de 2n d'SMX-A]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1205</id>
		<title>Examen de programació de 2n d'SMX. Curs 2021-2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1205"/>
				<updated>2022-04-21T16:53:37Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Resta de dos valors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Haureu de fer un document en pdf amb aquest format '''SMX-Prg_Cognom1Cognom2Nom.pdf'''. Feu captures de codi i de prova de funcionament.&lt;br /&gt;
= Modificació d'un programa =&lt;br /&gt;
Modifiqueu aquest programa per a que hi surti pel terminal. &amp;quot;'''Hola, el meu nom és''' ''&amp;lt;el vostre nom&amp;gt;'' '''i faig 2n d'SMX'''&amp;quot;. (a ''&amp;lt;el vostre nom&amp;gt;'' ha de sortir el vostre nom).&lt;br /&gt;
 print(&amp;quot;Hola Univers!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
= Modificació d'un programa =&lt;br /&gt;
Adapteu aquest programa per a que surti el vostre nom i la vostra edat:&lt;br /&gt;
 nom = &amp;quot;Pep&amp;quot;&lt;br /&gt;
 edat = 18&lt;br /&gt;
 print(&amp;quot;El meu nom és %s i tinc %d anys&amp;quot;%(nom,edat))&lt;br /&gt;
&lt;br /&gt;
= Suma de dos valors =&lt;br /&gt;
Feu un programa que demani dos números i us presenti la suma.&lt;br /&gt;
&lt;br /&gt;
Recordeu que per a demanar un número cal posar '''int''' abans de l''''input''':&lt;br /&gt;
 nA = int(input(&amp;quot;a: &amp;quot;))&lt;br /&gt;
&lt;br /&gt;
= Resta de dos valors =&lt;br /&gt;
Feu un programa que demani dos números i us presenti la resta.&lt;br /&gt;
&lt;br /&gt;
= Multiplicació de dos valors =&lt;br /&gt;
Feu un programa que demani dos números i us presenti la resta.&lt;br /&gt;
&lt;br /&gt;
= Nom i edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= Nom i edat. Informa si ets major d'edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació, dient si sou major d'edat o no, amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= Bucle for =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''for''.&lt;br /&gt;
&lt;br /&gt;
''Pista'':&lt;br /&gt;
 nCops = int(input(&amp;quot;Número de cops: &amp;quot;))&lt;br /&gt;
 for n in range(nCops):&lt;br /&gt;
    print(&amp;quot;%d) Cadena repetida&amp;quot;%n)&lt;br /&gt;
&lt;br /&gt;
= Bucle while =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''while''.&lt;br /&gt;
&lt;br /&gt;
= Bucle infinit =&lt;br /&gt;
Feu un programa que pregunti un número entre 15 i 25, ambdós inclosos. En cas d'introduir un número inferior a 15 o superior a 25 es torna a fer la pregunta.&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1204</id>
		<title>Examen de programació de 2n d'SMX. Curs 2021-2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1204"/>
				<updated>2022-04-21T16:52:59Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Suma de dos valors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Haureu de fer un document en pdf amb aquest format '''SMX-Prg_Cognom1Cognom2Nom.pdf'''. Feu captures de codi i de prova de funcionament.&lt;br /&gt;
= Modificació d'un programa =&lt;br /&gt;
Modifiqueu aquest programa per a que hi surti pel terminal. &amp;quot;'''Hola, el meu nom és''' ''&amp;lt;el vostre nom&amp;gt;'' '''i faig 2n d'SMX'''&amp;quot;. (a ''&amp;lt;el vostre nom&amp;gt;'' ha de sortir el vostre nom).&lt;br /&gt;
 print(&amp;quot;Hola Univers!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
= Modificació d'un programa =&lt;br /&gt;
Adapteu aquest programa per a que surti el vostre nom i la vostra edat:&lt;br /&gt;
 nom = &amp;quot;Pep&amp;quot;&lt;br /&gt;
 edat = 18&lt;br /&gt;
 print(&amp;quot;El meu nom és %s i tinc %d anys&amp;quot;%(nom,edat))&lt;br /&gt;
&lt;br /&gt;
= Suma de dos valors =&lt;br /&gt;
Feu un programa que demani dos números i us presenti la suma.&lt;br /&gt;
&lt;br /&gt;
Recordeu que per a demanar un número cal posar '''int''' abans de l''''input''':&lt;br /&gt;
 nA = int(input(&amp;quot;a: &amp;quot;))&lt;br /&gt;
&lt;br /&gt;
= Resta de dos valors =&lt;br /&gt;
Feu un programa que demani dos números i us presenti la resta.&lt;br /&gt;
&lt;br /&gt;
= Nom i edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= Nom i edat. Informa si ets major d'edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació, dient si sou major d'edat o no, amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= Bucle for =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''for''.&lt;br /&gt;
&lt;br /&gt;
''Pista'':&lt;br /&gt;
 nCops = int(input(&amp;quot;Número de cops: &amp;quot;))&lt;br /&gt;
 for n in range(nCops):&lt;br /&gt;
    print(&amp;quot;%d) Cadena repetida&amp;quot;%n)&lt;br /&gt;
&lt;br /&gt;
= Bucle while =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''while''.&lt;br /&gt;
&lt;br /&gt;
= Bucle infinit =&lt;br /&gt;
Feu un programa que pregunti un número entre 15 i 25, ambdós inclosos. En cas d'introduir un número inferior a 15 o superior a 25 es torna a fer la pregunta.&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1203</id>
		<title>Examen de programació de 2n d'SMX. Curs 2021-2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1203"/>
				<updated>2022-04-21T16:52:17Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Haureu de fer un document en pdf amb aquest format '''SMX-Prg_Cognom1Cognom2Nom.pdf'''. Feu captures de codi i de prova de funcionament.&lt;br /&gt;
= Modificació d'un programa =&lt;br /&gt;
Modifiqueu aquest programa per a que hi surti pel terminal. &amp;quot;'''Hola, el meu nom és''' ''&amp;lt;el vostre nom&amp;gt;'' '''i faig 2n d'SMX'''&amp;quot;. (a ''&amp;lt;el vostre nom&amp;gt;'' ha de sortir el vostre nom).&lt;br /&gt;
 print(&amp;quot;Hola Univers!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
= Modificació d'un programa =&lt;br /&gt;
Adapteu aquest programa per a que surti el vostre nom i la vostra edat:&lt;br /&gt;
 nom = &amp;quot;Pep&amp;quot;&lt;br /&gt;
 edat = 18&lt;br /&gt;
 print(&amp;quot;El meu nom és %s i tinc %d anys&amp;quot;%(nom,edat))&lt;br /&gt;
&lt;br /&gt;
= Suma de dos valors =&lt;br /&gt;
Feu un programa que demani dos números i us presenti la suma.&lt;br /&gt;
&lt;br /&gt;
Recordeu que per a demanar un número cal posar '''int''' abans de l''''input''':&lt;br /&gt;
 nA = int(input(&amp;quot;a: &amp;quot;))&lt;br /&gt;
&lt;br /&gt;
= Nom i edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= Nom i edat. Informa si ets major d'edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació, dient si sou major d'edat o no, amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= Bucle for =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''for''.&lt;br /&gt;
&lt;br /&gt;
''Pista'':&lt;br /&gt;
 nCops = int(input(&amp;quot;Número de cops: &amp;quot;))&lt;br /&gt;
 for n in range(nCops):&lt;br /&gt;
    print(&amp;quot;%d) Cadena repetida&amp;quot;%n)&lt;br /&gt;
&lt;br /&gt;
= Bucle while =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''while''.&lt;br /&gt;
&lt;br /&gt;
= Bucle infinit =&lt;br /&gt;
Feu un programa que pregunti un número entre 15 i 25, ambdós inclosos. En cas d'introduir un número inferior a 15 o superior a 25 es torna a fer la pregunta.&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1202</id>
		<title>Examen de programació de 2n d'SMX. Curs 2021-2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1202"/>
				<updated>2022-04-21T16:51:47Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Haureu de fer un document en pdf amb aquest format '''SMX-Prg_Cognom1Cognom2Nom.pdf'''. Feu captures de codi i de prova de funcionament.&lt;br /&gt;
= 1) Modificació d'un programa =&lt;br /&gt;
Modifiqueu aquest programa per a que hi surti pel terminal. &amp;quot;'''Hola, el meu nom és''' ''&amp;lt;el vostre nom&amp;gt;'' '''i faig 2n d'SMX'''&amp;quot;. (a ''&amp;lt;el vostre nom&amp;gt;'' ha de sortir el vostre nom).&lt;br /&gt;
 print(&amp;quot;Hola Univers!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
= 2) Modificació d'un programa =&lt;br /&gt;
Adapteu aquest programa per a que surti el vostre nom i la vostra edat:&lt;br /&gt;
 nom = &amp;quot;Pep&amp;quot;&lt;br /&gt;
 edat = 18&lt;br /&gt;
 print(&amp;quot;El meu nom és %s i tinc %d anys&amp;quot;%(nom,edat))&lt;br /&gt;
&lt;br /&gt;
= 3) Suma de dos valors =&lt;br /&gt;
Feu un programa que demani dos números i us presenti la suma.&lt;br /&gt;
&lt;br /&gt;
Recordeu que per a demanar un número cal posar '''int''' abans de l''''input''':&lt;br /&gt;
 nA = int(input(&amp;quot;a: &amp;quot;))&lt;br /&gt;
&lt;br /&gt;
= 3) Nom i edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= 4) Nom i edat. Informa si ets major d'edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació, dient si sou major d'edat o no, amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= 5) Bucle for =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''for''.&lt;br /&gt;
&lt;br /&gt;
''Pista'':&lt;br /&gt;
 nCops = int(input(&amp;quot;Número de cops: &amp;quot;))&lt;br /&gt;
 for n in range(nCops):&lt;br /&gt;
    print(&amp;quot;%d) Cadena repetida&amp;quot;%n)&lt;br /&gt;
&lt;br /&gt;
= 6) Bucle while =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''while''.&lt;br /&gt;
&lt;br /&gt;
= 7) Bucle infinit =&lt;br /&gt;
Feu un programa que pregunti un número entre 15 i 25, ambdós inclosos. En cas d'introduir un número inferior a 15 o superior a 25 es torna a fer la pregunta.&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1201</id>
		<title>Examen de programació de 2n d'SMX. Curs 2021-2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1201"/>
				<updated>2022-04-21T16:49:00Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Haureu de fer un document en pdf amb aquest format '''SMX-Prg_Cognom1Cognom2Nom.pdf'''. Feu captures de codi i de prova de funcionament.&lt;br /&gt;
= 1) Modificació d'un programa =&lt;br /&gt;
Modifiqueu aquest programa per a que hi surti pel terminal. &amp;quot;'''Hola, el meu nom és''' ''&amp;lt;el vostre nom&amp;gt;'' '''i faig 2n d'SMX'''&amp;quot;. (a ''&amp;lt;el vostre nom&amp;gt;'' ha de sortir el vostre nom).&lt;br /&gt;
 print(&amp;quot;Hola Univers!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
= 2) Modificació d'un programa =&lt;br /&gt;
Adapteu aquest programa per a que surti el vostre nom i la vostra edat:&lt;br /&gt;
 nom = &amp;quot;Pep&amp;quot;&lt;br /&gt;
 edat = 18&lt;br /&gt;
 print(&amp;quot;El meu nom és %s i tinc %d anys&amp;quot;%(nom,edat))&lt;br /&gt;
&lt;br /&gt;
= 3) Nom i edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= 4) Nom i edat. Informa si ets major d'edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació, dient si sou major d'edat o no, amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= 5) Bucle for =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''for''.&lt;br /&gt;
&lt;br /&gt;
''Pista'':&lt;br /&gt;
 nCops = int(input(&amp;quot;Número de cops: &amp;quot;))&lt;br /&gt;
 for n in range(nCops):&lt;br /&gt;
    print(&amp;quot;%d) Cadena repetida&amp;quot;%n)&lt;br /&gt;
&lt;br /&gt;
= 6) Bucle while =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''while''.&lt;br /&gt;
&lt;br /&gt;
= 7) Bucle infinit =&lt;br /&gt;
Feu un programa que pregunti un número entre 15 i 25, ambdós inclosos. En cas d'introduir un número inferior a 15 o superior a 25 es torna a fer la pregunta.&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1200</id>
		<title>Examen de programació de 2n d'SMX. Curs 2021-2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1200"/>
				<updated>2022-04-21T16:48:15Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* 1) Modificació d'un programa */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Haureu de fer un document en pdf amb aquest format '''SMX-Prg_Cognom1Cognom2Nom.pdf'''. Feu captures de codi i de prova de funcionament.&lt;br /&gt;
= 1) Modificació d'un programa =&lt;br /&gt;
Modifiqueu aquest programa per a que hi surti pel terminal. &amp;quot;'''Hola, el meu nom és''' ''&amp;lt;el vostre nom&amp;gt;'' '''i faig 2n d'SMX'''&amp;quot;. (a ''&amp;lt;el vostre nom&amp;gt;'' ha de sortir el vostre nom).&lt;br /&gt;
 print(&amp;quot;Hola Univers!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
= 2) Modificació d'un programa =&lt;br /&gt;
Adapteu aquest programa per a que surti el vostre nom i la vostra edat:&lt;br /&gt;
 nom = &amp;quot;Pep&amp;quot;&lt;br /&gt;
 edat = 18&lt;br /&gt;
 print(&amp;quot;El meu nom és %s i tinc %d anys&amp;quot;%(nom,edat))&lt;br /&gt;
&lt;br /&gt;
= Nom i edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= Nom i edat. Informa si ets major d'edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació, dient si sou major d'edat o no, amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= Bucle for =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''for''.&lt;br /&gt;
&lt;br /&gt;
''Pista'':&lt;br /&gt;
 nCops = int(input(&amp;quot;Número de cops: &amp;quot;))&lt;br /&gt;
 for n in range(nCops):&lt;br /&gt;
    print(&amp;quot;%d) Cadena repetida&amp;quot;%n)&lt;br /&gt;
&lt;br /&gt;
= Bucle while =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''while''.&lt;br /&gt;
&lt;br /&gt;
= Bucle infinit =&lt;br /&gt;
Feu un programa que pregunti un número entre 15 i 25, ambdós inclosos. En cas d'introduir un número inferior a 15 o superior a 25 es torna a fer la pregunta.&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1199</id>
		<title>Examen de programació de 2n d'SMX. Curs 2021-2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1199"/>
				<updated>2022-04-21T16:47:32Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Haureu de fer un document en pdf amb aquest format '''SMX-Prg_Cognom1Cognom2Nom.pdf'''. Feu captures de codi i de prova de funcionament.&lt;br /&gt;
= 1) Modificació d'un programa =&lt;br /&gt;
Modifiqueu aquest programa per a que hi surti pel terminal. &amp;quot;Hola, el meu nom és &amp;lt;el vostre nom&amp;gt; i faig 2n d'SMX. (a &amp;lt;el vostre nom&amp;gt; ha de sortir el vostre nom).&lt;br /&gt;
 print(&amp;quot;Hola Univers!&amp;quot;)&lt;br /&gt;
= 2) Modificació d'un programa =&lt;br /&gt;
Adapteu aquest programa per a que surti el vostre nom i la vostra edat:&lt;br /&gt;
 nom = &amp;quot;Pep&amp;quot;&lt;br /&gt;
 edat = 18&lt;br /&gt;
 print(&amp;quot;El meu nom és %s i tinc %d anys&amp;quot;%(nom,edat))&lt;br /&gt;
&lt;br /&gt;
= Nom i edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= Nom i edat. Informa si ets major d'edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació, dient si sou major d'edat o no, amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= Bucle for =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''for''.&lt;br /&gt;
&lt;br /&gt;
''Pista'':&lt;br /&gt;
 nCops = int(input(&amp;quot;Número de cops: &amp;quot;))&lt;br /&gt;
 for n in range(nCops):&lt;br /&gt;
    print(&amp;quot;%d) Cadena repetida&amp;quot;%n)&lt;br /&gt;
&lt;br /&gt;
= Bucle while =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''while''.&lt;br /&gt;
&lt;br /&gt;
= Bucle infinit =&lt;br /&gt;
Feu un programa que pregunti un número entre 15 i 25, ambdós inclosos. En cas d'introduir un número inferior a 15 o superior a 25 es torna a fer la pregunta.&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1198</id>
		<title>Examen de programació de 2n d'SMX. Curs 2021-2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1198"/>
				<updated>2022-04-21T16:44:18Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Bucle for */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Haureu de fer un document en pdf amb aquest format '''SMX-Prg_Cognom1Cognom2Nom.pdf'''. Feu captures de codi i de prova de funcionament.&lt;br /&gt;
&lt;br /&gt;
= Modificació d'un programa =&lt;br /&gt;
Adapteu aquest programa per a que surti el vostre nom i la vostra edat:&lt;br /&gt;
 nom = &amp;quot;Pep&amp;quot;&lt;br /&gt;
 edat = 18&lt;br /&gt;
 print(&amp;quot;El meu nom és %s i tinc %d anys&amp;quot;%(nom,edat))&lt;br /&gt;
&lt;br /&gt;
= Nom i edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= Nom i edat. Informa si ets major d'edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació, dient si sou major d'edat o no, amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= Bucle for =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''for''.&lt;br /&gt;
&lt;br /&gt;
''Pista'':&lt;br /&gt;
 nCops = int(input(&amp;quot;Número de cops: &amp;quot;))&lt;br /&gt;
 for n in range(nCops):&lt;br /&gt;
    print(&amp;quot;%d) Cadena repetida&amp;quot;%n)&lt;br /&gt;
&lt;br /&gt;
= Bucle while =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''while''.&lt;br /&gt;
&lt;br /&gt;
= Bucle infinit =&lt;br /&gt;
Feu un programa que pregunti un número entre 15 i 25, ambdós inclosos. En cas d'introduir un número inferior a 15 o superior a 25 es torna a fer la pregunta.&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1197</id>
		<title>Examen de programació de 2n d'SMX. Curs 2021-2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1197"/>
				<updated>2022-04-21T16:40:52Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Haureu de fer un document en pdf amb aquest format '''SMX-Prg_Cognom1Cognom2Nom.pdf'''. Feu captures de codi i de prova de funcionament.&lt;br /&gt;
&lt;br /&gt;
= Modificació d'un programa =&lt;br /&gt;
Adapteu aquest programa per a que surti el vostre nom i la vostra edat:&lt;br /&gt;
 nom = &amp;quot;Pep&amp;quot;&lt;br /&gt;
 edat = 18&lt;br /&gt;
 print(&amp;quot;El meu nom és %s i tinc %d anys&amp;quot;%(nom,edat))&lt;br /&gt;
&lt;br /&gt;
= Nom i edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= Nom i edat. Informa si ets major d'edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació, dient si sou major d'edat o no, amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= Bucle for =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''for''.&lt;br /&gt;
&lt;br /&gt;
= Bucle while =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''while''.&lt;br /&gt;
&lt;br /&gt;
= Bucle infinit =&lt;br /&gt;
Feu un programa que pregunti un número entre 15 i 25, ambdós inclosos. En cas d'introduir un número inferior a 15 o superior a 25 es torna a fer la pregunta.&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1196</id>
		<title>Examen de programació de 2n d'SMX. Curs 2021-2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Examen_de_programaci%C3%B3_de_2n_d%27SMX._Curs_2021-2022&amp;diff=1196"/>
				<updated>2022-04-21T16:35:42Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : Es crea la pàgina amb «Haureu de fer un document en pdf amb aquest format '''SMX-Prg_Cognom1Cognom2Nom.pdf'''. Feu captures de codi i de prova de funcionament.  = Nom i edat = Feu un program...».&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Haureu de fer un document en pdf amb aquest format '''SMX-Prg_Cognom1Cognom2Nom.pdf'''. Feu captures de codi i de prova de funcionament.&lt;br /&gt;
&lt;br /&gt;
= Nom i edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= Nom i edat. Informa si ets major d'edat =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i la vostra edat. Després ha de presentar una salutació, dient si sou major d'edat o no, amb el vostre nom i la vostra edat.&lt;br /&gt;
&lt;br /&gt;
= Bucle for =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''for''.&lt;br /&gt;
&lt;br /&gt;
= Bucle while =&lt;br /&gt;
Feu un programa que pregunti el vostre nom i un número de repeticions. Ha de sortir tants cops com el número de repeticions: &amp;quot;Jo, &amp;lt;el vostre nom&amp;gt;, no copio en aquest examen&amp;quot;. Heu de fer servir un bucle ''while''.&lt;br /&gt;
&lt;br /&gt;
= Bucle infinit =&lt;br /&gt;
Feu un programa que pregunti un número entre 15 i 25, ambdós inclosos. En cas d'introduir un número inferior a 15 o superior a 25 es torna a fer la pregunta.&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1195</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1195"/>
				<updated>2022-04-21T16:27:30Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Escola del Clot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://www.binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
[[Examen de programació de 2n d'SMX. Curs 2021-2022 | Examen de programació de 2n d'SMX-A]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Guia_de_presentaci%C3%B3_pel_dia_29_de_juny_de_2018&amp;diff=1194</id>
		<title>Guia de presentació pel dia 29 de juny de 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Guia_de_presentaci%C3%B3_pel_dia_29_de_juny_de_2018&amp;diff=1194"/>
				<updated>2022-03-20T19:46:57Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Modbus =&lt;br /&gt;
== Teoria Modbus ==&lt;br /&gt;
[https://www.binefa.cat/php/doc/modbus/ El segon vídeo explica i compara Modbus RTU i Modbus TCP]&lt;br /&gt;
&lt;br /&gt;
== Exemples de Modbus RTU ==&lt;br /&gt;
[https://www.binefa.cat/blog/?p=275 Modbus RTU using Python and Qt] (Fent servir un mòdul TCP RTU comercial)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/blog/?p=277 Modbus RTU using Arduino and pyQt] (Fent servir la placa [http://makeit.cat/cat/ S4A PLB] pel port USB)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/blog/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (Fent servir la placa [http://makeit.cat/cat/ S4A PLB] connectant un mòdul RS485)&lt;br /&gt;
&lt;br /&gt;
== Modbus TCP i NodeRED ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/tree/master/esp8266_modbus_estatBoto_LDR_i_led_02b_rPrim Codi Modbus TCP sobre l'ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/modbus/ Arxius per treballar amb Modbus TCP]&lt;br /&gt;
&lt;br /&gt;
= Indusoft =&lt;br /&gt;
[http://cicles.info/owncloud/ Descàrrega d'Indusoft]&lt;br /&gt;
&lt;br /&gt;
Usuari: jclua&lt;br /&gt;
&lt;br /&gt;
Contrasenya: jclua&lt;br /&gt;
&lt;br /&gt;
== Instal·lació i llicències ==&lt;br /&gt;
[https://www.binefa.cat/training/indusoft/InduSoft%20Web%20Studio%20Educational%20-%20Installation%20and%20Licensing.pdf Instal·lació i llicències]&lt;br /&gt;
&lt;br /&gt;
== Introducció ==&lt;br /&gt;
[https://www.binefa.cat/training/indusoft/indusoftIntro00.pdf Introducció al disseny amb InduSoft]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/indusoft/WWIWS80TrainingManualRevB.PDF InduSoft Web Studio 8.0 Training Manual] (Revision B - January 2016)&lt;br /&gt;
&lt;br /&gt;
== Port sèrie a Indusoft ==&lt;br /&gt;
[https://www.binefa.cat/php/doc/plc/omron/CP1E_SerialPort/ Ús del port sèrie a un autòmat programable] (Cas de l'autòmat (PLC) d'Omron CP1E)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (Exemple fent servir Arduino)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (Exemple fent servir Arduino)&lt;br /&gt;
&lt;br /&gt;
== Modbus TCP a Indusoft ==&lt;br /&gt;
&lt;br /&gt;
== MQTT a Indusoft ==&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Guia_de_presentaci%C3%B3_pel_dia_26_de_juny_de_2018&amp;diff=1193</id>
		<title>Guia de presentació pel dia 26 de juny de 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Guia_de_presentaci%C3%B3_pel_dia_26_de_juny_de_2018&amp;diff=1193"/>
				<updated>2022-03-20T19:46:33Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Primera part ===&lt;br /&gt;
[https://www.binefa.cat/IoT/04_conjunt02.pdf Conjunt IoT. Prova de connectivitat a The Things Network]&lt;br /&gt;
&lt;br /&gt;
Per saber si l'adreça per defecte del PCF8574 és 0x20 o 0x38 podeu escanejar tots els dispositius I2C amb [https://github.com/jordibinefa/arduino-IDE-codes/blob/master/esp32_i2cScanner_02/esp32_i2cScanner_02.ino esp32_i2cScanner_02.ino]. &lt;br /&gt;
&lt;br /&gt;
Per a determinar quin I2C escollir fem una mirada a l'esquema de la [https://binefa.cat/IoT/iot_01.pdf placa base IoT blanca] &lt;br /&gt;
&lt;br /&gt;
Al NodeRED a '''App''' va el nom d''''Application''' a TTN ([https://www.thethingsnetwork.org/ The Things Network])&lt;br /&gt;
&lt;br /&gt;
A l''''Access Key''' del NodeRED va el '''default key''' d''''ACCESS KEYS''' a TTN&lt;br /&gt;
&lt;br /&gt;
A la funció '''Cap a TTN''' del NodeRED al camp '''dev_id''' s'ha de posar el nom del dispositiu corresponent de la llista '''Devices''' a TTN&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/04b_reflexionsTTN.pdf Algunes reflexions sobre l'ús real de The Things Network]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/02_ttncat_taller_presentacio_mkrwan1300.pdf The Things Network.cat - Xarxa comunitària per a l’Internet de les Coses]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/03_introLoRaWAN.pdf Introducció a LoRaWAN]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/05_lorawan_usPractic.pdf Ampliació de la connectivitat a The Things Network]&lt;br /&gt;
&lt;br /&gt;
=== Segona part ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/teoria/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/udpCtrl/ UDP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[[Afegint la targeta ESP8266 a l'IDE d'Arduino]] (NodeMCU1.0)&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/esp8266_udpClient_01/esp8266_udpClient_01.ino esp8266_udpClient_01.ino]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/esp8266_udpServer_01/esp8266_udpServer_01.ino esp8266_udpServer_01.ino]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/esp32_udpServer_00/esp32_udpServer_00.ino esp32_udpServer_00.ino]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/esp32_udpClient_00/esp32_udpClient_00.ino esp32_udpClient_00.ino]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la primera part)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ MQTT amb NodeRED] (Es farà servir quan s'expliqui el protocol MQTT)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED] (Es farà servir quan s'expliqui el protocol ModBus TCP)&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Guia_de_presentaci%C3%B3_pel_dia_27_de_juny_de_2018&amp;diff=1192</id>
		<title>Guia de presentació pel dia 27 de juny de 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Guia_de_presentaci%C3%B3_pel_dia_27_de_juny_de_2018&amp;diff=1192"/>
				<updated>2022-03-20T19:46:03Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Acabem la prova de bidireccionalitat amb LoRaWAN ===&lt;br /&gt;
[https://binefa.cat/IoT/04_conjunt02.pdf Conjunt IoT. Prova de connectivitat a The Things Network]&lt;br /&gt;
&lt;br /&gt;
Per saber si l'adreça per defecte del PCF8574 és 0x20 o 0x38 podeu escanejar tots els dispositius I2C amb [https://github.com/jordibinefa/arduino-IDE-codes/blob/master/esp32_i2cScanner_02/esp32_i2cScanner_02.ino esp32_i2cScanner_02.ino]. &lt;br /&gt;
&lt;br /&gt;
Per a determinar quin I2C escollir fem una mirada a l'esquema de la [https://binefa.cat/IoT/iot_01.pdf placa base IoT blanca] &lt;br /&gt;
&lt;br /&gt;
Al NodeRED a '''App''' va el nom d''''Application''' a TTN ([https://www.thethingsnetwork.org/ The Things Network])&lt;br /&gt;
&lt;br /&gt;
A l''''Access Key''' del NodeRED va el '''default key''' d''''ACCESS KEYS''' a TTN&lt;br /&gt;
&lt;br /&gt;
A la funció '''Cap a TTN''' del NodeRED al camp '''dev_id''' s'ha de posar el nom del dispositiu corresponent de la llista '''Devices''' a TTN&lt;br /&gt;
&lt;br /&gt;
=== UDP === &lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/tree/master/esp8266_udpServer_01b esp8266_udpServer_01.ino] Codi UDP per a ESP8266&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/udpServer/udpServer_nodered_code.txt Codi NodeRED per a esp8266_udpServer_01.ino i esp32_udpServer_01b]&lt;br /&gt;
&lt;br /&gt;
Verifiqueu l'adreça del vostre PCF8574 fent servir [https://github.com/jordibinefa/arduino-IDE-codes/tree/master/esp32_i2cScanner_02 esp32_i2cScanner_02.ino]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/tree/master/esp32_udpServer_01b esp32_udpServer_01b] Codi UDP per a ESP32&lt;br /&gt;
&lt;br /&gt;
=== Teoria TCP/UDP ===&lt;br /&gt;
[https://www.binefa.cat/IoT/teoria/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet]&lt;br /&gt;
&lt;br /&gt;
=== NodeRED ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&amp;lt;!-- Després reproduir-ho per a MQTT   --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Teoria MQTT ===&lt;br /&gt;
[https://www.binefa.cat/IoT/teoria/mqtt_00.pdf Introducció a MQTT]&lt;br /&gt;
&lt;br /&gt;
QoS. Brokers remots i locals.&lt;br /&gt;
&lt;br /&gt;
=== MQTT i NodeRED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED] (Es farà servir quan s'expliqui el protocol ModBus TCP)&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació de Mosquitto (servei MQTT) a l'ordinador ===&lt;br /&gt;
[https://www.vultr.com/docs/how-to-install-mosquitto-mqtt-broker-server-on-ubuntu-16-04 How to Install Mosquitto MQTT Broker/Server on Ubuntu 16.04]&lt;br /&gt;
&lt;br /&gt;
[http://www.steves-internet-guide.com/downloads/ Instal·lació de Mosquitto a Windows]&lt;br /&gt;
&lt;br /&gt;
=== Aplicació MQTT Dash d'Android ===&lt;br /&gt;
[https://www.binefa.cat/IoT/mqtt/MQTT_Dash/ Configuració de MQTT Dash]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Guia_de_presentaci%C3%B3_pel_dia_28_de_juny_de_2018&amp;diff=1191</id>
		<title>Guia de presentació pel dia 28 de juny de 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Guia_de_presentaci%C3%B3_pel_dia_28_de_juny_de_2018&amp;diff=1191"/>
				<updated>2022-03-20T19:45:37Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Teoria TCP/UDP =&lt;br /&gt;
[https://binefa.cat/IoT/teoria/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet]&lt;br /&gt;
&lt;br /&gt;
= NodeRED =&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&amp;lt;!-- Després reproduir-ho per a MQTT   --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= MQTT =&lt;br /&gt;
== Teoria MQTT ==&lt;br /&gt;
[https://www.binefa.cat/IoT/teoria/mqtt_00.pdf Introducció a MQTT]&lt;br /&gt;
&lt;br /&gt;
QoS. Brokers remots i locals.&lt;br /&gt;
&lt;br /&gt;
== MQTT i NodeRED ==&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED] (Es farà servir quan s'expliqui el protocol ModBus TCP)&lt;br /&gt;
&lt;br /&gt;
== Instal·lació de Mosquitto (servei MQTT) a l'ordinador ==&lt;br /&gt;
[https://www.vultr.com/docs/how-to-install-mosquitto-mqtt-broker-server-on-ubuntu-16-04 How to Install Mosquitto MQTT Broker/Server on Ubuntu 16.04]&lt;br /&gt;
&lt;br /&gt;
[http://www.steves-internet-guide.com/downloads/ Instal·lació de Mosquitto a Windows]&lt;br /&gt;
&lt;br /&gt;
== Aplicació MQTT Dash d'Android ==&lt;br /&gt;
[https://www.binefa.cat/IoT/mqtt/MQTT_Dash/ Configuració de MQTT Dash]&lt;br /&gt;
&lt;br /&gt;
= Modbus =&lt;br /&gt;
== Teoria Modbus ==&lt;br /&gt;
[https://www.binefa.cat/php/doc/modbus/ El segon vídeo explica i compara Modbus RTU i Modbus TCP]&lt;br /&gt;
&lt;br /&gt;
== Exemples de Modbus RTU ==&lt;br /&gt;
[https://www.binefa.cat/blog/?p=275 Modbus RTU using Python and Qt] (Fent servir un mòdul TCP RTU comercial)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/blog/?p=277 Modbus RTU using Arduino and pyQt] (Fent servir la placa [http://makeit.cat/cat/ S4A PLB] pel port USB)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/blog/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (Fent servir la placa [http://makeit.cat/cat/ S4A PLB] connectant un mòdul RS485)&lt;br /&gt;
&lt;br /&gt;
== Modbus TCP i NodeRED ==&lt;br /&gt;
[https://www.binefa.cat/IoT/modbus/ Arxius per treballar amb Modbus TCP]&lt;br /&gt;
&lt;br /&gt;
= Indusoft =&lt;br /&gt;
[http://cicles.info/owncloud/ Descàrrega d'Indusoft]&lt;br /&gt;
&lt;br /&gt;
Usuari: jclua&lt;br /&gt;
&lt;br /&gt;
Contrasenya: jclua&lt;br /&gt;
&lt;br /&gt;
== Instal·lació i llicències ==&lt;br /&gt;
[https://www.binefa.cat/training/indusoft/InduSoft%20Web%20Studio%20Educational%20-%20Installation%20and%20Licensing.pdf Instal·lació i llicències]&lt;br /&gt;
&lt;br /&gt;
== Introducció ==&lt;br /&gt;
[https://www.binefa.cat/training/indusoft/indusoftIntro00.pdf Introducció al disseny amb InduSoft]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/indusoft/WWIWS80TrainingManualRevB.PDF InduSoft Web Studio 8.0 Training Manual] (Revision B - January 2016)&lt;br /&gt;
&lt;br /&gt;
== Port sèrie a Indusoft ==&lt;br /&gt;
[https://www.binefa.cat/php/doc/plc/omron/CP1E_SerialPort/ Ús del port sèrie a un autòmat programable] (Cas de l'autòmat (PLC) d'Omron CP1E)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (Exemple fent servir Arduino)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (Exemple fent servir Arduino)&lt;br /&gt;
&lt;br /&gt;
== Modbus TCP a Indusoft ==&lt;br /&gt;
&lt;br /&gt;
== MQTT a Indusoft ==&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Guia_de_presentaci%C3%B3_pel_dia_29_de_juny_de_2018&amp;diff=1190</id>
		<title>Guia de presentació pel dia 29 de juny de 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Guia_de_presentaci%C3%B3_pel_dia_29_de_juny_de_2018&amp;diff=1190"/>
				<updated>2022-03-20T19:44:57Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Modbus =&lt;br /&gt;
== Teoria Modbus ==&lt;br /&gt;
[https://www.binefa.cat/php/doc/modbus/ El segon vídeo explica i compara Modbus RTU i Modbus TCP]&lt;br /&gt;
&lt;br /&gt;
== Exemples de Modbus RTU ==&lt;br /&gt;
[https://www.binefa.cat/blog/?p=275 Modbus RTU using Python and Qt] (Fent servir un mòdul TCP RTU comercial)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/blog/?p=277 Modbus RTU using Arduino and pyQt] (Fent servir la placa [http://makeit.cat/cat/ S4A PLB] pel port USB)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/blog/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (Fent servir la placa [http://makeit.cat/cat/ S4A PLB] connectant un mòdul RS485)&lt;br /&gt;
&lt;br /&gt;
== Modbus TCP i NodeRED ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/tree/master/esp8266_modbus_estatBoto_LDR_i_led_02b_rPrim Codi Modbus TCP sobre l'ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/modbus/ Arxius per treballar amb Modbus TCP]&lt;br /&gt;
&lt;br /&gt;
= Indusoft =&lt;br /&gt;
[http://cicles.info/owncloud/ Descàrrega d'Indusoft]&lt;br /&gt;
&lt;br /&gt;
Usuari: jclua&lt;br /&gt;
&lt;br /&gt;
Contrasenya: jclua&lt;br /&gt;
&lt;br /&gt;
== Instal·lació i llicències ==&lt;br /&gt;
[https://binefa.cat/training/indusoft/InduSoft%20Web%20Studio%20Educational%20-%20Installation%20and%20Licensing.pdf Instal·lació i llicències]&lt;br /&gt;
&lt;br /&gt;
== Introducció ==&lt;br /&gt;
[https://binefa.cat/training/indusoft/indusoftIntro00.pdf Introducció al disseny amb InduSoft]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/training/indusoft/WWIWS80TrainingManualRevB.PDF InduSoft Web Studio 8.0 Training Manual] (Revision B - January 2016)&lt;br /&gt;
&lt;br /&gt;
== Port sèrie a Indusoft ==&lt;br /&gt;
[https://www.binefa.cat/php/doc/plc/omron/CP1E_SerialPort/ Ús del port sèrie a un autòmat programable] (Cas de l'autòmat (PLC) d'Omron CP1E)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/training/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (Exemple fent servir Arduino)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/training/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (Exemple fent servir Arduino)&lt;br /&gt;
&lt;br /&gt;
== Modbus TCP a Indusoft ==&lt;br /&gt;
&lt;br /&gt;
== MQTT a Indusoft ==&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Guia_de_presentaci%C3%B3_pel_dia_25_de_juny_de_2018&amp;diff=1189</id>
		<title>Guia de presentació pel dia 25 de juny de 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Guia_de_presentaci%C3%B3_pel_dia_25_de_juny_de_2018&amp;diff=1189"/>
				<updated>2022-03-20T19:44:18Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://wiki.binefa.cat/index.php?title=Introducci%C3%B3_a_Internet_de_les_Coses_-_juny_2018#Instal.C2.B7laci.C3.B3_de_tot_el_programari Instal·lació de tot el programari]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/01_conjunt01.pdf Conjunt IoT. Prova inicial del maquinari]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/02_ttncat_taller_presentacio_mkrwan1300.pdf The Things Network.cat - Xarxa comunitària per a l’Internet de les Coses] (S'explicarà el 20170626)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/03_introLoRaWAN.pdf Introducció a LoRaWAN] (S'explicarà el 20170626)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/04_conjunt02.pdf Conjunt IoT. Prova de connectivitat a The Things Network] (Hem arribat fins aquí. Previ a l'ús de NodeRED)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/05_lorawan_usPractic.pdf Ampliació de la connectivitat a The Things Network] (S'explicarà el 20170626)&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Introducci%C3%B3_a_Internet_de_les_Coses_-_juny_2018&amp;diff=1188</id>
		<title>Introducció a Internet de les Coses - juny 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Introducci%C3%B3_a_Internet_de_les_Coses_-_juny_2018&amp;diff=1188"/>
				<updated>2022-03-20T19:43:51Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;El contingut d'aquesta wiki s'anirà actualitzant durant la impartició del curs (del 25 al 29 de juny)&lt;br /&gt;
&lt;br /&gt;
[https://aplicacions.ensenyament.gencat.cat/pls/soloas/pk_for_mod_ins.p_for_exhaustiu_activitat?p_header=Detall%20d%27activitat^pk_for_mod_ins.p_for_detall_activitat?p_codi=0004990600%26p_curs=2017-2018%26p_es_inscr=S&amp;amp;p_codi=0004990600&amp;amp;p_curs=2017-2018&amp;amp;p_es_inscr=S Temari a l'aplicatiu web del Departament d'Ensenyament de la Generalitat 0004990600  	Internet de les coses (IoT)]&lt;br /&gt;
&lt;br /&gt;
[[Programa del curset d'introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
= Seqüència de presentacions =&lt;br /&gt;
== 20180625 ==&lt;br /&gt;
[[Guia de presentació pel dia 25 de juny de 2018]]&lt;br /&gt;
&lt;br /&gt;
== 20180626 ==&lt;br /&gt;
[[Guia de presentació pel dia 26 de juny de 2018]]&lt;br /&gt;
&lt;br /&gt;
== 20180627 ==&lt;br /&gt;
[[Guia de presentació pel dia 27 de juny de 2018]]&lt;br /&gt;
&lt;br /&gt;
== 20180628 ==&lt;br /&gt;
[[Guia de presentació pel dia 28 de juny de 2018]]&lt;br /&gt;
&lt;br /&gt;
== 20180629 ==&lt;br /&gt;
[[Guia de presentació pel dia 29 de juny de 2018]]&lt;br /&gt;
&lt;br /&gt;
= Instal·lació de tot el programari =&lt;br /&gt;
== Controladors ==&lt;br /&gt;
=== CH340 ===&lt;br /&gt;
[http://makeit.cat/downloads/MakeitQuickstart.pdf Guia d'instal·lació en pdf (document de makeit.cat)]&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat/downloads/CH341SER.zip Arxiu comprimit del controlador CH341SER.zip]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/ms-drivers-and-tools Arxiu CH341SER.zip des de https://github.com/jordibinefa/]&lt;br /&gt;
&lt;br /&gt;
=== FT232 ===&lt;br /&gt;
[http://www.ftdichip.com/Drivers/VCP.htm Controlador per a Windows de l'FT232]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/ms-drivers-and-tools Arxiu ft232.zip des de https://github.com/jordibinefa/]&lt;br /&gt;
&lt;br /&gt;
== IDE d'Arduino 1.8.5 ==&lt;br /&gt;
[https://www.arduino.cc/en/Main/Software Descàrrega de l'Arduino IDE per a instal·lar-ho a l'escriptori]&lt;br /&gt;
&lt;br /&gt;
=== Afegint més microcontroladors (targetes) a l'Arduino IDE ===&lt;br /&gt;
[https://www.arduino.cc/en/Guide/Cores Installing additional cores -Arduino official documentation-]&lt;br /&gt;
&lt;br /&gt;
==== Afegint targeta ESP8266 ====&lt;br /&gt;
[[Afegint la targeta ESP8266 a l'IDE d'Arduino]] (NodeMCU1.0)&lt;br /&gt;
&lt;br /&gt;
==== Afegint targeta ESP32 ====&lt;br /&gt;
[http://randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/ Installing the ESP32 Board in Arduino IDE (Windows instructions)]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32 Afegint la targeta ESP32 a l'IDE d'Arduino] (DOIT ESP32 DEVKIT V1)&lt;br /&gt;
&lt;br /&gt;
==== Afegint targeta Arduino MKR WAN 1300 ====&lt;br /&gt;
[http://tinkerman.cat/arduino-mkr-wan-1300/ Guia completa de l'Arduino MKR WAN 1300 d'en Xose Pérez]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Guide/MKRWAN1300 Getting Started with the Arduino MKR WAN 1300 -Arduino official documentation-]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/gonzalocasas/arduino-mkr-wan-1300 Guia de l'Arduino MKR WAN 1300 d'en Gonzalo Casas]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Tutorial/MKRWANLoraSendAndReceive How to send and receive data with the MKR WAN 1300 LoRa module -Arduino official documentation-]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Reference/MKRWAN MKRWAN library -Arduino official documentation-]&lt;br /&gt;
&lt;br /&gt;
== Pantalla OLED ==&lt;br /&gt;
[http://en.radzio.dxp.pl/bitmap_converter/ Programari convertidor d'arxiu .bmp a codi]&lt;br /&gt;
&lt;br /&gt;
== putty / gtkterm ==&lt;br /&gt;
[https://www.devmanuals.net/install/ubuntu/ubuntu-16-04-LTS-Xenial-Xerus/how-to-install-gtkterm.html El gtkterm és als dipòsits de Debian i Ubuntu.] Recordeu d'afegir el vostre usuari al grup dialout&lt;br /&gt;
&lt;br /&gt;
[https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html Download PuTTY]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/ms-drivers-and-tools Arxiu putty.exe des de https://github.com/jordibinefa/]&lt;br /&gt;
&lt;br /&gt;
== git ==&lt;br /&gt;
[https://git-scm.com/book/en/v2/Getting-Started-Installing-Git Guia d'instal·lació per a qualsevol sistema operatiu]&lt;br /&gt;
&lt;br /&gt;
[https://git-scm.com/download/win git download for Windows]&lt;br /&gt;
&lt;br /&gt;
== Filezilla / Nautilus ==&lt;br /&gt;
[https://filezilla-project.org/ FileZilla Client]&lt;br /&gt;
sftp://&lt;br /&gt;
&lt;br /&gt;
== Nextion Editor ==&lt;br /&gt;
[https://nextion.itead.cc/resources/download/ Descàrrega de l'editor de les pantalles tàctils Nextion]&lt;br /&gt;
&lt;br /&gt;
== Python ==&lt;br /&gt;
[https://www.python.org/downloads/ Instal·leu les dues versions de Python més populars, Python 2.7 i Python3] Un cop heu instal·lat el Python3, aneu a la carpeta ''C:\Users\EL_VOSTRE_USUARI\AppData\Local\Programs\Python\Python36-32'' i reanomeneu ''python.exe'' per ''python3.exe'', i després afegiu la ruta al PATH. Per a que faci efecte heu de sortir i tornar a entrar a la sessió.&lt;br /&gt;
&lt;br /&gt;
[https://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.10/ Instal·lació de PyQt4 per Python 2.7] Seleccioneu PyQt4-4.10-gpl-Py2.7-Qt4.8.4-x64.exe si la vostra màquina és de 64 bits&lt;br /&gt;
&lt;br /&gt;
[http://pyqt.sourceforge.net/Docs/PyQt5/installation.html Instal·lació de PyQt5. Funciona amb Python3] (Una altra manera és '''python3 -m pip install pyqt5''')&lt;br /&gt;
&lt;br /&gt;
[http://pyserial.readthedocs.io/en/latest/pyserial.html Instal·lació de pyserial] (Una altra manera és '''python3 -m pip install pyserial''')&lt;br /&gt;
&lt;br /&gt;
[https://www.techcoil.com/blog/how-to-setup-raspbian-stretch-lite-on-raspberry-pi-3-to-run-python-3-applications/ How to setup Raspbian Stretch Lite on Raspberry Pi 3 to run Python 3 applications ]&lt;br /&gt;
&lt;br /&gt;
== NodeRED ==&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació de NodeRED a una distribució de Linux basada en Debian]&lt;br /&gt;
&lt;br /&gt;
[https://nodered.org/docs/platforms/windows Instal·lació de NodeRED a Windows]&lt;br /&gt;
&lt;br /&gt;
[https://nodered.org/docs/hardware/raspberrypi Instal·lació de NodeRED a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
== Mosquitto ==&lt;br /&gt;
[http://www.steves-internet-guide.com/install-mosquitto-linux/ Instal·lació de mosquitto a Linux]&lt;br /&gt;
&lt;br /&gt;
[http://www.steves-internet-guide.com/install-mosquitto-broker/ Instal·lació de mosquitto a Windows]&lt;br /&gt;
&lt;br /&gt;
== Indusoft ==&lt;br /&gt;
[http://www.indusoft.com/products-downloads Descarregueu la versió acadèmica d'InduSoft (InduSoft Educational)] o compartim en un disc dur l'arxiu comprimit de 900MB.&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/indusoft/InduSoft%20Web%20Studio%20Educational%20-%20Installation%20and%20Licensing.pdf Gestió de les llicències d'ús acadèmic (de la pàgina 4 a la 7 del pdf)]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/ms-drivers-and-tools Arxiu MQTT.1.5.exe des de https://github.com/jordibinefa/ per afegir un controlador (driver) MQTT a l'InduSoft]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/training/indusoft/WWIWS80TrainingManualRevB.PDF Manual d'ús d'InduSoft]&lt;br /&gt;
&lt;br /&gt;
== Aplicacions de mòbil ==&lt;br /&gt;
[https://play.google.com/store/apps/details?id=net.routix.mqttdash&amp;amp;hl=ca MQTTDash]&lt;br /&gt;
&lt;br /&gt;
[https://play.google.com/store/apps/details?id=snr.lab.iotmqttpanel.prod&amp;amp;hl=en_US IoT MQTT Panel]&lt;br /&gt;
&lt;br /&gt;
[https://play.google.com/store/apps/details?id=com.sector_gaza.modbus_viewer Modbus Viewer]&lt;br /&gt;
&lt;br /&gt;
= Presa de contacte =&lt;br /&gt;
[https://www.binefa.cat/IoT/01_conjunt01.pdf Conjunt IoT. Prova inicial del maquinari]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/02_ttncat_taller_presentacio_mkrwan1300.pdf The Things Network.cat - Xarxa comunitària per a l’Internet de les Coses]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/03_introLoRaWAN.pdf Introducció a LoRaWAN]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/04_conjunt02.pdf Conjunt IoT. Prova de connectivitat a The Things Network]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/05_lorawan_usPractic.pdf Ampliació de la connectivitat a The Things Network]&lt;br /&gt;
&lt;br /&gt;
== Placa S4A Programming Learning Board (S4A PLB) amb Arduino Nano (Placa S4A PLB vermella. MakeIt) ==&lt;br /&gt;
Pugeu el codi [https://github.com/jordibinefa/arduino-IDE-codes/tree/master/S4AFirmware16 S4AFirmware16.ino] a la placa S4A PLB i fem proves amb l'[http://s4a.cat/ Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat/ Pàgina oficial de Make it! (kit que fa servir la placa S4A Programming Learning Board)]&lt;br /&gt;
&lt;br /&gt;
[https://electronics.cat/git/?p=s4aPLB.git Arxius de disseny en KiCad de la placa S4A Programming Learning Board]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/blog/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (pdf i codis -Scratch, ArduBlock i C d'Arduino-)&lt;br /&gt;
&lt;br /&gt;
== Placa witty ESP8266 ==&lt;br /&gt;
[[Posada en marxa de la placa witty ESP8266]]&lt;br /&gt;
&lt;br /&gt;
== Placa IoT (Placa IoT blanca. ttn.cat) ==&lt;br /&gt;
[https://www.binefa.cat/IoT/kicad/iot_01.pdf Esquema de la placa IoT blanca]&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics.cat/git/?p=IoT_ttnCat.git Arxius de disseny en KiCad de la placa IoT ttn.cat]&lt;br /&gt;
&lt;br /&gt;
=== Placa ESP32 (TTGO) ===&lt;br /&gt;
Posada en marxa de la placa amb la pantalla Nextion, l'OLED i els relés connectats a l'extensor I2C PCF8574.&lt;br /&gt;
&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_hardware_design_guidelines_en.pdf ESP32 Hardware Design Guidelines]&lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi ===&lt;br /&gt;
Accés a la Raspberry Pi mitjançant SSH amb la IP mostrada a la pantalla OLED. Aturada del programa stats. Detecció de tots els dispositius I2C connectats a la placa. Prova dels relés fent servir Python. Posar la imatge del gatet a la pantalla OLED. Verificació de funcionament dels serveis NodeRED i mosquitto, així com de la instal·lació dels nodes ''node-red-contrib-ttn'' i ''node-red-contrib-modbustcp-no-pooling''. Prova d'accés al NodeRED pel navegador i el port 1880.&lt;br /&gt;
&lt;br /&gt;
[[Instal·lació dels nodes node-red-contrib-ttn i node-red-contrib-modbustcp-no-pooling a la Raspberry Pi]]&lt;br /&gt;
&lt;br /&gt;
[https://webofthings.org/wp-content/uploads/2016/10/pi-gpio.png Distribució dels pins del GPIO]&lt;br /&gt;
&lt;br /&gt;
[http://wiringpi.com/ WiringPi is a PIN based GPIO access library written in C for the BCM2835, BCM2836 and BCM2837 SoC devices used in all Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/WiringPi/WiringPi-Python An unofficial Python port of Gordon's WiringPi library]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/itead/Segnix Segnix is an open-source interface library for hardware manipulation based on Linux platform and compatible with Arduino API. You can develop with it by using C/C++ and Python.]&lt;br /&gt;
&lt;br /&gt;
[http://docs.iteadstudio.com/Segnix/group__gpio_pin_name.html GPIO pin naming at Segnix API]&lt;br /&gt;
&lt;br /&gt;
= Perifèrics sense bus de comunicació =&lt;br /&gt;
== Convertidors bidireccionals. Font d'alimentació de 5V a 3,3V ==&lt;br /&gt;
=== Convertidors bidireccionals (3,3V &amp;lt;-&amp;gt; 5V) ===&lt;br /&gt;
[https://learn.sparkfun.com/tutorials/bi-directional-logic-level-converter-hookup-guide Bi-Directional Logic Level Converter Hookup Guide] (Level shifter)&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/logic-circuit/voltage-level-translation/overview.html Voltage level translation]&lt;br /&gt;
&lt;br /&gt;
[http://www.hagtech.com/pdf/translator.pdf Two Transistors Form Bidirectional Level Translator]&lt;br /&gt;
&lt;br /&gt;
[http://www.electronics.cat/php/common/index.php?lang=ca&amp;amp;page=508 3Bpi - Pi de les Tres Branques]&lt;br /&gt;
&lt;br /&gt;
== Font d'alimentació de 5V a 3,3V ==&lt;br /&gt;
[https://www.aliexpress.com/item/High-Quality-5PCS-5V-to-3-3V-For-DC-DC-Step-Down-Power-Supply-Buck-Module/32774098119.html Mòdul AMS1117 LDO 800mA]&lt;br /&gt;
&lt;br /&gt;
== Botons. Concepte de pull-up ==&lt;br /&gt;
[https://2minutetech.wordpress.com/2015/11/23/pull-up-and-pull-down-in-2-minutes/ Pull-up and pull-down in 2 minutes!]&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/io/input-interfacing-circuits.html Input Interfacing Circuits]&lt;br /&gt;
&lt;br /&gt;
== Microrruptors ==&lt;br /&gt;
[https://en.wikipedia.org/wiki/Miniature_snap-action_switch Miniature snap-action switch]&lt;br /&gt;
&lt;br /&gt;
[https://learn.sparkfun.com/tutorials/switch-basics Switch Basics]&lt;br /&gt;
&lt;br /&gt;
== Relés Reed ==&lt;br /&gt;
[https://www.pickeringrelay.com/introduction-reed-relay-basics-part-1/ Reed Relay basics]&lt;br /&gt;
&lt;br /&gt;
== Relés de bobina ==&lt;br /&gt;
[http://www.xtec.cat/~ccapell/rele/rele.htm Funcionament d'un relé]&lt;br /&gt;
&lt;br /&gt;
== Relés d'enclavament ==&lt;br /&gt;
[http://www.hongfa.com/pro/pdf/HFD2_en.pdf HFD2/005-M-L2-D]&lt;br /&gt;
&lt;br /&gt;
== Detecció per infrarojos ==&lt;br /&gt;
=== Detectors de seguidors de línies ===&lt;br /&gt;
[https://learn.sparkfun.com/tutorials/sparkfun-inventors-kit-for-redbot/experiment-6-line-following-with-ir-sensors Experiment 6: Line Following with IR Sparkfun Sensors]&lt;br /&gt;
&lt;br /&gt;
=== PIR ===&lt;br /&gt;
[http://www.rfwireless-world.com/Articles/motion-sensor-basics-and-motion-sensor-types.html motion sensor basics | motion sensor types]&lt;br /&gt;
&lt;br /&gt;
[http://www.nutsvolts.com/magazine/article/security-electronics-systems-and-circuits-part-1 SECURITY SYSTEM BASICS]&lt;br /&gt;
&lt;br /&gt;
== Potenciòmetres ==&lt;br /&gt;
[https://randomnerdtutorials.com/electronics-basics-how-a-potentiometer-works/ Electronics Basics – How a Potentiometer Works]&lt;br /&gt;
&lt;br /&gt;
== Encoders ==&lt;br /&gt;
[https://howtomechatronics.com/tutorials/arduino/rotary-encoder-works-use-arduino/ How Rotary Encoder Works and How To Use It with Arduino]&lt;br /&gt;
&lt;br /&gt;
== Sensors tàctils ==&lt;br /&gt;
[https://www.electronicshub.org/touch-sensors/ Touch Sensors]&lt;br /&gt;
&lt;br /&gt;
[http://www.esp32learning.com/code/esp32-capacitive-touch-example.php ESP32 capacitive touch example]&lt;br /&gt;
&lt;br /&gt;
== Pont en H. Motors ==&lt;br /&gt;
[https://howtomechatronics.com/tutorials/arduino/arduino-dc-motor-control-tutorial-l298n-pwm-h-bridge/ Arduino DC Motor Control Tutorial – L298N | PWM | H-Bridge]&lt;br /&gt;
&lt;br /&gt;
[http://www.instructables.com/id/Tutorial-for-MD-L298-Motor-Driver-Module/ Tutorial for MD-L298 Motor Driver Module]&lt;br /&gt;
&lt;br /&gt;
== Servomotors ==&lt;br /&gt;
[https://www.luisllamas.es/controlar-un-servo-con-arduino/ Controlar un servo con Arduino]&lt;br /&gt;
&lt;br /&gt;
== Sensor ultrasònic ==&lt;br /&gt;
[https://howtomechatronics.com/tutorials/arduino/ultrasonic-sensor-hc-sr04/ Ultrasonic Sensor HC-SR04 and Arduino Tutorial]&lt;br /&gt;
&lt;br /&gt;
[https://randomnerdtutorials.com/complete-guide-for-ultrasonic-sensor-hc-sr04/ Complete Guide for Ultrasonic Sensor HC-SR04 with Arduino]&lt;br /&gt;
&lt;br /&gt;
= Perifèrics amb bus de comunicació =&lt;br /&gt;
== One Wire Interface ==&lt;br /&gt;
=== DS18B20 ===&lt;br /&gt;
[https://hackernoon.com/get-on-the-good-foot-with-micropython-part-2-e1f2efaad50b Exemple en micropython de comunicació MQTT amb un ESP32 i el sensor DS18B20 (One Wire Interface)]&lt;br /&gt;
&lt;br /&gt;
[https://rohling-de.blogspot.com/2017/03/dallas-18b20-temperature-sensor.html Using Dallas 18B20 temperature sensor on Arduino]&lt;br /&gt;
&lt;br /&gt;
== SPI ==&lt;br /&gt;
=== Sensor de temperatura, humitat i altímetre. BME280 ===&lt;br /&gt;
Mode SPI: &lt;br /&gt;
A la línia 34 de [https://github.com/jordibinefa/arduino-IDE-libraries/blob/master/BlueDot_BME280_Library/examples/BME280_WeatherStation/BME280_WeatherStation.ino BME280_WeatherStation.ino] assegureu-vos de tenir:&lt;br /&gt;
&lt;br /&gt;
 bme280.parameter.communication = 2;&lt;br /&gt;
&lt;br /&gt;
Connexió a la [https://www.aliexpress.com/item/1PCS-GY-BME280-3-3-precision-altimeter-atmospheric-pressure-BME280-sensor-module/32853751253.html placa].&lt;br /&gt;
 VCC	VCC&lt;br /&gt;
 GND	GND&lt;br /&gt;
 SCL	SCK	(13)&lt;br /&gt;
 SDA	MOSI	(11)&lt;br /&gt;
 CSB	CS	(10) // bme280.parameter.SPI_cs = 2; &amp;lt;-- Canvieu el 2 per un 10&lt;br /&gt;
 SDO	MISO	(12)&lt;br /&gt;
&lt;br /&gt;
Connector P2 a la [https://binefa.cat/blog/?p=330 placa S4A PLB]&lt;br /&gt;
&lt;br /&gt;
 +----------+      +----------+&lt;br /&gt;
 | GND  SCK |      | GND  13  |&lt;br /&gt;
 | MISO MOSI|      | 12   11  |&lt;br /&gt;
   CS   x   |        10   9   |&lt;br /&gt;
 | x    A4  |      | 8    18  |&lt;br /&gt;
 | A5   +5V |      | 19   +5V |&lt;br /&gt;
 +----------+      +----------+&lt;br /&gt;
&lt;br /&gt;
[https://learn.adafruit.com/adafruit-bme280-humidity-barometric-pressure-temperature-sensor-breakout/downloads Adafruit BME280 Humidity + Barometric Pressure + Temperature Sensor Breakout]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/mgo-tec/ESP32_BME280_SPI BME280 library for SPI interface ( for Arduino - ESP32 )]&lt;br /&gt;
&lt;br /&gt;
[http://cactus.io/hookups/sensors/barometric/bme280/hookup-arduino-to-bme280-barometric-pressure-sensor-spi How to Hookup BME280 Sensor to Arduino using SPI]&lt;br /&gt;
&lt;br /&gt;
[https://robotzero.one/esp8266-two-bme280-sensors-spi/ ESP8266 with two BME280 Sensors over SPI]&lt;br /&gt;
&lt;br /&gt;
=== Ethernet. ENC28J60 ===&lt;br /&gt;
[https://www.binefa.cat/blog/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60]&lt;br /&gt;
&lt;br /&gt;
[https://naylampmechatronics.com/blog/17_Tutorial-M%C3%B3dulo-Ethernet-ENC28J60-y-Arduino.html Tutorial Módulo Ethernet ENC28J60 y Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://esp8266hints.wordpress.com/tag/enc28j60/ Cicero’s Ethernet Project] (ENC28J60 connected at ESP8266)&lt;br /&gt;
&lt;br /&gt;
=== RFID ===&lt;br /&gt;
[http://www.instructables.com/id/How-to-Use-RFID-RC522-With-Arduino-Nano/ How to Use RFID RC522 With Arduino Nano]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Jorgen-VikingGod/ESP8266-MFRC522 ESP8266-MFRC522]&lt;br /&gt;
&lt;br /&gt;
== I2C ==&lt;br /&gt;
=== Expansor d'entrades/sortides PCF8574 ===&lt;br /&gt;
[https://github.com/RobTillaart/Arduino/tree/master/libraries/PCF8574 Biblioteca PCF8574 d'en Rob Tillaart]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/esp32_Nextion_02b_/esp32_Nextion_02b_.ino Un exemple d'ús]&lt;br /&gt;
&lt;br /&gt;
=== Sensor de temperatura, humitat i altímetre. BME280 ===&lt;br /&gt;
Mode I2C:&lt;br /&gt;
&lt;br /&gt;
A la línia 34 de [https://github.com/jordibinefa/arduino-IDE-libraries/blob/master/BlueDot_BME280_Library/examples/BME280_WeatherStation/BME280_WeatherStation.ino BME280_WeatherStation.ino] assegureu-vos de tenir:&lt;br /&gt;
&lt;br /&gt;
 bme280.parameter.communication = 0;&lt;br /&gt;
&lt;br /&gt;
Connexió a la [https://www.aliexpress.com/item/1PCS-GY-BME280-3-3-precision-altimeter-atmospheric-pressure-BME280-sensor-module/32853751253.html placa].&lt;br /&gt;
 VCC	VCC     S4A PLB       ESP32&lt;br /&gt;
 GND	GND&lt;br /&gt;
 SCL	SCK	(19) (A5)      (4)&lt;br /&gt;
 SDA	MOSI	(18) (A4)     (15)&lt;br /&gt;
 CSB	CS	&lt;br /&gt;
 SDO	MISO	&lt;br /&gt;
&lt;br /&gt;
Connector P2 a la [https://binefa.cat/blog/?p=330 placa S4A PLB]&lt;br /&gt;
&lt;br /&gt;
 +----------+      +----------+&lt;br /&gt;
 | GND  SCK |      | GND  13  |&lt;br /&gt;
 | MISO MOSI|      | 12   11  |&lt;br /&gt;
   CS   x   |        10   9   |&lt;br /&gt;
 | x    A4  |      | 8    18  |&lt;br /&gt;
 | A5   +5V |      | 19   +5V |&lt;br /&gt;
 +----------+      +----------+&lt;br /&gt;
&lt;br /&gt;
Recordeu de fer servir un scanner I2C ([https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_i2c_scanner/s4a_i2c_scanner.ino s4a_i2c_scanner.ino] o [https://github.com/jordibinefa/arduino-IDE-codes/blob/master/esp32_i2cScanner/esp32_i2cScanner.ino esp32_i2cScanner.ino]) per saber l'adreça (sovint és la 0x76)&lt;br /&gt;
&lt;br /&gt;
bme280.parameter.I2CAddress = 0x77; &amp;lt;-- Canvieu el 0x77 per 0x76 o l'adreça I2C trobada.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://learn.adafruit.com/adafruit-bme280-humidity-barometric-pressure-temperature-sensor-breakout/downloads Adafruit BME280 Humidity + Barometric Pressure + Temperature Sensor Breakout]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/dam/m09uf3_m15uf1/20180410/BME280_WeatherStation_03/BME280_WeatherStation_03.ino BME280_WeatherStation_03.ino]&lt;br /&gt;
&lt;br /&gt;
=== Pantalla OLED ===&lt;br /&gt;
&lt;br /&gt;
[https://github.com/olikraus/u8g2/wiki U8g2. Monochrome graphics library for embedded devices]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Entrades analògiques (ADS1115) ===&lt;br /&gt;
[https://learn.adafruit.com/raspberry-pi-analog-to-digital-converters/ads1015-slash-ads1115 ADS1015 / ADS1115 on Raspberry Pi using Python] by Adafruit&lt;br /&gt;
&lt;br /&gt;
[http://www.bristolwatch.com/rpi/ads1115.html ADS1115 4-Channel ADC Uses I2C with Raspberry Pi] Using C and Wiring Pi library&lt;br /&gt;
&lt;br /&gt;
== UART ==&lt;br /&gt;
=== Software Serial ===&lt;br /&gt;
[https://www.arduino.cc/en/Reference/softwareSerial SoftwareSerial Library]&lt;br /&gt;
&lt;br /&gt;
=== HMISerial ===&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/esp32_generic/esp32_serialPass/esp32_serialPass.ino esp32_serialPass.ino Equivalent al Software Serial però en maquinari real sobre l'ESP32]&lt;br /&gt;
&lt;br /&gt;
=== Bluetooth ===&lt;br /&gt;
&lt;br /&gt;
= Comunicacions industrials amb port sèrie i ModBus RTU. Introducció a Indusoft =&lt;br /&gt;
== Ús d'Indusoft fent servir el port sèrie ==&lt;br /&gt;
[https://www.binefa.cat/training/indusoft/indusoftIntro00.pdf Introducció al disseny amb InduSoft]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)]&lt;br /&gt;
&lt;br /&gt;
== Exemples d'ús fent servir ModBus RTU ==&lt;br /&gt;
[https://www.binefa.cat/IoT/modbus/indusoft/modbusRTU/ Exemple de ModBus RTU fent servir InduSoft i Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/modbus/rtu/nano/ Exemple de ModBus RTU fent servir NodeRED i Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/modbus/rtu/esp32/ Exemple de ModBus RTU fent servir NodeRED i ESP32 (amb la placa IoT PLB)]&lt;br /&gt;
&lt;br /&gt;
= Comunicacions amb xarxa Ethernet. Introducció al NodeRED =&lt;br /&gt;
[https://www.binefa.cat/IoT/teoria/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet]&lt;br /&gt;
&lt;br /&gt;
== Ús del NodeRED ==&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&amp;lt;!-- Després reproduir-ho per a MQTT   --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Comunicació UDP ==&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/tree/master/esp8266_udpServer_01b esp8266_udpServer_01.ino] Codi UDP per a ESP8266&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/udpServer/udpServer_nodered_code.txt Codi NodeRED per a esp8266_udpServer_01.ino i esp32_udpServer_01b]&lt;br /&gt;
&lt;br /&gt;
Verifiqueu l'adreça del vostre PCF8574 fent servir [https://github.com/jordibinefa/arduino-IDE-codes/tree/master/esp32_i2cScanner_02 esp32_i2cScanner_02.ino]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/tree/master/esp32_udpServer_01b esp32_udpServer_01b] Codi UDP per a ESP32&lt;br /&gt;
&lt;br /&gt;
== Comunicació ModBus TCP ==&lt;br /&gt;
[https://www.binefa.cat/php/doc/modbus/ El segon vídeo explica i compara Modbus RTU i Modbus TCP]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/modbus/ Arxius per treballar amb Modbus TCP]&lt;br /&gt;
&lt;br /&gt;
== OPC-UA ==&lt;br /&gt;
[[Instal·lació de l'OPC-UA a la Raspberry Pi, fent servir Python, i control des d'Indusoft]]&lt;br /&gt;
&lt;br /&gt;
= Protocols específics d'Internet de les Coses =&lt;br /&gt;
== MQTT ==&lt;br /&gt;
[https://www.binefa.cat/IoT/teoria/mqtt_00.pdf Introducció a MQTT]&lt;br /&gt;
&lt;br /&gt;
QoS. Brokers remots i locals.&lt;br /&gt;
&lt;br /&gt;
=== MQTT i NodeRED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED] (Es farà servir quan s'expliqui el protocol ModBus TCP)&lt;br /&gt;
&lt;br /&gt;
=== Mosquitto local a l'ordinador ===&lt;br /&gt;
[https://www.vultr.com/docs/how-to-install-mosquitto-mqtt-broker-server-on-ubuntu-16-04 How to Install Mosquitto MQTT Broker/Server on Ubuntu 16.04]&lt;br /&gt;
&lt;br /&gt;
[http://www.steves-internet-guide.com/downloads/ Instal·lació de Mosquitto a Windows]&lt;br /&gt;
&lt;br /&gt;
=== Mosquitto local a la Raspberry Pi ===&lt;br /&gt;
[https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/ How to Install Mosquitto Broker on Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== Ús a Indusoft ===&lt;br /&gt;
[https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/MQTT.1.5.exe Controlador MQTT per a InduSoft]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/mqtt/indusoftMQTT.png Configuració d'Indusoft per a fer servir MQTT]&lt;br /&gt;
&lt;br /&gt;
=== Ús a Android (MQTTDash) ===&lt;br /&gt;
[https://binefa.cat/IoT/mqtt/MQTT_Dash/ Configuració de MQTT Dash]&lt;br /&gt;
&lt;br /&gt;
=== Exemples ===&lt;br /&gt;
[https://github.com/gloveboxes/ESP32-MicroPython-BME280-MQTT-Sample Exemple en micropython de comunicació MQTT amb un ESP32 i el sensor BME280 (I2C)]&lt;br /&gt;
&lt;br /&gt;
[https://hackernoon.com/get-on-the-good-foot-with-micropython-part-2-e1f2efaad50b Exemple en micropython de comunicació MQTT amb un ESP32 i el sensor DS18B20 (One Wire Interface)]&lt;br /&gt;
&lt;br /&gt;
== CoAP ==&lt;br /&gt;
[http://coap.technology/ CoAP. RFC 7252 Constrained Application Protocol]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/automote/ESP-CoAP thingTronics ESP8266 12E Arduino Library]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/hirotakaster/CoAP-simple-library CoAP simple server, client library for Arduino IDE, ESP32.]&lt;br /&gt;
&lt;br /&gt;
= LoRaWAN =&lt;br /&gt;
&lt;br /&gt;
== Introducció ==&lt;br /&gt;
El sistema de comunicació LoRa va ser inventat per [https://www.semtech.com/ SemTech] per a la lectura de comptadors de llum.&lt;br /&gt;
&lt;br /&gt;
=== LoRa vs LoRaWAN ===&lt;br /&gt;
[[Fitxer:Lora_vs_lorawan.png|center|caption]]&lt;br /&gt;
&lt;br /&gt;
[http://www.rfwireless-world.com/Terminology/LoRa-vs-LoRaWAN.html LoRa vs LoRaWAN-Difference between LoRa and LoRaWAN]&lt;br /&gt;
&lt;br /&gt;
=== Bones pràctiques ===&lt;br /&gt;
En general, la normativa europea de les freqüències de ràdio al voltant dels 868MHz diu que tan sols podem fer un ús d'un 1% per hora de l'espectre (1% de 3600 segons = 36 segons per hora). '''Als missatges de pujada''' (''uplink''), els que tramet el node cap a les passarel·les, '''la recomanació de bones pràctiques de The Things Network és fer servir l'espectre 30 segons al dia''' (per tant, és 24 cops més restrictiva que la normativa europea) '''de temps a l'aire''' (''TOA'', Time on Air). Depenent de les característiques de comunicació del missatge el temps a l'aire pot anar entre 30 milisegons (permetent 1000 missatges diaris) i 6 segons (permetent 5 missatges diaris). Això és degut a que els nodes fan ''broadcasting'' (emeten a tothom) i més d'una passarel·la pot capturar el mateix missatge. '''Als missatges de baixada''' (''downlink'', de la passarel·la al node) '''la recomanació de bones pràctiques de The Things Network és fer servir un màxim de 10 missatges al dia'''.&lt;br /&gt;
&lt;br /&gt;
[https://www.thethingsnetwork.org/forum/t/limitations-data-rate-packet-size-30-seconds-uplink-and-10-messages-downlink-per-day-fair-access-policy/1300 Limitations: data rate, packet size, 30 seconds uplink and 10 messages downlink per day Fair Access Policy]&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/1voGAtQAjC1qBmaVuP1ApNKs1ekgUjavHuVQIXyYSvNc/edit#gid=0 LoRa airtime calculator]&lt;br /&gt;
&lt;br /&gt;
[https://www.disk91.com/2017/technology/internet-of-things-technology/all-what-you-need-to-know-about-regulation-on-rf-868mhz-for-lpwan/ All what you need to know about regulation on RF 868MHz for LPWan]&lt;br /&gt;
&lt;br /&gt;
=== LoRa ===&lt;br /&gt;
[https://www.binefa.cat/blog/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (19 / juny / 2016)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/blog/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (15 / juny / 2016)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/blog/?p=311 ESP8266 library for SX1276 using LoRa and PyQt] (13 / juny / 2016)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/blog/?p=292 Arduino library for SX1276 using LoRa and PyQt] (6 / juny / 2016)&lt;br /&gt;
&lt;br /&gt;
== The Things Network ==&lt;br /&gt;
[https://binefa.cat/IoT/lora/lorawan/ttncat_taller_presentacio_mkrwan1300.pdf Taller de presentació de The Things Network i exemple d'ús d'un termòstat emprant l'MKR WAN 1300] (Presentació de [https://thethingsnetwork.cat/index.php/The_Things_Network_Catalunya thethingsnetwork.cat])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/lora/lorawan/ttncat_taller_visualitzacions.pdf Visualització de dades] (Presentació de [https://thethingsnetwork.cat/index.php/The_Things_Network_Catalunya thethingsnetwork.cat])&lt;br /&gt;
&lt;br /&gt;
[https://thethingsnetwork.cat/index.php/The_Things_Network_Catalunya Pàgina oficial de The Things Network - Catalunya]&lt;br /&gt;
&lt;br /&gt;
[https://www.thethingsnetwork.org/ Pàgina oficial de The Things Network. Gestió web de passarel·les i nodes]&lt;br /&gt;
&lt;br /&gt;
== NodeRED. Nodes TTN i ús amb MQTT ==&lt;br /&gt;
[https://binefa.cat/IoT/lora/lorawan/lorawan_usPractic.pdf Cas pràctic d'ús de LoRaWAN. Node de TTGO connectat a The Things Network]&lt;br /&gt;
&lt;br /&gt;
[[Instal·lació dels nodes node-red-contrib-ttn i node-red-contrib-modbustcp-no-pooling a la Raspberry Pi]]&lt;br /&gt;
&lt;br /&gt;
= Comunicació remota amb Raspberry Pi =&lt;br /&gt;
[https://binefa.cat/IoT/RPi/ordresBasiques.pdf Algunes ordres útils]&lt;br /&gt;
&lt;br /&gt;
== SSH, accés segur sense contrasenya i túnel invers SSH ==&lt;br /&gt;
[https://www.binefa.cat/IoT/RPi/tunelSshInvers_RPi.pdf Implementació d'un túnel SSH invers]&lt;br /&gt;
&lt;br /&gt;
== screen ==&lt;br /&gt;
[https://www.binefa.cat/IoT/RPi/screen.pdf screen. Persistència de les accions remotes]&lt;br /&gt;
&lt;br /&gt;
== Raspberry Pi com a punt d'accés ==&lt;br /&gt;
[[Raspberry Pi com a punt d'accés]]&lt;br /&gt;
&lt;br /&gt;
= HMI de baix cost. Pantalla tàctil Nextion =&lt;br /&gt;
[https://www.itead.cc/wiki/Nextion_Instruction_Set Nextion Instruction Set]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries/tree/master/ITEADLIB_Arduino_Nextion Biblioteca modificada de Nextion per a IDE d'Arduino]([https://raw.githubusercontent.com/jordibinefa/arduino-IDE-libraries/master/ITEADLIB_Arduino_Nextion/NexConfig.h NexConfig.h])&lt;br /&gt;
&lt;br /&gt;
[https://github.com/itead/ITEADLIB_Arduino_Nextion Biblioteca original de Nextion per a Arduino]&lt;br /&gt;
&lt;br /&gt;
== Pantalla Nextion connectada a la Raspberry Pi ==&lt;br /&gt;
[https://www.itead.cc/blog/how-to-use-nextion-to-work-with-raspberry-pi How to use Nextion to work with Raspberry Pi?]&lt;br /&gt;
&lt;br /&gt;
[https://www.itead.cc/blog/raspberry-pi-3-add-on-supplementary-document Raspberry Pi 3 add-on supplementary document v1.0]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/raffmont/pynextion A Python library for Nextion smart display management]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=Rxsw9-ia00o Nextion HMI with Raspberry PI and NodeRED] Video by [https://twitter.com/oriolrius Oriol Rius]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=BzJzPV4zM4M Nextion HMI with Raspberry PI] Video by [https://twitter.com/oriolrius Oriol Rius]&lt;br /&gt;
&lt;br /&gt;
= Alternatives al C de l'Arduino IDE =&lt;br /&gt;
[https://www.binefa.cat/IoT/esp8266/esp8266_03.pdf ESP8266. ESP-12E Development Board] (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[https://leanpub.com/kolban-ESP32 Kolban's book on ESP32] (June 2018)&lt;br /&gt;
&lt;br /&gt;
[https://leanpub.com/ESP8266_ESP32 Kolban's Book on the ESP8266] (November 2016)&lt;br /&gt;
&lt;br /&gt;
== LUA ==&lt;br /&gt;
[https://learn.adafruit.com/diy-esp8266-home-security-with-lua-and-mqtt/programming-the-esp8266-with-lua Programming the ESP8266 With Lua]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/18666-luanode-for-esp32 LuaNode For ESP32]&lt;br /&gt;
&lt;br /&gt;
== MicroPython ==&lt;br /&gt;
[https://github.com/micropython/micropython/tree/master/ports/esp8266 MicroPython port to ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/micropython/micropython/tree/master/ports/esp32 MicroPython port to the ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://hackernoon.com/get-on-the-good-foot-with-micropython-on-the-esp32-decdd32c4720 Get on the Good Foot with MicroPython on the ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/gloveboxes/ESP32-MicroPython-BME280-MQTT-Sample Exemple en micropython de comunicació MQTT amb un ESP32 i el sensor BME280]&lt;br /&gt;
&lt;br /&gt;
== Mongoose OS ==&lt;br /&gt;
[https://mongoose-os.com/docs/quickstart/prog1.md Mongoose OS. Starting with JavaScript]&lt;br /&gt;
&lt;br /&gt;
= Visualització al núvol =&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/lora/lorawan/ttncat_taller_visualitzacions.pdf Visualització de dades] (Presentació d'en Xose Pérez de [https://thethingsnetwork.cat/index.php/The_Things_Network_Catalunya thethingsnetwork.cat])&lt;br /&gt;
&lt;br /&gt;
== Plotly ==&lt;br /&gt;
[https://www.binefa.cat/blog/?p=361 Displaying realtime data on web using plot.ly on S4A PLB]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/blog/?p=373 ESP8266’s Witty sending data to plot.ly]&lt;br /&gt;
&lt;br /&gt;
== ThinkSpeak ==&lt;br /&gt;
[https://www.binefa.cat/blog/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak]&lt;br /&gt;
&lt;br /&gt;
== IoTgo ==&lt;br /&gt;
[http://iotgo.iteadstudio.com/guide Guia d'ús d'IoTgo]&lt;br /&gt;
&lt;br /&gt;
== Grafana ==&lt;br /&gt;
[https://screenzone.eu/arduino-mqtt-sensor-grafana/ Display ESP8266 sensor data using Grafana and Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=9nZtiwD8wGc Grafana showing MQTT data served by NodeRED] Video by [https://twitter.com/oriolrius Oriol Rius]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=MQTT_i_MQTTS&amp;diff=1187</id>
		<title>MQTT i MQTTS</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=MQTT_i_MQTTS&amp;diff=1187"/>
				<updated>2022-03-20T17:17:06Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* MQTT i NodeRED */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Teoria MQTT =&lt;br /&gt;
[https://www.binefa.cat/IoT/teoria/mqtt_00.pdf Introducció a MQTT]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Comparison_of_MQTT_implementations Comparison of MQTT implementations]&lt;br /&gt;
&lt;br /&gt;
[http://www.steves-internet-guide.com/mqtt/ Beginners Guide To The MQTT Protocol]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
QoS. Brokers remots i locals.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
== Estàndards i normes ==&lt;br /&gt;
&lt;br /&gt;
[http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.pdf MQTT Version 3.1.1 OASIS Standard]&lt;br /&gt;
&lt;br /&gt;
[https://www.iso.org/standard/69466.html ISO/IEC 20922:2016 (ISO/IEC 20922:2016) Information technology — Message Queuing Telemetry Transport (MQTT) v3.1.1]&lt;br /&gt;
&lt;br /&gt;
= Instal·lació de Mosquitto (servei MQTT) a l'ordinador =&lt;br /&gt;
[http://www.steves-internet-guide.com/install-mosquitto-linux/ How to Install The Mosquitto MQTT Broker on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-debian-10 How to Install and Secure the Mosquitto MQTT Messaging Broker on Debian 10]&lt;br /&gt;
&lt;br /&gt;
[https://www.switchdoc.com/2018/02/tutorial-installing-and-testing-mosquitto-mqtt-on-raspberry-pi/ Tutorial: IOT / Installing and Testing Mosquitto MQTT on the Raspberry Pi for Buster] (18 / febrer / 2020)&lt;br /&gt;
&lt;br /&gt;
[https://www.vultr.com/docs/how-to-install-mosquitto-mqtt-broker-server-on-ubuntu-16-04 How to Install Mosquitto MQTT Broker/Server on Ubuntu 16.04]&lt;br /&gt;
&lt;br /&gt;
[http://www.steves-internet-guide.com/downloads/ Instal·lació de Mosquitto a Windows]&lt;br /&gt;
&lt;br /&gt;
[[Instal·lació de MQTT a un servidor remot basat en Debian 9]] ( 1 / agost / 2018 )&lt;br /&gt;
&lt;br /&gt;
= MQTTS =&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-debian-10  Instal·lació de MQTT amb contrasenya a Debian 10]&lt;br /&gt;
&lt;br /&gt;
[[Configuració de MQTTS a un servidor remot basat en Debian 9]] ( 2 / agost / 2018 )&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-set-up-secure-transportation-for-mqtt-mosquitto-broker-tls-ssl.html How to set up secure transportation for MQTT Mosquitto broker with SSL/TLS]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
= MQTT mitjançant sòcols web =&lt;br /&gt;
[http://www.steves-internet-guide.com/mqtt-websockets/ Using MQTT Over WebSockets with Mosquitto]&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
([https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] per a fer-ho funcionar)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= MQTT i NodeRED =&lt;br /&gt;
[http://binefa.com/index.php?title=MQTTS_y_NodeRED MQTTS y NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
= MQTT i Python =&lt;br /&gt;
A una cel·la del jupyter-lab:&lt;br /&gt;
&lt;br /&gt;
 import paho.mqtt.subscribe as subscribe&lt;br /&gt;
 import paho.mqtt.client as mqtt&lt;br /&gt;
 import paho.mqtt.properties as properties&lt;br /&gt;
 &lt;br /&gt;
 mqttc = mqtt.Client('idClient-'+str(random.randrange(100000,999999)))&lt;br /&gt;
 &lt;br /&gt;
 mqttc.connect(&amp;quot;broker.emqx.io&amp;quot;, 1883)&lt;br /&gt;
 &lt;br /&gt;
 def on_message(clientId, userdata, message):&lt;br /&gt;
    msg = str(message.payload.decode(&amp;quot;utf-8&amp;quot;))&lt;br /&gt;
    print('topic = ', message.topic)&lt;br /&gt;
    print('payload = ', msg)&lt;br /&gt;
 &lt;br /&gt;
 mqttc.on_message = on_message&lt;br /&gt;
 mqttc.subscribe('topicName')&lt;br /&gt;
&lt;br /&gt;
A una altra cel·la del jupyter-lab:&lt;br /&gt;
 mqttc.loop_start()&lt;br /&gt;
&lt;br /&gt;
= Aplicació MQTT Dash d'Android =&lt;br /&gt;
[https://www.binefa.cat/IoT/mqtt/MQTT_Dash/ Configuració de MQTT Dash]&lt;br /&gt;
&lt;br /&gt;
= Actualització de les claus dels dipòsits a Debian =&lt;br /&gt;
 wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key&lt;br /&gt;
 sudo apt-key add mosquitto-repo.gpg.key&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=Bot_de_Telegram&amp;diff=1186</id>
		<title>Bot de Telegram</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=Bot_de_Telegram&amp;diff=1186"/>
				<updated>2022-03-07T12:49:12Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Per a poder interactuar amb l'aplicació de missatgeria [https://telegram.org Telegram] es pot fer servir un [https://telegram.org/faq#q-how-do-i-create-a-bot Bot].&lt;br /&gt;
&lt;br /&gt;
Caldrà que us creeu el vostre propi bot des de [https://telegram.me/botfather @BotFather]&lt;br /&gt;
&lt;br /&gt;
Un cop heu seleccionat @BotFather per a trametre-li un missatge, us presenta un text en anglès explicant-vos el que un bot pot fer. Per a començar a interaccionar i generar-vos el vostre propi bot, heu d'escriure al xat, de Telegram, amb @BotFather:&lt;br /&gt;
 /start&lt;br /&gt;
&lt;br /&gt;
Ara us tornarà a sortir un text amb un llistat d'ordres per a interactuar. El següent pas és demanar-li la creació del vostre propi bot:&lt;br /&gt;
 /newbot&lt;br /&gt;
&lt;br /&gt;
Us pregunta el nom del vostre bot. Un cop Introduït us demana un nom d'usuari per al vostre bot. El nom d'usuari ha d'acabar en 'bot', per exemple TetrisBot o tetris_bot.&lt;br /&gt;
&lt;br /&gt;
Després d'aquesta darrera acció @BotFather ens proporciona l''''identificador únic d'accés''' (''token'') a l'API HTTP de Telegram. Aquest identificador és clau per a poder-hi interaccionar.&lt;br /&gt;
&lt;br /&gt;
Ara sortiu del xat amb @BotFather i inicieu un nou xat amb el nou bot creat. Trameteu-li al bot nou aquesta ordre:&lt;br /&gt;
 /start&lt;br /&gt;
&lt;br /&gt;
En cas de voler afegir el vostre [https://chatimize.com/telegram-bot-group/ bot a un grup de Telegram] heu de fer que sigui un administrador més del grup i després iniciar-lo al grup:&lt;br /&gt;
 /start@nomUsuariDelVostre_bot&lt;br /&gt;
&lt;br /&gt;
Un cop ja teniu el vostre propi bot creat, podeu interactuar-hi mitjançant [https://core.telegram.org/bots/api l'API de Telegram]. Aquí hi podeu trobar [[Un exemple d'us de Telegram amb el NodeRed]].&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=MQTT_i_MQTTS&amp;diff=1185</id>
		<title>MQTT i MQTTS</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=MQTT_i_MQTTS&amp;diff=1185"/>
				<updated>2021-10-22T12:07:25Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Teoria MQTT =&lt;br /&gt;
[https://www.binefa.cat/IoT/teoria/mqtt_00.pdf Introducció a MQTT]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Comparison_of_MQTT_implementations Comparison of MQTT implementations]&lt;br /&gt;
&lt;br /&gt;
[http://www.steves-internet-guide.com/mqtt/ Beginners Guide To The MQTT Protocol]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
QoS. Brokers remots i locals.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
== Estàndards i normes ==&lt;br /&gt;
&lt;br /&gt;
[http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.pdf MQTT Version 3.1.1 OASIS Standard]&lt;br /&gt;
&lt;br /&gt;
[https://www.iso.org/standard/69466.html ISO/IEC 20922:2016 (ISO/IEC 20922:2016) Information technology — Message Queuing Telemetry Transport (MQTT) v3.1.1]&lt;br /&gt;
&lt;br /&gt;
= Instal·lació de Mosquitto (servei MQTT) a l'ordinador =&lt;br /&gt;
[http://www.steves-internet-guide.com/install-mosquitto-linux/ How to Install The Mosquitto MQTT Broker on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-debian-10 How to Install and Secure the Mosquitto MQTT Messaging Broker on Debian 10]&lt;br /&gt;
&lt;br /&gt;
[https://www.switchdoc.com/2018/02/tutorial-installing-and-testing-mosquitto-mqtt-on-raspberry-pi/ Tutorial: IOT / Installing and Testing Mosquitto MQTT on the Raspberry Pi for Buster] (18 / febrer / 2020)&lt;br /&gt;
&lt;br /&gt;
[https://www.vultr.com/docs/how-to-install-mosquitto-mqtt-broker-server-on-ubuntu-16-04 How to Install Mosquitto MQTT Broker/Server on Ubuntu 16.04]&lt;br /&gt;
&lt;br /&gt;
[http://www.steves-internet-guide.com/downloads/ Instal·lació de Mosquitto a Windows]&lt;br /&gt;
&lt;br /&gt;
[[Instal·lació de MQTT a un servidor remot basat en Debian 9]] ( 1 / agost / 2018 )&lt;br /&gt;
&lt;br /&gt;
= MQTTS =&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-debian-10  Instal·lació de MQTT amb contrasenya a Debian 10]&lt;br /&gt;
&lt;br /&gt;
[[Configuració de MQTTS a un servidor remot basat en Debian 9]] ( 2 / agost / 2018 )&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-set-up-secure-transportation-for-mqtt-mosquitto-broker-tls-ssl.html How to set up secure transportation for MQTT Mosquitto broker with SSL/TLS]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
= MQTT mitjançant sòcols web =&lt;br /&gt;
[http://www.steves-internet-guide.com/mqtt-websockets/ Using MQTT Over WebSockets with Mosquitto]&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
([https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] per a fer-ho funcionar)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= MQTT i NodeRED =&lt;br /&gt;
[http://binefa.com/index.php?title=MQTTS_y_NodeRED MQTTS y NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
= Aplicació MQTT Dash d'Android =&lt;br /&gt;
[https://www.binefa.cat/IoT/mqtt/MQTT_Dash/ Configuració de MQTT Dash]&lt;br /&gt;
&lt;br /&gt;
= Actualització de les claus dels dipòsits a Debian =&lt;br /&gt;
 wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key&lt;br /&gt;
 sudo apt-key add mosquitto-repo.gpg.key&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=MQTT_i_MQTTS&amp;diff=1184</id>
		<title>MQTT i MQTTS</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=MQTT_i_MQTTS&amp;diff=1184"/>
				<updated>2021-10-22T12:07:00Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Teoria MQTT */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Teoria MQTT =&lt;br /&gt;
[https://www.binefa.cat/IoT/teoria/mqtt_00.pdf Introducció a MQTT]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Comparison_of_MQTT_implementations Comparison of MQTT implementations]&lt;br /&gt;
&lt;br /&gt;
[http://www.steves-internet-guide.com/mqtt/ Beginners Guide To The MQTT Protocol]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
QoS. Brokers remots i locals.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
== Estàndards i normes ==&lt;br /&gt;
&lt;br /&gt;
[http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.pdf MQTT Version 3.1.1 OASIS Standard]&lt;br /&gt;
&lt;br /&gt;
[https://www.iso.org/standard/69466.html ISO/IEC 20922:2016 (ISO/IEC 20922:2016) Information technology — Message Queuing Telemetry Transport (MQTT) v3.1.1]&lt;br /&gt;
&lt;br /&gt;
= Instal·lació de Mosquitto (servei MQTT) a l'ordinador =&lt;br /&gt;
[http://www.steves-internet-guide.com/install-mosquitto-linux/ How to Install The Mosquitto MQTT Broker on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-debian-10 How to Install and Secure the Mosquitto MQTT Messaging Broker on Debian 10]&lt;br /&gt;
&lt;br /&gt;
[https://www.switchdoc.com/2018/02/tutorial-installing-and-testing-mosquitto-mqtt-on-raspberry-pi/ Tutorial: IOT / Installing and Testing Mosquitto MQTT on the Raspberry Pi for Buster] (18 / febrer / 2020)&lt;br /&gt;
&lt;br /&gt;
[https://www.vultr.com/docs/how-to-install-mosquitto-mqtt-broker-server-on-ubuntu-16-04 How to Install Mosquitto MQTT Broker/Server on Ubuntu 16.04]&lt;br /&gt;
&lt;br /&gt;
[http://www.steves-internet-guide.com/downloads/ Instal·lació de Mosquitto a Windows]&lt;br /&gt;
&lt;br /&gt;
[[Instal·lació de MQTT a un servidor remot basat en Debian 9]] ( 1 / agost / 2018 )&lt;br /&gt;
&lt;br /&gt;
= MQTTS =&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-debian-10  Instal·lació de MQTT amb contrasenya a Debian 10]&lt;br /&gt;
&lt;br /&gt;
[[Configuració de MQTTS a un servidor remot basat en Debian 9]] ( 2 / agost / 2018 )&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-set-up-secure-transportation-for-mqtt-mosquitto-broker-tls-ssl.html How to set up secure transportation for MQTT Mosquitto broker with SSL/TLS]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
= MQTT mitjançant sòcols web =&lt;br /&gt;
[http://www.steves-internet-guide.com/mqtt-websockets/ Using MQTT Over WebSockets with Mosquitto]&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
([https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] per a fer-ho funcionar)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= MQTT i NodeRED =&lt;br /&gt;
[http://binefa.com/index.php?title=MQTTS_y_NodeRED MQTTS y NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
= Aplicació MQTT Dash d'Android =&lt;br /&gt;
[https://binefa.cat/IoT/mqtt/MQTT_Dash/ Configuració de MQTT Dash]&lt;br /&gt;
&lt;br /&gt;
= Actualització de les claus dels dipòsits a Debian =&lt;br /&gt;
 wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key&lt;br /&gt;
 sudo apt-key add mosquitto-repo.gpg.key&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1183</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1183"/>
				<updated>2021-09-19T12:46:55Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[http://formacio.things.cat:8000/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://formacio.things.cat:8000/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://www.binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://www.binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1182</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1182"/>
				<updated>2021-09-17T17:23:04Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Sistemes Operatius */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[https://binefa.cat/blog/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[https://binefa.cat/blog/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[https://binefa.cat/blog/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[https://binefa.cat/blog/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
=== Alguns trucs ===&lt;br /&gt;
Com saber la IP pública des del terminal:&lt;br /&gt;
 wget http://ipecho.net/plain -O - -q ; echo&lt;br /&gt;
&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	<entry>
		<id>https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1181</id>
		<title>Índex general</title>
		<link rel="alternate" type="text/html" href="https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general&amp;diff=1181"/>
				<updated>2021-09-10T15:48:55Z</updated>
		
		<summary type="html">&lt;p&gt;Jordi : /* Sistemes Operatius */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Comunicacions ==&lt;br /&gt;
=== Sèrie (TTL i RS485) ===&lt;br /&gt;
[https://binefa.cat/blog/?p=275 Modbus RTU using Python and Qt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=277 Modbus RTU using Arduino and pyQt] (May 3, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=279 Modbus RTU on RS485 using Arduino and PyQt] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=147 Ús del port sèrie a un autòmat programable (CP1E d'Omron)] ( 4 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=109 Using digital I/O. Arduino + firmata + pyFirmata + pyQt] (December 8, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=102 Arduino + Raspberry Pi using pyFirmata and pyQt] (November 26, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=100 Serial read using Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
=== TCP / UDP ===&lt;br /&gt;
[https://binefa.cat/esp8266/doc/ethernetTcpUdp_00.pdf TCP/UDP Capa de transport d'Ethernet] (22 / gener / 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=50 Modbus TCP/IP on Arduino Nano + ENC28J60] (August 27, 2014)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
==== UDP ====&lt;br /&gt;
[[UDP]]&lt;br /&gt;
&lt;br /&gt;
==== MQTT i MQTTS ====&lt;br /&gt;
[[MQTT i MQTTS]]&lt;br /&gt;
&lt;br /&gt;
=== Xarxes d'àrea estesa de baix consum (LPWAN) ===&lt;br /&gt;
==== Conceptes teòrics ====&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Xarxa_de_llarg_abast Xarxa de llarg abast (WAN)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Chirp_spread_spectrum Espectre eixamplat (Chirp Spread Spectrum)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_seq%C3%BC%C3%A8ncia_directa Espectre eixamplat per seqüència directa (DSSS)]&lt;br /&gt;
&lt;br /&gt;
[https://ca.wikipedia.org/wiki/Espectre_eixamplat_per_salt_de_freq%C3%BC%C3%A8ncia Espectre eixamplat per salt de freqüència (FHSS)]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/LPWAN What is LPWAN?]&lt;br /&gt;
&lt;br /&gt;
[https://cms.edn.com/ContentEETimes/Documents/EDN/LP%20WAN%20Comparison%20Table%20final.pdf Comparison table of Low Power WAN alternatives]&lt;br /&gt;
&lt;br /&gt;
==== LoRa ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=LoRa LoRa]&lt;br /&gt;
&lt;br /&gt;
==== SigFox ====&lt;br /&gt;
[https://docs.pycom.io/chapter/tutorials/sipy/register.html Registering SiPy with Sigfox]&lt;br /&gt;
&lt;br /&gt;
==== Antenes ====&lt;br /&gt;
[https://youtu.be/CJNq2I_PDHQ Andreas Spiess video: &amp;quot;#182 ESP32 Lora Boards: What you need to know before you buy (incl. Antenna knowledge)&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
== Mèdia ==&lt;br /&gt;
=== Audiovisual ===&lt;br /&gt;
[https://player.vimeo.com/video/303025854?autoplay=1#t=12m10s Intervenció al vídeo sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://vimeo.com/303025854 Vídeo sencer sobre Internet de les Coses per a l'iFest 2018] (enregistrament 21 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Programes de ràdio ===&lt;br /&gt;
[https://binefa.cat/blog/?p=248 El Cafè de les Telecos: L’electrònica del present i del futur] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=334  Make It! Un projecte català amb Arduino i Scratch – Programa 277 de “Mossega la poma”] (8 / març / 2016)&lt;br /&gt;
&lt;br /&gt;
=== Revistes ===&lt;br /&gt;
[http://fullsdelsenginyers.cat/article/microcontroladors-dus-professional Microcontroladors d'ús professional] (08 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=245 Prototipatge electrònic a l’abast de tothom] (9 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[http://upcommons.upc.edu/handle/2099/9430 Mesura experimental d'acceleració i velocitat per PC] (novembre / 1994)&lt;br /&gt;
&lt;br /&gt;
== Microcontroladors ==&lt;br /&gt;
=== Arduino ===&lt;br /&gt;
==== Arduino genèric ====&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=%C3%8Dndex_general#Comunicacions Comunicacions amb Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=282 SPI - Sample of master and slave using two Arduino] (May 9, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=285 How to deal with binary data between Python and Arduino] (June 5, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=292 Arduino library for SX1276 using LoRA and PyQt] (June 6, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=317 Adding AES encryption to LoRa at SX1276 on Arduino] (June 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=129 Ús de la biblioteca ecat.h a Arduino (1a part)] (22 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=136 Ús de la biblioteca ecat.h a Arduino (2a part)] (28 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=140 Ús de la biblioteca ecat.h a Arduino (3a part)] (29 / desembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=122 Radio Control using Arduino and NRF24L01] (December 12, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=7 Emprant ArduBlock] (25 / agost / 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=36 Uso de ArduBlock] (25 / Agosto / 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=41 Using ArduBlock] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=46 nano-eCat using 8 relays] (August 25, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=55 Arduino Nano + LCD + Joystick] (August 28, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=58 Arduino Nano + LCD + Joystick + Servo] (August 30, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=61 Ultrasound Distance Measurement] (September 1, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=64 Arduino’s VU-meter using ArduBlock] (September 2, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=94 SCoop installation on Arduino IDE] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=96 SCoop + Ardublock] (November 18, 2014)&lt;br /&gt;
&lt;br /&gt;
==== S4A Programming Learning Board ====&lt;br /&gt;
Adreça de Nufesa (Carrer Josep Estivill 4, Barcelona) a [https://www.openstreetmap.org/#map=19/41.41640/2.18568 Open Street Map] i [https://goo.gl/maps/65LS5TEucHD2 Google Maps] Botiga d'electrònica a on es pot comprar la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/s4aPLB Disseny electrònic de la placa] Desenvolupada amb KiCad&lt;br /&gt;
&lt;br /&gt;
Controladors (drivers) per a Finestrots (MS Windows): [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/CH341SER.zip CH341 (comú a les plaques xineses)] i [https://github.com/jordibinefa/ms-drivers-and-tools/blob/master/ft232.zip FT232 (comú a les plaques europees i americanes)]&lt;br /&gt;
&lt;br /&gt;
Descàrrega de [http://snap4arduino.rocks/#download Snap For Arduino] i [http://s4a.cat/ S4A Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
Microprogramari (firmware) per a l'Arduino per a fer funcionar [https://binefa.cat/arduino/curs2018-2019/arduino/StandardFirmataPlus/StandardFirmataPlus.ino Snap For Arduino] i [http://s4a.cat/downloads/S4AFirmware16.ino Scratch For Arduino]&lt;br /&gt;
&lt;br /&gt;
[https://www.arduino.cc/en/Main/OldSoftwareReleases#previous Entorn de desenvolupament (IDE) d'Arduino] Recomano que us baixeu la versió 1.8.5&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-codes/blob/master/s4a_test_00/s4a_test_00.ino Codi de proves amb l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jordibinefa/arduino-IDE-libraries Algunes biblioteques per a l'Arduino IDE]&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=330 Xerrada sobre S4A PLB / Make It! a la llibreria Hispano Americana] (21 / juny / 2016) Tutorial introductori a la placa S4A PLB&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=264 Electrònica amb S4A] (13 / novembre / 2015) Amb els arxius del disseny de la placa (OSHW) &lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=232 How to install S4A on 64 bit Debian Jessie] (October 6, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=225 S4A Progamming Learning Board] (19 / setembre / 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=358 Displaying analog data using Python on S4A Programming Learning Board] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=361 Displaying realtime data on web using plot.ly on S4A PLB] (October 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[http://makeit.cat Make It! amb Scratch per arduino] El kit que conté la placa S4A PLB &amp;lt;-- A principi de 2019 no funciona&lt;br /&gt;
&lt;br /&gt;
=== ESP32 ===&lt;br /&gt;
[https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf ESP32 datasheet]&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2017/05/06/esp32-arduino-creating-a-task/ ESP32 Arduino: Creating a FreeRTOS task]&lt;br /&gt;
&lt;br /&gt;
==== ESP32 DEVKIT V1 ====&lt;br /&gt;
Setup of ESP32 DEVKIT V1 is like [[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-https-in-arduino-esp32.html Demo 29: How to use HTTPS in Arduino ESP32]&lt;br /&gt;
&lt;br /&gt;
[http://www.iotsharing.com/2017/08/how-to-use-esp32-mqtts-with-mqtts-mosquitto-broker-tls-ssl.html Demo 30: How to use Arduino ESP32 MQTTS with MQTTS Mosquitto broker (TLS/SSL)]&lt;br /&gt;
&lt;br /&gt;
==== WEMOS LOLIN32 ====&lt;br /&gt;
[[Setup of WEMOS LOLIN32 on Arduino IDE]] (January 14, 2018)&lt;br /&gt;
&lt;br /&gt;
==== Heltec's WIFI_LoRa_32 ====&lt;br /&gt;
[https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series#instructions WIFI_LoRa_32]&lt;br /&gt;
&lt;br /&gt;
==== TTGO ====&lt;br /&gt;
[[Ús del segon port sèrie]] ( 4 de juny de 2018 )&lt;br /&gt;
&lt;br /&gt;
[https://github.com/osresearch/esp32-ttgo Library ESP32 + OLED + LoRa module from TT GO]&lt;br /&gt;
&lt;br /&gt;
==== SPIFFS ====&lt;br /&gt;
Per a que funcioni hem hagut de formatar prèviament l'SPIFFS.&lt;br /&gt;
&lt;br /&gt;
Per a pujar arxius al sistema SPIFFS de l'ESP32 es posen els arxius a la carpeta ''data'' dins del projecte fet amb '''PlatformIO'''. Des del terminal i a la carpeta del projecte:&lt;br /&gt;
 pio run -t uploadfs&lt;br /&gt;
&lt;br /&gt;
[https://techtutorialsx.com/2018/08/24/esp32-arduino-spiffs-file-upload-ide-plugin/ Per a fer-ho des de l''''IDE d'Arduino''']&lt;br /&gt;
&lt;br /&gt;
==== ESP-IDF on PlatformIO ====&lt;br /&gt;
[https://docs.platformio.org/en/latest/tutorials/espressif32/espidf_debugging_unit_testing_analysis.html Get started with ESP-IDF and ESP32-DevKitC: debugging, unit testing, project analysis]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting ====&lt;br /&gt;
===== Corrupted Flash Memory =====&lt;br /&gt;
Programming multiple times ESP32 can corrupt flash memory. If ESP32 has an unexpected behavior, it is a good idea to erase Flash memory:&lt;br /&gt;
&lt;br /&gt;
 esptool.py --port /dev/ttyUSB0 erase_flash&lt;br /&gt;
&lt;br /&gt;
Installing '''esptool''':&lt;br /&gt;
 sudo pip install esptool&lt;br /&gt;
or&lt;br /&gt;
 sudo pip3 install esptool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/esptool esptool at github]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ESP32 Problem sample:&lt;br /&gt;
 Connecting to AnyWIFI&lt;br /&gt;
 E (22) wifi: misc_nvs_load 208 ret=4364&lt;br /&gt;
 E (22) wifi: wifi_init 1420 ret=4364&lt;br /&gt;
&lt;br /&gt;
===== WiFi connecting issues =====&lt;br /&gt;
Before to setting WiFi up it is a good idea to reset it. It solves infinite loops trying to connect a detected network.&lt;br /&gt;
&lt;br /&gt;
 void WiFiReset() {&lt;br /&gt;
    WiFi.persistent(false);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    WiFi.mode(WIFI_OFF);&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[https://community.platformio.org/t/esp32-issues-connecting-wifi-network/3468/2 Thanks to mrred128]&lt;br /&gt;
&lt;br /&gt;
===== Brownout issues =====&lt;br /&gt;
&lt;br /&gt;
Brownout issues are related to lack of power supply or bad solderings. But, sometimes, ignoring it allows to avoid being stuck. Only use this if you know what you are doing.&lt;br /&gt;
&lt;br /&gt;
 #include &amp;quot;soc/soc.h&amp;quot;&lt;br /&gt;
 #include &amp;quot;soc/rtc_cntl_reg.h&amp;quot;&lt;br /&gt;
 void setup(){&lt;br /&gt;
     WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector&lt;br /&gt;
&lt;br /&gt;
[https://github.com/espressif/arduino-esp32/issues/863 Thanks to PRO2XY]&lt;br /&gt;
&lt;br /&gt;
===== Multiple WiFi reconnections when using MQTT =====&lt;br /&gt;
Be aware, it should be an unique node name when connecting. It is a common problem when using same code in two different chips. A good idea is set MAC address as part of that unique node name.&lt;br /&gt;
&lt;br /&gt;
==== Testing VirKO board ====&lt;br /&gt;
[[Testing VirKO board]]&lt;br /&gt;
&lt;br /&gt;
=== ESP8266 ===&lt;br /&gt;
[[Connexió a múltiples xarxes sense fils]] (23 de maig de 2018)&lt;br /&gt;
&lt;br /&gt;
[[MQTT a l'ESP8266]] (29 de gener de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/esp8266/doc/esp8266_03.pdf ESP8266 ESP-12E Development Board] v0.3 (novembre 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=353 ESP8266 witty] (September 22, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=373 ESP8266’s Witty sending data to plot.ly] (October 15, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=365 Displaying ESP8266’s LDR level on web using ThingSpeak] (October 14, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=311 ESP8266 library for SX1276 using LoRA and PyQt] (June 13, 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=327 ESP8266 and Arduino using LoRa and AES encryption] (June 19, 2016)&lt;br /&gt;
&lt;br /&gt;
==== Sonoff ====&lt;br /&gt;
[[Reprogramació d'un Sonoff Basic]] (5 d'abril de 2019)&lt;br /&gt;
&lt;br /&gt;
=== Ordinadors monoplaca (SBC) ===&lt;br /&gt;
==== Accés remot ====&lt;br /&gt;
===== Ús de xarxes virtuals privades (VPN) =====&lt;br /&gt;
Ús de [http://zerotier.com/ ZeroTier]: [https://binefa.cat/IoT/vpn/zerotier/zerotier_01.pdf Configuració d'una VPN emprant ZeroTier]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
Com trobar totes les Raspberry Pi connectades a la teva xarxa local / How to find Raspberry Pi on your local network:&lt;br /&gt;
 sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'&lt;br /&gt;
&lt;br /&gt;
[https://www.instructables.com/id/Share-WiFi-With-Ethernet-Port-on-a-Raspberry-Pi/ Share WiFi With Ethernet Port on a Raspberry Pi - Servidor DHCP per cable connectant Internet per WiFi (al mòbil com a punt d'accés)]&lt;br /&gt;
&lt;br /&gt;
[https://www.behind-the-scenes.co.za/taking-a-screenshot-on-a-raspberry-pi-from-a-remote-location/ Captura de pantalla emprant raspi2png]&lt;br /&gt;
&lt;br /&gt;
[[Pràctica de connexió remota a una Raspberry Pi]] (7 / març / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-se a diferents xarxes sense fils]] (20 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi pantalles OLED SSD1306 (128x64)]] (23 / abril / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md Raspberry Pi com a punt d'accés]&lt;br /&gt;
&lt;br /&gt;
[[Adaptació per a que la Raspberry Pi funcioni com a punt d'accés donant adreces IP de classe B]] (juny 2018)&lt;br /&gt;
&lt;br /&gt;
[[Com connectar-hi un giroscopi GY-521 (xip MPU-6050)]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Ús d'entrades analògiques amb l'ADS115 controlant sortides PWM]] (27 / juliol / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
=== Miscel·lània ===&lt;br /&gt;
[[PlatformIO]]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=Pantalles_tàctils_NEXTION Pantalles tàctils NEXTION] (19 de febrer de 2018)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=80 How to recover bricked fake FT232] (October 30, 2014)&lt;br /&gt;
&lt;br /&gt;
=== STM32 ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=299 Programming STM32 using Arduino IDE on Debian Jessie] (June 8, 2016)&lt;br /&gt;
&lt;br /&gt;
== Node RED ==&lt;br /&gt;
=== Introducció ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/nodeRed01.pdf Introducció al Node-RED]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lació del Node RED ===&lt;br /&gt;
==== Node RED a Ubuntu ====&lt;br /&gt;
[https://www.tecrobust.com/install-node-red-linux-ubuntu-fedora-arch-centos-opensuse-debian-latest/ Instal·lació per a Ubuntu 18.04]&lt;br /&gt;
&lt;br /&gt;
[https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04 Instal·lació per a Ubuntu 16.04(Step 1)] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Actualitzar Node RED]] per a Ubuntu (entre el pas 1 i 2 de l'anterior enllaç) (15 / gener / 2018)&lt;br /&gt;
&amp;lt;!-- [https://www.npmjs.com/package/node-red Instal·lació per a Ubuntu (Step 2)] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Node RED a Raspberry Pi, BeagleBone Black i Windows ====&lt;br /&gt;
[https://nodered.org/docs/getting-started/installation Instal·lació a Raspberry Pi, BeagleBone Black i Windows] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Exemples d'ús del Node RED ===&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex00/ Exemple amb MQTT i NodeRED emprant ESP8266 i ESP32]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/prj/mqtt_esp8266_esp32/ex01/ Exercici amb MQTT i NodeRED emprant ESP8266]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/prj/modbusCtrl/ ModBus TCP amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/prj/numAleat/ Exemple de generació de número aleatori amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/prj/statsCtrl/ Interaccionar amb ordres de terminal amb NodeRED]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/IoT/nodeRed/prj/ttnCtrl/ Interacció amb The Things Network des de NodeRED] (Fet servir de facto a la prova de bidireccionalitat)&lt;br /&gt;
&lt;br /&gt;
=== Node RED emprant Telegram ===&lt;br /&gt;
[[Un exemple d'us de Telegram amb el NodeRed]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Bot de Telegram]] (23 / novembre / 2018)&lt;br /&gt;
&lt;br /&gt;
== Snap ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/jmoenig/Snap Codi font. Replicable a qualsevol servidor] by [https://twitter.com/moenig Jens Mönig]&lt;br /&gt;
&lt;br /&gt;
[http://snap4arduino.rocks/ Snap4Arduino]&lt;br /&gt;
&lt;br /&gt;
[http://electronics.cat/Snap Un exemple d'Snap personalitzat] (hi ha biblioteques personalitzades)&lt;br /&gt;
&lt;br /&gt;
[[Biblioteques personalitzades a Snap]]&lt;br /&gt;
&lt;br /&gt;
== Presentacions (Arduino, Raspberry Pi, Orange Pi, C.H.I.P., IoT) ==&lt;br /&gt;
[https://binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Demostració d'us de LoRaWAN amb un PLC d'IndustrialShields a la Fira IOTS-2018]] (16-18 d'octubre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 de setembre 2018)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/training/ceic/20180221/20180221_ceic_01.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1098443 Formació al Col·legi d'Enginyers Industrials de Catalunya] (21 / febrer / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=506 Sistema domòtic amb Internet de les Coses] (16 / setembre / 2017) - Diada del Programari Lliure 2017&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=470 Orange Pi, C.H.I.P. i Raspberry Pi] (22 / abril / 2017) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=401 Comunicacions amb Raspberry Pi] (11 / març / 2017) - Raspberry Pi Jam a Barcelona (2017)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=396 Electrònica lliure i aplicacions IdC (Internet de les Coses / IoT) obertes i lliures que permeten un desenvolupament col·laboratiu i en comunitat] (12 / gener / 2017)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=391 Arduino i Raspberry Pi (4/4)] (1 / desembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=386 Arduino i Raspberry Pi (3/4)] (29 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=383 Arduino i Raspberry Pi (2/4)] (24 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=378 Arduino i Raspberry Pi (1/4)] (22 / novembre / 2016) - Formació per a [http://telecos.cat/verNoticias.aspx?CAL=1324 telecos.cat]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=341 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (4, 5, 7 i 8 / juliol / 2016) - Fòrum 2016 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=256 Sistemes encastats d’escala petita] (28 / octubre / 2015) - Formació per al [http://update.eic.cat/wps/update/FitxaVenda?or=1092199&amp;amp;cp=3 Col·legi d'Enginyers Industrials de Catalunya] &lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=222 Tecnologies creatives a l’aula. Ús d'Arduino i Raspberry Pi] (29 i 30 juny / 1 i 2 juliol / 2015) - Fòrum 2015 (formació per a professors de la [http://fje.edu/ Fundació Jesuïtes Educació])&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=191 Curset de 5 hores sobre maquinari lliure] (21 / juny / 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=216 Maquinari lliure amb Ubuntu] ( 9 / maig / 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=208 Comunicació entre Raspberry Pi i Arduino emprant plaques d’electronics.cat ] (11 / abril / 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=202 Exercicis de maquinari lliure amb Arduino Nano] (17 / gener / 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=212 Maquinari lliure amb Arduino Nano] (20 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=199 Maquinari lliure controlat amb GNU/Linux (32 bits)] (23 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=196 Exercicis de maquinari lliure amb Arduino Nano] (15 / novembre / 2014)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=188 Maquinari lliure controlat amb GNU/Linux] (19 / març / 2014) - JEDAI - Institut Joan d'Àustria&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=185 Maquinari lliure controlat amb GNU/Linux] (15 / març / 2014) - Esplai Virtual a Neàpolis &lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=182 Maquinari lliure controlat amb Ubuntu] (9 / novembre / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/SaucySalamander#graellaActivitats Festa Saucy Salamander Ubuntu 13.10]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=179 Raspberry Pi per connectar maquinari lliure] ( 5 / octubre / 2013) - Mollerussa LAN Party&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=176 Raspberry Pi per connectar maquinari lliure] (29 / setembre / 2013) - Dia de la Llibertat del Programari&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=173 Python on Raspberry Pi] (September 12th, 2013) - [https://www.meetup.com/python-185/events/114969302/ Python meetup in Barcelona]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=170 Sessió pràctica de maquinari lliure] (15 / juliol / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=167 Sessió pràctica de maquinari lliure] (29 / juny / 2013) - Barcelona Mini Maker Faire&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=164 Sessió pràctica de maquinari lliure] (11 / maig / 2013) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/RaringRingtail Festa Raring RingTail Ubuntu 13.04]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=161 Sessió pràctica de maquinari lliure – OSHW] ( 6 / maig / 2013) - [http://www.mob-barcelona.com/ MOB - Makers of Barcelona]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=158 Sessió pràctica de maquinari lliure – OSHW] (10 / novembre / 2012) - [https://wiki.ubuntu.com/CatalanTeam/Activitats/QuantalQuetzal#graellaActivitats Festa Quantal Quetzal Ubuntu 12.10]&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=155 Maquinari Lliure – OSHW] (15 / setembre / 2012) - Diada de la Llibertat del Maquinari 2017&lt;br /&gt;
&lt;br /&gt;
== Robots ==&lt;br /&gt;
=== Robots físics ===&lt;br /&gt;
[https://binefa.cat/blog/?p=346 Robot pel curs 2016-2017] (20 / setembre / 2016)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=205 Maquinari lliure Exemples pràctics. Com construir-te el teu propi robot] (23 / febrer / 2015) XXII Jornades Tècniques a l'Institut Escola del Treball de Barcelona&lt;br /&gt;
&lt;br /&gt;
=== Bots ===&lt;br /&gt;
==== Bot de Telegram ====&lt;br /&gt;
[[Bot de Telegram]]&lt;br /&gt;
&lt;br /&gt;
==== Bot de Mastodon ====&lt;br /&gt;
No totes les instàncies de [https://ca.wikipedia.org/wiki/Mastodon_(xarxa_social) Mastodon] faciliten la instal·lació de bots. Per a fer les primeres passes us recomano aquesta [https://botsin.space/ instància pensada per allotjar bots de Mastodon].&lt;br /&gt;
&lt;br /&gt;
[https://botsin.space/@siarq_sensors Exemple de bot de Mastodon] per a fer lectures de sensors cada hora.&lt;br /&gt;
&lt;br /&gt;
[https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 Getting credentials for the Mastodon API with Mastodon.py, step by step]&lt;br /&gt;
&lt;br /&gt;
== SCADA ==&lt;br /&gt;
=== SCADA DIY using Python ===&lt;br /&gt;
[https://binefa.cat/blog/?p=272 Scada using Python and Arduino] (November 30, 2015)&lt;br /&gt;
&lt;br /&gt;
[https://wiki.binefa.cat/index.php?title=SCADA_fent_servir_Python_QML_i_Arduino SCADA fent servir Python QML i Arduino] (8 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
=== SCADA Indusoft ===&lt;br /&gt;
[https://binefa.cat/indusoft/indusoftIntro00.pdf Introducció al disseny amb Indusoft] (4 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/indusoft/indusoft00.pdf Introducció a les comunicacions (1a part)] (3 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/indusoft/indusoft02.pdf Introducció a les comunicacions (2a part)] (7 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[Receptes a l'Indusoft]] ( 8 / març / 2018 )&lt;br /&gt;
&lt;br /&gt;
== Visualització i emmagatzematge IoT ==&lt;br /&gt;
=== Grafana ===&lt;br /&gt;
[http://docs.grafana.org/installation/debian/ Installing Grafana on Debian]&lt;br /&gt;
&lt;br /&gt;
=== InfluxDB ===&lt;br /&gt;
[[InfluxDB]]&lt;br /&gt;
&lt;br /&gt;
=== Sentilo ===&lt;br /&gt;
[https://youtu.be/DoCdtQZTZ-A Configuració inicial del Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/DUfvC16ipjo Connectant l'ESP8266 a Sentilo]&lt;br /&gt;
&lt;br /&gt;
[https://sentilo.readthedocs.io/en/latest/api_docs/services/order/get_orders.html Captació i publicació de dades a Sentilo]&lt;br /&gt;
&lt;br /&gt;
Per a recollir dades:&lt;br /&gt;
&lt;br /&gt;
Conjunt de sensors:&lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr&lt;br /&gt;
&lt;br /&gt;
Un únic sensor: &lt;br /&gt;
 curl -X GET -H &amp;quot;IDENTITY_KEY: b4d4db576b754d5b71234c5c448df5c2da12c0edeba574ff9a98045a108f056b&amp;quot; https://api-sentilo.dipba.cat/data/adr@empr/CO2_04_RH/&lt;br /&gt;
&lt;br /&gt;
== Sistemes Operatius ==&lt;br /&gt;
Per saber la distribució de GNU/Linux mitjançant el terminal:&lt;br /&gt;
 cat /etc/os-release&lt;br /&gt;
 lsb_release -a&lt;br /&gt;
 hostnamectl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php?title=Instal%C2%B7laci%C3%B3_d%27un_servidor_de_s%C3%B2cols_web_a_un_Debian_amb_Apache Instal·lació d'un servidor de sòcols web a un Debian amb Apache] (24 / gener / 2020)&lt;br /&gt;
&lt;br /&gt;
[[Com accedir mitjançant FTP a Google Drive]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Debian]]&lt;br /&gt;
&lt;br /&gt;
[[Accelerant l'arrencada d'Ubuntu]] (15 / gener / 2018)&lt;br /&gt;
&lt;br /&gt;
[[OpenGL a màquines virtuals]] (29 / desembre / 2017)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=238 Metadistribució basada en Debian Jessie 8.2] (7 / octubre / 2015)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/blog/?p=69 Arrencant Debian des d’una memòria USB] (15 / setembre / 2014)&lt;br /&gt;
&lt;br /&gt;
=== Ús de wine ===&lt;br /&gt;
 sudo apt install q4wine wine winetricks&lt;br /&gt;
&lt;br /&gt;
[https://wiki.winehq.org/Winetricks winetricks]&lt;br /&gt;
&lt;br /&gt;
Seguint les instruccions de la [https://appdb.winehq.org/objectManager.php?sClass=version&amp;amp;iId=38286 guia de wine per a instal·lar Adobe Acrobat Reader DC], des del terminal:&lt;br /&gt;
 winetricks atmlib&lt;br /&gt;
 winetricks riched20&lt;br /&gt;
 winetricks wsh57&lt;br /&gt;
 winetricks mspatcha&lt;br /&gt;
 winetricks allfonts&lt;br /&gt;
&lt;br /&gt;
 wine AcroRdrDC1900820071_ca_ES.exe&lt;br /&gt;
&lt;br /&gt;
=== Skip '''Certificate verification failed''' ===&lt;br /&gt;
If doing ''sudo apt update'' there is ''Certificate verification failed'' error like this:&lt;br /&gt;
&lt;br /&gt;
 Err:5 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                   &lt;br /&gt;
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 185.43.182.75 443]&lt;br /&gt;
&lt;br /&gt;
It is not recommended to do this. But if there is not any good solution:&lt;br /&gt;
 sudo apt-get update -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
 sudo apt-get upgrade -o Acquire::https://deb.nodesource.com/node_12.x::Verify-Peer=false&lt;br /&gt;
&lt;br /&gt;
=== Tutorials d'ajuda emprant GNU/Linux ===&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Create and Use Swap File on Linux]&lt;br /&gt;
&lt;br /&gt;
[https://itsfoss.com/create-swap-file-linux/ How to Increase Swap Size on Ubuntu Linux]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/install-nextcloud-docker/ How to Install Nextcloud with Docker on Your Linux Server]&lt;br /&gt;
&lt;br /&gt;
=== Servidor intermediari invers ===&lt;br /&gt;
[https://phoenixnap.com/kb/docker-nginx-reverse-proxy How to Deploy NGINX Reverse Proxy on Docker]&lt;br /&gt;
&lt;br /&gt;
[https://linuxhandbook.com/nginx-reverse-proxy-docker/ Using Docker to Set up Nginx Reverse Proxy With Auto SSL Generation]&lt;br /&gt;
&lt;br /&gt;
[https://www.things.cat/index.php/P%C3%A0gina_principal#VPS Exemple d'ús un servidor intermediari invers a un VPS]&lt;br /&gt;
&lt;br /&gt;
== Disseny electrònic ==&lt;br /&gt;
Instal·lació de KiCAD a Debian 9:&lt;br /&gt;
 sudo apt -t stretch-backports install kicad kicad-doc-ca kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates kicad-demos kicad-common&lt;br /&gt;
&lt;br /&gt;
[[Ús de l'autoencaminador (autorouter) a KiCAD]] (11 / maig / 2018)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial02/ Ús del KiCAD] (27 / desembre / 2007)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial03/ Fabricació de circuits impresos. Mètode de la planxa domèstica] (8 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial05/ Convertidor RS232 - I2C] ( 15 / gener / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial04/ Programació d'un microcontrolador AVR pel port paral·lel] (7 / maig / 2008)&lt;br /&gt;
&lt;br /&gt;
[http://www.binefa.net/electronica/tutorial01/ Disseny d'una placa de circuit imprès controlada per ordinador fent ús d'eines lliures i en català] (11 / novembre / 2007)&lt;br /&gt;
&lt;br /&gt;
== Programació ==&lt;br /&gt;
[http://zetcode.com/ Tutorials per a diferents llenguatges de programació (PyQt, Java, Qt, bases de dades, Python i d'altres)] feta per [https://twitter.com/janbodnar Jan Bodnar]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Python]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en C]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Node.js]]&lt;br /&gt;
&lt;br /&gt;
[[Recursos en Qt i QML]]&lt;br /&gt;
&lt;br /&gt;
=== Instal·lant Qt ===&lt;br /&gt;
==== Debian d'escriptori ====&lt;br /&gt;
A GNU/Linux és convenient que instal·leu el paquet '''libgl1-mesa-dev'''&lt;br /&gt;
 sudo apt install libgl1-mesa-dev&lt;br /&gt;
&lt;br /&gt;
==== qtserialport ====&lt;br /&gt;
[https://wiki.qt.io/Qt_Serial_Port Qt Serial Port]&lt;br /&gt;
&lt;br /&gt;
Per a instal·lar '''qtserialport''':&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt:&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/'''qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ cd /home/jordi/Qt/5.15.2/gcc_64/lib&lt;br /&gt;
 $ git clone git://code.qt.io/qt/qtserialport.git &lt;br /&gt;
 $ cd qtserialport&lt;br /&gt;
&lt;br /&gt;
Actualitzeu-ho a la vostra versió&lt;br /&gt;
 git checkout 5.'''x'''.'''y'''&lt;br /&gt;
x i y es poden trobar fent&lt;br /&gt;
 $ git branch -a&lt;br /&gt;
A aquest exemple&lt;br /&gt;
 $ git checkout 5.15.2&lt;br /&gt;
&lt;br /&gt;
 $ mkdir qtserialport-build&lt;br /&gt;
 $ cd qtserialport-build&lt;br /&gt;
 $ /home/jordi/Qt/5.15.2/gcc_64/bin/qmake ../qtserialport.pro&lt;br /&gt;
 $ make&lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
==== qtmqtt ====&lt;br /&gt;
Per a instal·lar '''qtmqtt''':&lt;br /&gt;
&lt;br /&gt;
 git clone git://code.qt.io/qt/qtmqtt.git&lt;br /&gt;
 cd qtmqtt&lt;br /&gt;
 '''git checkout 5.14'''&lt;br /&gt;
 mkdir build&lt;br /&gt;
 cd build&lt;br /&gt;
 qmake -r ..&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
(Abans de fer el qmake, feu un '''git checkout 5.14''' -canvieu el 5.14 per la vostra versió de Qt instal·lada al vostre sistema-)&lt;br /&gt;
&lt;br /&gt;
Heu de cercar la ruta de qmake en cas de que no hi sigui al vostre PATH&lt;br /&gt;
 /home/'''jordi'''/bin/Qt/'''5.14.1'''/gcc_64/bin/qmake -r ..&lt;br /&gt;
&lt;br /&gt;
===== Instal·lació de '''QtMqtt per Android''' =====&lt;br /&gt;
Malgrat que ja us funcioni la biblioteca QtMqtt en programes d'escriptori, heu de fer la compilació de la biblioteca QtMqtt per a la versió de Qt/QML que feu servir per a poder executar programes que duguin aquesta biblioteca a Android.&lt;br /&gt;
&lt;br /&gt;
Hi ha diversos suggeriments de com fer-ho. Després de diversos intents, aquest és el sistema que a mi m'ha funcionat:&lt;br /&gt;
&lt;br /&gt;
Cerqueu el directori '''lib''' de la vostra distribució Qt per a '''Android x86''':&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''/home/jordi/Qt/6.0.0/android_x86/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/jordi/Qt/6.0.0/android_x86/lib&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ '''/home/ecat/Qt/6.0.0/android_armv7/bin/qmake -query QT_INSTALL_LIBS'''&lt;br /&gt;
 /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
Aneu a la carpeta que ens retorna l'ordre anterior ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~$ '''cd /home/jordi/Qt/6.0.0/android_x86/lib'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~$ cd /home/ecat/Qt/6.0.0/android_armv7/lib&lt;br /&gt;
I feu el procés d'instal·lació ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''rm -r examples/'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''git clone git://code.qt.io/qt/qtmqtt.git'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib$ '''cd qtmqtt/'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''git checkout 6.0'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ rm -r examples/&lt;br /&gt;
Per a '''Android x86''', mitjançant el '''Qt Creator''' obriu el projecte /home/jordi/Qt/6.0.0/android_x86/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Per a '''Android ARM''', mitjançant el '''Qt Creator''' obriu el projecte /home/ecat/Qt/6.0.0/android_armv7/lib/qtmqtt/'''qtmqtt.pro'''. Aneu al menú i seleccioneu '''Build / Run qmake'''&lt;br /&gt;
&lt;br /&gt;
Torneu al terminal d'abans i feu ('''Android x86'''):&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''make'''&lt;br /&gt;
 jordi@ecat-XPS13:~/Qt/6.0.0/android_x86/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
o, per al dispositiu físic Android amb tecnologia '''Android ARM''':&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''make'''&lt;br /&gt;
 ecat@iot-ecat:~/Qt/6.0.0/android_armv7/lib/qtmqtt$ '''sudo make install'''&lt;br /&gt;
Copieu, fora de la ruta de les Qt, els projectes d'exemple [https://binefa.cat/dam2021/20210121_qml/quickpublication.zip '''quickpublication'''] i [https://binefa.cat/dam2021/20210121_qml/quicksubscription.zip '''quicksubscription''']. Obriu els dos projectes per a que puguin ser executats des de l'escriptori i des del mòbil (emulat o no). Per a verificar llur funcionament, podeu executar un projecte al dispositiu mòbil i l'altre a l'escriptori.&lt;br /&gt;
&lt;br /&gt;
==== Raspbian ====&lt;br /&gt;
[https://www.tal.org/tutorials/building-qt-512-raspberry-pi Instal·lant les Qt a la Raspberry Pi]&lt;br /&gt;
&lt;br /&gt;
== Formació ==&lt;br /&gt;
=== Escola del Clot ===&lt;br /&gt;
[http://binefa.com/index.php?title=Curs_2019-2020 Curs 2019-2020]&lt;br /&gt;
&lt;br /&gt;
[[Curs 2018-2019]]&lt;br /&gt;
&lt;br /&gt;
=== UPC-School ===&lt;br /&gt;
[[Complement del Màster d'Industria 4.0 de la promoció 2018-2019]] durant l'any 2021&lt;br /&gt;
&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
=== Col·legi d'Enginyers Industrials de Catalunya ===&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/training/ceic/20181031/20181031_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1102838 Formació al Col·legi d'Enginyers Industrials de Catalunya] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Fent servir protocols de comunicacions a la placa S4A basada en Arduino Nano]] (9 / abril / 2019 i 4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/training/ceic/20191204/ Codi ESP8266 emprant MQTT] (4 / desembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/training/ceic/20180221/20180221_ceic_02.pdf Arduino i Raspberry Pi. Microcontroladors d'ús professional (matí: Arduino)] - [http://formacio.eic.cat/cursos/1100481 Formació al Col·legi d'Enginyers Industrials de Catalunya] (31 / octubre / 2018)&lt;br /&gt;
&lt;br /&gt;
=== Formació per a professors de secundària i cicles formatius ===&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/training/forum2016/ Fòrum 2016 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
[https://binefa.cat/training/forum2015/ Fòrum 2015 - Jesuïtes Educació] Tecnologies creatives a l'aula. Ús d'Arduino i Raspberry Pi&lt;br /&gt;
&lt;br /&gt;
=== Internet de les Coses ===&lt;br /&gt;
21802500 - Màster Industria 4.0 [[Tecnologías IoT, Hands on y MVP]] (2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]] a l'[http://www.icm.csic.es/ Institut de Ciències del Mar] (27 / setembre / 2018 i 25 / setembre / 2019)&lt;br /&gt;
&lt;br /&gt;
[[Introducció a Internet de les Coses - juny 2018]] (Curset de formació per a professors de CF realitzat a l'[https://agora.xtec.cat/iesramblaprim/ Institut Rambla Prim])&lt;br /&gt;
&lt;br /&gt;
=== Formació per a empreses i ajuntaments ===&lt;br /&gt;
&lt;br /&gt;
==== Viladecans 19 de febrer de 2020 ====&lt;br /&gt;
[[Introducció ràpida a LoRaWAN i The Things Network]]&lt;br /&gt;
&lt;br /&gt;
[[LoRa]]&lt;br /&gt;
&lt;br /&gt;
[[Tecnologías IoT, Hands on y MVP (4/5/2019)]]&lt;br /&gt;
&lt;br /&gt;
==== [https://www.te.com/ TE Connectivity] ====&lt;br /&gt;
&lt;br /&gt;
[[Curset a TE Connectivity del 4 de març de 2020]]&lt;/div&gt;</summary>
		<author><name>Jordi</name></author>	</entry>

	</feed>