element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
IoT: In the Cloud
  • Challenges & Projects
  • Project14
  • IoT: In the Cloud
  • More
  • Cancel
IoT: In the Cloud
Blog Temperature measurement with Arduino MKR WIFI 1010 and Cloud
  • Blog
  • Forum
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
IoT: In the Cloud requires membership for participation - click to join
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: kk99
  • Date Created: 21 Mar 2019 5:04 PM Date Created
  • Views 1438 views
  • Likes 13 likes
  • Comments 7 comments
  • mkr_1010
  • p14 mkr 1010
  • arduino_iot_cloud
  • iotcloudch
  • arduino mkr1010
  • arduino cloud
  • arduino mkr rs485
Related
Recommended

Temperature measurement with Arduino MKR WIFI 1010 and Cloud

kk99
kk99
21 Mar 2019

The basic idea was to create a temperature monitor based on DS18B20 sensors with support for remote access. I have used a kit called AVT-1705 which allows to read data from two DS18B20 sensors via RS485 protocol. As master controller I have used a Arduino WIFI MKR1010 board with MKR485 expansion board. Arduino board is responsible for triggering temperature measurement and reading data. Received data is parsed and send via secure way to Arduino Cloud.

 

Below there is schematic of AVT-1705 kit:

We have a Attiny23 MCU which is responsible for reading data from two DS18B20 sensors, and transferring this information via RS485. Each AVT-1705 could has own unique address, so we are able to connect multiple of these modules in parallel.

Module accept following command to start measurement:

Txx[0x0D], where xx is module address.

In response after around 1 second we receive following data:

T00= 12.2"C;T01= 12.2"C[0x0D]

[0x0D] it is "Enter" character in hex.

 

In my project module is powered from six 1.5 V batteries. Lines L_A, L_B and GND are connected to following pins of MKR 485 expansion board: Y, Z, ISO GND. MKR 485 is configured to work in half mode.

 

First step was to configure board to connect to Arduino Cloud via WIFI. Below are images with steps to configure board and information about sensors values.

In first steps we need to choose board type, provide board name and enable chipset for secure connection. After that we need to create a new project for temperature measurement. For this project we need to define to properties of fields which will hold data from two sensors. After that we need to go to source code where we could provide information about SSID/password. Now we are able to connect to Arduino Cloud.

 

Below there is diagram for application flow.

In main loop in every 10 seconds we are reading temperature from module and update these values in Arduino Cloud. I have used Arduino library for RS485 communication.

Below there is diagram with steps of getTemperature() method.

In first step we need to send 4 bytes of command to module to start temperature measurement: 0x54 0x30 0x30 0x0D. After around 1500 ms we are able to read answer with 24 bytes. Then we are able to parse from string with answer and get a values of temperatures for sensors. Answer have following form: T00= 12.3"C;T01= 23.4"C[0xOD].

 

Here are sources:
Sketch

 

Here is video from soldering of AVT-1705 module:

You don't have permission to edit metadata of this video.
Edit media
x
Upload Preview

 

Here is short video presentation:

You don't have permission to edit metadata of this video.
Edit media
x
Upload Preview

Anonymous

Top Comments

  • kk99
    kk99 over 3 years ago +3

    Thank you. I have finished testing of these modules. If there is person interested to test these modules or would like to use them in project (I mean MKR1010, MKR485 and AVT-1705) please contact to me…

  • jamielanger
    jamielanger over 3 years ago +2

    Woohoo !
    Great stuff. Remember doing similar stuff years back.

  • dubbie
    dubbie over 3 years ago +2

    kk99,

     

    A great project. I remember using similar temperature sensors several years ago when I discovered that not all temperature sensors were analogue and you could obtain a digital value directly from…

  • kk99
    kk99 over 2 years ago in reply to ravibilla

    You may ask in this shop, they could try to add this product for international customers: https://kamami.pl/termometry/208218-avt1705-b.html .

    • Cancel
    • Vote Up +1 Vote Down
    • Reply
    • More
    • Cancel
  • clem57
    clem57 over 2 years ago

    Thanks for explaining your project. Good job.

    • Cancel
    • Vote Up +2 Vote Down
    • Reply
    • More
    • Cancel
  • ravibilla
    ravibilla over 2 years ago

    Excellent write up. Is there a way I can get access to the AVT-1705 kit in the USA that you know of?

    Thanks

    • Cancel
    • Vote Up +2 Vote Down
    • Reply
    • More
    • Cancel
  • kk99
    kk99 over 3 years ago

    Thank you. I have finished testing of these modules. If there is person interested to test these modules or would like to use them in project (I mean MKR1010, MKR485 and AVT-1705) please contact to me via private message. I could send you these modules.

    • Cancel
    • Vote Up +3 Vote Down
    • Reply
    • More
    • Cancel
  • dubbie
    dubbie over 3 years ago

    kk99,

     

    A great project. I remember using similar temperature sensors several years ago when I discovered that not all temperature sensors were analogue and you could obtain a digital value directly from the chip, which was also temperature compensated and linear.

     

    It was good to see it on the cloud as well. I really must have a go at this cloud stuff myself. I have a MKR 1000 so I think I have all the necessary bits.

     

    Dubbie

    • Cancel
    • Vote Up +2 Vote Down
    • Reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2022 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube