Temperature Processing Module
MT-DS is a temperature processing module designed for Dallas Temperature Sensors. This module works as a bridge between Dragino MS12 and Dallas/Maxim Onewire temperature sensors. it read temperature from Dallas Temp Sensors and send it to Dragino via UART port. Dragino MS12 will forward the temp info to remote server.
- Support devices:
- Use ATmega168-20au MCU.
- Show Sensor ID + Temp pairs as result.
- Support 8 OneWire buses (with pull up 4.7K Ohm resister) and up to 80 Dallas Temp Sensors in a single Dragino.
- Provide 5V power and GND to Dallas Temp Sensors.
- Auto-detect new added sensors or removed sensors.
- Remote upgrade via internet.
- Compatible with Arduino IDE for easy debug.
- Completely open source in both software and hardware, free to modify and change.
How to use this module
Pin out when MT-DS is installed
1-Wire protocol and Dallas Temperature Sensors
1-Wire bus system is designed by Dallas Semiconductor Corp. In the 1-Wire protocol. It uses a single signal line to do data transmit, receive and provide power (parasitic) to 1-Wire devices. 1-wire protocol makes it very easy for MCU to communicate with 1-wire devices.
Dallas DS18B20 is a typical 1-wire temperature sensor. It connects to MT-DS via 1-wire bus. Each DS18B20 has a unique ID and multiple sensors can be connect to the same 1-Wire bus.
More information about 1-wire protocol and Dallas Temperature Sensors please see: More info
First, install the MT-DS into Dragino MS12. The MS12 will now provide totally 8 1-Wire bus. They are available at the port 1+, 1-, 2+, 2-, 3+, 3-, 4+, 4- . It also provides a 5V power at port 6a and provides GND at 6b. Choose any 1-wire bus and VCC and GND connect to the DS18B20 as shown below:
For easy installation and use, a 1-wire devices converter (AODC) can be used. Each AODC provides 10 3.5mm audio jacks, plug in temperature sensors with 3.5mm audio connector (ATDS-35) will simply finished all connection work.
Second, Setup FTP server to get sensor data. More info about how to set up FTP server please search in the internet. here we assume a FTP server account already set up with below info:
FTP server address: 192.168.1.101 username: dragino password: draginopass
Third, configure MS12 to send data to FTP server power on and log in MS12. go to sensor page and set up:
- save data to local file.
- enable transparent mode: MS12 will pass through all data get from UART port to the server
- update data to IoT server use below script:
cp /var/log/sensor.log sensor.log.tmp; curl -T sensor.log.tmp ftp://192.168.1.101 --user dragino:draginopass
After doing above, MS12 will sends the temperautre value to your FTP server. as below, the format shown is : time Sensor ID; Sensor Value(in Celsius).
There are different ways to update data to a remote server. more info , please consult update data to remote server
Hardware / Software Source
Schematic , Layout and AVR source code of MT-DS can be found at
|MT-DS-P||Temperature processing module|
|AODC||1-wire devices converter|
|ATDS-35||DS18B20 sensors with audio connector, 3m , shielded|
Feedback and Suggestions
Feel free to send comments or suggestions to Dragino team: email@example.com. We will reply you as soon as possible.
About Onewire protocol used in Arduino : http://www.arduino.cc/playground/Learning/OneWire
Arduino library for Dallas Onewire temperature sensor: http://www.arduino.cc/playground/Learning/OneWire