photo logo fab lab puebla_zpsf84vuacy.jpg
 photo fab-academy2_zpszvqovjt6.jpg
 photo fab-academy2_zpszvqovjt6.jpg

Huber Girón Nieto

Electronic and Mechatronic Engineer

Contact

e-mail: huber.giron.nieto@iberopuebla.mx

phone: +52 (222) 372 3000 ext.12917

FABLAB Puebla Researcher

WEEK ASSIGNMENT:

Interface and Application Programming

Write an application that interfaces with an input &/or output device

 

 

 

 

 

For this week activity we need to write an application, so we decide to use a Arduino Mega2560 with a  LED and a Bluetooth device, so the LED only turn on when a button in a Android cellphone application is activated.

 photo diagrama_zpszoudkbm0.jpg

Android Application

We use the appinventor 2 to write the application:

 

 

 

 

 

 

 

 photo appinventor_zpssyt4vysp.jpg
 photo ap1_zps5plican1.jpg
 photo ap2_zpshbdi3z6i.jpg
 photo ap3_zps6olu3vuy.jpg

        CODE:

 

 

 

 

 

 

 

 photo code1_zps0wg2sxxo.jpg
 photo code2_zps296xbjpr.jpg
 photo code3_zpsbuysqnjz.jpg
 photo code4_zps21dt64kw.jpg
 photo code5_zpsjgat6jjw.jpg
 photo code6_zpshm2wwtmc.jpg
 photo donwload1_zpssbzpankm.jpg

Electronic

We use a Arduino Mega2560  and a Bluetooth module:

 

 

 

 

 

 

 

 photo bluetooth_zpsx3bwn9bu.jpg
 photo bluetooth2_zpslvlhijyh.jpg
 photo 2015-06-04 161533_zpsvs1tvxk5.jpg

        CODE:

 

 

 

 

 

 

 

 photo arduino code_zpsdinx8zbu.jpg

Test