Currently researching the best way to to create a server for my project and have decided the Photon would be the best way to implement this, however I was wondering two things.
Firstly, Is it possible to create an app from within MIT App inventor 2 that will communicate with the photon via Wifi? I know this might be a question for a different forum but thought I would ask anyway!
Secondly, is it possible for me to add a bluetooth module to the photon that can forward the data received from the app to an Arduino (over bluetooth) and then send data back to the photon?
Lastly, if these are capable how easily would it be to implement these,
I’m also working on a similar problem. My solution (and I have not wired it up yet) would be to get the bluetooth add on board for the Photon, and let it be the Master. Then get a battery power bluetooth board like the ones from Punch Through to be the Slave. The Slave takes the data you collect (eg. temperature) and transmits it to the Photon’s bluetooth receiver, and then of course the Photon can take the data and push it to the cloud using WiFi.
If you’ve moved this thread to another place, let me know. Otherwise I’ll try and post back here with my results.
This is exactly the way I would like to do my project, I’ve bought a hm10 to be used as one bluetooth device as it is able to do both master/slave. I will research into the bluetooth board for the photon. Please do report back with any results and I shall do the same!
edit: what is the bluetooth add on board for photon called?
This would be perfect and might come in useful for future projects however as it doesn’t ship until January I will need to have a vast majority of the project completed by then, maybe this can go in the ‘future improvements’ of my report?
I’ve had a look at the bluz previously, its a nifty little add on that would suit my project perfectly but it doesn’t ship until January unfortunately and I hope to have the bluetooth part completed by that point
I plan on using bluetooth as the device will be in hard to access and require frequent updates from the sensors, I’ll be using wifi so I can connect the data to the cloud and have the sensor information available when I’m away home. Wifi would drain the battery much faster as you know so bluetooth is the next best solution!
It’s called “LightBlue Bean”. They are also working a a more powerful version that’s slightly larger.
I’ve also ordered a Duo (see above) and Bluz boards (master & salve), but these, as stated above, don’t ship for another 30-60 days. The Bean is shipping now, so it’s what I am testing over the holidays.
The great part about bluetooth is that, with only a few exceptions, it’s compatible across boards. So you can design the slave to talk to the master and swap either hardware later on with minimal impact. Just keep the bluetooth versions the same, such as sticking with BLE.
So I have my LightBlue Bean, and it’s exactly as advertised. It’s small, battery operated, and I had it talking to my iPhone (with their free app) in just a few minutes. Writing the code to have it poll it’s internal thermometer was easy, and pushing data out via BLE was just as easy (1 line of code for each). So it’s thumbs-up for the Bean!
I’m now learning about the different mode of BLE communication. One is more of a broadcast for very small data (like “T=55F”) and is uber simple. If a BLE receiver is listening, it can pick it up. The other is a full serial communication for large® data packets, and is more complex. For a temp & humidity monitor, I think the broadcast would be fine.
I got the RedBear Labs board, but can’t figure out if it’s DOA, or just my beginner knowledge. The board powers up, but I can’t see it from the Arduino IDE or from the connected USB. So no luck with it, but I am still trying.
I have gone down a different route to yourself, I have purchased two hm-10 bluetooth modules, I am currently getting them to connect with each other after a few days of tinkering it finally worked. So now I am trying to send serial data received from the cloud to arduino over wifi, will update later with my progress!