How do i make the mit app inventor receive the data being shown in the serial monitor of my arduino

I cant figure out how to receive data from arduino to mit app. I would also like for the data to be converted to text to speech.

1 Like

https://community.appinventor.mit.edu/search?q=bluetooth%20%23tutorials-and-guides
....or search for the particular module you're using.

1 Like

Remove the Nepali translation part.

1 Like

If i send numbers it sends bunch of data like [50, 13, 10]

1 Like

Hello Everyone, I am having troubles receiving data from arduino to mit app. Instead of getting the correct values, the ones that the app is receiving are values like [49, 13, 10]
Here is the code in arduino and MIT APP:


Arduino Code:
const int buttonPin = 2; // Pin connected to the button
boolean buttonState = false;
boolean lastButtonState = false;

void setup() {
pinMode(buttonPin, INPUT_PULLUP); // Set button pin as input with internal pull-up resistor
Serial.begin(9600); // Initialize serial communication
}

void loop() {
// Read the current state of the button
buttonState = digitalRead(buttonPin);

// Check if the button is pressed (and was not pressed before)
if (buttonState == LOW && lastButtonState == HIGH) {
// Button is pressed, print "wow" over serial
Serial.println("wow");
}

// Update the last button state
lastButtonState = buttonState;

// Add a small delay to debounce the button
delay(50);
}

1 Like

@Kean_Reyes , please stop creating new topics for the same subject.

2 Likes

If i send numbers it sends bunch of data like [50, 13, 10]

1 Like

4209f964ca507d030302ff42f9ff9d6a8b0d1360_2_690x464

If you look in an ASCII chart, you will see that 50,13,10 is '2' CR LF

1 Like

Thank you!!!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.