Skip to first unread message
Assigned to ewpa...@gmail.com by me

damian burrin

unread,
Jun 22, 2017, 4:09:17 PM6/22/17
to MIT App Inventor Forum

HI Guys

Great to see the IOT feature and support for the microbit.  I am having a headache getting it working.

I have downloaded the IOT Setup template and gone through the tutorial for the temp sensor and getting the following issue

Microbit successfully pairs with Samsung S5 (Android 6.01) tick appears as expected
Run the app on the phone
Scan - doesn't show the microbit
Push Microbit back into pairing mode and re-scan microbit listed in app
CLick Connect - app says connected then immediately crashes ("unfortunately app has stopped)

I've tried this on a Samsung S5 and A5 both are BLE 4 and Android 6 (stock)

Any thoughts would be appreciated.  I'd love to be albe to use this in my classes.

Thank you
Damian

Neil Kenyon

unread,
Jun 23, 2017, 1:26:14 PM6/23/17
to MIT App Inventor Forum
Hi Damian

I've been using the BLE and micro:bit extensions for a couple of weeks now and all works fine for me.

I assume you spotted and circumvented the obvious error in the tutorial - the inclusion of an Arduino block instead of a Microbit block? 

I also assume you had a .hex file, including the Bluetooth Temperature Service, flashed to your micro:bit. Here's the one I use, done in PXT: https://makecode.microbit.org/

Hope this helps

Neil


damian burrin

unread,
Jun 23, 2017, 3:15:38 PM6/23/17
to MIT App Inventor Forum
Nope I'm still having issues.  My code is below.  When the App runs I get a C for connected but the phone app crashes immediately.  I've tried this on an S5 and A5 and get the same result.  I'm assuming it's something I'm doing wrong


Auto Generated Inline Image 1
Auto Generated Inline Image 2

damian burrin

unread,
Jun 23, 2017, 3:44:12 PM6/23/17
to MIT App Inventor Forum
Hmm - now this is interesting.  I've downloaded the examople rather than building by the template instrucitons and the error has gone and it now connects but i don't recieve any data.  I step forward and all that

damian burrin

unread,
Jun 23, 2017, 4:21:44 PM6/23/17
to MIT App Inventor Forum
Sorry to keep posting to my own reply.  I've solved this now for me.

Adding a block to force the MBit to update the temp every 500ms seems to solve the problem using the write temp period.

Not sure if its just me or this was missing in the tutorial but might be worth adding


Neil Kenyon

unread,
Jun 23, 2017, 4:41:08 PM6/23/17
to MIT App Inventor Forum
Hi Damian

Keep up your enthusiasm! Especially if you are teaching this.

I'll try and find time to actually look at the tutorial myself - I've already reported the mistake with the Arduino block.

This new release and the micro:bit specific extensions open everything up.

Neil
Reply all
Reply to author
Forward
0 new messages