OK - I can use some ideas…
I have connected four pins for power (+5v, +3.3V, 2x ground) - the board already supplies Vin. I also have connected the Raspberry Pi to the shield for data going through the 5V->3V converter. I know the converter and serial work because looping back either the 3V side or the 5V side I get an echo in Minicom.
However, I’m getting no joy in communicating with the board. The Arduino sketch is pretty simple. For initializing it just sets up a serial port:
Serial.begin(10420); //tell the Arduino to communicate with Make: it PCB
And sends commands to turn on the IR sensors:
dc_write(DC_CMD_IR_TX1, SW_ON);
dc_write(DC_CMD_IR_TX2, SW_ON);
dc_write just sends a 0x56 (send command), followed by ARG1 and ARG2.
The odd thing, is according to the schematic pins 3 and 4 are active, but setting up the serial above it implies 1 and 2. In any case, I tried all combinations and none of them do anything.
Just thinking maybe I messed something up, I put it back together with the Arduberry, and it functioned properly. So somehow there’s a difference between what I’m doing, and what the Arduberry is doing.
One thing that occurs to me is since 10420 baud is non-standard maybe the RPi has difficulty communicating in it?
I appreciate any thoughts. I’m seriously seriously thinking of just chucking the Arduino shield and getting RPi versions, I just don’t generally like letting computers win.
Thanks!
Dion