Sunday 2 March 2014

Circuit Connection

This is the last week of our project. Actually, we had been connected the whole circuit for three weeks, and we modified the circuit and software code at the same time. I have to say this is the most difficult part during the whole project. So, we decided to make summary in the end.

At first, we want to use a motor drive shield to replace the H-bridge. In fact, only use H-bridge can we change the direction of motor. On the other hand, motor control board has more function than a L293d chip namely H-bridge.
Motor drive shield

Unfortunately, when we connected the motor drive shield with UNO board, DC motor cannot rotate in the opposite direction. Then, we realized it was meaningless and complicated to use the whole shield, and we decided to take down one L293d chip from shield so that we can simplify the circuit.
L293d
Then, we used a potentiometer to adjust the resistor of circuit. In other words, potentiometer can control the speed of DC motor. Besides, we used a switch to alter the direction of current so to meet the goals of change direction of rotation of DC motor. Oh! All the components we used in circuit must be considered when we design the code of UNO board in the computer. These two pictures show the final version of software code.



















There are so many errors during period of debugging:-( But finally, we got the expected results. We were so exciting:-D. Let us show you how it work.





So far it's working well, isn't it? Thank you for reading!