Arcadie Cracan / Mbed 2 deprecated BLDC_control

Dependencies:   FastPWM MMA8451Q ThreePhaseBridge mbed

Files at this revision

API Documentation at this revision

Comitter:
acracan
Date:
Tue Mar 11 16:38:42 2014 +0000
Commit message:
First commit

Changed in this revision

FastPWM.lib Show annotated file Show diff for this revision Revisions of this file
MMA8451Q.lib Show annotated file Show diff for this revision Revisions of this file
ThreePhaseBridge.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 40cac44d709c FastPWM.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FastPWM.lib	Tue Mar 11 16:38:42 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/Sissors/code/FastPWM/#2812f0a115f7
diff -r 000000000000 -r 40cac44d709c MMA8451Q.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MMA8451Q.lib	Tue Mar 11 16:38:42 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/JoKer/code/MMA8451Q/#2d14600116fc
diff -r 000000000000 -r 40cac44d709c ThreePhaseBridge.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ThreePhaseBridge.lib	Tue Mar 11 16:38:42 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/acracan/code/ThreePhaseBridge/#a129854eb4b6
diff -r 000000000000 -r 40cac44d709c main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Mar 11 16:38:42 2014 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+#include "ThreePhaseBridge.h"
+
+ThreePhaseBridge bridge1(
+    PTD4,  /* SW1 */
+    PTC3,  /* SW2 */
+    PTA5, /* SW3 */
+    PTC4,  /* SW4 */
+    PTA4,  /* SW5 */
+    PTC5,  /* SW6 */
+    ThreePhaseBridge::activeLow);
+
+    
+int delay = 7000;
+
+int main() {
+    bridge1.setPwmPeriod_us(200);
+    bridge1.setPwmPulseWidth_us(40);
+    while(1) {
+        bridge1.spin(ThreePhaseBridge::CW);
+        wait_us(delay);
+    }
+}
diff -r 000000000000 -r 40cac44d709c mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Mar 11 16:38:42 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1
\ No newline at end of file