Komunikasi Serial Arduino
Komunikasi serial pada Arduino dapat dilakukan dua secara dua arah. Artinya baik komputer yang kita gunakan maupun papan Arduino yang sedang kita program dapat saling berkomunikasi dan saling mengirim maupun menerima informasi. Berikut contoh yang memberikan gambaran mengenai komunikasi antara Arduino dan komputer.
> > 04.Communication > MultiSerialMega MultiSerialMega Sometimes, one serial port just isn't enough! When trying to communicate with multiple serial enabled devices, while also sending info back to the main serial window, a few extra RX/TX ports can be a welcomed thing. This example makes use of one of Arduino and Genuino Mega's 3 auxiliary serial ports, routing any incoming data read on that connection straight to the main TX line, and, in turn, to the main serial window for you to view.
Hardware Required. See Also • () • () • () • () • - Demonstrates Arduino's advanced serial output functions. • - Move the mouse to change the brightness of an LED. • - Send data to the computer and graph it in Processing. • - Send MIDI note messages serially. • - Turn a LED on and off by sending data to your board from Processing or Max/MSP.
• - Parse a comma-separated string of integers to fade an LED. • - Send multiple variables using a call-and-response (handshaking) method. • - Send multiple variables using a call-and-response (handshaking) method, and ASCII-encode the values before sending. • - Demonstrates the use of SerialEvent(). • - Send multiple variables from Arduino to your computer and read them in Processing or Max/MSP.
Last revision 2015/07/29 by SM. Sbornik makrosov excel.