So here's the situation. Looking at the attached picture,Block diagram of a cell phone controlled robotic vehicle, I was wondering how to create an app on iPhone that would get the phone's gyrometer that connects to the DTMF decoder on the picture and connects to another iPhone (the remote) via Bluetooth so it can proceed forward to the microcontroller and so on. If anyone has link on steps to how to create an app, please tell me.
Other than that, if I dont use the option to create an app, I have alternative of using a decoder IC, but I dont know which mobile phones are compatible with this IC. I have an old iPhone 4S, nokia 7320, Samsung E1270 flip phone, and a samsung wave gt-s8500 handsets.
Yes, you have access to the iPhone's gyroscope and accelerometer. Core Motion is probably the best way to do that.
As far as communicating the info to a robotic car, I'm not sure how DTMF fits in. It seems to me BLE (Bluetooth Low Energy) would be a much better way to go. There is a Core Bluetooth framework that lets you make an iPhone serve as either a peripheral or a central device.
I don't know how you'd do DTMF, but BLE seems a much better fit.
Related
I'd like to go about creating a mobile app that works as a remote control. Nothing too complex. Just something, for example, to control the system's volume.
However, I have no idea on how to go about making such an app as not only would it require me to develop for the phone platform but also for the PC/Mac platform. Any inputs, on where I should start looking or go about making such an app, would be appreciated.
FYI: I'm interested in making an iOS app using Swift that works with Mac/PC. I'm currently taking a course to learn iOS app development in Swift.
Thanks
You need an IR led to do this, and the iPhone don't have it. Try with something different, if you want to use sensors here is a list of sensors available on the iPhone for developers:
iphone 5, 5S, 5C
- Proximity sensor
- Accelerometer
- Magnetometer
- Gyroscope
- Touch Screen
- Camera
iphone 6
Barometer
Edit:
If you know enough about electronics, you can control an IR led with the headphone output. (Analog) I'm sure theres more information about doing this in google.
I understand that the iOS App "PKPKT" is using BLE (Bluetooth Low Enery). But what I am curious about it is, is it purely using BLE only? Or does it switching between BLE and Classic Bluetooth?
I tested with a iPhone 5 and a iPhone 5s with both installed the app. I turned on bluetooth on both devices. And then i checked the "DEVICES" list to see if the other iPhone is paired with one another, I found that they are not. Until i launched the PKPKT on one of the device, and the i check the "DEVICE" list again, now they are paired and connected. So, i'm thinking is this pairing done by the BLE pairing? Meaning one of "Just works", "Out of Band", or "Passkey entry" methods.
There is also a "Chat" functionality in that app. This make me curious if the chatting function using BLE or Classic Bluetooth?
So my question is actually "Is switching between BLE and Classic bluetooth possible?". This is part of the study on this BLE technology. Hopefully someone could help me and other newbie on this new technology.
Thanks in advance!
I wrote PKPKT. I only use BLE. No classic. iBeacon is cool but doesn't have the background scanning needed to discover other players. I use game center, but only for scores, no sessions. It's optional in the app to enable game center (those banners can be distracting!)
The chat is also over BLE.
Because the connections are not encrypted, you don't need to manually pair the devices, and "just works"
I think you might find this link helpful. It implements something that looks to be a simpler version of PKPKT. I believe the app uses a combination of GameKit/iBeacon. The app requires iOS7.0+ and states, "PKPKT does the hard work of finding other players by detecting them using Bluetooth Low Energy (BLE) in the background." iBeacon would be the most battery-efficient way of accomplishing this and is a new feature in iOS 7. There is a wealth of information online(particularly on SO) about peer to peer bluetooth gaming using GameKit, if you are interested.
We can't say for sure unless the developer lets us know. If one were to attempt to recreate the application, GameKit and iBeacon would be the technologies that I believe most would recommend.
You might find this project helpful as an overview of how to use Bluetooth LE to communicate between two devices. You don't need to pair the devices, and unlike iBeacons, it works when the app is in the background.
SimpleShare - Easy Proximity-based Sharing for iOS
You can use the delegate methods of the SimpleShare project to easily share arrays of strings between nearby users running your app, such as user IDs, which you could then use to get more info, photos, etc, about that user from a web service.
Is there any way to trick the iphone into communicating / connecting to a non-bluetooth 2.4 ghz device?
Any way to further trick the iphone into believing that device was bluetooth?
I want to control an RC toy with my iphone without using a bluetooth receiver in the toy. Looking for the cheapest way to control a $10 toy with iphone really.
Thanks,
Kevin
No, this is not possible: Bluetooth and radio-control protocol(s) are very distinct, and share almost nothing. I use plural for radio-control protocols because there are many ones...
The only thing they share is base frequency, but WiFi, microwave ovens, baby monitoring video cameras share it also.
If you want some more details on how various RC protocols handle interference (the reason why it's almost impossible to control a toy by interfering via Bluetooth), have a look there: http://www.rcmodelreviews.com/spreadspectrum03.shtml
To control your toy (something I'm attempting right now!), I think the way is the following:
Have an Arduino (or other micro controller, but Arduino is really easy I think) plugged to your RC car controllers (use PWM outputs to connect servo motors, and if you're lucky enough, the motor driver will react the same way...) Cheapest Arduino can be in the 5$ range (Arduino Pro Mini copy from some Hong-Kong company)
Have a Bluetooth Low Energy (a.k.a BTLE, Bluetooth 4, Bluetooth Smart) receiver plugged on RX/TX pins on the Arduino. Nordic Semi has some for around 20$ sold by Adafruit Technology, but you may find lower prices (I did not... currently!)
Design and implement a custom BTLE protocol in your iPhone app AND in your Arduino so the app can send commands to the Arduino, which could answer with data/status (think battery monitor...)
Good luck, and have fun!
I'm trying to help produce a location-specific iOS app that needs an external trigger to start audio playback when it approaches a given location within the building. (no GPS access)
Has anyone had experience doing something similar? One thought I had was to lay out some bluetooth "transmitters" (like an xbee+arduino) around the building, and if the iPhone's bluetooth was close enough to identify it, it would trigger the audio.
I've never worked with bluetooth or an application of this sort before, so any advice would be much appreciated.
Bluetooth would certainly work, although other methods might, too. The only downside to Bluetooth is that you would either need to work within the APple MFi program for standard Bluetooth or restrict the devices used to the iPhone 4s or later or the iPad 3rd Generation or later so you could use Bluetooth LE (Bluetooth 4.0).
Assuming you can use Bluetooth LE, it's not only possible, Apple demoed one such technology. Once you're signed up as a developer, check out Session 705, Advanced Core Bluetooth, from WWDC 2012. The ending demo is exactly what you're looking for, and the session describes how to do it and provides source code.
I'm working on my senior engineering design project and I need your help! For this I have my iPhone app receiving images from a external camera circuit, which I built.
To interface my iPhone app to the camera circuit, I have looked into the following approaches:
Build a bluetooth module on the camera circuit, to transfer images to the iPhone
Use Eye-Fi SD card to transfer images to my app somehow! link:http://www.eye.fi/products/iphone
Build a circuit, to make a wired connection to the iPhone with the 30-Pin dock connector
Here are the problems I'm facing with each of these. My actual questions for you guys are highlighted in BOLD:
The iOS BlueTooth framework (4S only), only supports Low Energy Devices. Looking at the the modules out there like this one, I'm doubting it will work for image transfer, which seems to be a bulky task for low energy bluetooth. I know there are jailbreak apps on the cydia store, which do regular bluetooth transfers, but I was unable to find those private APIs for such a task. (NOTE: I'm making this app for my purposes, so feel free to suggest any private/unofficial APIs). Question#1: How can I interface to a regular bluetooth device (not another iPhone) and transfer data?
EYE-FI card sounded amazing as a consumer because the company has their proprietary iPhone app to transfer the images from the EYE-FI SD card. Problem is I can't figure out how to easily interface with the EYE-Fi card in my code. I researched the iOS CFNetwork framework, but haven't had any luck. Question#2:How can I interface with the EYE-FI card in my app?
Building a circuit seems simple enough with this development board, but I read somewhere that the iPhone may not recognize an "un-registered" accessory. I have a developer license but not a MFi licence. Question#3: Do I need to be registered as a MFi developer to create and use this external accessory in my App for my own purposes???
You might try setting something up through a serial port since joining the MPi program is prohibited for individuals. You could possible use a connector like this one http://www.amazon.com/neXplug-Ultra-Small-Micro-Adapter/dp/B0055PCVDO/ref=sr_1_1?ie=UTF8&qid=1339309918&sr=8-1
The Apple website recommends individuals/hobbyists to use " recommend that you use a third-party solution which will allow you to connect iOS devices to serial devices and to write iOS apps that communicate with these serial devices" (from mfi.apple.com/faq).
I am also working on an external camera that can hook to the iphone/ipad. I will be using a serial port in order to get around the MFi requirement for external iphone/pad devices. Trying to use bluetooth is too complicated and the data stream isn't big enough for pictures. the wired version will work much better.
I hope this helps and that your college term and project are not already finished. Best of luck.
As T Reddy has already mentioned, if you want to create hardware the interfaces with external hardware framework, you have to sign up with the Apple MFi program which you, as an individual, can not do.
I'm not sure of how the Eye-Fi system works but it sounds to me that it basically syncs the images to their server and once you download their Apple App, the app can sync the photos for you.
Whether you are using Bluetooth or the 30-pin connector, there is no way to interface to an external device unless that device is MFi compliant and a part of the MFi program. I suggest you try the following options to solve this delimma--
If this is a "Senior Project" at some University, see if your University is part of MFi. Apple will not let individuals join the program, so if you are going to gain access, you have to access it through another organization or, possibly, an educational institution. I don't know if Apple has worked with schools in this regard, but you never know. It might be possible.
If your school isn't in the MFi program then you may want to consider re-writing your application for an Android device. Android devices are not locked down like iOS devices, so that may be a more reasonable approach.
I hate to bring bad news but circumventing these hardware restrictions on an iOS device is excessively prohibited. Your options are quite limited and none of them are probably what you either want or need to hear.