Saturday, 1 March 2014

Week 5 - Finalizing the Project

After referencing the code that our supervisor gave us and the one we got on the mbed website, we wrote our own code for controlling the stepper motor.




After checking with our supervisor, he said that our codes was good to go and it will run the motor and control it with few minor notes on the code.
Figure1: The whole circuit of stepper motor control

Figure 2: The mbed is running at speed 1, and clockwise

Figure 3: The mbed is running at speed 3 and anti-clockwise
Since the software part of our project had been finished, we should connect the whole circuit and test the experiment results. figure 1 shows the whole circuit of what we connected in the lab. There are four outputs from the mbed, they are at pin 23, 24, 25, 26. We connected the four inputs from the amplifier circuit to the four outputs from the mbed. All the pins on the vero-board for the amplifier circuit had been labeled on the wires which makes it easier for us to connect the circuit. For the pins on the circuit amplifier, the GND, current sense A and B should be connected to the ground. The enable A and B and the logic supply Vss should be supplied with 5V DC. For the supply voltage Vs, it should be connected to another power supply which should be less than 46V.

No comments:

Post a Comment