AndrewChen26 / f1tenth_amr

1 stars 0 forks source link

Implement a motor hardware interface on the Arduino to read encoder values, send, and write motor speeds. #3

Open AndrewChen26 opened 5 hours ago

AndrewChen26 commented 5 hours ago

The easiest way is to write your own bridge the main idea would be to have something that reads the digital signal from the encoder and publishes it, sends current motor speed, and writes motor speed to the motors as a PWM signal.

The message will be passed via Serial although I would like to investigate the I2C communication protocol. This will make it easier to expand the message that we need to send. Start with Serial message.

Problem breakdown:

AndrewChen26 commented 4 hours ago

This link shows how to use I2C between arduino and raspberry pi. https://dronebotworkshop.com/i2c-arduino-raspberry-pi/

This link shows how to set up serial communication between arduino and RasPi. https://roboticsbackend.com/raspberry-pi-arduino-serial-communication/

This link shows the differences between the protocols: https://www.reddit.com/r/AskElectronics/comments/9eu633/comment/e5rpa56/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button