Control the Music by Arduino and Bluetooth - iphone

I want to control my iPhone Music Player by an arduino - has anyone experience with that?
At the moment I have an RedBearLab Low Energy Bluetooth Shield and a Ethernet Arduino here.
Maybe one of you has done this before and can help.

Related

Stream audio from a lm393 sound sensor with microphone raspberry

I'm trying to implement a baby monitor using a raspberry pi with a lm393 sound sensor + microphone, like this one, http://www.dx.com/p/lm393-sound-detection-sensor-module-black-221267#.WEP3oaLhCRs.
I want stream the audio it receives when the sensor detects a louder noise.
What Im wondering is how to use the microphone to stream the audio, haven't found any info on this.
Any help will be welcome.
The answer is No. Because lm393 can only be used as a sound sensor, it needs an amplifier in order to be able to stream sound.

Developing iPhone software for bluetooth or WiFi device (guidelines)

I have for example 5 lights and 2 speakers which I want to connect to my iPhone via Bluetooth or WiFi. I want to play music and turn lights on and off via iPhone costume made software.
So where I should start?
What should I read (webpages, forums)?
What kind of hardware do I need?
Any good examples?
Any guidelines or tips are welcome.
CoreBluetooth
The CoreBluetooth framework provides access to Bluetooth 4.0 low energy devices.
https://developer.apple.com/library/ios/#documentation/CoreBluetooth/Reference/CoreBluetooth_Framework/_index.html
https://developer.apple.com/library/ios/#samplecode/TemperatureSensor/Introduction/Intro.html#//apple_ref/doc/uid/DTS40012194

In iPhone, to support bluetooth headphone, do I have to do something?

I'm developing music app.
I did nothing to support normal wired headphone or headset but I can hear music with my headphones.
Do I have to write some code to support bluetooth headphone or bluetooth headset?
Do I have to buy bluetooth headphone to check it works?
EDIT
Sorry, I did something to support wired headphone.
I wrote code to detect the event that headphone unpluged.
And when headphone unpluged, my music app paused.
Does this code work for bluetooth headphone, too?
I'm using the same code as this answer to detect unpluged-event
This should normally work, without writing.
Maybe you can ask on facebook for someone to test it.
But it should work

iPhone Bluetooth Audio API

My car has bluetooth capabilities for connecting to my iphone for phone calls; however, it does NOT support bluetooth audio for music streaming. I know apps like viber or skype also use bluetooth for phone calls. My question is: is it possible to write an app that fakes phone calls to stream music to my car, as if someone is calling me (but is actually playing music)? Is there some other way to hack this to get bluetooth audio streaming?
No need to jailbreak your phone. Just buy the A2DPblocker app. Costs $2.99. Sound quality isn't perfect but better than the alternative. Worked for my 2010 Volkswagen so should work for any other car that supports bluetooth but not streaming music.
First poster -
There is already an app to do this - it's part of SBSettings called Bluetooth Mono that needs to be installed (so only MONO and only for JB'd phones).
Second poster -
I suspect you are correct about HSP - I've installed the app and the sound quality is terrible.
So, I've put all my music on a USB stick and leave it permanently plugged in. Far superior sound.
Mike
I don't think there's an easy way to do this. But the bigger issue is that it would sound terrible. The bluetooth connections for doing phone calls use headset profile (HSP) and are low bitrate, mono, and frequency limited to voice ranges.
Applications for streaming audio/music over bluetooth use A2DP profile, which is much higher bandwidth and stereo.
If you try to pipe music over a an HSP phone link it will sound horrible, just as it does if you are talking to someone on the phone and they have music playing in the background.

External controllers for iPhone

Are there any external buttons/controls that can be plugged into the iPhone that can be used within an app. If so, does anyone have any links to any code to use with these controls.
I was thinking of some kind of iPod controller that I could hack that could be plugged into the slot on the bottom of the phone.
Cheers.
Yes. Several USB MIDI controllers are supported via the Camera Connection kit on stock OS iOS devices. An app can use CoreMIDI in/out messages to get input from the buttons on these external MIDI controllers.
But an app can't use a generic hackable USB input device under the stock OS, unless the developer is the manufacturer and also a member of Apple's MFi program.
ADDED:
...or you hack the USB device so that it imitates one of Apple's supported MIDI devices. Example of doing this with an AVR microcontroller is here.
Apple's CoreMIDI reference is here.
ADDED #2:
If you want even more accuracy for a timer app, consider using the mic audio input jack, and connecting some buttons to audio chirp generators (could be done either with analog circuitry or a tiny cheap micro). Use different chirp frequencies for different buttons. Some suitable DSP code on the iPhone could probably determine the relative timings of audio input chirp signals with sub-millisecond accuracy.
There are many solutions to this, most involve jailbreaking the iphone.
The most famous/popular is the iControlPad.