My internship in Berlin

Hello everyone, I’m Sartorato Nicolò, I’m eighteen and I Study electronics near Venice, in Italy. With the “Erasmus+” project I’ve been in Berlin for 35 days and I had the pleasure of working for 4 weeks at the Maker Store in Danziger Straße, the perfect place if you love electronic and robotics.

Nicolo

I liked so much to do my internship here, because I discovered a new way to study electronics, the Brick’s system by Brick’R’Knowledge, with which you can learn quickly while having fun.

20160802_123749_008-1

Personally, I mostly worked with the Arduino set, with whom I design a thermometer with a humidity sensor, for an OLED screen and also for a LED grid 16×16 (code below).

20160802_123837-1

I recommend everyone to try to use the system of bricks, I hope to return here one day in the future because it’s a very interesting place to make projects, study and to expand personal knowledge.

Here´s the video showing my circuit in action: https://www.youtube.com/watch?v=Hz5bsGzVQjk

See you at Maker Store 😉

Sartorato Nicolò

 

 

Code:

int temp=0;

int hum=0;

void setup(){

i2c_oled_initall(i2coledssd);

Wire.begin();

Serial.begin(9600);

Serial.println(« Temperature misuration »);

Serial.println();

Serial.println(« Type,\tstatus,\tHumidity (%),\tTemperature (C) »);

}

void loop(){

char buffer[30];

char buffe [20];

disp_buffer_clear(COLOR_BLACK);

disp_print_xy_lcd(0, 0, (unsigned char*) « DEGREES », COLOR_WHITE, 0);

disp_print_xy_lcd(0, 24, (unsigned char*) « HUMIDITY », COLOR_WHITE, 0);

disp_lcd_frombuffer();

int stat;

Serial.print(« DHT11, \t »);

stat = DHT.read(DHT11_PIN);

switch (stat){

case DHTLIB_OK:

Serial.print(« OK,\t »);

break;

case DHTLIB_ERROR_CHECKSUM:

Serial.print(« Checksum error,\t »);

break;

case DHTLIB_ERROR_TIMEOUT:

Serial.print(« Time out error,\t »);

break;

default:

Serial.print(« Unknown error,\t »);

break;

}

// DISPLAT DATA

Serial.print(DHT.humidity,1);

Serial.print(« ,\t »);

Serial.println(DHT.temperature,1);

temp = DHT.temperature ;

hum = DHT.humidity;

sprintf(buffer, « %4d Celsius », temp);

sprintf(buffe, « %4d / 100 », hum);

disp_print_xy_lcd(0, 11 ,(unsigned char*)buffer, COLOR_WHITE, 0);

disp_print_xy_lcd(0, 35 ,(unsigned char*)buffe, COLOR_WHITE, 0);

disp_lcd_frombuffer();

delay(4000);

}

 

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *