When the proper connection and power supply are connected to MD10C, we can press either of these two buttons to test the MD10C by turning the DC motor in clockwise (CW) direction and counter-clockwise (CCW) direction. Therefore, in this tutorial, I will demonstrate the simple method to test the MD10C in fast way with minimum connection.
By using SKM53 GPS module, we can actually view our current UTC time, date, latitude, longitude and so on. In further application, it can used to interface with our smartphone, microcontroller such as Arduino or PIC, and so forth to know our own location. Meanwhile, when we use it, we need to expose it to the sky to capture the stronger signal. As an example, if we in the home, we need to put the GPS module near the window to get the signal. Otherwise, we will not receive the signal by GPS antenna if we inside a closed window room.
In this project, we will learn about how to drive two DC geared motor with MD10C by using SKPS. Thus, we will treat these two motors as the left wheel motor and right wheel motor. Therefore, we will use PS2 controller to control two DC motors in various type of movements such as move forward, move backward, rotate to left, rotate to right. In addition, we will use joystick to control these two motors in different movement with constant speed and variable speed. Meanwhile, we will use PIC16F887 in this tutorial for SK40C with LCD 2×16 to display some important messages when certain button of PS2 controller was pressed.
In this tutorial, I will explain some sample code to drive the two DC motors in sign-magnitude PWM mode, locked-antiphase PWM mode and simplified serial mode. Thus, all of the sample code that given in this tutorial will only drive two DC motors in clockwise by pressing SW1 and in counter-clockwise by pressing SW2.
The Arduino main boards such as Arduino-Deumilanove (Arduino-Due) which embedded with Atmel microcontrollers are quite popular due to its easy-to-use programming environment. Therefore, by interface Arduino main board with MDS40A, we easier to control the DC motors if compare to PIC microcontroller. In addition, further adding an Arduino-LCD Keypad Shield can help us to control the DC motor that connected to MDS40A with the 6 momentary push buttons (built-in push buttons on LCD keypad shield including 1 Reset button) and also display some useful message by programming.
Find Us on Facebook