Hello,
I would like to send a multidimensional array of bits via serial.
Like this:
1 1 0 0 0 0 0 1 1
1 1 1 0 0 0 1 1 1
1 1 1 1 0 1 1 1 1
1 1 1 1 1 1 1 1 1
1 1 0 1 1 1 0 1 1
1 1 0 0 1 0 0 1 1
1 1 0 0 0 0 0 1 1
1 1 0 0 0 0 0 1 1
1 1 0 0 0 0 0 1 1
1 1 0 0 0 0 0 1 1
I have started several attempts before, but only managed to send them very slow and with information losses. I send them from a Raspberry Pi to an Arduino.
what langugae on the RPi are you planing to use?
how is the Arduino connected? e.g. to a USB port or to the serial GPIO pins?
where is the data comming from?
You can send first 8 bits of row as byte, and last bit combined with stop character as the second byte.
It won't quite efficiently, but make the benefit that the code will be simple and short
just import serial and open /dev/ttyACM0
is your data in a BitArray?
you could transmit blocks of 8 bytes which contain the first 8 bits of each 9 bit data and then a ninth byte containing the ninth bit of each data