NIck Tinkham 12/23/09
/*
* Math is fun!
*/
#include "math.h" // include the Math Library
int a = 3;
int b = 9;
int h;
void setup() // run once, when the sketch starts
{
Serial.begin(9600); // set up Serial library at 9600 bps
Serial.println("Lets calculate a hypoteneuse");
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() // we need this to be here even though its empty
{
}
This is a nifty little program where you enter the length of the legs on the triangle, and the Arduino will calculate its hypotenuse.
Tuesday, October 26, 2010
Programing Arduino
Nick Tinkham 12/18/09
int ledPin = 13;
void setup()
{
pinMode(ledPin, OUTPUT);
}
void loop()
{
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);
}
This is the program that we made to run the yellow led. The led blinks once every second. It was a very easy code to write.
int ledPin = 13;
void setup()
{
pinMode(ledPin, OUTPUT);
}
void loop()
{
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);
}
This is the program that we made to run the yellow led. The led blinks once every second. It was a very easy code to write.
Robotic Systems - Arduino
I am researching Arduino to find out about its systems and how they work. Here are a few links about Ardunio.
http://dhsrobotics.pbworks.com/RoboticsSystemsProject
Arduino is an embedded system platform based on a simple open hardware design for a single-board microcontroller, with embedded I/O support and a standard programming language.[1] The Arduino programming language is based on Wiring and is essentially C/C++.[2] The goal of the Arduino project is to make tools available that are accessible, low-cost, low capital investment, flexible and easy-to-use for artists and hobbyists, particularly those who might not otherwise have access to more sophisticated controllers that require more complicated tools.
http://dhsrobotics.pbworks.com/RoboticsSystemsProject
Arduino is an embedded system platform based on a simple open hardware design for a single-board microcontroller, with embedded I/O support and a standard programming language.[1] The Arduino programming language is based on Wiring and is essentially C/C++.[2] The goal of the Arduino project is to make tools available that are accessible, low-cost, low capital investment, flexible and easy-to-use for artists and hobbyists, particularly those who might not otherwise have access to more sophisticated controllers that require more complicated tools.
Subscribe to:
Posts (Atom)
