Team-Isaac-Polito / MotorsBoard

GNU General Public License v3.0
0 stars 0 forks source link

I2C Library #5

Open luca-byte opened 5 hours ago

luca-byte commented 5 hours ago

Define an Arduino library to deal with the I2C connection to the Main Board

The I2C master should send data to the motors board and request telemetry after a certain time has passed, so this is the main use case. The operations of calibration, update, reset without too much time without instructions will be completely carried out by the motors board

For more info on the I2C protocol and its Arduino implementation: Arduino Docs, Pico Docs

Disteroas commented 4 hours ago

Define an Arduino library to deal with the I2C connection to the Main Board

  • [ ] Identify the data that the motors can receive from the main-board here
  • [ ] Identify the data that should be sent back to the main-board here
  • [ ] Define some functions to setup the I2C channel, to receive data, to send data.

The I2C master should send data to the motors board and request telemetry after a certain time has passed, so this is the main use case. The operations of calibration, update, reset without too much time without instructions will be completely carried out by the motors board

For more info on the I2C protocol and its Arduino implementation: Arduino Docs, Pico Docs

Tysm

luca-byte commented 4 hours ago

This #2 should not be a problem until we want to use the temperature sensor

Disteroas commented 4 hours ago

This #2 should not be a problem until we want to use the temperature sensor

It is because we need an ADC?

luca-byte commented 4 hours ago

This #2 should not be a problem until we want to use the temperature sensor

It is because we need an ADC?

No, both the sensor and the main board are connected to the same channel, so they interfere as far as I understood it. But for now I think that we can focus only on board-to-board communication and move this problem further away

Disteroas commented 4 hours ago

This #2 should not be a problem until we want to use the temperature sensor

It is because we need an ADC?

No, both the sensor and the main board are connected to the same channel, so they interfere as far as I understood it. But for now I think that we can focus only on board-to-board communication and move this problem further away

Ok perfect! (A great task for new members...)