Bluetooth : Send data from arduino to App Inventor and compare it

477 views
Skip to first unread message

Kai Jie See

unread,
Jan 10, 2018, 11:28:34 AM1/10/18
to MIT App Inventor Forum
Hi, i want to use Arduino to send a counter to MIT Appinventor through HC-05 Bluetooth module using serial, and then compare the counter in Appinventor to set the respective text of TinyDB. However, with my blocks, i can only success in compare the first value. Using my attached blocks as example, when my Arduino send a 'S' to Appinventor through bluetooth, and then later send a 'D' again, only the 'towel_802' tag had the text set, while the 'pillow_802' tag remain empty.
I wish to set both tag, what is the problem with my blocks?
Any help will be appreciate, and please ask if any extra information is require.
Untitled.png

Farzeen Harunani

unread,
Jan 10, 2018, 12:28:38 PM1/10/18
to MIT App Inventor Forum
Why does your Clock Timer have an error on it?
Farzeen

Abraham Getzler

unread,
Jan 10, 2018, 2:39:34 PM1/10/18
to MIT App Inventor Forum
Can you also post your Arduino sketch?

Can you prove to us that you are not sending upper case letters from the Arduino?

Can you prove to us that you are not sending from the Arduino more frequently
than you are receiving in AI2, causing AI2 to receive multiple letters per message?

ABG

Kai Jie See

unread,
Jan 10, 2018, 8:38:31 PM1/10/18
to MIT App Inventor Forum
That's just AI companion error because i disconnect from my Android.
Never mind it as there are no error when i test it.
Message has been deleted

Ghica

unread,
Jan 11, 2018, 11:44:00 AM1/11/18
to MIT App Inventor Forum
Red crosses always mean trouble at some point. You do better to correct it.
Cheers, Ghica
Reply all
Reply to author
Forward
0 new messages