Interface and application programming

Assignment

write an application that interfaces with an input &/or output device that you made.For my project, i will be using a motor so i decided to create a interface to control my motor operations.
This week mostly consists of programming.I intended to use python for interface design and i had to learn from scratch.

Board Design

Since the board would be used in the final project,it needed to perform the following functions:

Referring neils design for the H-Bridge motor board, i designed the board in eagle.





Then came the milling and soldering part, which was pretty easy.First, i made sure that all the traces were correct before cutting out the board. That is easier to do that desolder/remake the components if any problem is found with the traces after programming.





Compomnents Required- It took less than 30 mins to solder the board.





Programming

I programmed the board using arduino iDE. Interface was designed using python. It was my first time using python so it took me some time to learn. Python Tutorial is an good site to learn python basics for beginers.You can download :python pyserial

After creating the python code, i connected the board using FTDI cable and ran the python program.



When i pressed the 'motor start', the motor started and the 'motor state' showed ON.



Every time i pressed the 'motor pause' button, the motor would stop working for 2 seconds. Interfacing was succesfull!!!

Download Files-
Main Page