** çҹ繤Դ繢ͧ¹ͧ 觼ҹ繵ͧ繴令Ѻ
ҡ բʹ ;ͤ ԡ سѧ¹¤Ѻ ӡ䢢
١ͧ Ѻ
Ѻ˹ѡ
 

AVR Arduino ͹ ͹ء

͹СǶ֧͹ء觡Ẻջªҡ㹡õԴػóҧաẺ͹ء͹ѹ õԴ͡Ѻͧ


õԴ͹ء


ҷ㹡õԴ

㹡͹ء ѭҳ 2 PDO ( Digital pin 0) 繢Ѻ ( RXD) PD1 ( Digital pin 1) 繢觢 (TXD)


˹觢ҷ㹡õԴ


MAX 232 IC ʹѺä͹
õԴҧͧ Ѻ ä͹鹨öͶ֧ѹµçеͧ IC ˹ҷŧдѺçѹҡѹ͹ Ǫشͧ Arduino 鹨 IC MAX232 ѺŧдѺçѹ ֧ͧ͵ IC ҡ¹͡


IC MAX232


͡ҡ͹ءз˹ҷԴҧä͹ѧöʴ ҵ ѡõҧҹ Hyper Terminal 㹤ա«ջª㹡¹ͧҵù ¹ դҵ˹ 㹵 Arduino Serial Monitor


ʧżҹ Hyper Terminal



ʧżҹ Serial Monitor


á˹㹡õԴ
㹡ാ͹ء еͧ˹㹡õԴ ͷ¡ҡá˹ Baudrate ·仨С˹㹡õԴʹѧ
110 ,300 , 1200 , 2400 , 4800 , 9600 , 14400 , 38400 , 57600 , 115200 , 230400 , 460800 , 921600

觷㹡¹
·觡մѧ
Serial. begin (speed)
Serial .available( )
Serial .read( )
Serial .flush( )
Serial .print(data)
Serial .print(data,format )
Serial .println(data)
Serial .println(data,format)

йӺҧǹöҹҡ Help Ѻ
Serial. begin (speed)
Դ췡õԴ ˹㹡õԴ
ٻẺ
Serial.begin(speed)


speed: 㹡õԴ
觤ҡѺ : ա觤ҡѺ
ҧ:
void setup()
{
Serial.begin(9600); // ˹㹡õԴ 9600
}
Serial .print(data)
㹡þ 㹡ʴŷͧ ҧ
serial.print("www.semi-shop.com\n");
ʴͤ www.semi-shop.com \n 鹺÷Ѵ ͹Ҵ code ẺóѹѺ
void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.print("www.semi-shop.com\n");
delay(1000);
}
clink Serial Monitor ˹ҵҧʴ


clink Serial Monitor


ǹŷ ʴ www.semi-shop.com ¨Т鹺÷Ѵء 1 Թҷ Ѻ


ŷҡ÷ӧҹ

ҵͧʴŤҵ ö¹ code ѧ
int a = 1000; // ˹ a դ 1000 void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.print(a); // ʴҵ a
Serial.print("\n"); // 鹺÷Ѵ
delay(1000);
}


ŷҡ÷ӧҹ


͹ءʴ ҵùջªҧҡ㹡ҹͷͺҵ Ҥҵõҧ¹ŧ ѧջª㹡ʴš¹ǡѺԵʵ¤Ѻ


¹ 6 .. 2554