You are on page 1of 8

technology workshop craft home food play outside costumes

Control LED using MIT App Inventor and Arduino


by ibrahim kamr on July 26, 2016

Table of Contents

Control LED using MIT App Inventor and Arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro: Control LED using MIT App Inventor and Arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 1: Getting Started with Arduino and Android . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 2: COMPONNENT REQUIRED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 3: Hardware & Software Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Step 4: MIT app inventor Code block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Step 5: Running the App . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

http://www.instructables.com/id/Control-LED-Using-MIT-App-Inventor-and-Arduino/
Intro: Control LED using MIT App Inventor and Arduino
This is a step by step tutorial on getting started with creating MIT app inventor android app and control things with arduino.

Lets Make our first app to control a LED

Step 1: Getting Started with Arduino and Android


Blinking a LED is the first thing we do when we getting started with electronics in this tutorial you will TURN ON and TURN OFF the LED, this is the Hello world example
in this tutorial, you don't need any prior coding experience to make this application work. To test the app that created during this tutorial, you need an Android mobile to
test your app. creating an app with MIT app inventor is very simple, you won't be doing any coding process during creating your app, you will be assembling blocks
together to make your app. if you don't have any prior experience with Arduino control, make sure you follow some basics like connecting Arduino to your computer and
upload example code to Arduino from Arduino IDE, this would be more sufficient to follow this tutorial.

http://www.instructables.com/id/Control-LED-Using-MIT-App-Inventor-and-Arduino/
Step 2: COMPONNENT REQUIRED
Hardware:

1. Arduino board

2.LED

3. Resistor 330 ohm

4. wires

5.Android Smartphone

6.Bluetooth module (HC-05)

7.test board

Software:

1.Arduino IDE

you can download from


https://www.arduino.cc/en/Main/Software

2.MIT app inventor

http://ai2.appinventor.mit.edu/

http://www.instructables.com/id/Control-LED-Using-MIT-App-Inventor-and-Arduino/
http://www.instructables.com/id/Control-LED-Using-MIT-App-Inventor-and-Arduino/
http://www.instructables.com/id/Control-LED-Using-MIT-App-Inventor-and-Arduino/
Step 3: Hardware & Software Configuration
Well, the circuit assembly is not difficult. The circuit consists only of LED, resistor, HC-05 and Arduino. The long "leg" of the LED will be connected to the 5V through the
resistor on Arduino pin number 13 while the shorter "led" will be connected to the GND. For the HC-05, the VCC is connected to 5V, GND to GND, RX of HC-05 to
Arduino TX, while TX of HC-05 to Arduino RX.

1-connect led ,resistor and bluetooth module as shown

2-connect Arduino to your computer using USB cable.

3- Download Arduino IDE on your computer.

4- download the Arduino code below and open it using Arduino IDE

5-choose your Arduino board from IDE

tools<<Board<<Arduino UNO

6-choose serial port from IDE

tools<<Port

7-run the Arduino sketch


8-upload sketch on your arduino board

http://www.instructables.com/id/Control-LED-Using-MIT-App-Inventor-and-Arduino/
File Downloads

control led.zip (485 bytes)


[NOTE: When saving, if you see .tmp as the file ext, rename it to 'control led.zip']
Step 4: MIT app inventor Code block
First go to the App Inventor site http://ai2.appinventor.mit.edu/ and then it'll ask for your email and password and enter that in. Next, go to "Projects" and click "Start new
project" and call it Led control

Step 5: Running the App


There are many ways to run this application..but the easiest way is to download the MIT Ai Companion from the Google Play Store

check this link to more details

http://appinventor.mit.edu/explore/ai2/setup-devic...

Have fun

http://www.instructables.com/id/Control-LED-Using-MIT-App-Inventor-and-Arduino/
Related Instructables

Build Android Arduino + Course on MIT Android How to control Voice Activated
Bluetooth App Android burglar App Inventor controlled car servo motor Lights / Led
for Arduino by alarm - Home and Arduino by for beginners from android (ARDUINO and
automation by
Abdullah_Al_Mamun_EEE_EWU_Bangladesh
Magesh (MIT app app by Magesh ANDROID) by
Bhanu Kishan Jayakumar inventor) by Jayakumar parth_bhat
warmachineroxx

Advertisements

Comments

http://www.instructables.com/id/Control-LED-Using-MIT-App-Inventor-and-Arduino/

You might also like