MediaTek LinkIt™ Smart 7688 Developer's Guide
© 2015, 2016 MediaTek Inc.
Page 83
This document contains information that is proprietary to MediaTek Inc.
Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.
If you see the LED on
D13
of the LinkIt Smart 7688 Duo blink 10 times before the Python program
terminates, congratulations. You’ve successfully ran the blink example.
Please continue to explore more
examples in the
PyMata/examples
you’ve downloaded earlier.
Just remember to change the serial port to
/dev/ttyS0
,
and keep in mind the hardware
differences between LinkIt Smart 7688 Duo and Arduino Uno:
o
LinkIt Smart 7688 Duo operates in 3.3V, not 5V as in Arduino Uno.
o
You’ll need extra power source when driving motor or servo peripherals because
they draw more current.
for other Python interfaces available to Firmata protocol.
6.6.6.
Node.js example
This section illustrates the MPU and MCU communication using Firmata protocol in Node.js. The
main steps are:
1)
Set up the MCU, start by Launching Arduino IDE 1.6.5 on your computer
2)
Copy the Firmata example to Arduino, you do this by opening a browser and click
You’ll see a Firmata example code. Click on
Raw
button to copy the code, as shown in
Figure 58 below.
Figure 58Copying example code from Github
3)
Copy the example code to the Arduino IDE and click
Upload
, as shown in Figure 59.