28 Ağustos 2012 Salı

Arduino Seri Monitor

Hamza Öztaş Share:
1-Code;

//http://www.depositericrobotic.com/
//http://arduinowhathappens.blogspot.com/
//http://onuzerieksidokuz.blogspot.com/
//http://hamzaoztas.wordpress.com/
void setup()                  
{
  Serial.begin(9600);        

  Serial.println("http://depositericrobotic.blogspot.com/");
}

void loop()                    
{
                             
}

Image Hosted by ImageShack.us



2-Code;




//http://depositericrobotic.blogspot.com/
//http://arduinowhathappens.blogspot.com/
//http://onuzerieksidokuz.blogspot.com/
//http://hamzaoztas.wordpress.com/


void setup()                  
{
  Serial.begin(9600);        

}

void loop()                    
{
  Serial.println("http://depositericrobotic.blogspot.com/");
  delay(2000);
}



Image Hosted by ImageShack.us


3-Code;



//Mathematical Operation
//http://depositericrobotic.blogspot.com/
//http://arduinowhathappens.blogspot.com/


int a = 10;
int b = 20;
int c = 30;

void setup()                  
{
  Serial.begin(9600);        
  Serial.println("Some basic process ");

  Serial.print("a = ");
  Serial.println(a);
  Serial.print("b = ");
  Serial.println(b);
  Serial.print("c = ");
  Serial.println(c);

  Serial.print("a + b = ");    
  Serial.println(a + b);

  Serial.print("a * c = ");    
  Serial.println(a * c);

  Serial.print("c / b = ");    
  Serial.println(c / b);

  Serial.print("b - c = ");    
  Serial.println(b - c);
}

void loop() {                
}

Image Hosted by ImageShack.us


4-Code;




//http://depositericrobotic.blogspot.com/
//http://arduinowhathappens.blogspot.com/

#include "math.h"            

int a = 3;
int b = 4;
int h;

void setup()                  
{
  Serial.begin(9600);        

  Serial.println("Hipotenus Calculation");

  Serial.print("a = ");
  Serial.println(a);

  Serial.print("b = ");
  Serial.println(b);

  h = sqrt( a*a + b*b );

  Serial.print("h = ");
  Serial.println(h);
}

void loop()            
{
}

Image Hosted by ImageShack.us



Tarafından Yayınlandı >> Hamza Öztaş

Hamza Öztaş'ı google plus'ta takip etmek için Google'a tıklayın;
Google+.

0 yorum:

Get Updates in your Email
Complete the form below, and we'll send you our best of articles.

İletişim

© >> |
TOP