With App Inventor, we can create Android apps using a web browser and either a connected
phone or an emulator. The App Inventor servers maintain track of our projects and store our
work.
We can build apps by working with:
1.The App Inventor Designer, where we may choose our app's components.
2.We can assemble software blocks that indicate how the components should act in the App
Inventor Blocks Editor. We put together programs visually, placing elements together like
jigsaw pieces.
LED Control App
APP Inventor Designer
Sign In:
Opened the wesite of APP Inventor the link ai2.appinventor.mit.edu. Signed in with my
existing gmail account.
New Project:
Select "Start new project" from the Projects menu on the top left of the screen, and then
give it the name "led_App."
Layout:
Choose a horizontal layout and add a button, label, or list pricker as needed.
Label:
It allows you to label the component. We can edit the text on the right.
List Picker:
Under User interface, chose the feature of list picker and added a LED image to it.
Button
Added 6 buttons to blink LED. Changes in height, width, text and color characteristics under
the Properties section.
Bluetooth:
Also add bluetooth client component to establish bluetooth connection.
Final Output
App Inventor Blocks Editor
We programme the behaviour of our app in the Blocks Editor. With each component we've
introduced,
there are built-in blocks that handle things like math, logic, and text.
Shift to Block Editor:
The process of putting together a software switched from design to block editing.
List Picker:
Set the elements of the list as available bluetooth devices by clicking on the list picker
and selecting ListPicker Before Picking.
Control:
Added block for lead butt button. Here, we use a, b, c, d, a, f to turn the led according to
the code.
Bluetooth Client:
We can use the condition that the function will only work when Bluetooth is connected, and
we can blink the LED with 6 buttons.
Final Output
Sharing and Packaging App
Go to the "Build" menu on the App Inventor toolbar to package the app (.apk file).
"Application (Save to My Computer)" was selected.
The download had started, according to a pop-up box indication.
programing:
I have used my week 13- Input Devices board which has attiny1614 microcontroller.
LED Blik Code
Running the App
The app was downloaded to my Android phone. To allow the installation of non-market
applications, the phone's settings must occasionally be altered.
Bluetooth Pairing:
The bluetooth was visible and could be associated with other bluetooth devices under the
name "Zero2Maker."
Pairing Password:
The universal password to connect HC-05 bluetooth is 1234.
Connected:
The bluetooth has been established, and we now have control over the LEDs.