H2S sensor: Difference between revisions

From wikiluntti
Line 31: Line 31:


== ESP32 Cansat NeXT==
== ESP32 Cansat NeXT==
Pins 33 and 32 have an analog to digital converter (ADC), which means that you can use analogRead (and adcToVoltage) to read the voltage on this pin.

Revision as of 18:13, 10 March 2025

Introduction

Nice introductory tutorial from the manufacturer: https://community.dfrobot.com/makelog-315191.html

SEN0568 from DFROBOT based on MEMS technology.

https://wiki.dfrobot.com/SKU_SEN0568_Fermion_MEMS_H2S_Sensor_breakout

Connectors

3.3V - 5.0 V

Analog

Arduino

int sensorPin = A0;
int sensorValue = 0;

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

void loop(){
  sensorValue = analogRead(sensorPin);
  Serial.println(sensorValue);
  delay(100);
}

ESP32 Cansat NeXT

Pins 33 and 32 have an analog to digital converter (ADC), which means that you can use analogRead (and adcToVoltage) to read the voltage on this pin.