ADT74x0(Temperature Sensor)

This is a temperature sensor that can use I2C(Wire)

Circuit Connection

When using Akizuki's AD7410 module,The Arduino's internal pull up resistor can be used in order to reduce the number of parts used. However, when using the Arduino's internal pull up resistor for I2C, it is prone to getting errors. Thus an external pull up resistor is recommended.

In addition, the circuit connectons for using this chip alone are as shown. Please connect the VccGNDSCLSDA in the same way as when using the Akizuki module.

Program

ADT74x0 has an Arduino library * Please refer to Using Librariesfor how to install ADT74x0 library.

#include <Wire.h>
#include <ADT74x0.h>

ADT74x0 temp_sensor;

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

void loop() {
  Serial.print("Temp:");
  Serial.println(temp_sensor.readTemperature());
  delay(1000);
}

Resources used

results matching ""

    No results matching ""