You need a QR code generator
See these threads to get an idea
https://community.appinventor.mit.edu/search?context=topic&context_id=150728&q=Generate%20qr&skip_context=true
The BarcodeScanner component is only able to scan an existing QR code
Taifun