Write Taking Field/Garden Information of Software With Arduino [DOUBLE STRING TRANSFORMATION AND PROJECT FINAL]

in #utopian-io8 years ago (edited)

What Will I Learn?

  • You will learn how to switch from the binary number system to the decimal number system.
  • You will learn why we are doing double string conversion.
  • You will learn last lesson of the project.

Requirements

Difficulty

  • Intermediate

Description

In this lesson we will end our project. In our last lesson, we switched to decimal number system by double string conversion. With this project, we can get field / garden information on internet. The information we receive will be moisture and temperature information. Humidity and temperature will be obtained from the SHT10 sensor.
bandicam 2018-01-28 16-14-14-585.jpg

Codes

 String doubleToString (float input, int decimalPlaces) 
 {
  if (decimalPlaces! = 0)
  {
    String string = String ( (int) (input*pow (10, decimalPlaces) ) );
    } 
   if (abs (input) < 1) 
   {
    if (input>0)
    string = "0"+string;
    else if (input<0)
    string = string.substring (0, 1) +"0"+string.substring (1);
       }
   return string.substring (0, string.length () -decimalPlaces) 
+"."+string.substring (string.length ()
 -decimalPlaces);
 }
 else 
 {
  return String ( (int) input);
 }
 }

Video Tutorial

Curriculum



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @sametceylan I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x