Group 5: Dylan Dean, Dan Galy, Jake Anderson, Alec Vozzy

Total Page:16

File Type:pdf, Size:1020Kb

Group 5: Dylan Dean, Dan Galy, Jake Anderson, Alec Vozzy

Justin O’Kay February 26, 2014 Group 5: Dylan Dean, Dan Galy, Jake Anderson, Alec Vozzy

Sound Shield Group Task

Group five is assigned with the task to make a short range vehicle control for an electric car. This goal is split into two tasks an “a” and a “b” task. Task a is to make a display parking procedure for the driver. Task b is to implement an automotive parking system.

Individual Task

I am currently working on task a. This task was split into two parts. Part one is to make a visual display for the driver, and part two is to include sound. By the completion for these two parts the driver will have a visual and audio interface for the automotive parking system. I am currently working on part two for task a.

Current Audio Standing

To implement the audio for task a an Arduino sound shield was selected to be used. Upon completing the assembly of the shield and research into the coding I was able to output sound. For sound to be generated the file needs to be a .wav file and sampled at 16 bits. I was able to use the software called Audacity that has the capability of converting audio files into .wav that are sampled at 16 bits. Challenges that I face were getting the code libraries uploaded to the Arduino environment. After the libraries were uploaded correctly the examples code from the adafruit were able to be complied. This allowed some test audio files to be played from the SD card.

Future

From the stand point were the sound is right now. The example code that is provided from adafruit needs to be analyzed. The variables that are used in the code need to be located in the C+ + code so that they can be manipulated so that they can be used to fit the needs required by the group. The sound files that are going to be used are going to be small one to two word sounds so that depending on how the driver is attempting parking the car so that the audio will be able to adapt to many situations by linking the audio files together. The group still has to decide on when the opportune time to send out a sound will be so that the driver is not distracted or startled, when driving the car. Also there is a 3’’ diameter speaker that needs to be mounted and soldered in place so that the sound can be heard.

1 Code (Arduino compatible)

Figure (1): Example code for audio

The code shown in Figure (1) is an excerpt of code that needs to be analyzed so that the audio can be customized. For coding purposes I am using the Arduino Uno with the audio shield. When it is time to connect to the mega the pins that are used should be the same as the uno. When the audio and visual interface are calibrated and are ready to be brought together the pins may end up, being located on the mega and will have to be redefined within the code. Figure (2) shows the audio shield on the Arduino Uno.

2

Recommended publications