Skip to content

Latest commit

 

History

History
47 lines (23 loc) · 1.09 KB

README.md

File metadata and controls

47 lines (23 loc) · 1.09 KB

cabal-serial-test

Usage

You can use @cabalbot to control / get info from an Arduino connected to the serialport.

Type @cabalbot HELP into a cabal to see a list of commands -- the @cabalbot will do your bidding!

Installation

Installing Node packages

Install cabal-headless and serialport via npm:

npm install cabal-headless
npm install serialport

Installing Microcontroller code

Load the code in soil_bot_firmware onto an Arduino-compatible device.

You'll also need to install the Arduino-SerialCommand library.

After installing the library and loading the firmware, note what serialport the Arduino ends up on; this is hard-coded into soil.js on line 5 (you should change it to match your system):

const port = new SerialPort('/dev/ttyACM0')

Setting up the Cabal

The cabal key for the bot is also hard-coded into soil.js on line 16 (change it to match your cabal):

var key = 'cabal://0201400f1aa2e3076a3f17f4521b2cc41e258c446cdaa44742afe6e1b9fd5f82'