This project is an experimental controller for an autonomous robot, enabling sensor communication and path tracking.
Connect the external sensors as specified in the pinout. Connect the gyro via I2C at 100 kHz and UART at 9600 baud. Then power on and set robot_enable
to 1.
Connect the gyro sensor to I2C SDA and SCL.
Connect the proximity sensor to echo_rx and trig_tx.
# | Input | Output | Bidirectional |
---|---|---|---|
0 | Enable | uart_tx | sda_master |
1 | A1 | scl_master | motor_driver_STBY |
2 | B1 | trig_tx | pwm_out_rightmotor |
3 | echo_rx | mux_sensor_select[0] | pwm_out_leftmotor |
4 | mux_sensor_select[1] | direction_rightmotor_1 | |
5 | mux_sensor_select[2] | direction_rightmotor_2 | |
6 | mux_sensor_select[3] | direction_leftmotor_1 | |
7 | uart_rx | target_reached | direction_leftmotor_2 |