Μετάβαση στο κύριο περιεχόμενο

Αναρτήσεις

Bluetooth

  String data = "" ; //Εδώ αποθηκεύεται το input που λαμβάνουμε void setup () { Serial . begin ( 9600 ); //Ρυθμός λειτουργίας της σειριακής επικοινωνίας pinMode ( 2 , OUTPUT); //Πιν του κόκκινου LED pinMode ( 3 , OUTPUT); //Πιν του πράσινου LED } void loop () { if ( Serial . available () > 0 ) // Προχώρα παρακάτω μόνο αν έλαβες κάτι... { data = Serial . readString (); //Διάβασε το byte που ήρθε και αποθήκευσέ το data . trim (); Serial . println (data); if (data == "11" ) //Αν έλαβες τον αριθμό 11... digitalWrite ( 2 , HIGH); //Άναψε το πρώτο LED else if (data == "10" ) //Αν έλαβες τον αριθμό 10... digitalWrite ( 2 , LOW); //Σβήσε το πρώτο LED else if (data == "21" ) //Αν έλαβες τον αριθμό 21... digitalWrite ( 3 , HIGH); //Άναψε το δεύτερο LED else if (data == "20" ) //Αν έλαβες τον αριθμό 20... digitalWrite ( 3 , LOW); //Σβήσε το δεύτερο LED } } Προσοχή όταν "ανεβάζουμε"  τον κώδικα δεν πρέπει να είναι συ...

LCD code

#include "Wire.h" #include "LiquidCrystal_I2C.h" //I2C pins declaration LiquidCrystal_I2C lcd(0x3F, 16, 2); void setup() { lcd.init();//Defining 16 columns and 2 rows of lcd display lcd.backlight();//To Power ON the back light //lcd.backlight();// To Power OFF the back light } void loop() { lcd.setCursor(0,0); //Defining positon to write from first row, first column . lcd.print(" Generation Next"); // You can write 16 Characters per line . delay(1000);//Delay used to give a dynamic effect lcd.setCursor(0,1); //Defining positon to write from second row, first column . lcd.print(" Youth "); delay(8000); lcd.clear();//Clean the screen lcd.setCursor(0,0); lcd.print(" I2C LCD Screen "); lcd.setCursor(0,1); lcd.print(" DEMO "); delay(8000); }

Ερωτηματολόγιο Έναρξης σεμιναρίου Vodafone - SciCo:

Ερωτηματολόγιο Έναρξης σεμιναρίου Vodafone - SciCo:https://docs.google.com/forms/d/1BNOfFE0zSSYcpSCE7QnFFmnhh6A2WbcNXi5VesCE1jw/prefill https://docs.google.com/forms/d/1BNOfFE0zSSYcpSCE7QnFFmnhh6A2WbcNXi5VesCE1jw/prefill https://drive.google.com/file/d/1qyzL1cSwxKjbfMVodm_hgQKlGtWwhkJe/view?usp=sharing

Φορητός μετεωρολογικός σταθμός

Φορητός μετεωρολογικός σταθμός
  https://create.arduino.cc/ projecthub/biharilifehacker/ arduino-with-pir-motion- sensor-fd540a

Αισθητήρας σχετικής υγρασίας και θερμοκρασίας DHT11

 Αισθητήρας σχετικής υγρασίας και θερμοκρασίας DHT11     Κώδικας για τον DHT11 από τα παραδείγματα της βιβλιοθήκης του   // Example testing sketch for various DHT humidity/temperature sensors // Written by ladyada, public domain // REQUIRES the following Arduino libraries: // - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library // - Adafruit Unified Sensor Lib: https://github.com/adafruit/Adafruit_Sensor #include "DHT.h" #define DHTPIN 2     // Digital pin connected to the DHT sensor // Feather HUZZAH ESP8266 note: use pins 3, 4, 5, 12, 13 or 14 -- // Pin 15 can work but DHT must be disconnected during program upload. // Uncomment whatever type you're using! #define DHTTYPE DHT11   // DHT 11 // #define DHTTYPE DHT22   // DHT 22  (AM2302), AM2321 //#define DHTTYPE DHT21   // DHT 21 (AM2301) // Connect pin 1 (on the left) of the sensor to +5V // NOTE: If using a board with 3.3V logic like an Arduino...