Contents:

Web-Based SPIKE Prime Control Documentation

This documentation describes how to setup and create interactive web-based interfaces for controlling the SPIKE Prime.

It was originally created by Ethan Danahy in November and December 2020 for use by his first-year engineering course at Tufts University.

Setting up Airtable

See Canvas for instructions on creating an Airtable account.

To access your Airtable data remotely, you need three things:

The Airtable API and the Base ID need to be entered into the "/src/secret.js" file. Here is the location of that file in the folder structure:

Inside that file, you should be updating lines #19 (Airtable API Key) and #20 (Airtable Base ID):

Notes:

Then for each page you create (remote, local, etc) that you want to access a data table within Airtable, you need to specify your Table Name. Make sure you enter it into any/every page where you are connecting to Airtable.

Here is an example from myProject_remote.html showing that the Airtable tablename of "myProject" has been entered into the ServiceDock on line 13.

Creating Remote File

The header of the Remote page needs to include the following:

In addition to these essential files, you can add to this head your own:

In the body of the document you need to include the Service Dock that performs the connection to Airtable. Make sure you update the tablename to reference the table you want to use in your project.

Creating Local File

The header of the Local page needs to include the following:

In addition to these essential files, you can add to this head your own:

In the body of the document you need to include the Service Dock that performs both the connection to Airtable as well as connecting to the SPIKE Prime.

Reminder about SPIKE Prime:

To use the SPIKEā„¢ Prime hardware, you must be using a recent version of the Google Chrome browser.

Examples

Additional documentation including examples coming soon.

For now: see the other demos and documentation


Project and Documentation created by Tufts Center for Engineering Education and Outreach:



For more information about Tufts CEEO, please visit: http://ceeo.tufts.edu

For other experimental projects from Tufts CEEO: CEEO Innovations