Collab: Elastic Spaces
Fall 2020
Parsons School of Design x UC Boulder
Assignment: Protocol
- Arduino Nano Code
- Telegram Bot, Emotion Analysis & MQTT Publisher
- Connector - Arduino and MQTT Server
- Emotion Expression on Haptic Wrist Band
*<intensity>@<frameDelay>$<frames>#<frameData>*
- intensity - Intensity on which you haptic motor vibrates. Value ranges from 1-254.
- frameDelay - Delay in milliseconds betwen two frames.
- frames - Number of frames you are sending as animation. Maximum number of frames will be capped at 100 frames in single payload.
- frameData - Sequential frame data.
Let us assume Mx represents a Haptic Motor at position x, then each frame would look like M0, M1, M2,...,M17 where Mx can assume a binary value of 0 or 1
# Run the following python commands
os.environ['telegram_bot_api_token'] = '<YOUR-TELEGRAM-BOT-TOKEN>'
os.environ['ParallelDots'] = '<YOUR-PARALLELDOTS-API-KEY>'
python3 protocol.py
In a new terminal window/tab, run the following command
python3 connector.py <ARDUINO NANO's COM PORT>
<!-- Say I am using COM4, the above command formulates to -->
python3 connector.py COM4
TIP: You can find the COM Port by using Arduino IDE
- Akshay Baweja - Parsons School of Design
- Benny Zhang - Parsons School of Design