|
1 |
| -# ArduinoFOC library |
| 1 | +# Arduino FOC library |
2 | 2 | ### Arduino Field Oriented Control (FOC) for gimbal BLDC motors
|
3 | 3 |
|
4 | 4 | 
|
@@ -68,27 +68,29 @@ The code is simple enough to be ran on Arudino Uno board.
|
68 | 68 | - Make sure you connect the common ground of the power supply and your Arduino
|
69 | 69 | ##### Motor
|
70 | 70 | - Motor phases `a`, `b` and `c` are connected directly to the driver outputs
|
71 |
| -- Motor phases `a`,`b`,`c` and encoder channels `A` and `B` have to be oriented right for the algorightm to work. But don't worry about it too much. Connect it in initialy as you wish and then if it doesnt move reverse pahse `a` and `b` of the motor, that should be enogh. |
| 71 | + |
| 72 | +Motor phases `a`,`b`,`c` and encoder channels `A` and `B` have to be oriented right for the algorightm to work. But don't worry about it too much. Connect it in initialy as you wish and then if it doesnt move reverse pahse `a` and `b` of the motor, that should be enogh. |
72 | 73 |
|
73 | 74 |
|
74 | 75 | ### HMBGC V2.2
|
75 | 76 | To use HMBGC controller for vector control (FOC) you need to connect motor to one of the motor terminals and connect the Encoder. The shema of connection is shown on the figures above, I also took a (very bad) picture of my setup.
|
76 | 77 |
|
77 | 78 | <p>
|
78 | 79 | <img src="extras/Images/hmbgc_connection.png" height="">
|
79 |
| - <img src="extras/Images/setup1.jpg" height="300px"> |
| 80 | + <img src="extras/Images/setup1.jpg" height="400px"> |
80 | 81 | </p>
|
81 | 82 |
|
82 | 83 |
|
83 | 84 | #### Encoder
|
84 |
| -- Since HMBGC doesn't have acces to the arduinos external interrupt pins `2` and `3` and additionally we only have acces to the analog pins, we need to read the encoder |
85 |
| -- Optionally if your encoder has `index` signal you can connect it to any available pin, figure shows pin `4`. |
| 85 | +Since HMBGC doesn't have acces to the arduinos external interrupt pins `2` and `3` and additionally we only have acces to the analog pins, we need to read the encoder using the software interrupt. To show the functionallity we provide one example of the HMBGC code (`HMBGC_example.ino`) using the [PciManager library](https://github.com/prampec/arduino-pcimanager). |
| 86 | + |
| 87 | +- Encoder channels `A` and `B` are connected to the pins `A0` and `A1`. |
| 88 | +- Optionally if your encoder has `index` signal you can connect it to any available pin, figure shows pin `A3`. |
86 | 89 | - The librtary doesnt support the Index pin for now (version v1.1.0)
|
87 |
| -- L6234 breakout board is connected to the arduino pins `9`,`10` and `11`. |
88 |
| - - Additionally you can connect the `enable` pin to the any digital pin of the arduino the picture shows pin `8` but this is optional. You can connect the driver enable directly to 5v. |
89 |
| -- Motor is connected directly to the driver outputs |
90 |
| -- Make sure you connect the common ground of the power supply and your Arduino |
91 |
| - Motor phases `a`,`b`,`c` and encoder channels `A` and `B` have to be oriented right for the algorightm to work. But don't worry about it too much. Connect it in initialy as you wish and then if it doesnt move reverse pahse `a` and `b` of the motor, that should be enogh. |
| 90 | +#### Motor |
| 91 | +- Motor phases `a`,`b` and `c` are connected directly to the driver outputs |
| 92 | + |
| 93 | +Motor phases `a`,`b`,`c` and encoder channels `A` and `B` have to be oriented right for the algorightm to work. But don't worry about it too much. Connect it in initialy as you wish and then if it doesnt move reverse pahse `a` and `b` of the motor, that should be enogh. |
92 | 94 |
|
93 | 95 |
|
94 | 96 |
|
|
0 commit comments