Skip to content

Commit 08e3dfe

Browse files
committed
Merge branch 'dev' of github.com:askuric/Arduino-FOC into dev
2 parents 2f1ef3b + 1f7dd55 commit 08e3dfe

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ArduinoFOC library
1+
# Arduino FOC library
22
### Arduino Field Oriented Control (FOC) for gimbal BLDC motors
33

44
![Library Compile](https://github.com/askuric/Arduino-FOC/workflows/Library%20Compile/badge.svg)
@@ -68,27 +68,29 @@ The code is simple enough to be ran on Arudino Uno board.
6868
- Make sure you connect the common ground of the power supply and your Arduino
6969
##### Motor
7070
- 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.
7273

7374

7475
### HMBGC V2.2
7576
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.
7677

7778
<p>
7879
<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">
8081
</p>
8182

8283

8384
#### 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`.
8689
- 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.
9294

9395

9496

0 commit comments

Comments
 (0)