Recomiendo usar el VS Code para editar el codigo, usando el IDE de Arduino para compilar mediante la opcion de uso de editor externo, resulta muy util!
Conceptos Básicos
Qué aprenderás sobre Internet of Things
Espectro electromagnético y qué es radiofrecuencia
Clasificacion de radiofrecuencia
Regulación de la radiofrecuencia
¿Qué son las Telecomunicaciones?
Halfduplex y Fullduplex
Clasificación de transmisiones: Upstream y Downstream
Link budget
Con ciertas características, ¿Habría conexión en el sistema?
Alto data rate
Wi-fi
Bluetooth
Redes celulares
LPWANs
NB-IoT
Consideraciones para implementación de NB-IoT
LoRaWAN
Reto 2
¿Qué usarías para monitorear la posición GPS de un vehículo? y ¿Qué usarías para monitorear datos en campo?
Diseño
Arquitectura de nodos
Introducción a la práctica
Instalación de framework ESP32 e instalación de framework SAMD21
Qué es una interrupción
Práctica de WiFi
Prueba de señal Wi-fi
Protocolo HTTP desde un microcontrolador
Conectando sensores y actuadores al microcontrolador
Preparación de aplicación para recibir datos
Programación por eventos de un microcontrolador
Configuración de eventos del microcontrolador
Conexión de aplicación
Práctica con LoRa
¿Cuál es el stack de LoRaWAN?
Creando tu propio gateway
Ensamblado de gateway
Pon a andar tu gateway de LoRa
Creando tu Stack de LoRa
Conecta tu nodo a internet
Integrando datos a un dashboard
Terminando de implementar nuestro stack de LoRa
BugFixing nuestro stack de LoRa
Ensamblando el nodo de LoRa
Probando LoRa en nuestro Dashboard
Prácticas con tarjetas MKR
Cierre del curso
Cierre del curso
You don't have access to this class
Keep learning! Join and start boosting your career
When we are creating or debugging our code, it is common to encounter errors that the compiler points out to us. Learning to identify and correct them is essential for the success of any project. Here we will discuss some of the most frequent errors and ways to solve them.
One of the most common mistakes when writing code is forgetting to end declarations with a semicolon. This is crucial, since the compiler requires it to correctly interpret the instructions. If the compiler displays a syntax error, checking for the presence of semicolons is a good first step to fix it.
// Example of incorrect declarationint number
// Correctionint number;
Improper use of upper and lower case can cause the compiler to not recognize functions or variables. It is essential to follow the same pattern throughout your code and remember that many programming languages are case sensitive.
// Example of an unrecognized functionvoid printMessage() { // Code}
// Error: calling the function incorrectlyprintMessage();
Another common error is not providing the necessary arguments to a function. Functions must receive the correct number and type of arguments to work correctly.
// Example of function expecting an argumentvoid sendData(int data) { // Code}
// Calling the function without argumentssendData(); // Error.
Be sure to check the function signature and provide the correct arguments.
Variable names must match exactly throughout the code. Using consistent names avoids compilation errors. A typo can cause the compiler to not recognize a variable.
// Incorrect variable name usageint previosMillis;previosMillis = 1000;
// Incorrect usagepreviosMillis = 2000; // Variable name error
Carefully review each variable usage to ensure that all names are correct and consistent.
Modularization and proper event handling are critical to creating efficient and maintainable programs. Implementing a modular design allows you to divide the program into more manageable and reusable parts.
Clearly define variables: Make sure variables are well defined and organized.
Use libraries properly: Choose the right libraries to handle specific tasks, such as connecting to RF modules.
Structure event handling: Implements clear mechanisms for event handling, ensuring that the program responds appropriately to different conditions.
By applying these recommendations, you can significantly simplify the process of debugging and optimizing code, making it easier to run and maintain in the long run. Keep learning and improving your skills to become a more skilled and efficient developer!
Contributions 2
Questions 2
Recomiendo usar el VS Code para editar el codigo, usando el IDE de Arduino para compilar mediante la opcion de uso de editor externo, resulta muy util!
Cuando cargo el programa al ttgo tengo este problema:
Arduino:1.8.9 (Windows 10), Tarjeta:“TTGO LoRa32-OLED V1, 80MHz, 921600, None”
El Sketch usa 216888 bytes (16%) del espacio de almacenamiento de programa. El máximo es 1310720 bytes.
Las variables Globales usan 14220 bytes (4%) de la memoria dinámica, dejando 280692 bytes para las variables locales. El máximo es 294912 bytes.
esptool.py v2.6
Serial port COM7
Connecting…………………_____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
Este informe podría contener más información con
"Mostrar salida detallada durante la compilación"
opción habilitada en Archivo -> Preferencias.
Want to see more contributions, questions and answers from the community?