Wednesday, September 30, 2009

Lab 2: Labview I/O

Working with the Labview portion of the lab required the configuration of analog inputs along with both analog and digital outputs. A couple pictures along with videos are located below serving as simple examples to our accomlishments with the Labview interface.



The figure directly below exemplifies three important concepts. Using the DAQ Assistant block in Labview, analog I/O along with digital output was configured. Refering to the figure, the bottom lop represents analog input to the NI-PCI-6230. A wave from was generated to verify the functionality of the analog input. The while loop in the upper left corner of the figure indicates the setup used to control digital output with the flip of a toggle switch in Labviews virtual interface. The while loop in the upper right corner of the figure indicates analog output from Labview. In this instance we simply generated a sine wave to verify functionality of the analog output DAQ Assistant.




The front panel of labview is shown below. The generated sine wave can be seen, and it's characteristics such as frequency and amplitude can be controlled by the user. The toggle switch controls the on/off capability of the digital output. A blinking LED in the video below shows the user toggling the switch back and fourth controlling the LED to turn off and on.





In the video below labview was programmed to output an analog signal which the team used to power a speaker.





Analog signals from the potentiometer and photo cell were also input into Labview to gain an additional understanding of how to control analog inputs.


Monday, September 28, 2009

Lab 2 - Servo motor control using Aruduino

We were able to successfully control the servo motor using the melody program found under examples on the Arduino website. A video demonstrating this statement is below.

Lab 2 - Sensor to Arduino board interface

Tasks one through four have been completed.

Simple circuits have been designed for each sensor in order to connect the sensor to the arduino board. Sensor functionality was tested and verified. From there the digital signals from each sensor; hall effect, FSR, photocell, and potointerrupter were all taken into the ardino board, and having the ability to affect the blinking LED ensured us of a working sensor to arduino board interface utilizing both digital inputs and digital outputs on the board.

Bringing in analog signals to the arduino board from the petentiometer, the photoresister (configured as a voltage divider), and the hall effect sensor was a simple task. However, understanding how to use EEPROM to write and read accross the serial port has been challenging. We currently are able to write data. Then we have separately run the EEPROM read script in order to obtain values stored in the boards internal memory.

A video of the potentiometer controlling the LED is below as an example of our progress.



Lab 2 Group Members

Lab 2 Group 5 team members included:

Anish Joshi
Andrew Rohr
Michael Woon

Wednesday, September 23, 2009

Lab 1 - Our device as a Musical Instrument

The device we created does indeed function as a musical instrument as it outputs sound based on human input. However, the device left much to be desired. First, the variable resistor only had a fixed range and therefore only allowed a distinct range of sound to be produced by the circuit. Also, since the slider had a short stroke, it was very difficult to make very small changes in output pitch. Additionally, because the slider was continuous, it was difficult to arrive at the same location consistently. This made the output sound different every time.

Hearing the final device perform as it was intended was somewhat rewarding, though. Knowing that we made a circuit that worked as we desired provided positive re-enforcement towards our knowledge base. Additionally, it exposed some of the uses these types of circuits can have when they are integrated with each other.

We realize that in future work that the interface between the device and the human will be just as important as the circuit itself. This device showed this principle because it was an awkward device to manipulate and use. While it did perform its function well, its form was neglected. This will be an important part of the final project.

Lab 1: Slideophone-The Required Blog Write-up Bit

In addition to being a tremendously expressive musical instrument, the Slideophone (aptly named after its ingenious sliding potentiometer interface and robust clarity of sound) provides great utility to any band in need of that special kind of sound reminiscent of a baby's scream mixed with a little southern twang. And for the one time price of $1152 (3 grad students @ $32/hr (stipend & tuition) * 12 hours (class & lab)), it had better have a great deal of value. If bleeding ear-drums could stand, the Slideophone's performance would receive a standing ovation.

So come on down to the Mechatronics lab when you can witness a miracle (it actually was successfully created), and see the satisfied smiles on our faces as we are no doubt rewarded with great honors--or at least an A.

Lab 1: Putting it all together

We now have an oscillator and a switching mechanism to power a speaker based on some information logic. We may now combine them to turn the oscillating information signals coming from the timer circuit into a sound emanating from the speakers. As a quick note, this alternation is necessary, as if a constant voltage was applied to the speaker, the voice-coil would move to a single position. However, if this signal is turned on and off, the the position of the coil (and therefore the woofer) will alternate between rest and the position at which the "solenoid" of the voice-coil moves the woofer. This alternation creates waves in the air which vibrate in our ears, sending neural spikes into our brain, and these spikes in the brain miraculously are experiences as the aforementioned pretty pretty music.

Of course, sometimes, especially at the frequencies coming out of our speaker, it was more closely experienced simply as "spikes" in the brain.

Although we believe we could wire the output information signal directly to the base of the transistor, it seemed a good idea to keep some of the functionality of the two mechanical switches we wired up in the first part of the experiment and use one of them as an on/off switch. We therefore had two options for our final circuit. In one version, the output of the timer circuit was plugged into the base of the transistor, and the logic was taken completely out. In another, we supply the timer output as one of the switched inputs in our mess of nor-gates so that the circuit needs both a mechanical switch and a high output from the timer to turn on the speaker.


This seems a bit wasteful of an oscillating circuit that is working itself to death, even if the circuit is switched off and the speaker is not moving, but our final design represents only one possibility for a combination of the two circuits. In further labs, we will have more detailed requirements for the circuits and so a combination more fitting to that specific task may emerge.