Datasheet

B.3. Interaction Communication Protocol
LED Eyes Control
[Command] = 0x40
Write -> [0x40][Eye][32 bytes of 8 LEDs]
Read -> [0x40] [Send Number] [CheckSum_H] [CheckSum_L]
where:
[Eye] = 0 : Left Eye;
[Eye] = 1 : Right Eye.
[32 bytes of 8 LEDs] - the LED controller is able to control a matrix of 32 LED columns (32
bytes) by 8 LED rows (8 bits). The Eyes are organized in 32 LED columns by 3 LED rows.
Each column is represented by a single 8 bits byte. Where the least significant bit will activate
the external LED circle of the eye, the second bit will activate the middle line and the third will
activate the inner LED circle. The other 5 bits are not used. To enable a LED the bit must be
changed to ‘1’ and to disable the bit must be changed to ‘0’.
LED Eyes intensity Control
[Command] = 0x41
Write -> [0x41][Eye][Intensity]
Read -> [0x41] [Send Number] [CheckSum_H] [CheckSum_L]
where:
[Eye] = 0 : Left Eye;
[Eye] = 1 : Right Eye;
[Eye] = 2 : Both Eyes.
[Intensity] = [0-15] is the intensity level for the each eye. The maximum level is 15 and the
minimum is 0.
Laser Pointer Control
[Command] = 0x42
Write -> [0x42][Enable Control]
Read -> [0x42] [Send Number] [CheckSum_H] [CheckSum_L]
where:
[Enable Control] = 1 : Laser pointer ON;
[Enable Control] = 0 : Laser Pointer OFF;
Laser Pointer green LEDs control
[Command] = 0x43
Write -> [0x43][Intensity][time]
Read -> [0x43] [Send Number] [CheckSum_H] [CheckSum_L]
where:
[Intensity] = [0-100] is the intensity percentage of the signal that will drive the green LEDs.
[time] = [0 -255] is the time that will take to reach the new intensity level. Where [0] is 0
seconds [1] is 0.01s and [255] is 2,55s.
FROG – FP7 STREP nr. 288235
Deliverable: D1.4 – Platform User and Developer Manual 60