Sensors - GeorgiaTech-DDI/makerspace_iot GitHub Wiki
The MLX90614 sensor is a non-contact infrared temperature sensor that communicates using the I2C protocol. The temperatures that are detected are object temperature and ambient temperature. The object temperature range is -70 C to 380 C. The distance range for the temperature sensor is 1 cm - 5 cm. This was found by placing the soldering iron over the sensor and testing at various distance to see any noticeable changes in the temperature.
The infrared radiation is detected on the convex lens of the detector called Thermopile. Based on the field of view, the thermophile is able to find how much infrared energy is detected and produce an electrical signal. The Signal-Conditioning Application Processor is then able to process this and send that information to the microcontroller. The temperature value will be based on the average temperature in the 90 degree wide cone shape view.
The pins on the temperature sensor are Vin, GND, SCL, and SDA. The Vin connects to the power supply (3 V), and the GND connects to ground. The SCL pin connects to the I2C clock pin (A5), and the SDA pin connects to the I2C data pin (A4). If more than one sensor needs to be connected to SDA and SCL, then the connection can be extended by either connecting the sensors on different buses or having an I2C extender.
The MPU6050 sensor is a 3-axis accelerometer and 3-axis gyroscope, which is called the Micro-Electro-Mechanical System (MEMS). The MEMS will change the voltage based on changes in the axis. This sensor records the x,y, and z axis, and the acceleration due to gravity is incorporated within the measurement. The gyroscope gives the speed of the rotation about an axis in degrees/sec. The accelerometer finds the force within the axes.
The MPU6050 has a total of 8 pins, but only four pins will be sufficient to implement on an Arduino. The Vcc will be connected to power, and GND will be connected to ground. It also has the 2 I2C protocol pins, SCL and SDA, where the SCL will connect to pin 19 on the Teensy, and SDA will connect to pin 18 on the Teensy.