Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

bag control

Chris Thierauf edited this page Apr 27, 2018 · 3 revisions

Overview

This module sends commands to the Adafruit Pro Trinket to emit tones for lift bag control. This is done using 4 GPIO pins- one for each command.

Dependencies

pigpio: Gives GPIO control on the Pi. Requires the pigpio C library to have been installed (this was done via git and make).

Functions


openBagOne()

Paramters: None

Returns: None

Usage

openBagOne();

This function tells the trinket to send the 'Open Bag One' command. GPIO pin 22 is set high, then returned to low after 100 ms using the pulsePin(pin) function.


closeBagOne()

Parameters: None

Returns: None

Usage

closeBagOne();

This function tells the trinket to send the 'Close Bag One' command. GPIO pin 23 is set high, then returned to low after 100 ms using the pulsePin(pin) function.


openBagTwo()

Paramters: None

Returns: None

Usage

openBagTwo();

This function tells the trinket to send the 'Open Bag Two' command. GPIO pin 24 is set high, then returned to low after 100 ms using the pulsePin(pin) function.


closeBagTwo()

Inputs: None

Outputs: None

Usage

closeBagTwo();

This function tells the trinket to send the 'Close Bag Two' command. GPIO pin 25 is set high, then returned to low after 100 ms using the pulsePin(pin)


Concepts

These documents cover more 'how things work' rather than the nitty-gritty stuff.

Javascript packages

Function-by-function breakdown per JS package.

Systemd

systemd allows us to start processes when the Pi powers on.

Arduino Code

Stuff about our Arduino code, details depending on the file.

  • TODO

Bash Scripts

Overview of the bash script(s).

  • TODO

Custom Tools

Tools we've created to make the usage and development process easier.

Clone this wiki locally