Program for testing motion boards (double motor controller)

Dependencies:   mbed

Program to test motion boards (double motor controller).

The mbed board reads from a joystick and then sends the commands to the motor board (l293d), which lets the small caterpillar go ahead, go back and turn.

/media/uploads/mariob/2014-06-14_23.36.59.jpg /media/uploads/mariob/2014-06-14_23.36.46.jpg

Revision:
0:5307ae36f268
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dc_motor.hpp	Sat Jun 14 21:56:12 2014 +0000
@@ -0,0 +1,19 @@
+#ifndef DC_MOTOR
+#define DC_MOTOR
+
+#include "mbed.h"
+
+class DC_motor
+{
+    PwmOut pwm;
+    DigitalOut dir;
+
+public:
+
+    DC_motor (PinName ppwm, PinName pdir);
+
+    void speed(float speed);
+
+};
+
+#endif