Motion Prototyping - Jacob-Dixon/MysticWhip GitHub Wiki
##Prototype Schematic, Board Layout
##Hardware and Software Inputs
Input Name | Discription | Expected Range/Return Value |
---|---|---|
Power | Input power for Accelerometer from Regulator | 3.3V |
SDA | Communication with the MCU via I2C. MCU Outputs 5V, lowered to 3.3V with resistor. | 3.3V Signal |
SCL | Communication with the MCU via I2C | 3.3V Signal |
accel.read() | Reads the Accelerometer | 3, 12 bit values and 3 calculated accelerometer values for X, Y, and Z |
###Input data graphs
####Stun
####Square
##Hardware and Software Outputs
Output | Name | Description of Signal | Expected Range |
---|---|---|---|
SDA | Communication with the MCU via I2C | 3.3 V Signal | |
SCL | Communication with the MCU via I2C | 3.3 V Signal |
Function Name | Description of expected outputs to function | Input Parameters | Return Value |
---|---|---|---|
State | Sends MCU gesture completed | Should reset to 0 when button is pressed | What gesture was completed |
##Test Points and Signals
T.P. Name | Description of Signal and measurement conditions | Range of Values |
---|---|---|
Square LED | Light that indicates the square has been made. | On when square completed |
Triangle LED | Light that indicates the triangle has been made. | On when triangle completed |
Stun LED | Light that indicates when Stun motion has been made. | On when stun completed |
Timeout LED | Light that indicates timeout has occurred | On after 5 seconds after gesture |
Debug Location | Description of signal and debug statement method | Expected outputs. |
---|---|---|
Step by Step | Has each motion in step to see what motion is not being registered | Serial Write Back |