An Arduino Temperature Control System managed whit C# App & one
drive cloud.
this demonstration is a project that detecting Temperature
and print et on a LCD via C# "windows form Application" by making
your own Temperature data-base and Upload it to windows One Drive cloud and download it from One Drive cloud
any time any were and making your (Temperature data-base)
And........ BINGO you are into IOT (internet of things)
PS: the point of this instractabel is NOT just teaching you
how to make a weather station …. But give you the tools to develop your skills
in code and bring you to the world of “internet of things” with no need to an expansive
tools like (Intel Galileo, Intel Edison, raspberry pi….)
Just an Arduino and a collection the greatest Microsoft
developer tools ever :D
If you are not familiar whit C# and control Arduino whit it I
Healy recommend this (Microsoft virtual Academy) courses.
- http://www.microsoftvirtualacademy.com/training-courses/programming-robotic-systems-with-visual-studio
- http://www.microsoftvirtualacademy.com/training-courses/c-fundamentals-for-absolute-beginners
you
just need to sing in and let the learn begin
;)
Software:
- Microsoft windows (7 / 8 / 8.1) Operating System
- Arduino IDE
- Visual studio community 2013 (recommended)
This is the link for download it:
https://www.visualstudio.com/products/visual-studio-community-vs
- One Drive cloud
#include
int sensorValue = 0;
byte num[2] = {0, 0};
int cel = 0;
LiquidCrystal lcd(12,
11, 5, 4, 3, 2);
void setup() {
lcd.begin(16, 2);
Serial.begin(9600);
//clearScreen();
lcd.setCursor(0, 1);
// put your setup code here, to run once:
}
void loop() {
gettemp();
Serial.println(cel);
/*while(Serial.available()>0)
{
Serial.readBytes(num,Serial.available());
Serial.write(cel);
}
*/
// delay(1000);
//clearScreen();
while (Serial.available() > 0)
{
//clearScreen();
lcd.print(char(Serial.read()));
//delay(1000);
}
//lcd.print("hello:");
//clearScreen();
//delay(1000);
// put your main code here, to run
repeatedly:
}
void gettemp()
{
sensorValue = analogRead(A0) ;
cel = (sensorValue * 0.0049) * 100 ;
}
void clearScreen()
{
lcd.setCursor(0, 0) ;
lcd.print(" ") ;
lcd.setCursor(0,
1);
lcd.print("
") ;
}// end clear code
//////////////// And then copy the code on the Arduino, and keep USB link connected to the board /////
Download the App to your computer
from my cloud : https://onedrive.live.com/redir?resid=61CA31D2FB412DBC%21794