Library to talk with VIVIWARE Cell Core.
VivicoreSerial library works on ATmega328PB which has 2 UART ports. One is for talking with VIVIWARE Cell Core, another is for flashing and debugging.
The official sketches of VIVIWARE Cell Branch are included as examples code.
The below table shows the corresponding Arduino IDE version VivicoreSerial library requires. Refer to How to setup to install Arduino IDE and configure the board and library manager.
| Arduino IDE version | Arduino AVR Boards | VivicoreSerial version managed on Library Manager | LIBRARY_VER_BUILD_NO defined on VivicoreSerialVersion.h |
Description |
|---|---|---|---|---|
| 2.0.0 or later | 1.8.2 (Required) | 1.0.0 or later | 0x0005 or later |
|
| 1.8.12 | 1.8.2 (Included in IDE) | 1.0.0 or later | 0x0005 or later |
|
| 1.8.7 | 1.6.23 (Included in IDE) | - | 0x0004 or before |
|
VivicoreSerial library depends on Arduino core and libraries, and ATmegaBOOT.
And a part of the official sketches of VIVIWARE Cell Branch included as examples code depends on the following version's library modules. The library modules are neccessary to be installed on library manager or with archived zip file on Github if building examples code.
| Module | Lisence and the link to the original |
|---|---|
| Adafruit_APDS9960 v1.1.4 | BSD-3-Clause |
| vl53l0x-arduino v1.0.2 | MIT (pololu), BSD-3-Clause (STMicroelectronics) |
| Arduino-LSM6DS3-LSM6DS3TRC v1.0.0 | BSD-3-Clause |
| Arduino-misakiUTF16 v1.02a | Free software lisence 本フォントライブラリは、「美咲フォント」と同様にフリー(自由な)ソフトウエアです。 あらゆる改変の有無に関わらず、また商業的な利用であっても、自由にご利用、複製、再配布することができます。 ただし、全て無保証とさせていただきます。 |
| Misaki font (included in Arduino-misakiUTF16) | Free software lisence These fonts are free software. Unlimited permission is granted to use, copy, and distribute them, with or without modification, either commercially or noncommercially. THESE FONTS ARE PROVIDED "AS IS" WITHOUT WARRANTY. |
| Arduino core and libraries (included in Arduino IDE) | LGPLv2.1 |
| ATmegaBOOT (included in board package setup on How to setup) | GPLv2 |
NOTE: The following libraries cannot be found on Library Manager, and need to be installed by zip archive got from the above Github link if you build and upload the examples code depending them.
- Arduino-misakiUTF16
- Arduino-LSM6DS3-LSM6DS3TRC
This instruction describes how to setup Arduino IDE to build VIVIWARE Cell Custom sketch and upload it to the board.
- Download and install the required Arduino IDE version written on requisites which is available on Arduino official site top or Previous IDE Releases.
- For Windows, use Windows Installer exe file but not zip file
- Open
Preferencesof Arduino IDE. - Add URL
https://raw.githubusercontent.com/vivitainc/custom_cell_boards/master/package_viviware_index.jsonintoAdditional Boards Manager URLstext box, and pressOKbutton.
- Open Arduino IDE and the menu
Tools>Board:>Boards Manager.... - Enter
arduinointo text box.- Find
Arduino AVR Boards. - Select the required version written on requisites, and press
Installbutton. Do not use another version to avoid unexpected built result mismatch. - After a while, check the status
INSTALLEDshown on right side of the version.
- Find
- Enter
viviwareinto text box.- Find
VIVIWARE Cell Custom Boards. - Select the latest version (e.g.
6.3.0), and pressInstallbutton. - After a while, check the status
INSTALLEDshown on right side of the version.
- Find
- Close
Boards Managerby pressingClosebutton.
- Open Arduino IDE and the menu
Sketch>Include Library>Manage Libraries.... - Select
TypeofAllorContributed, selectTopicofAllorCommunication, and enterVivicoreSerialinto text box, and findVivicoreSeriallibrary. - Select the latest version of
VivicoreSerial(e.g.3.2.0+07010014), and pressInstallbutton. - After a while, check the status
INSTALLEDshown on right side of the version. - Close
Library Managerby pressingClosebutton.
- Open new sketch on Arduino IDE.
- Copy the template code generated by VIVIWARE Developer and paste it to the new sketch.
- Select board
VIVIWARE Cellin the menuTools>Board:. - Select version
Customin the menuTools>Version:. - Select port connected to VIVIWARE Cell Custom board in the menu
Tools>Port:. - Press
Uploadbutton.
Refer to README for library developer.
- 3.2.0 : Add features or fix issues as the following
- Support VIVIWARE Cell Custom v4 board with custom_cell_board 6.3.0 or later
- Support VIVIWARE Cell Custom v3 board as DeprecatedCustom
- Drop supporting VIVIWARE Cell Custom v2, v1 board
- 3.1.0 : Add features or fix issues as the following
- Support VIVIWARE Cell Custom v3 board with custom_cell_board 6.2.0 or later
- Support VIVIWARE Cell Custom v2, v1 board as DeprecatedCustom
- Support VIVIWARE Cell UserBranch with custom_cell_board 6.1.0 or later
- 3.0.0 : Add features or fix issues as the following
- Remove setOverrideIni and use write before begin to override DC_INI
- 2.0.0 : Add features or fix issues as the following
- Update UART protocol v7 to change the baudrate to 50k from 100k to avoid dropping data
- Improve interface of begin, available, read, write, and flush
- Update examples ino to support the latest library interface
- 1.1.0 : Add features or fix issues as the following
- Send stored TX data set in discovery sequence
- Make initial value to be able to override and send as DC_INI
- Update examples ino to support the latest library interface
- 1.0.2 : Fix github URL for Library Manager
- 1.0.1 : Replace public README
- 1.0.0 : First version for Library Manager