EV3 Mindstorm projects, Innovations with Robots to participate and contribute to Make in India. Every comment energies to do more experiments. Every wish from you keeps me boosting.
Showing posts with label Arduino Projects for kids. Show all posts
Showing posts with label Arduino Projects for kids. Show all posts
This weekend I've attended the Arduino Opensource Robotic workshop. It was really wonderful.
I met the people who already working on Arduino.
I also saw an obstacle avoiding Robot out of the Arduino.
Swecha is the Indian National Opensource programmers community organized the two days event.
First program with Arduino
Programming
The software can be found on arduino.cc . It is free software, we can download. And the hardware is an open hardware
I used the ArduinoUNO, but you can use any type of Arduino
First Arduino Program ... Experimenting with LED (RGB combination... many more colors ... one after the Other ).
The program for the RGB sensor is :
int redPin = 11;
int greenPin = 10;
int bluePin = 9;
//uncomment this line if using a Common Anode LED
//#define COMMON_ANODE
void setup(){ pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
}
void loop()
{ setColor(255, 0, 0); // red
delay(1000); setColor(0, 255, 0); // green
delay(1000); setColor(0, 0, 255); // blue
delay(1000); setColor(255, 255, 0); // yellow
delay(1000); setColor(80, 0, 80); // purple
delay(1000); setColor(0, 255, 255); // aqua
delay(1000);
//we can make many more colors by changing the numbers . we can make rainbow colors
}
void setColor(i
nt red, int green, int blue)
{
#ifdef COMMON_ANODE
red = 255 - red;
green = 255 - green;
blue = 255 - blue;
#endif analogWrite(redPin, red);
analogWrite(greenPin, green);
analogWrite(bluePin, blue);
}
Working with RGB lights
Then I've written a program for the temperature sensor, (which senses the temperature of the area/room).