EL Prototyping - Jacob-Dixon/MysticWhip GitHub Wiki
##Prototype Schematic and Board Layout, and Flow Chart
##Hardware and Software Inputs
###Hardware
Input Name | Description of Signal | Expected Range |
---|---|---|
Power | Provides power to the EL Driver circuit. | 5V |
SDA | Receives data from the MCU through I^2C | 5V square wave logic |
SCL | Receives the MCU’s clock through I^2C | 5V square wave clock |
###Software
Function Name | Description of expected outputs | Input Parameters | Return Value |
---|---|---|---|
I2C.writeReg(ADDRESS, REGISTER, DATA) | Writes data to the EL Driver. | A byte for the address, a byte for the register, and a byte for data. | void |
I2C.writeRegs(ADDRESS, REGISTER, BUFFER, LENGTH) | Writes data to multiple registers. | A byte for the address, a byte for the starting register, multiple bytes for data, and a byte for the number of registers written to. | void |
ELWire.init(ADDRESS) | Initializes code for the driver. | A byte for the address. | void |
ELWire.setColor(ELREG2, ELREG3, ELREG4) | Writes desired output voltage for each EL output. | A byte for each EL Wire output. (excluding EL Wire 1) | void |
ELWire.setFreq(FREQUENCY) | Writes the operating frequency for all EL wires. | A byte for the EL wire frequency | void |
##Hardware and Software Outputs
Output Name | Description of Signal | Expected Range |
---|---|---|
Three AC signals | Outputs an AC signal to all three EL wires. | (40 – 300) Vpp |
SDA | Sends data to MCU through I^2C. | 5V square wave logic |
I2C.readReg(ADDRESS, REGISTER) | Sends the data held in the register. | byte |
I2C.readRegs(ADDRESS, REGISTER, BUFFER, LENGTH) | Sends data from multiple registers. | Multiple bytes |
##Testing and Debug points
###Hardware Test Points
Test Point Name | Description of Signal | Range of Values |
---|---|---|
EL Wire 2 | This is the output line for one of the EL wires, which can also act as a test point. From this, I will be able to see what kind of AC signal I am outputting. | (40 – 300) Vpp |
EL Wire 3 | This is the output line for one of the EL wires, which can also act as a test point. From this, I will be able to see what kind of AC signal I am outputting. | (40 – 300) Vpp |
EL Wire 4 | This is the output line for one of the EL wires, which can also act as a test point. From this, I will be able to see what kind of AC signal I am outputting. | (40 – 300) Vpp |
###Software Debug Locations
Debug Location | Description of signal and debug statement method | Expected outputs |
---|---|---|
Reached correct state of whip | The main program will access the change ELWires function. When this happens, the MCU will give confirmation. | Serial write back to the Serial Monitor. |