Skip to main content Microfire 

Mod-NTC for Arduino



📦 Arduino

Library available in Arduino IDE and PlatformIO

PDF DOC HTML

📒 Datasheet

Datasheet

PDF DOC HTML


1.

🔽 Install Arduino IDE

Install the Arduino IDE

2.

📦 Install the library

Start the Arduino IDE, press the Sketch menu, and thenInclude Library > Manage Libraries. Search for Microfire_Mod-NTC and install the library.

3.

🔌 Connections

  • Wiring for ESP32 and the carrier board
    Module
    Controller
    GND ground
    VCC 3.3 - 5 volt power supply
    SCL SCL
    SDA SDA
    PROBE_1 either probe wire
    PROBE_2 either probe wire
  • Wiring for ESP32 and the sensor module
    Carrier Board
    Controller
    GND ground
    VIN 3.3 - 5 volt power supply
    SCL SCL
    SDA SDA
    1W optional 1-wire device signal line
    EN optional EN wire, drive HIGH to disable both power modules
    Carrier 1W Header
    1-Wire Sensor
    GND ground
    VCC 3.3 - 5 volt power supply
    SIG signal data line for 1-Wire sensor

    Probe connection is made with the SMA connector, using a SMA-BNC Bulkhead or similar.


4.

🔢 Code

Below is the Basic example. It can be found in File > Examples > Microfire_Mod-NTC > Basic in the Arduino IDE.

1
#include <Microfire_Mod-NTC.h>
2
Microfire::Mod_NTC::i2c ntc;
3

4
void setup() {
5
	Serial.begin(9600);
6
	Wire.begin();
7
	ntc.begin();
8
}
9

10
void loop() {
11
	ntc.measureTemp();
12
	Serial.print((String)ntc.tempC + " °C");
13
	Serial.print((String)ntc.tempF + " °F");
14
	delay(1000);
15
}


5.

➡️ Upload the code

Pick the board and port, then Upload the code.


6.

🔎 View the output

Open the Serial Monitor, measurements should be displayed in the monitor, with updates every second.



Related items