SlideShare una empresa de Scribd logo
1 de 10
Make It Talk!
Use MIT App Inventor and a $5 Bluetooth module to wirelessly control an
Arduino project from an Android device.
What you will need:
● Computer with Internet access
● Android smartphone or tablet (JellyBean or newer)
● Arduino
● HC-05 Bluetooth to UART Serial Transceiver (eBay or Amazon)
● Free account at MIT App Inventor website
https://ai2.appinventor.mit.edu
MIT App Inventor: Designer Window
MIT App Inventor: Blocks Window
Getting the App to your Android Device
● Install Google Goggles
● In Settings on device, allow ‘Unknown
Sources’ app installs under Security
● From App Inventor click:
o Build
o App (Provide QR code for .apk)
● Scan QR code with Google Goggles and
install
Ask me about the AI Companion app! Great for testing!
There is also an emulator that can be downloaded
#define pins and command codes
initialize the Bluetooth stream and declare
variables
Startup the Bluetooth connection and turn off
LED
Sit and listen for data to come in over the
Bluetooth serial stream
If we see a ‘1’ turn the LED on
If we see a ‘0’ turn the LED off
Arduino IDE
HC-05 modules don’t come from a single
vendor.
All HC-05s I’ve dealt with are 5V tolerant.
There is a chance though the not all are,
some may require 3.3V maximum!
Most Arduinos are 5V output on the GPIO
pins.
Except the newest Arduinos!
Arduino Zero does have 3.3V GPIO pins,
and most likely all future Arduinos will move
to 3.3V.
99% of the time, this circuit will work just fine
since all all HC-05s I’ve seen have 5V-3V
level shifter...
Default passcode:
1234
But just to be safe
you can add a voltage divider
Voltage divider is built using two
resistors.
We will place ours between the
Arduino TX pin (pin 11) and the
HC-05 RX pin.
4.7K-ohm
10K-ohm
Vout = Vin * [ R2 / (R1+R2) ] = 5V * (10K/14.7K) = 3.4V
Shortcut!
github.com/geekcowboy/AppInventor_Arduino_Bluetooth
Upload the .aia file into your App Inventor account by clicking on:
● Projects
● Import project (.aia) from my computer
Open the .ino file in the Arduino IDE, tweak as needed, and then upload to your Arduino
head on over to
Thank You!
● Luis Picarzo - App Inventor tutorial
o whatakuai.com/bluetooth-and-app-inventor/
● Mohannad Rawashdeh - HC-05 tutorial
o instructables.com/id/Arduino-AND-Bluetooth-HC-05-Connecting-easily

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Internet of things
Internet of thingsInternet of things
Internet of things
 
Design of Arduino based fire fighting Robot
Design of Arduino based fire fighting RobotDesign of Arduino based fire fighting Robot
Design of Arduino based fire fighting Robot
 
Arduino Microcontroller
Arduino MicrocontrollerArduino Microcontroller
Arduino Microcontroller
 
Robotics workshop PPT
Robotics  workshop PPTRobotics  workshop PPT
Robotics workshop PPT
 
What is Arduino ?
What is Arduino ?What is Arduino ?
What is Arduino ?
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Arduino Uno Pin Description
Arduino Uno Pin DescriptionArduino Uno Pin Description
Arduino Uno Pin Description
 
My arduino presentation
My arduino presentationMy arduino presentation
My arduino presentation
 
Arduino course
Arduino courseArduino course
Arduino course
 
BLUETOOTH CONTROLLED ROBOCAR
BLUETOOTH CONTROLLED ROBOCARBLUETOOTH CONTROLLED ROBOCAR
BLUETOOTH CONTROLLED ROBOCAR
 
IoT
IoTIoT
IoT
 
Introduction to Arduino & Raspberry Pi
Introduction to Arduino & Raspberry PiIntroduction to Arduino & Raspberry Pi
Introduction to Arduino & Raspberry Pi
 
Bluetooth Home Automation
Bluetooth Home AutomationBluetooth Home Automation
Bluetooth Home Automation
 
Building IoT with Arduino Day One
Building IoT with Arduino Day One Building IoT with Arduino Day One
Building IoT with Arduino Day One
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Arduino and c programming
Arduino and c programmingArduino and c programming
Arduino and c programming
 
Introduction of Arduino Uno
Introduction of Arduino UnoIntroduction of Arduino Uno
Introduction of Arduino Uno
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 
Introduction to Arduino and Hands on to Iot
Introduction to Arduino and Hands on to IotIntroduction to Arduino and Hands on to Iot
Introduction to Arduino and Hands on to Iot
 

Destacado

การบำบัดของเสียในอุตสาหกรรม 31 03 59
การบำบัดของเสียในอุตสาหกรรม 31 03 59การบำบัดของเสียในอุตสาหกรรม 31 03 59
การบำบัดของเสียในอุตสาหกรรม 31 03 59BPpiangruetai
 
สรุป การออกแบบระบบบำบัดน้ำเสีย ไม่ครบ
สรุป การออกแบบระบบบำบัดน้ำเสีย ไม่ครบสรุป การออกแบบระบบบำบัดน้ำเสีย ไม่ครบ
สรุป การออกแบบระบบบำบัดน้ำเสีย ไม่ครบKat Env
 
Water Recycling Process
Water Recycling ProcessWater Recycling Process
Water Recycling ProcessSooksop
 
Recycle and reuse of wastewater
Recycle and reuse of wastewaterRecycle and reuse of wastewater
Recycle and reuse of wastewaterPulkit Shukla
 
กฎหมายว่าด้วยมลพิษ
กฎหมายว่าด้วยมลพิษกฎหมายว่าด้วยมลพิษ
กฎหมายว่าด้วยมลพิษChacrit Sitdhiwej
 
คู่มือ Thunkable
คู่มือ Thunkableคู่มือ Thunkable
คู่มือ ThunkableKhunakon Thanatee
 
คู่มือ Handbook app inventor
คู่มือ Handbook app inventorคู่มือ Handbook app inventor
คู่มือ Handbook app inventorAreefin Kareng
 
Characteristics of Waste-Water (Unit-I)
Characteristics of Waste-Water (Unit-I)Characteristics of Waste-Water (Unit-I)
Characteristics of Waste-Water (Unit-I)GAURAV. H .TANDON
 

Destacado (11)

Wearables 101
Wearables 101Wearables 101
Wearables 101
 
การบำบัดของเสียในอุตสาหกรรม 31 03 59
การบำบัดของเสียในอุตสาหกรรม 31 03 59การบำบัดของเสียในอุตสาหกรรม 31 03 59
การบำบัดของเสียในอุตสาหกรรม 31 03 59
 
สรุป การออกแบบระบบบำบัดน้ำเสีย ไม่ครบ
สรุป การออกแบบระบบบำบัดน้ำเสีย ไม่ครบสรุป การออกแบบระบบบำบัดน้ำเสีย ไม่ครบ
สรุป การออกแบบระบบบำบัดน้ำเสีย ไม่ครบ
 
Google App Inventor
Google App InventorGoogle App Inventor
Google App Inventor
 
Water Recycling Process
Water Recycling ProcessWater Recycling Process
Water Recycling Process
 
Recycle and reuse of wastewater
Recycle and reuse of wastewaterRecycle and reuse of wastewater
Recycle and reuse of wastewater
 
กฎหมายว่าด้วยมลพิษ
กฎหมายว่าด้วยมลพิษกฎหมายว่าด้วยมลพิษ
กฎหมายว่าด้วยมลพิษ
 
คู่มือ Thunkable
คู่มือ Thunkableคู่มือ Thunkable
คู่มือ Thunkable
 
MIT APP Inventor como instrumento de coleta de dados - Prof. Ricardo Costa Rossi
MIT APP Inventor como instrumento de coleta de dados - Prof. Ricardo Costa RossiMIT APP Inventor como instrumento de coleta de dados - Prof. Ricardo Costa Rossi
MIT APP Inventor como instrumento de coleta de dados - Prof. Ricardo Costa Rossi
 
คู่มือ Handbook app inventor
คู่มือ Handbook app inventorคู่มือ Handbook app inventor
คู่มือ Handbook app inventor
 
Characteristics of Waste-Water (Unit-I)
Characteristics of Waste-Water (Unit-I)Characteristics of Waste-Water (Unit-I)
Characteristics of Waste-Water (Unit-I)
 

Similar a Wirelessly Control Arduino with MIT App Inventor & Bluetooth

Android Things - The IoT platform from Google
Android Things - The IoT platform from GoogleAndroid Things - The IoT platform from Google
Android Things - The IoT platform from GoogleEmmanuel Obot
 
Arduino slides
Arduino slidesArduino slides
Arduino slidessdcharle
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slidesmkarlin14
 
Using arduino and raspberry pi for internet of things
Using arduino and raspberry pi for internet of thingsUsing arduino and raspberry pi for internet of things
Using arduino and raspberry pi for internet of thingsSudar Muthu
 
XBee and RFID
XBee and RFIDXBee and RFID
XBee and RFIDTinker
 
Connecting outsideworld with Android and Arduino
Connecting outsideworld with Android and ArduinoConnecting outsideworld with Android and Arduino
Connecting outsideworld with Android and ArduinoGodfrey Nolan
 
Advanced View Arduino Projects List - Use Arduino for Projects-4.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-4.pdfAdvanced View Arduino Projects List - Use Arduino for Projects-4.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-4.pdfWiseNaeem
 
Advanced view arduino projects list use arduino for projects 2
Advanced view arduino projects list  use arduino for projects 2Advanced view arduino projects list  use arduino for projects 2
Advanced view arduino projects list use arduino for projects 2WiseNaeem
 
Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixelssdcharle
 
Physical prototyping lab1-input_output (2)
Physical prototyping lab1-input_output (2)Physical prototyping lab1-input_output (2)
Physical prototyping lab1-input_output (2)Tony Olsson.
 
Advanced View Arduino Projects List _ Use Arduino for Projects {4}.pdf
Advanced View Arduino Projects List _ Use Arduino for Projects {4}.pdfAdvanced View Arduino Projects List _ Use Arduino for Projects {4}.pdf
Advanced View Arduino Projects List _ Use Arduino for Projects {4}.pdfWiseNaeem
 
DIGITAL LOGIC DESIGN (1) PROJECT REPORT.docx
DIGITAL LOGIC DESIGN (1) PROJECT REPORT.docxDIGITAL LOGIC DESIGN (1) PROJECT REPORT.docx
DIGITAL LOGIC DESIGN (1) PROJECT REPORT.docxRafayNaveed4
 
Advanced View Arduino Projects List - Use Arduino for Projects [04].pdf
Advanced View Arduino Projects List - Use Arduino for Projects [04].pdfAdvanced View Arduino Projects List - Use Arduino for Projects [04].pdf
Advanced View Arduino Projects List - Use Arduino for Projects [04].pdfWiseNaeem
 
Linux Format - Get Into Linux Today
Linux Format - Get Into Linux TodayLinux Format - Get Into Linux Today
Linux Format - Get Into Linux TodayHeart Disk
 
1.Arduino Ecosystem.pptx
1.Arduino Ecosystem.pptx1.Arduino Ecosystem.pptx
1.Arduino Ecosystem.pptxMohamed Essam
 
Home automation voice control
Home automation voice controlHome automation voice control
Home automation voice controlAhammednayeem
 
Smart TV Security - #1984 in 21st century -
Smart TV Security - #1984 in 21st century -Smart TV Security - #1984 in 21st century -
Smart TV Security - #1984 in 21st century -Seungjoo Kim
 

Similar a Wirelessly Control Arduino with MIT App Inventor & Bluetooth (20)

ARDUINO.pptx
ARDUINO.pptxARDUINO.pptx
ARDUINO.pptx
 
Embedded system application
Embedded system applicationEmbedded system application
Embedded system application
 
Android Things - The IoT platform from Google
Android Things - The IoT platform from GoogleAndroid Things - The IoT platform from Google
Android Things - The IoT platform from Google
 
Arduino slides
Arduino slidesArduino slides
Arduino slides
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slides
 
Using arduino and raspberry pi for internet of things
Using arduino and raspberry pi for internet of thingsUsing arduino and raspberry pi for internet of things
Using arduino and raspberry pi for internet of things
 
XBee and RFID
XBee and RFIDXBee and RFID
XBee and RFID
 
XBee and RFID
XBee and RFIDXBee and RFID
XBee and RFID
 
Connecting outsideworld with Android and Arduino
Connecting outsideworld with Android and ArduinoConnecting outsideworld with Android and Arduino
Connecting outsideworld with Android and Arduino
 
Advanced View Arduino Projects List - Use Arduino for Projects-4.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-4.pdfAdvanced View Arduino Projects List - Use Arduino for Projects-4.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-4.pdf
 
Advanced view arduino projects list use arduino for projects 2
Advanced view arduino projects list  use arduino for projects 2Advanced view arduino projects list  use arduino for projects 2
Advanced view arduino projects list use arduino for projects 2
 
Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixels
 
Physical prototyping lab1-input_output (2)
Physical prototyping lab1-input_output (2)Physical prototyping lab1-input_output (2)
Physical prototyping lab1-input_output (2)
 
Advanced View Arduino Projects List _ Use Arduino for Projects {4}.pdf
Advanced View Arduino Projects List _ Use Arduino for Projects {4}.pdfAdvanced View Arduino Projects List _ Use Arduino for Projects {4}.pdf
Advanced View Arduino Projects List _ Use Arduino for Projects {4}.pdf
 
DIGITAL LOGIC DESIGN (1) PROJECT REPORT.docx
DIGITAL LOGIC DESIGN (1) PROJECT REPORT.docxDIGITAL LOGIC DESIGN (1) PROJECT REPORT.docx
DIGITAL LOGIC DESIGN (1) PROJECT REPORT.docx
 
Advanced View Arduino Projects List - Use Arduino for Projects [04].pdf
Advanced View Arduino Projects List - Use Arduino for Projects [04].pdfAdvanced View Arduino Projects List - Use Arduino for Projects [04].pdf
Advanced View Arduino Projects List - Use Arduino for Projects [04].pdf
 
Linux Format - Get Into Linux Today
Linux Format - Get Into Linux TodayLinux Format - Get Into Linux Today
Linux Format - Get Into Linux Today
 
1.Arduino Ecosystem.pptx
1.Arduino Ecosystem.pptx1.Arduino Ecosystem.pptx
1.Arduino Ecosystem.pptx
 
Home automation voice control
Home automation voice controlHome automation voice control
Home automation voice control
 
Smart TV Security - #1984 in 21st century -
Smart TV Security - #1984 in 21st century -Smart TV Security - #1984 in 21st century -
Smart TV Security - #1984 in 21st century -
 

Último

Forming section troubleshooting checklist for improving wire life (1).ppt
Forming section troubleshooting checklist for improving wire life (1).pptForming section troubleshooting checklist for improving wire life (1).ppt
Forming section troubleshooting checklist for improving wire life (1).pptNoman khan
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communicationpanditadesh123
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Communityprachaibot
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.elesangwon
 
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESCME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESkarthi keyan
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodManicka Mamallan Andavar
 
Curve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptxCurve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptxRomil Mishra
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxStephen Sitton
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosVictor Morales
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdfHafizMudaserAhmad
 
List of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfList of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfisabel213075
 
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfComprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfalene1
 
70 POWER PLANT IAE V2500 technical training
70 POWER PLANT IAE V2500 technical training70 POWER PLANT IAE V2500 technical training
70 POWER PLANT IAE V2500 technical trainingGladiatorsKasper
 
Theory of Machine Notes / Lecture Material .pdf
Theory of Machine Notes / Lecture Material .pdfTheory of Machine Notes / Lecture Material .pdf
Theory of Machine Notes / Lecture Material .pdfShreyas Pandit
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 
A brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision ProA brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision ProRay Yuan Liu
 
STATE TRANSITION DIAGRAM in psoc subject
STATE TRANSITION DIAGRAM in psoc subjectSTATE TRANSITION DIAGRAM in psoc subject
STATE TRANSITION DIAGRAM in psoc subjectGayathriM270621
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptxmohitesoham12
 
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfModule-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfManish Kumar
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 

Último (20)

Forming section troubleshooting checklist for improving wire life (1).ppt
Forming section troubleshooting checklist for improving wire life (1).pptForming section troubleshooting checklist for improving wire life (1).ppt
Forming section troubleshooting checklist for improving wire life (1).ppt
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communication
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Community
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
 
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESCME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument method
 
Curve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptxCurve setting (Basic Mine Surveying)_MI10412MI.pptx
Curve setting (Basic Mine Surveying)_MI10412MI.pptx
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptx
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitos
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf
 
List of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfList of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdf
 
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfComprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
 
70 POWER PLANT IAE V2500 technical training
70 POWER PLANT IAE V2500 technical training70 POWER PLANT IAE V2500 technical training
70 POWER PLANT IAE V2500 technical training
 
Theory of Machine Notes / Lecture Material .pdf
Theory of Machine Notes / Lecture Material .pdfTheory of Machine Notes / Lecture Material .pdf
Theory of Machine Notes / Lecture Material .pdf
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 
A brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision ProA brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision Pro
 
STATE TRANSITION DIAGRAM in psoc subject
STATE TRANSITION DIAGRAM in psoc subjectSTATE TRANSITION DIAGRAM in psoc subject
STATE TRANSITION DIAGRAM in psoc subject
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptx
 
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfModule-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 

Wirelessly Control Arduino with MIT App Inventor & Bluetooth

  • 1. Make It Talk! Use MIT App Inventor and a $5 Bluetooth module to wirelessly control an Arduino project from an Android device.
  • 2. What you will need: ● Computer with Internet access ● Android smartphone or tablet (JellyBean or newer) ● Arduino ● HC-05 Bluetooth to UART Serial Transceiver (eBay or Amazon) ● Free account at MIT App Inventor website https://ai2.appinventor.mit.edu
  • 3. MIT App Inventor: Designer Window
  • 4. MIT App Inventor: Blocks Window
  • 5. Getting the App to your Android Device ● Install Google Goggles ● In Settings on device, allow ‘Unknown Sources’ app installs under Security ● From App Inventor click: o Build o App (Provide QR code for .apk) ● Scan QR code with Google Goggles and install Ask me about the AI Companion app! Great for testing! There is also an emulator that can be downloaded
  • 6. #define pins and command codes initialize the Bluetooth stream and declare variables Startup the Bluetooth connection and turn off LED Sit and listen for data to come in over the Bluetooth serial stream If we see a ‘1’ turn the LED on If we see a ‘0’ turn the LED off Arduino IDE
  • 7. HC-05 modules don’t come from a single vendor. All HC-05s I’ve dealt with are 5V tolerant. There is a chance though the not all are, some may require 3.3V maximum! Most Arduinos are 5V output on the GPIO pins. Except the newest Arduinos! Arduino Zero does have 3.3V GPIO pins, and most likely all future Arduinos will move to 3.3V. 99% of the time, this circuit will work just fine since all all HC-05s I’ve seen have 5V-3V level shifter... Default passcode: 1234
  • 8. But just to be safe you can add a voltage divider Voltage divider is built using two resistors. We will place ours between the Arduino TX pin (pin 11) and the HC-05 RX pin. 4.7K-ohm 10K-ohm Vout = Vin * [ R2 / (R1+R2) ] = 5V * (10K/14.7K) = 3.4V
  • 9. Shortcut! github.com/geekcowboy/AppInventor_Arduino_Bluetooth Upload the .aia file into your App Inventor account by clicking on: ● Projects ● Import project (.aia) from my computer Open the .ino file in the Arduino IDE, tweak as needed, and then upload to your Arduino head on over to
  • 10. Thank You! ● Luis Picarzo - App Inventor tutorial o whatakuai.com/bluetooth-and-app-inventor/ ● Mohannad Rawashdeh - HC-05 tutorial o instructables.com/id/Arduino-AND-Bluetooth-HC-05-Connecting-easily