E85 / E86 BMW Z4 – Android tablet integration
Posted: Mon Oct 22, 2018 10:08 pm
Hello, js_online,
I followed your tutorial to build a similar system as yours. I'm stuck with the motor board actually.
I did not want to remove the original connector from the L9935 board's wire, because all the necessary signals (for SPI) are presented on the connector (except /EN pin on the L9935 - /EN is pulled low automatically as the board receives +5V power supply).
(They all have a small resistor and a filtering capacitor, but anyway the pins on the connector are going to the L9935 itself.)
However I can't succeed with Arduino. (I'm using Mega2560, because I don't have any UNOs here).
Of course, on the Mega, the SPI pins are located differently, that's not an issue.
The very first SPI message arrives to the L9935 and it executes it, but all the following SPI commands are skipped.
But if I restart the arduino, the first SPI message arrives again to L9935 and it executes it.
(Technically: I don't need to 'reset' the motor board to receive an SPI command and execute it. Somewhy arduino seems to stuck in some SPI magic)
Could you help me in this manner?
Thanks very much!
I followed your tutorial to build a similar system as yours. I'm stuck with the motor board actually.
I did not want to remove the original connector from the L9935 board's wire, because all the necessary signals (for SPI) are presented on the connector (except /EN pin on the L9935 - /EN is pulled low automatically as the board receives +5V power supply).
(They all have a small resistor and a filtering capacitor, but anyway the pins on the connector are going to the L9935 itself.)
However I can't succeed with Arduino. (I'm using Mega2560, because I don't have any UNOs here).
Of course, on the Mega, the SPI pins are located differently, that's not an issue.
The very first SPI message arrives to the L9935 and it executes it, but all the following SPI commands are skipped.
But if I restart the arduino, the first SPI message arrives again to L9935 and it executes it.
(Technically: I don't need to 'reset' the motor board to receive an SPI command and execute it. Somewhy arduino seems to stuck in some SPI magic)
Could you help me in this manner?
Thanks very much!