Hello all!
I’ve been trying to communicate with my LEGO NXT brick through the I2C compliant input ports but have been unable to do so. The manual states that an I2C interface is implemented inside the NXT for each input port, but how can i access it from the ARM microcontroller? I want to use bare-metal C, not any other language or programming tool. Can anyone steer me into the right direction on this?
Thank you!
Hi,
As you can see here, there are plenty of options for programming the NXT brick.
From what we understand, a base firmware (the original or an alternative one) runs on the board and handles the low-level communication (i.e.: it is not controlled directly).
The answers here provide some idea of what can be done.
For something closer to bare-metal (while still having the near-identical original firmware running), you can look at this. This project specifies the following:
Therefore, this seems to allows something very close to what you are looking for.
We hope this helps.
Sincerely,
P.-S.: Please that we did not review in depth any of those link and cannot really offer much support about all this. That being said, they all seemed relevant to your needs at a quick glance and should help you get up and running.