Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Image Added

We have received and finally open the Educational Kit,  Thanks to the support of RS-Components.

The kit with all the tutorial can be found on the rs-online page, here the nice picture  with Massimo Banzi that you know.
I posted here also the list of the videos because the projects are really whell defined from the simplest one to a lamp that can be controlled via twitter.

...

 But back to the educational kit,

 it it has  a very complete  set of different components, that allow a lot of different experiments:

...

The kit has a very well done book with a lot of pictures that help the understanding of the different devices and the connectivity on the breadboard

                                                                           Image Modified

The kit has  a lot of components also in quantity, like the 6 photoresistors.

...

To start I placed a set of LED in a  circle and I connected them to Arduino:

320
Section
bordertrue

Image Modified

|


Multimedia
width320
nameDSCN0601_s.avi
width
height200
|

The code is very simple, I connected the LED in sequence starting from port 2 to port 9,

...

Section
bordertrue
Multimedia
width320
nameDSCN0603_s.aviwidth320
height200
Multimedia
width320
nameDSCN0604_s.aviwidth320
height200

The code is a bit more complicated,

...

Note

#include <Servo.h>

....

Servo myservo;

.....

void setup(void)  {

....

myservo.attach(10);
  myservo.write(0);

....

}

void loop(void) {
val=analogRead(A5);
Serial.println(val);
if (val>r0L && val<r0H) { all_off; digitalWrite(LED7,HIGH);  myservo.write(0);}
if (val>r1L && val<r1H) { all_off; digitalWrite(LED6,HIGH);  myservo.write(25.71);}
if (val>r2L && val<r2H) { all_off; digitalWrite(LED5,HIGH);  myservo.write(51.42);}
if (val>r3L && val<r3H) { all_off; digitalWrite(LED4,HIGH);  myservo.write(77.14);}
if (val>r4L && val<r4H) { all_off; digitalWrite(LED3,HIGH);  myservo.write(102.86);}
if (val>r5L && val<r5H) { all_off; digitalWrite(LED2,HIGH);  myservo.write(128.57);}
if (val>r6L && val<r6H) { all_off; digitalWrite(LED1,HIGH);  myservo.write(154.29);}
if (val>r7L && val<r7H) { all_off; digitalWrite(LED0,HIGH);  myservo.write(180);}
}

TO To start to get familiar with the kit I decided to create something simple, using some of the most standard components ,
I created a LED visualisation visualization system for the position of a servo .

To start I placed a set of LED in a  circle and I connected them to Arduino:

Section
bordertrue

 

Multimedia
width320
name20121217_221928.avi
height200

Next step is to place a couple of photoresistors on top of the servo and detect the direction with maximum light value.

It is needed also to compensate the rotation , because the servo is rotating only of 180' and the variable resistance of ~300'  and the LED of 360'

It is needed to adjust the values. The code is also not very efficient , because it uses a list of if statement,

it could be concerted few lines of code , using bit shift functions and a threshold function. 

This will be for the next time.

Here attached my code:EDUCATIONAL_led_round.ino

...