How to get 2 data sensors at the same time

17 views
Skip to first unread message

Cloud Strife

unread,
Feb 23, 2019, 11:07:29 PM2/23/19
to MIT App Inventor Forum
Hi! I was wondering on how I can make an app using the MIT App Inventor 2 that can get 2 data sensors (left and right) on 2 labels. I was trying to make an app up until now however, it only shows on 1 label for both sensors. I also included my screenshot. Any help would be appreciated.
Capture.PNG

Ghica

unread,
Feb 24, 2019, 9:02:20 AM2/24/19
to MIT App Inventor Forum
Simply add another BT Client to your app!
For more information and tips how to read and send data using BT, see the FAQ under Bluetoot and Arduino https://groups.google.com/forum/#!category-topic/mitappinventortest/wqJin0qO8M0
Cheers, Ghica.

Martyn_HK

unread,
Feb 25, 2019, 1:38:18 AM2/25/19
to MIT App Inventor Forum
It looks like the first ReceiveText is getting all the data. You need a way of identifying what data is from which sensor and then parse/split it in the app and then show in the relevant label.

Have a look at  Turning a LED on and off with an Arduino, Bluetooth and Android, especially how the commands work


Reply all
Reply to author
Forward
0 new messages