Skip to first unread message

Vinícius Goulart

unread,
Nov 6, 2015, 1:13:15 PM11/6/15
to MIT App Inventor Forum
Dear all

I am using App Inventor to build a simple android app to connect a mobile to a Arduino.

All hardware is working fine and I tested it the using a app called Ardudroid. My Arduino worked as expected.

I'm using a Samsung Galaxy S3, a Arduino UNO, and a Bluetooth module HC-06.

While trying to connect using the app I built with App Inventor 2, I receive the error message 515 (Not connected to a bluetooth device).
I used list pick (before picking) to load the elements and connect to a paired device using  Call.bluetooth.client1.Connect  address. ListPicker. Selection.

I am using only one screen as suggested in other topics in this forum and I can't figure my mistake?

Any help is highly appreciated


ps. please see the block design attached
  

Captura de Tela 2015-11-06 às 18.10.55.png
Captura de Tela 2015-11-06 às 18.11.22.png

Taifun

unread,
Nov 6, 2015, 7:16:09 PM11/6/15
to MIT App Inventor Forum
how to connect correctly


Taifun

Vinícius Goulart

unread,
Nov 7, 2015, 3:29:07 PM11/7/15
to MIT App Inventor Forum
Dear Taifun

Thank you for your quick answer.

Unfortunately, it is not working yet. I did exactly as the diagram you sent, but it did not worked. I attached the snapshot of my block design. Note it is the same you sent.


Do you have any suggestions?

Kind regards

AN UPDATE

I was able to connect using the MAC Address and a button!
See the block design attached.

I programed my Arduino to activate a motor for 500 ms by sending the text "1". However it does not stop using the app I created with app inventor (It works with ardudroid). 
Anyway, I think it is a matter for other topic.









Captura de Tela 2015-11-07 às 19.38.16.png
Captura de Tela 2015-11-07 às 20.25.09.png
Reply all
Reply to author
Forward
0 new messages