Skip to content
Snippets Groups Projects
Commit 6556c75b authored by Werner Sembach's avatar Werner Sembach
Browse files

Update README.md

parent f3d84886
Branches
Tags
No related merge requests found
......@@ -54,7 +54,7 @@ Connections are as follows:
7. Controll the motor by calling dc_set(\<DC_RIGHT|DC_LEFT\>, \<0...255\>)
### Possible edits
You could look up the other two pins connected to TIM3 in the datasheet of the processor ([product page](http://www.st.com/en/microcontrollers/stm32f411ve.html) -> [datasheet](http://www.st.com/content/ccc/resource/technical/document/datasheet/b3/a5/46/3b/b4/e5/4c/85/DM00115249.pdf/files/DM00115249.pdf/jcr:content/translations/en.DM00115249.pdf) -> 4. Pinouts and pin description) and use them for another IBT_2 motor driver by connecting them to RPWM and LPWM and copy and modify the dc_set() function. Be aware hat both R_EN and L_EN must be connected to set(high) GPIO pins. This is done in die dc_init() function.
You could look up the other two pins connected to TIM3 in the datasheet of the processor ([product page](http://www.st.com/en/microcontrollers/stm32f411ve.html) -> [datasheet](http://www.st.com/content/ccc/resource/technical/document/datasheet/b3/a5/46/3b/b4/e5/4c/85/DM00115249.pdf/files/DM00115249.pdf/jcr:content/translations/en.DM00115249.pdf) -> 4. Pinouts and pin description) and use them for another IBT_2 motor driver by connecting them to RPWM and LPWM and copy and modify the dc_set() function. Be aware hat both R_EN and L_EN must be connected to set(high) GPIO pins. These pins could be set in the dc_init() function like PB0 and PB1.
## 3. ExternButton
### How to Use
......@@ -77,4 +77,4 @@ A simple button can be used with any unused GPIO pin on the board. All you have
6. Every call to set_servo_percent(\<SERVO_0|SERVO_1|SERVO_2|SERVO_3>, \<0.0...1.0\>) or set_servo_degree(\<SERVO_0|SERVO_1|SERVO_2|SERVO_3>, \<0.0...180.0\>) will now move the respective servo to a new position.
### Possible edits
\#define MIN_UPTIME 150 and \#define MAX_UPTIME 300 can be used to calibrate the servos to a new minimum and maximum position and therefore it should be no problem to also use other servo models with this library.
"\#define MIN_UPTIME 150" and "\#define MAX_UPTIME 300" can be used to calibrate the servos to a new minimum and maximum position and therefore it should be no problem to also use other servo models with this library.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment