Multisensor Kit Software Installation and Configuration
The following provides instructions on how to install and configure the software for the IoT Multisensor kit.
Task 1. Install Teensy Laptop Software.
The Teensy is the microcontroller located on the BBB cape. In order to interact with it, you’ll need to install some software on your laptop.
Task 2. Upload Code to the Teensy.
-
1. Connect a micro USB cable to your laptop and the Teensy.
*To gain access to the code, please send your github account name to Andrew Dugenske.*
4. Copy the code and paste into the Arduino IDE.
5. Upload the code to the Teensy via the IDE.
Task 3. Update the BBB OS.
Task 4. Setup the Wifi on the BBB.
-
1. Connect to the BBB.
2. Obtain the MAC address:
ifconfig
wlan0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC> mtu 1500
inet 143.215.108.111 netmask 255.255.240.0 broadcast 143.215.111.255
inet6 fe80::8230:dcff:fefd:8e1 prefixlen 64 scopeid 0x20
ether 80:30:dc:fd:08:e1 txqueuelen 1000 (Ethernet)
RX packets 13608145 bytes 6355805524 (5.9 GiB)
RX errors 0 dropped 17 overruns 0 frame 0
TX packets 130565 bytes 149821214 (142.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
*The MAC address is 80:30:dc:fd:08:e1.*
3. Establish GTOther access.
-
Send the MAC Address of the BBB to Andrew Dugenske so it can be added to GTOther.
4. Configure the BBB Wifi.
-
Once the BBB has been added to GTOther, configure the BBB such that it connects to GTOther by default using these directions.
Task 5. Add node.js libraries.
-
1. Connect to the BBB.
2. Install Moment.js on the BBB using NPM (Node Package Manager) as follows:
sudo npm install moment
Note: The BBB must be connected to the internet for this to work.
Task 6. Setup Node-RED on the BBB.
-
Node-RED is included in the Debian OS by default.
2. Modify the Node-RED settings file.
3. Develop the file needed to enable the BBB UARTS.
-
The most recent flows for the kit can be found here. Note: you’ll need read access to the repo.
5. Deploy the flows to the server.
-
Click the deploy button in the upper right corner of the Node-RED web page.