Showing posts with label Arduino. Show all posts
Showing posts with label Arduino. Show all posts

Monday, November 17, 2025

Arduino ( 3 - 9 ) Bi Color and Tri Color LED

  Code များအား ကူးယူရာတွင် Code များ မကျန်ခဲ့စေရန် သေချာဂုရုစိုက်၍ ကူးယူစေလိုပါသည်။





int redPin = 11;
int greenPin = 10;
int bluePin = 9;
void setup(){
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
}
void loop(){
digitalWrite(redPin,HIGH);
delay(500);
digitalWrite(redPin,LOW);
digitalWrite(greenPin,HIGH);
delay(500);
digitalWrite(greenPin,LOW);
digitalWrite(bluePin,HIGH);
delay(500);
digitalWrite(bluePin,LOW);
}

Arduino ( 3 - 8 ) LED Fade In / Fade Out

 Code များအား ကူးယူရာတွင် Code များ မကျန်ခဲ့စေရန် သေချာဂုရုစိုက်၍ ကူးယူစေလိုပါသည်။


Code ##

const int ledPin = 9;

void setup() {
//Declare LED Pin as Output
pinMode(ledPin, OUTPUT);
}
void loop() {
for(int a = 0; a <= 255; a++)
//for ( initialize; control; increment or decrement)
{
analogWrite(ledPin, a );
delay(10); //Slowly turn on the LED
}
delay(200);
for(int a = 255; a >= 0; a--) {
analogWrite(ledPin, a);
delay(10); //Slowly turn off the LED
}
delay(200);
}

Arduino ( 3 - 7 ) Analog Voltage Reading With Arduino

Code များအား ကူးယူရာတွင် Code များ မကျန်ခဲ့စေရန် သေချာဂုရုစိုက်၍ ကူးယူစေလိုပါသည်။



 void setup() {

// initialize serial communication at 9600 bits per second:
Serial.begin( 9600);
}
// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
int sensorValue = analogRead(A0);
// Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V):
int voltage = sensorValue * (5.0 / 1023.0);
// print out the value you read:
Serial.println(voltage);
delay(100);
}


Thursday, November 13, 2025

Arduino ( 3 - 5 )Two Led Blink

 Two LED Blink




Code များကို ကူးယူရာတွင် အထူးပြုအက္ခရာများအား သတိထား၍ မကျန်စေရန် ကူးယူစေလိုပါသည်။ 

Code ##
const int led1 = 12; //First LED is connected to digital pin 7
const int led2 = 13; //Second LED is connected to digital pin 8
void setup() {
pinMode(led1, OUTPUT); //Pin 12 is defined as output
pinMode(led2, OUTPUT); //Pin 13 is defined as output
}
void loop() {
digitalWrite(led1, HIGH);
delay(1000);
digitalWrite(led1, LOW);
//delay(1000);
digitalWrite(led2, HIGH);
delay(1000);
digitalWrite(led2, LOW);
//delay(1000);
}

Arduino ( 3 - 4 ) LED မီးသီးများ အကြောင်း



LED သည် မီးသီးမဟုတ်ပါ။ သို့သော် အလင်းရောင်ထုတ်ပေးနိုင်သဖြင့် မီးသီးဟုသာ အလွယ်ခေါ်ကြခြင်းဖြစ်ပါသည်။ LED သည် အလင်းရောင်ထုတ်ပေးနိုင်သော Diode ဖြစ်ပါသည်။ 




Arduino ( 3 - 3 ) One LED Blink Test

One LED Blink Test

ရေးသားရမည့် Code မှာ Build_In_LED Test နှင့် ပုံစံတူပြီး Hard ware ပိုင်းတွင်တော့ ဆင်ရမယ့် LED မီးသီးငယ် အကြောင်း အနည်းငယ်သိထားရန်လိုပါသည် ။ Blink ဆိုသည်မှာ မှိတ်တုတ် မှိတ်တုတ် ဖြစ်နေသည်ကို ဆိုလိုခြင်းဖြစ်ပါသည်။





Arduino ( 3 - 2 ) Proteus ဖြင့် Arduino သင်ခန်းစာများကိုလေ့ကျင့်ခြင်း






Arduino ( 2 - 3 ) Proteus Design 8.6 Install ပြုလုပ်ခြင်း


Home Appliances ( 1 - 3 ) လျှပ်စစ်မီးဖိုစစ်ဆေးခြင်း

မီးဖိုတခုကို မီးထိုးထားချိန် တခါတရံ ဓါတ်လိုက်ခြင်းကို ကြုံဖူးပါလိမ့်မယ် . မြန်မာနိုင်ငံတွင် Earth စနစ်တပ်ဆင်ထားခြင်း အလွန်နည်းပါးတာကြောင့် အ...