Youtube Video | mLink | TMP36 Temperature Sensor

Our latest video covers the mLink TMP36 Sensor Module. The mLink TMP36 module is a tiny serial (I2C/IIC) device that includes a precision TMP36 temperature sensor. This alows the module to measure temperatures over a wide range of -40 to 125oC. The module continuously takes measurement from the TMP36 sensor and provides the result as a temperature in degrees centigrade via its serial I2C interface. It is compatible with other mLink or standard I2C modules allowing you to daisy-chain several different types of modules together using only the two I2C pins of your microcontroller. Its default I2C address can be changed via software so that multiple TMP36 modules can be connected to one microcontroller.

All relevant links from the video can be found below.

Hobby Components Support Forum: forum.hobbycomponents.com

mLink Range on Hobby Components: https://hobbycomponents.com/235-mlink

mLink TMP36 Temperature Sensor Module at Hobby Components: TBA

Uno Plus: https://hobbycomponents.com/development-boards/670-hobby-components-uno-plus

Male to Female Dupont Cable: https://hobbycomponents.com/cables/121-20cm-male-to-female-solderless-dupont-jumper-breadboard-wires-40-cable-pack

mLink Temperature Sensor Module on the Support Forum: https://forum.hobbycomponents.com/viewtopic.php?f=131&t=3028

mLink Library: https://forum.hobbycomponents.com/viewtopic.php?f=58&t=3001

Raspberry Pi Users

PIP command: pip install hc-mlink

Support Forum page for Pi users: https://forum.hobbycomponents.com/viewtopic.php?f=131&t=3062

Arduino Sketch

/* FILE:    TMP36_Read.ino
   DATE:    01/12/23
   VERSION: 1.0
   AUTHOR:  Andrew Davies
   

This sketch uses the mLink library to read the temperature (in oC) 
from the mLink TMP36 Temperature sensor module (SKU: HCMODU0187).

Please see Licence.txt in the library folder for terms of use.
*/


#include "mLink.h"                          // Include the library

mLink mLink;                                // Create an instance of the library

#define I2C_ADD 0x58                        // Default I2C address

void setup() 
{
  Serial.begin(9600);
  
  mLink.init();                             // Initialise the library
}


void loop() 
{
  float temp = mLink.TMP36_Temp(I2C_ADD);     // Get the temperature in oC
 
  Serial.print("Temperature: "); Serial.println(temp);
  
  delay(1000);                              // Wait a second before reading again
}

Leave a Reply

Your email address will not be published. Required fields are marked *