آردوینو می تواند خروجی را از طریق ارتباط سریال از طریق USB به رایانه شما ارسال کند. خروجی می تواند هر چیزی مانند وضعیت، متن، خواندن سنسور، مقدار، عدد و غیره باشد. می توانید خروجی وضعیت را با کلیک بر روی دکمه Serial Monitor در نرم افزار Arduino Environment مشاهده کنید.
دستورالعمل؛
1) آردوینو خود را با استفاده از کابل USB وصل به پلاگین B به رایانه خود وصل کنید.
این کد را در آردوینو خود آپلود کنید
/* Serial Communication Arduino can send output through serial communication to your computer over USB. Coded by: arduinoprojects101.com */ void setup() { Serial.begin(9600); } void loop() { Serial.println("output text send through serial print"); Serial.println("delay 3 seconds"); delay(3000); }
Serial.begin(9600);
به آردوینو دستور دهید تا ارتباط سریال را با 9600 بیت در ثانیه شروع کند.
1) یک عدد کابل USB AB
2) یک عدد آردوینو
برای جزئیات بیشتر: کد ارتباط سریال آردوینو
در ادامه، متن انگلیسی این مطلب را میتوانید مشاهده نمایید:
Arduino can send output through serial communication to your computer over USB. The output can be anything such as status, text, sensor reading, value, number etc. You can view the status output by clicking Serial Monitor button at Arduino Environment software.
Instruction;
1) Connect your arduino to your computer using USB cable A plug to B plug.
Upload this code to your arduino
/* Serial Communication Arduino can send output through serial communication to your computer over USB. Coded by: arduinoprojects101.com */ void setup() { Serial.begin(9600); } void loop() { Serial.println("output text send through serial print"); Serial.println("delay 3 seconds"); delay(3000); }
Serial.begin(9600);
Instruct arduino to start serial communication with 9600 bits of data per second.
1) 1x USB cable A-B
2) 1x Arduino
For more detail: Arduino Serial Communication Code