المشاركات

التدريب الثاني كاب كاربون ( الاتصال في شبكة إنترنت الاشياء )

  برمجة العقد الطرفية  import time import random while node.loop(): fire = random.randint(1, 6) if fire == 1: node.print("FIRE!") message = "FIRE IN SECTOR " + str(node.id()) node.send(message) else: node.print("") time.sleep(random.uniform(1, 4)) ——————————————————————— برمجة العقد الوسطى import time while node.loop():      if node.bufferSize()>0: message = node.read() node.print("FORWARDING...") node.send(message,1) time.sleep(1) node.print("")      time.sleep(0.01) ————————————————————- برمجة عقدة التحكم import time while node.loop(): if node.bufferSize() > 0: message = node.read() node.print(message) time.sleep(2) node.print("") time.sleep(0.01)

الكود البرمجي النهائي تقنية رقمية ٢

  <!DOCTYPE html> <html dir="rtl" lang="ar"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>يوم التأسيس</title>     <style>         @media screen and (max-width:500px){             img {                 width: 60%;                 height: auto;             }             }     </style> </head> <body>   <h1> يوم التأسيس </h1> <br> <P> يوافق يوم التأسيس 22 فبراير من كل عام امجاد ثلاثة قرون مرت على تأسيس المملكة العربية السعودية </P>   <h3>اكتبي أسمك  </h3>   <img src="1.jfif"> <script>     alert("اختبار عملي نهائي") </script...

تنزيل برنامج CubCarbon

  طالبتي الجميلة : لتنزيل برنامج كاب كاربون CubCarbon  قومي بنسخ الرابط ادناه ولصقه في متصفحك …  http://binary-academy.com/dnld/KSA/IOT2/BinaryCupCarbon.zip

الكود البرمجي لبرمجة جهاز التحكم الدقيق

// C++ code // #include <Adafruit_LiquidCrystal.h> #include <Keypad.h> #include <Servo.h> Adafruit_LiquidCrystal lcd(0); Servo servo; const byte numRow = 4 ; const byte numCols = 4 ; char keymap [numRow][numCols] = {   {'1','2','3','A'},   {'4','5','6','B'},   {'7','8','9','C'},   {'*','0','#','D'},   }; byte rowPins[numRow] = {9,8,7,6};   byte colPins[numCols] = {5,4,3,2};   Keypad keypad =   Keypad (makeKeymap(keymap),rowPins , colPins ,numRow ,numCols); char password[4]; void setup() {     servo.attach(11);   servo.write(0);   lcd.begin(16,2);   lcd.setCursor(0,0);   lcd.print("set 4 character ");   lcd.setCursor(0,1);   lcd.print("password: ");   for (int i = 0 ; i<4 ; i++){     password[i]= keypad.waitForKey();   } }   void loop () {   lc...