Monday, 9 February 2015

It's business time!

We've now had our first lab session!

We began by checking that we had received all of the correct components that we had ordered before Christmas. At first glance it seemed like we had everything that we asked for, however we soon realised that we had ordered the wrong sized thread for the propellers so the motors couldn't be attached and we had also not received the cell holder for the batteries which we had requested. Another problem quickly arose when we realised the Arduino Uno we had ordered did not come with the USB A/B cable needed to connect it to a computer. Thankfully this was soon remedied thanks to the laboratory technicians who kindly found a cable we could borrow.
Once we finished checking the components we began implementing our designs and then subsequently testing them. Starting with the h-bridges (10 pin L293E) on a logic patchboard, we simulated how the motors would work by receiving a high and low voltage. The motors were then attached and operated as intended. Correctly spinning the motors in a certain direction depending on the input to the h-bridge.



By midday we had tested all of our components aside from the Arduino, we installed the Arduino environment on my surface and uploaded an example program to confirm that it operated correctly. This also allowed us to begin getting to grips with the coding language and environment we would use to implement the logic control and the sonar sensor. The example code can be accessed from inside the Arduino environment website and was used to fade in and out a single LED.



We wanted to confirm that the Arduino would work with the previously mentioned h-bridge so we used a sample code from this website to see how the code effected the motors movement and how/if our components worked together[1].
After lunch we separated our tasks: Drawing the circuit diagram and soldering one of the H-bridges, coding the Sonar component for the Arduino, and began soldering the other H-bridge's 10 pin mounts to some veroboard and the connecting wires. I then tested the soldered component on the logic patchboard to ensure it worked as intended. 


The day ended with the soldering of all 10 pins and its wired connections for one H-bridge finished whilst the other requires the wired connections to be added next week. Ideas on propeller solutions and general water proofing were mooted and some of the programming was done. The circuit diagram will be ready for the next lab session.


Our plans for next week:

1.  Likhitha and Steven will test the sonar and begin the main body of coding.
        2.  Both veroboards will be completed and tested with motors.
3.   Motors will be made waterproof.
4.   Buoyancy and infrastructure of submarine will begin. 


References: 
 [1] Arduino two way motor control, http://www.instructables.com/id/Simple-2-way-motor-control-for-the-arduino/#step3, Feb 2014

No comments:

Post a Comment