iPhone to Prop interface
JBWolf
Posts: 405
in Propeller 1
Hello, this has probably been asked a million times.... cause when I do a search i get a million results lol
Looking for help choosing a wireless comm device for the prop, then with how to create a gui on the iphone and link with it.
I am decent with general spin programming & circuit design and would like to setup a few basic home-automation devices to control with my iPhone.
Trouble is... I have never programmed an iphone app, nor do I know how to wirelessly link the prop to it.
After some research it looks like I have 2 options for wireless:
wifi : https://www.parallax.com/product/32420s
bluetooth : https://www.parallax.com/product/30086
After reading as much as I could... it appears that bluetooth would by far be the least painless option for iphone ease-of-use, even though it costs much more than wifi.
reasoning behind my decision is that wifi would involve using a 3rd party iphone app to connect to the xbee, then accessing a webserver created on the prop.... whereas bluetooth allows for the iphone to connect via a single custom app.
I prefer the use to be as simple as possible, so friends and family (who are extremely limited on technical experience) can also access and control without trouble.
So I guess to break it down...
1) should I go with the bluetooth module?
2) how do I link this to an iphone?
3) how do I create a gui to send simple control instructions to the remote prop?
Thanks in advance!
Looking for help choosing a wireless comm device for the prop, then with how to create a gui on the iphone and link with it.
I am decent with general spin programming & circuit design and would like to setup a few basic home-automation devices to control with my iPhone.
Trouble is... I have never programmed an iphone app, nor do I know how to wirelessly link the prop to it.
After some research it looks like I have 2 options for wireless:
wifi : https://www.parallax.com/product/32420s
bluetooth : https://www.parallax.com/product/30086
After reading as much as I could... it appears that bluetooth would by far be the least painless option for iphone ease-of-use, even though it costs much more than wifi.
reasoning behind my decision is that wifi would involve using a 3rd party iphone app to connect to the xbee, then accessing a webserver created on the prop.... whereas bluetooth allows for the iphone to connect via a single custom app.
I prefer the use to be as simple as possible, so friends and family (who are extremely limited on technical experience) can also access and control without trouble.
So I guess to break it down...
1) should I go with the bluetooth module?
2) how do I link this to an iphone?
3) how do I create a gui to send simple control instructions to the remote prop?
Thanks in advance!
Comments
For a while I had a propeller driven HTML ap running on a wireless link through my router. I was able to use the ap with a browser in both my ipad and my android phone. The new wifi adapter looks like that would be a whole lot easier than what I went through to make it work.
Jim
I would prefer just having a simple, custom app you click on to bring up the desired menu options... as long as the device is in range, it works
I use $3 HC-05 modules. The HC-05 works great with both the Propeller and Android devices.
I don't know how hard writing a custom app for an iPhone would be but writing apps for Android devices isn't too hard.
MIT's App Inventor 2 (AI2) make writing apps pretty easy but AI2 get very frustrating to use once an app gets large.
Here's a link to the first of three videos I made about using AI2.
The production quality of these videos is so poor they're almost unwatchable. Sorry about that. The third video shows an app I made turning on some LEDs.
AI2 now has a "backpack" feature which allows blocks of code to be copied between screens and programs. This is a big improvement but I ended up switching to Android Studio to develop apps. Android Studio is a lot harder to learn to use but it's not nearly as frustrating to use as AI2.
4) prop out = Prop Signal out to manipulate led/light/motor/....
3) Prop In = Bluetooth transcieve
2) iPhone out = Bluetooth transcieve
1) iPhone in = GUI (display buttons translate to numerical value i.e. 0-255)
Example from an App to BLE Device
' M 5 F' -> M=Motor, 5=Pin number, F=forward
On the prop, you would read in the serial data and have a decision block that performs the functions accordingly.
Another device is the TI CC2650 which could be used in BLE to Uart mode but would require some coding.
There are plenty of iPhone app tutorials out there and courses on sites such as Udemy in case you are not familiar with app dev.
Or go this route: http://codewithchris.com/how-to-make-iphone-apps-with-no-programming-experience/
DigitalBOB: can you recommend any remote control app names? Just need one or two to get started with learning how to use them
DigitalBOB: can you recommend any remote control app names? Just need one or two to get started with learning how to use them
If you prefer to create a device-based app....