Hello, first - thanks in advance for your help.
A quick summary: I am looking for some help driving an Arduino to put out specific binary string over serial communication.
I am using an Arduino Due to integrate several components to create a Bluetooth radio with solid success up until recently.
My trouble area involves a digital volume control board which comes as a 2 part package. The first (main board) is the actual volume control circuitry, and the second is a encoder board allowing the user to adjust the volume and toggle the board on and off.
I would like to remove the encoder board, replacing the functionality with the Arduino Due.
The communication cable has 4 wires: 5V, Ground, Clock, Data.
I have hooked up a logic analyzer to view the communication. It looks like for each step in volume the encoder board sends 8 bits of data repeated twice back to back.
Please see attachments.
My question: Is there a simple way to emulate the binary data displayed with the due (understanding that a logic converter is needed to step voltage from 3.3V to 5V).
For example, is there a straightforward way to drive the Due to output 010001110 010001110 or something similar. NOTE: I input the space to help illustrate the repetition. The actual data has no break between the repeated numbers - as seen in attachments.
Some more information: As the volume is turned up, the binary data follows a somewhat predictable pattern.
00000000 00000000
00010100 00010100
00101000 00101000
01001100 01001100
01001110 01001110
01010000 01010000
01010010 01010010
01010100 01010100
01010110 01010110
01011000 01011000
01011010 01011010
01011100 01011100
01011110 01011110
01100000 01100000
...
Thanks again,
-CWheaton