Brushless motor control program with L293D.
Dependencies: brushlessController_L293D mbed
main.cpp@1:46f06c96c5f0, 2015-07-13 (annotated)
- Committer:
- BaserK
- Date:
- Mon Jul 13 14:13:55 2015 +0000
- Revision:
- 1:46f06c96c5f0
- Parent:
- 0:06434e97c4f2
- Child:
- 2:073c5513e2de
Now,; - It is controlled by 2 L293D with HIGH-Z mode; - IC overheat reduced; - Steps of the motor can be set
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
BaserK | 0:06434e97c4f2 | 1 | #include "mbed.h" |
BaserK | 1:46f06c96c5f0 | 2 | #include "brushlessController_L293D.h" |
BaserK | 0:06434e97c4f2 | 3 | |
BaserK | 0:06434e97c4f2 | 4 | int main() |
BaserK | 0:06434e97c4f2 | 5 | { |
BaserK | 1:46f06c96c5f0 | 6 | /* Example: After nine steps it will stop */ |
BaserK | 1:46f06c96c5f0 | 7 | brushlessControl(1, 500, 9); |
BaserK | 1:46f06c96c5f0 | 8 | |
BaserK | 0:06434e97c4f2 | 9 | while(1) |
BaserK | 1:46f06c96c5f0 | 10 | { |
BaserK | 0:06434e97c4f2 | 11 | } |
BaserK | 0:06434e97c4f2 | 12 | } |