SRA-VJTI / sra-board-component

ESP-IDF component for SRA Board
https://sravjti.in/sra-board-component/
MIT License
36 stars 20 forks source link

Mode selection for Motor Driver #16

Closed OSSome01 closed 4 years ago

OSSome01 commented 4 years ago

https://github.com/SRA-VJTI/sra-board-component/blob/52923c8263789b255aa6c56a5a1de9f0cb9ad68b/include/motor_driver.h#L23

In the pdf which @ombhilare999 sent about the new design of SRA board, he mentioned that the mode of the motor drivers will be selected with the help of switches. So, what is the need of selecting the mode from the code?

@VedantParanjape @laukik-hase Was the idea of selecting the mode with switches scrapped?

VedantParanjape commented 4 years ago

Even if we select the mode with switches, we need to use the appropriate control lines in the code depending on the mode.

Switches will make the changes on Hardware level, and then on software level we'll need to use the pins accordingly.

If this solves your issue, close it :)

OSSome01 commented 4 years ago

SRA_BOARD_2020.pdf

This is the pdf I mentioned

ombhilare999 commented 4 years ago

This is previous iteration pdf. In new version pin configuration has been changed, all the pins are mention on the top layer itself: https://github.com/SRA-VJTI/sra-board-hardware-design/blob/master/documentation/images/board_images/top_silkscreen.png

more info: https://github.com/SRA-VJTI/sra-board-hardware-design