|     Inicio    |   |         |  |   FOROS      |  |      |      
   Elastix - VoIP B4A (Basic4Android) App inventor 2 PHP - MySQL
  Estación meteorológica B4J (Basic4Java) ADB Shell - Android Arduino
  AutoIt (Programación) Visual Basic Script (VBS) FireBase (BD autoactualizable) NodeMCU como Arduino
  Teleco - Emisora de A.M. Visual Basic Cosas de Windows Webs interesantes
Translate:
Búsqueda en este sitio:


.

Tutorial del Internet de las Cosas y Bluetooth con el ESP32
Juan Antonio Villalpando

Volver al índice del tutorial

____________________________

219.- Sensor de temperatura interna. Sensor Hall.

- El chip ESP32 tiene un sensor para medir su temperatura interna. También dispone de un sensor Hall, el efecto Hall se utiliza, entre otras cosas para medir magnetismos.

- En los códigos que he utilizado la medición de temperatura siempre es de 53,33 ºC, lo cual es un error.

_________________________________
1.- Sensor de temperatura interna.

- En realidad es un sensor de temperatura del núcleo. Ese sensor tiene como objetivo medir la temperatura de los núcleos del chip, no es un sensor destinado a medir temperatura externa.

- La temperatura interna estará en torno a los 53.333 ºC (la medición de temperatura no es buena).

temperatura_interna.ino

#ifdef __cplusplus
extern "C" {
#endif
uint8_t temprature_sens_read();
#ifdef __cplusplus
}
#endif
uint8_t temprature_sens_read();

void setup() {
  Serial.begin(115200);
}

void loop() {
  Serial.print("Temperatura: ");
  
  // Convierte al temperatura a Centigrados.
  Serial.print((temprature_sens_read() - 32) / 1.8);
  Serial.println(" C");
  delay(2000);
}

_________________________________
2.- Sensor Hall.

- Aproximamos un imán al chip ESP32.

- Este sensor hall interno, está puesto con la idea de que si el chip atraviesa un campo magnético, tome una acción, es decir, se desconecte, emita un aviso... pero no está puesto con la idea de ser utilizado para medir y mostrar magnetismo externo, para eso podemos utilizar: 44C_Hall

hall.ino

void setup() {
  Serial.begin(115200);
}
 
void loop() {
 
    int medida = 0;

    medida = hallRead();
 
    Serial.print("Hall: ");
    Serial.println(medida); 
 
    delay(1000);
}

_________________________________
3.- Información del Sensor Hall.

- Sensor_VP y Sensor_VN

- Son los terminales IO36 y IO39

28.4 Hall Sensor 28.4.1 Introduction

The Hall effect is the generation of a voltage difference across an n-type semiconductor passing electrical current, when a magnetic field is applied to it in a direction perpendicular to that of the flow of the current. The voltage is proportional to the product of the magnetic field's strength and current value. A Hall-effect sensor could be used to measure the strength of a magnetic field, when constant current flows through it, or when the current is in the presence of a constant magnetic field. As the heart of many applications, the Hall-effect sensors provide proximity detection, positioning, speed measurement, and current sensing.

Inside of ESP32 there is a Hall sensor for magnetic field-sensing applications, which is designed to feed voltage signals to the SAR ADC. It can be controlled by the ULP coprocessor, when low-power operation is required. Such functionality, which enhances the power-processing and flexibility of ESP32, makes it an attractive solution for position sensing, proximity detection, speed measurement, etc.

28.4.2 Features

• Built-in Hall element
• Designed to operate with ADC
• Capable of outputting both analog voltage and digital signals related to the strength of the magnetic field
• Powerful and easy-to-implement functionality, due to its integration with built-in ULP coprocessor, GPIOs, CPU, Wi-Fi, etc.

- El Vn y el Vp son las entradas de un amplificador de bajo ruido (LNA), por ejemplo para obtener la señal de un termopar.

_______________________________

- Mi correo:
juana1991@yahoo.com
- KIO4.COM - Política de cookies. Textos e imágenes propiedad del autor:
© Juan A. Villalpando
No se permite la copia de información ni imágenes.
Usamos cookies propias y de terceros que entre otras cosas recogen datos sobre sus hábitos de navegación y realizan análisis de uso de nuestro sitio.
Si continúa navegando consideramos que acepta su uso. Acepto    Más información