New Project

CONNECT

Barcode Reader Making with App Inventor 2

  • Page Views 809
  • Spread the love
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  

    This project will do our App inventor barcode reader making application and 2. Our application, communicates via Bluetooth with arduino, arduino will make the process we want to send data to match the data matrix numbers when we add the application.

    Step 1: First 20 characters as follows from random.org site’s create 2 output.

     

    Step 2:  one received from Number 2 other code will be sent to the arduino data matrix number.  goqr.me  paste the address of the 20-character code to create data matrix display as follows. Data matrix was to save png format.

     

     

    Step 3:  Create a new project, enter in  ai2.appinventor.mit.edu  address. Sensors from menu barcodeScanner and from  connectivity menu   add bluetoothClient drag the module to the screen.

     

    Step 4: Blocks following steps you through the section.

     

    Enter the IP address of its own bluetooth module in place as shown in the figure below.

     

    Step 5: We’ve completed downloading the code portion of our practice and the apk file to our computer as follows. Send and we’re installing the apk file download to your android phone.

     

    We made our Android barcode applications. When we describe our application tray was to be connected to the Bluetooth module. Then we read the barcode is identified, arduino number of other applications will be sent via bluetooth to 20 characters. When you define this character you can perform the desired operation in the arduino. The main code is as follows.

    Arduino Code:

    // Robimek - Robotic Systems
    // www.robimek.com
    String readString;
    
    void setup() {
    Serial.begin(9600);
    }
    
    void loop() {
    while (Serial.available()) {
    delay(4);
    char c = Serial.read();
    readString += c;
    }
    if (readString.length() >0) {
    Serial.println(readString);
    if (readString == "5g00pqcvhi96ofte9gjj")// send code from android phone
    {
    
    // Write processing functions that you want to make here.
    }
    }
    }

     

     

    Share

    What did they say ?

    First Comment About You!!

    avatar
    wpDiscuz

    BE A FACEBOOK FAN

    Instagram