Hardware Application Layer for Pressure Sensor.
More...
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/adc.h"
Go to the source code of this file.
Hardware Application Layer for Pressure Sensor.
- Author
- Jesus Minjares (https://github.com/jminjares4)
- Version
- 0.1
- Date
- 2021-11-27
- Copyright
- Copyright (c) 2021
◆ PRESSURE_SENSOR_ADC_ATTEN
#define PRESSURE_SENSOR_ADC_ATTEN (adc_atten_t)(ADC_ATTEN_DB_11) |
◆ PRESSURE_SENSOR_ADC_WIDTH
#define PRESSURE_SENSOR_ADC_WIDTH (adc_bits_width_t)(ADC_WIDTH_BIT_12) |
◆ PRESSURE_SENSOR_CH
#define PRESSURE_SENSOR_CH ADC1_CHANNEL_5 |
◆ PRESSURE_SENSOR_THRESHOLD
#define PRESSURE_SENSOR_THRESHOLD 2500 |
◆ pressureSensorInit()
PressureSensor initialization for force-sensitive sensor.
- Parameters
-
- Parameters
-
◆ read_pressure_sensor()
Read channel of the PressureSensor.
- Parameters
-
- Returns
- int adc raw from the sensor
- Parameters
-
- Returns
- int adc raw from the sensor