Linkit 7697 arduino
Copy raw contents
This project shows how to connect a sound sensor (analogic) and how to display its output in a LED bar display using LinkIt 7697.
If you want to use the LinkIt 7697 with the Arduino IDE, follow this tutorial. As a summary:
- Go to File -> Preferences and in the Additional Boards Manager URLs, type
- Then go to Tools -> Boards -> Board Manager. and in the search box look for LinkIt. Install the additional libraries.
- Finally install the USB driver (CP210x) from here, selecting the correct OS configuration.
Code and configuration
In order to correctly connect the board and the sensors, the code has to be analyzed first.
In order to use the LED Bar, we need to import the Grove_LED_Bar library and initialize the Grove_LED_Bar object as follows.
Note that the LED bar has only 3 important pins: 3.3V, Gnd and its input. In this case, the input is on pin 8.
For starting it, just add the begin command to setup.
Finally, the LED bar has 10 LEDs, so it can display any binary number between 0 and 2^10-1=1023. In order to do so, in the loop section use the following code
where the function setBits(i) has an input from 0 to 1023. Please be aware that if a greater or lower number is given, an overflow or underflow will happen and a different number will be displayed.
The sound sensor used in this project was a standard analog sound sensor.
In order to read its inputs, we need to define the analogic pin that will provide the board with the sensors data.
and we need to read its content inside the loop cycle as
Because in our code we find the lines
We then need to update the connections accordingly:
- Connect the LED bar to the IC2 port.
- Connect the sound sensor to the A0 port.
Please beware that in both ports, the GND and 3.3V pins match with the GND and 3.3V pins in both the LED bar and the sensor.
This project can be modified to use any other analogic sensor, such as a light sensor. Just connect it to the A0 port.
A demo of the LED bar displaying different values depending on the detected sound intensity can be seen below.
Bluetooth Low Energy LED control with LinkIt 7697
This tutorial will show you how to use App Inventor to control LED of LinkIt 7697 (Arduino compatible) button and Google Speech.
Hardware components
LinkIt 7697 |
Software apps and online services

Arduino IDE |
App Inventor + IoT: LED Blink with LinkIt 7697
This tutorial will help you get started with App Inventor + IoT, controlling LED of LinkIt 7697 (Arduino compatible) button and Google Speech recognition.
LinkIt 7697 is an Arduino compatible dev board with Wi-Fi / BLE. You can use it like just like any other Aruinos and interfacing with App Inventor through its BLE commutation.
Compared with other Arduino boards with their onboard LED of D13, LinkIt 7697’s onboard LED is D7. In this project, we are going to control this LED by App Inventor. Or you can connect a bigger LED (or relay module) with the help of a breadboard, like below:
Arduino IDE Setup
1. Frist get Arduino IDE 1.8.x version, download the .zip file, unzip and click arduino.exe to open the IDE. From File / Preference menu, enter the link below to Additional Boards Manager URLs field:
2. Open Tools/ Board/ Board Manager , then search “ 7697 ” and install the latest version of 7697 SDK.
3. Download and install CP2102N driver(Windows / MAC/OSX) , then check the COM port in your Device manager. Check if you can see a “Silicon Labs CP210 USB to UART Bridge(COMXX)”, this is the COM port number of your LinkIt 7697.
Finally go back to Arduino IDE, check if IDE had recognized your LinkIt 7697 successfully from Tools/Port menu. For MAC user, it should be something like “
Get the BLE address of LinkIt 7697
1. For safety reason, not every board marked its Bluetooth address on its board (Arduino 101 is an exception). In Arduino IDE, first set the board to “LinkIt 7697” then open example “ SimplePeripheral ” from File/Examples/LBLE menu.
2. Compile and upload to your LinkIt 7697 then open Arduino IDE’s Serial Monitor, should see similar image like below. The [ XX:XX:XX:XX:XX:XX ] 12-digit string is the Bluetooth address of your LinkIt 7697, we have to modify the addr variable value of your AI2 project. Later we will use the same .ino to receive command from App Inventor.
The purpose of this project is to interact with LinkIt 7697 dev board with App Inventor through BLE communication. The main idea is to toggle the digital pin on/off by two buttons, but since there are so many components in AI2, you can use whatever components which can implement the same idea, that’s why we put a SpeechRecognizer component here. You can easily change the trigger from buttons to speech without modifying the Arduino code.
Now login to your App Inventor account and create a new project.
1. The most used components in this project are buttons (to trigger actions) and labels (to show related messages).
2. And we have to import BLE extension from URL:
3. Add a BLE extension by dragging it into Viewer.
4. Add a SpeechRecognizer from Media drawer.
After some adjusting, your designer should be like this. Don’t have to be exactly the same, feel free to modify:
Linkit 7697 arduino
Copy raw contents
LinkIt 7697 Arduino with Web BLE
This repo contains some LinkIt 7697 Arduino project with Web BLE interface.
With an BLE-enabled laptop (ex. Macbook) or an BLE-enabled mobile phone (ex. Android phone), you can use them to interact with LinkIt 7697 devices.
- LinkIt 7697
- An Wi-Fi / BLE HDK, with Arduino IDE, by MediaTek. see https://docs.labs.mediatek.com/resource/linkit7697-arduino/en.
- Web BLE
- Web bluetooth API Link enables browser to use Bluetooth functionality.
- It is NOT W3C standard, therefore only partial browsers/platforms support it. Currently it is only available on:
- Chrome browser — Desktop version
- Chrome browser — Android 6 (Marshmallow) and above
- Check https://www.chromestatus.com/feature/5264933985976320 for latest status.
This demo shows how Web browser to toggles on/off LED on the LinkIt 7697.
visit SimplePeripheral for more detail.
This demo shows how to send Wi-Fi configuration to LinkIt 7697 via BLE. LinkIt 7697 then use the configuration to connect to wireless network.
visit SmartConnection for more detail.
This demo shows how Web browser control NeoPixel (WS2812) lights with LinkIt 7697.
SmallpTsai/linkit-7697-arduino-with-web-ble
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
LinkIt 7697 Arduino with Web BLE
This repo contains some LinkIt 7697 Arduino project with Web BLE interface.
With an BLE-enabled laptop (ex. Macbook) or an BLE-enabled mobile phone (ex. Android phone), you can use them to interact with LinkIt 7697 devices.
- LinkIt 7697
- An Wi-Fi / BLE HDK, with Arduino IDE, by MediaTek. see https://docs.labs.mediatek.com/resource/linkit7697-arduino/en.
- Web BLE
- Web bluetooth API Link enables browser to use Bluetooth functionality.
- It is NOT W3C standard, therefore only partial browsers/platforms support it. Currently it is only available on:
- Chrome browser — Desktop version
- Chrome browser — Android 6 (Marshmallow) and above
- Check https://www.chromestatus.com/feature/5264933985976320 for latest status.
This demo shows how Web browser to toggles on/off LED on the LinkIt 7697.
visit SimplePeripheral for more detail.
This demo shows how to send Wi-Fi configuration to LinkIt 7697 via BLE. LinkIt 7697 then use the configuration to connect to wireless network.
visit SmartConnection for more detail.
This demo shows how Web browser control NeoPixel (WS2812) lights with LinkIt 7697.
Linkit 7697 arduino
The LinkIt 7697 is a development board equipped with the MT7697 from MediaTek and at first glance it looks a bit like a twin of the ESP32. It comes with Bluetooth Low Energy, has a WiFi module and plenty of RAM (compared to the ESP8266) to write nasty memory consuming applications.
One of the perks of being a blogger is that from time to time you get some cool new hardware to review. Seeedstudio asked me if I would like to play around with their brand new LinkIt 7697 and hey, I can almost never say NO to a shiny new gadget!
The Peripherals
The module has a luxurious set of available pins and just like the ESP8266 and the ESP32 many of them have more than one function. Starting with regular GPIO pins with PWM support (18 pins) to UARTs, ADC, hardware I2C and SPI and some more exotic ones like IrDA and I2S. The Cortex-M4 core is running with 192MHz which should give you plenty of power for more complex operations and also has a floating point unit (FPU) in case you need to do extensive math operations.
With 4MB of flash memory it can take your regular programs and art work without any problems, telling from my experience with the ESP8266 connected to displays.
If you want more details about the specs go to the product page.
Something practical – Controlling LED over Bluetooth
The LinkIt 7697 can currently programmed by three different platforms: One is based on FreeRTOS which aims at professional embedded developers, one for the Arduino IDE and one for a graphical editor called BlocklyDuino editor, ideal for kids. In the following examples I chose the Arduino IDE since it is a good mix between removing complexity while still having access to all the hardware features.
Installation is easy and painless when you follow this guide and very similar to the ESP8266 setup:
- Add the JSON Url to the Arduino preferences
- Pick the LinkIt board from the board manager
- Select the LinkIt board from the available boards in the Tools menu
After choosing the LinkIt 7697 board new examples show up in the file menu. And these examples, especially the ones for Bluetooth Low Energy (BLE) are very helpful. For the following demo I opened File > Examples > LBLE > Simple Peripheral, connected the module over USB and uploaded the sketch to the module.
This sketch advertises a BLE LED service which allows other devices to turn one of the on-board LEDs on and off. To test that I installed a iOS app called LightBlue which immediately displayed the service.
In the LightBlue app (and in many other BLE discovery tools) you can then send values to the device. Sending a “1” turns on the LED, a “0” turns it of. Simple as that! I have to say, this was very easy to accomplish!
I tried another experiment, but didn’t succeed. I probably don’t understand enough of the BLE protocol. I have some bluetooth devices like a Sensirion SHT31 BLE “Humigadget”. And I couldn’t get the LinkIt 7697 to see it. While I see the device on the iOS app I cannot see it in the output of the test devices. It also seems not to update the list of discovered devices once it has taken them into the list. You can tell this because the RSSI should be fluctuating…
Comparison of the LinkIt 7697 and the ESP32
As mentioned initially the two chips have many things in common, GPIO pins and types, memory, connectivity (BLE and WiFi). While the LinkIt’s development platform for the Arduino looks really mature the ESP32’s is far from this state. You have to install it with a git checkout (instead of just pasting the URL in the Arduino preferences) and some APIs like the one for BLE are not even implemented yet.
Summary
The LinkIt is certainly an interesting option if you want to get started with a development module and BLE right away. I would like to find out why my BLE gadgets didn’t show up in the scan. It might be due to a bug in the BLE API or the represent a type of Bluetooth device which cannot be seen the by the LinkIt module. The quality of the examples is really good and it is really easy to setup the Arduino IDE to develop with the LinkIt module. I would like to see the ESP8266 lend some ideas from here. For instance the Serial baud rate seems to get detected automatically with the LinkIt setup, while I have to set this manually in the ESP8266 setup. And I have tested this with ESP8266 modules which also had a CP2102 serial-to-usb converter just like the LinkIt 7697. So give this Seeedstudio/MediaTek module a shot. You can buy it from Seeedstudio here.