سلام ..اگر از سریال بخوای استفاده کنی..
کد PHP:
#include <SoftwareSerial.h>
SoftwareSerial box(4 , 5); // 4 = RX ... 5 = TX
void setup() {
// put your setup code here, to run once:
Serial.begin(9600); /// to pc serial
box.begin(9600); // New serial software pin
}
void loop() {
// put your main code here, to run repeatedly:
Serial.print (" Connecting to Serial PC");
box.print ("Connecting to new Serial Software");
}