Bluetooth & AppInventor (1)


Hello, today we're gonna explain ho to create an app with Appinventor and how to communicate it with Arduino . We connect bluetooth module to Arduino like we told you at  last post with mobile's bluetooth trought a simple app with Appinventor.

First we create a little program for Arduino, only to send an order via Bluetooth and do something easy with Arduino board, for example switch LED on/off .

We will use the next program : 



#define txPin 3 // definimos txpin en que pin de arduino se encuentra
#define rxPin 2 // definimos rxpin en que pin de arduino se encuentra 

SoftwareSerial bluetooth(rxPin, txPin); // el puerto nuevo de comunicacion se llamar bluetooth

char NOMBRE[10]  = "TEST1";  // asignamos un nombre a nuestro modulo bluetooth para cuando lo veamos en linea 
char BPS         = '4';           // 1=1200 , 2=2400, 3=4800, 4=9600, 5=19200, 6=38400, 7=57600, 8=115200
char PASS[10]    = "1234";   // password para realizar la conexion. Sino funciona 0000
char INBYTE;
int  LED = 13; // LED on pin 13 // hacemos que el led 13 de Arduino integrado nos sirva de prueba

void setup() {
  Serial.begin(9600); // velocidad de la comunicacion entre arduino y ordenador 
 Serial.println("Estoy preparado"); //mensaje de comprobacion
   pinMode(LED, OUTPUT);
  bluetooth.flush();            // Borramos el buffer del serial para evitar errores
  pinMode(rxPin, INPUT);     // Configuramos los pines del bluetooth 
  pinMode(txPin, OUTPUT);
  bluetooth.begin(9600);  // marcamos la velocidad del puerto bluetooth 

void loop()
  while (!bluetooth.available());   // mientras el puerto este disponible ejecuta el programa
  INBYTE =;        // lee la comunicacion bluetooth
  if( INBYTE == '2' ) 
      digitalWrite(LED, LOW);  // si pulsas el numero 3 escribe en el led apagado
      bluetooth.println("Has presionado 2"); //muestra en el ordenador que tecla se ha pulsado
  if( INBYTE == '1' ) 
    digitalWrite(LED, HIGH); // si pulsas el numero 4 escribe led encendido
    bluetooth.println("Has presionado 1");
The line "if INBYTE ==…. then …" told us what happend when you push 1 or 2 on keyboard. If you push 1 on app button then switch ON LED and when you push 2 on app button then switch OFF LED. 

(Download program)

Now e have finished the program, let's go to create the app on Appinventor. We create a new project and we drag and drop two buttons, one dor switch ON and switch OFF.

Now we change the name of the buttons (optional) 

We arrange the buttons horitzontaly

We add a "list pick" to create the "bluetooth connect button". The button will change the color when bluetooth is active (that's it because we need a list pick instead a simple button)

We add bluetooth to screen 

After that we work with Block Appinventor (top right) and we start to program our app.

This is the bluetooth block . We could see that we check the bluetooth connection first and if is correct the bluetooth change to blue color. 

The two last blocks are create to send the character "1" and "2" to switch ON or OFF our LED in the Arduino board. As you can see we can send whatever character you want, then you could add more functions to send at arduino board. 

After these steps we create a QR code  , we download the app to mobile 

When we open th app we push "conexión" and we could see the MAC of bluetooth module. Then we connect (maybe you have to use the password 1234 or 1111 ). The red led on bluetooth module stops blinking and then is connect correctly.

We test the buttons ON and OFF and we could see how it switch ON or OFF LED


See you in the next article



Abroad, modified cars long, first appeared in the modified
car to better participate in the competition, drag racing, like so many people have converted their car engines,.
So, you are not required to move from one dealer to another for
ideal model. You can visit Monaco Motors for your classic
car's regular check-up and you can also do your own daily car
care so your vintage car will look as new and
luxurious as ever.

Also visit my blog post Things to Do in Tampa Bay -

Can I simply say what a comfort to find someone who really knows what they are talking about
on the internet. You actually know how to bring an issue to
light and make it important. A lot more people need to check this out and
understand this side of the story. I was surprised you aren't more popular given that you
definitely have the gift.

creditos rapidos gratis -

I was more than happy to find this web site. I want to to thank you for ones
time due to this wonderful read!! I definitely really liked every little bit
of it and i also have you book marked to see new things on your site.

creditos rapidos gratis -

Way cool! Some very valid points! I appreciate you writing this
article and also the rest of the website is really good.

wholesale NBA jerseys -

A new technology introduced by one of the biggest automobile companies, Volvo,
will ensure that your car avoid accidents on the roads involving pedestrians.
Once you do that take a spray bottle filled with 4 cups of warm water and a tablespoon of detergent and spray the stain. The damage varies
from vehicle to vehicle but can be as small as light hail
damage which is barely visible through to damage caused by falling trees.

my weblog - salesforce -

The remote control includes 3 different frequencies, and you can operate the
car from up to 8 meters. Producing a very light car
will drop its fuel consumption, and oil companies will
not appreciate this. The damage varies from vehicle to vehicle but can be as small as light hail damage which is barely visible through to damage caused by falling trees.

Also visit my web page; annunci escort -

Please let me know if you're looking for a author for your site.
You have some really good posts and I think I would be a good asset.
If you ever want to take some of the load off, I'd really like
to write some material for your blog in exchange for a link back to mine.
Please shoot me an email if interested. Thanks!

créditos rápidos urgentes -

Marvelous, what a web site it is! This web site provides useful data to us,
keep it up.

Feel free to visit my site can i get over the counter -

You really make it appear really easy together with your presentation however I in finding this matter to be really something that I believe I'd by no
means understand. It kind of feels too complicated and extremely extensive for me.
I'm looking forward to your subsequent put up, I'll attempt to get the hold of it!

creditos rapidos online sin aval -

Hi there! I know this is kinda off topic but I was wondering which blog platform are
you using for this website? I'm getting tired of Wordpress because I've had
issues with hackers and I'm looking at alternatives
for another platform. I would be great if you could point me in the direction of a good platform.

my blog: Jesus -

Along with the car sales, the Japanese used car sellers also supply the
dismantled parts of the vehicles in cube containers of size 20ft or
40 ft. Strict standards and excellence in service is what
made Cullitons the premiere limo service of choice for thousands of Torontonians as
well as visiting guests from all over the world. It is available in two versions of petrol and diesel and has been a very reasonable price.

Feel free to surf to my web-site - male model workout -

I was pretty pleased to find this web site. I want to to thank you for ones time for
this particularly wonderful read!! I definitely appreciated every little bit Insurance Tips Of The Day
- it and i also have you
book-marked to check out new things on your website.

Hi there, I read your new stuff on a regular basis.
Your writing style is witty, keep up the good work!

Feel free to surf to my weblog: x tour ed sheeran -

of course like your web-site however you need to check the spelling on several of your posts.
Several of them are rife with spelling problems and I in finding it very troublesome to
inform the reality nevertheless I'll definitely come back again.

creditos rapidos y faciles -

It's very effortless to find out any topic on web as compared to books,
as I found this piece of writing at this web
wholesale MLB jerseys -

This Big Fat Lotteries teams all vary in size and will depend on the lotto game played, you will also
find along with the introduction of a Superenalotto syndicate competitors of 100 members.
Selamat menikmati informasi yang kami sajikan dan semoga informasi ini dapat membantu anda dalam bermain judi online dan taruhan bola.
With the president announcing his support for construction of the southern leg of the KXL,
even offering to "cut through the red tape" to speed up the process, this would seem an opportune time to put him on the spot with our "reasonable compromise" as embodied by the Terry bill.

Check out my web page togel sgp -

Globalization will be the engine of progress by facilitating export- led growth technique of
developing nation.

Also visit my site; Search Solutions LLC blog post -

After looking at a number of the blog posts on your web page, I
really appreciate your technique of writing a blog.
I saved it to my bookmark site list and will be
checking back soon. Please visit my website too and let me know your opinion.

my homepage ... Upload dan Request -

I have been surfing online more than three hours today, yet I never
found any interesting article like yours.
It is pretty worth enough for me. Personally, if all website owners and bloggers made good content
as you did, the net will be much more useful than ever before.|
I could not refrain from commenting. Well written!|
I will immediately grab your rss as I can not in finding your e-mail subscription link or newsletter service.
Do you've any? Please permit me recognize so that I could subscribe.
It's perfect time to make some plans for the future and it is
time to be happy. I have read this post and if I could I desire to suggest you few interesting things or tips.
Perhaps you can write next articles referring to
this article. I want to read even more things about it!|
It is the best time to make a few plans for the future and it's time to be happy.
I have read this post and if I could I desire to counsel you
few fascinating things or suggestions. Maybe you could write next articles
regarding this article. I desire to read more issues approximately it!|
I have been browsing on-line more than 3 hours nowadays, yet I never discovered any attention-grabbing article like
yours. It is beautiful worth enough for me.
In my view, if all web owners and bloggers made excellent content as you did, the web might be
much more useful than ever before.|
Ahaa, its pleasant conversation on the topic of this article
at this place at this web site, I have read all
that, so now me also commenting at this place.|
I am sure this article has touched all the internet people, its really really nice piece of writing on building up
new blog.|
Wow, this post is good, my sister is analyzing such things, thus I am
going to convey her.|
bookmarked!!, I really like your website!|
Way cool! Some extremely valid points! I appreciate you penning this post and also the rest
of the site is also really good.|
Hi, I do believe this is an excellent website.
I stumbledupon it ;) I will return once again since i have book-marked
it. Money and freedom is the greatest way to change, may you be
rich and continue to help others.|
Woah! I'm really loving the template/theme of this site.
It's simple, yet effective. A lot of times it's
tough to get that "perfect balance" between usability and appearance.
I must say you have done a great job with this. In addition, the blog loads very fast for me on Chrome.
Exceptional Blog!|
These are actually fantastic ideas in regarding blogging.
You have touched some nice factors here. Any way keep up wrinting.|
I love what you guys are usually up too. Such clever work and reporting!
Keep up the superb works guys I've added you guys to my own blogroll.|
Hi there! Someone in my Facebook group shared this site with us so I came to check it out.
I'm definitely enjoying the information. I'm book-marking and will be tweeting this to my followers!
Fantastic blog and wonderful design and style.|
I really like what you guys are usually up too. This sort of clever work and
coverage! Keep up the terrific works guys I've incorporated you guys to
my own blogroll.|
Hello would you mind sharing which blog platform you're working with?
I'm planning to start my own blog in the near future but I'm having a
difficult time choosing between BlogEngine/Wordpress/B2evolution and
Drupal. The reason I ask is because your design seems different then most blogs and I'm looking for something completely unique.
P.S My apologies for getting off-topic but I had to ask!|
Hi would you mind letting me know which hosting company
you're using? I've loaded your blog in 3 completely different browsers
and I must say this blog loads a lot quicker then most.
Can you recommend a good hosting provider at a fair price?
Many thanks, I appreciate it!|
I really like it when individuals get together and share ideas.
Great blog, stick with it!|
Thank you for the good writeup. It in fact was a amusement account it.
Look advanced to far added agreeable from you! However,
how can we communicate?|
Hi there just wanted to give you a quick heads up. The words in your post seem to
be running off the screen in Opera. I'm not sure if this is a
formatting issue or something to do with web browser compatibility but I thought I'd post to let you know.
The design and style look great though! Hope you get the problem fixed
soon. Thanks|
This is a topic that is close to my heart... Thank you! Exactly where are your contact details though?|
It's very effortless to find out any matter on net as compared to books, as I found this
piece of writing at this web site.|
Does your website have a contact page? I'm having a
tough time locating it but, I'd like to shoot you an email.
I've got some creative ideas for your blog you might be interested in hearing.
Either way, great blog and I look forward to seeing
it improve over time.|
Hey there! I've been reading your weblog for a while now and finally got the courage to go ahead and give you a shout
out from Humble Tx! Just wanted to tell you keep
up the fantastic work!|
Greetings from California! I'm bored to tears at work so I decided to browse your website on my iphone during
lunch break. I love the knowledge you provide here and can't wait to take a look
when I get home. I'm amazed at how quick your blog loaded on my phone ..
I'm not even using WIFI, just 3G .. Anyhow, very good site!|
Its such as you read my thoughts! You appear to grasp so
much about this, such as you wrote the book in it or something.
I think that you just can do with a few % to power the message home a bit, however instead of that, this is magnificent blog.

A fantastic read. I'll certainly be back.|
I visited multiple websites but the audio feature for audio
songs existing at this web page is genuinely excellent.|
Hello, i read your blog occasionally and i own a similar
one and i was just curious if you get a lot of spam comments?
If so how do you stop it, any plugin or anything you can advise?
I get so much lately it's driving me insane so any help is very much appreciated.|
Greetings! Very useful advice in this particular article!
It's the little changes that produce the most significant changes.
Thanks for sharing!|
I absolutely love your blog.. Great colors & theme.
Did you create this website yourself? Please reply
back as I'm hoping to create my own site and would like to learn where you
got this from or just what the theme is called. Thank you!|
Howdy! This post couldn't be written any better! Looking at this post
reminds me of my previous roommate! He continually kept talking about this.
I am going to send this post to him. Pretty sure he will have a very good read.
Thanks for sharing!|
Whoa! This blog looks just like my old one! It's on a entirely different topic but
it has pretty much the same page layout and design. Excellent choice of colors!|
There's certainly a great deal to know about this subject.
I really like all the points you have made.|
You made some really good points there. I looked on the web to
learn more about the issue and found most individuals will go along
with your views on this web site.|
Hi, I log on to your blogs daily. Your humoristic style
is witty, keep it up!|
I simply could not leave your web site prior
to suggesting that I extremely enjoyed the standard info a
person provide in your visitors? Is going to be again incessantly in order to check out new posts|
I wanted to thank you for this wonderful read!! I absolutely enjoyed every
little bit of it. I have you book-marked to check out new things you
What's up, just wanted to mention, I enjoyed this post.
It was funny. Keep on posting!|
Hi there, I enjoy reading all of your article post.
I like to write a little comment to support you.|
I always spent my half an hour to read this blog's posts everyday along with a mug
of coffee.|
I constantly emailed this web site post page to all my associates, for the reason that if like to read it then my contacts will too.|
My programmer is trying to convince me to move to .net from PHP.
I have always disliked the idea because of the costs.
But he's tryiong none the less. I've been using WordPress on a variety of websites for about a year and am worried
about switching to another platform. I have heard very good things about
Is there a way I can import all my wordpress posts into
it? Any help would be really appreciated!|
Hello there! I could have sworn I've been to this web
site before but after browsing through some of the
articles I realized it's new to me. Anyways, I'm certainly pleased I found it and I'll
be bookmarking it and checking back frequently!|
Terrific article! This is the kind of info that should be shared
across the net. Shame on Google for no longer positioning this submit higher!
Come on over and visit my site . Thank you =)|
Heya i'm for the first time here. I came across this board and I find It really useful & it helped me out a lot.
I hope to give something back and help others like you helped me.|
Greetings, I do think your site could be having web browser
compatibility issues. Whenever I look at your blog in Safari, it looks fine
but when opening in I.E., it has some overlapping issues.
I merely wanted to provide you with a quick heads up! Apart from that, fantastic website!|
A person essentially assist to make significantly posts I might state.
That is the very first time I frequented your web page and so far?
I amazed with the analysis you made to make this actual publish extraordinary.
Fantastic process!|
Heya i am for the primary time here. I came across this board and
I in finding It truly useful & it helped me out a lot. I hope to offer something back and aid others such as you aided
Hi! I simply want to give you a big thumbs up for the
excellent information you've got right here on this post.
I'll be coming back to your blog for more soon.|
I always used to study paragraph in news papers but now as I am a
user of net so from now I am using net for content, thanks to web.|
Your way of explaining the whole thing in this article is in fact fastidious, all can without difficulty be aware of it, Thanks a lot.|
Hi there, I found your blog by way of Google even as searching for a similar subject, your
website came up, it seems good. I have bookmarked it in my google bookmarks.

Hi there, simply turned into alert to your blog thru Google, and found that it is really informative.
I'm going to watch out for brussels. I'll appreciate when you proceed this in future.
A lot of people will probably be benefited from your writing.
I am curious to find out what blog system you have been utilizing?

I'm experiencing some small security problems with my latest blog and I
would like to find something more safe. Do you have any solutions?|
I'm extremely impressed with your writing skills and also with the layout on your blog.
Is this a paid theme or did you modify it yourself? Either way keep up the
excellent quality writing, it's rare to see a great blog
like this one these days.|
I'm really inspired along with your writing skills and also with the format
in your blog. Is this a paid subject matter or did you modify it
your self? Anyway keep up the nice quality writing,
it's uncommon to look a great blog like this one nowadays..|
Hi, Neat post. There is a problem together with your site in internet explorer, would check this?
IE nonetheless is the market leader and a big component
of other folks will pass over your magnificent writing because of this problem.|
I'm not sure where you are getting your info, but great topic.
I needs to spend some time learning more or understanding more.
Thanks for great info I was looking for this information for my mission.|
Hello, i think that i saw you visited my website so i came to “return the favor”.I'm attempting to find things to improve my website!I suppose
its ok to use {some of|a few o

My blog: Dominion Season -

Thank you for the chance to post in this site. I would like to thanks you
about all the work for do all that you did there you needed.
Thanks again!

my website: buy account lol -

Baltek porcelanato liquido - Líquido 2D Decorado é básicamente mesmo acima, mas durante sua aplicação foram feitos desenhos geométricos ( quadrados, linhas, triângulos, círculos, and so forth), ou desenhos orgânicos ( curvas, linhas suaves, riscos), ou mesmo
pequenos desenhos feitos a mão por nossa equipe, ou letras/nomes/números.

It is exhausting to tell, but in case you're feeling crampy,
it could be your uterus stretching to get ready for a child.

my site - getting pregnant after miscarriage with pcos -

At Wake Forest Baptist Medical Facility, the Athletics Medicine Physicians
goal to manage a large range of clients-- from best level expert athletes to the weekend fighter.

Have a look at my web site ... forest school horsham ( Ahmad - )

Hey I know this is off topic but I was wondering if
you knew of any widgets I could add to my blog that automatically tweet my newest twitter
updates. I've been looking for a plug-in like this for
quite some time and was hoping maybe you would have some experience with something like this.

Please let me know if you run into anything.
I truly enjoy reading your blog and I look forward to your new updates.

My blog - Outdoor Lighting Companies -

This is very interesting, You are a very skilled blogger.
I have joined your feed and look forward to seeking more of your magnificent post.
Also, I have shared your site in my social networks!

Albertha -

It's the best time to make some pllans for the future and it's time to be happy.

I have read this posst and if I could I want to suggst you some interesting things or tips.
Maybe you could write next articles referring to this article.

I wish to read more things about it!

my site :: free Fire Emblem Heroes triche 2015

Hi there to all, it's genuinely a good for me to visit this site, it
consists of important Information.

my blog post :: professional landscape lighting company -

Along with the car sales, the Japanese used car sellers also supply the dismantled parts of the vehicles in cube containers of size 20ft or 40 ft.
Now you will soon forget about key-fobs as well since new biometric revolution is going to allow
you to enter your car with your fingerprint, face detection or eyeball recognition. 00 per gallon, depending on market prices, but that is
a good benchmark.

My webpage :: גיטרות איכותיות בתל אביב -

Olá , só queria dizer, eu amei isto post .
Foi inspirando . Continue postando lá!

Sinta se livre para surfe meu local bolos caseiros -

Howdy! This is my first visit to your blog!
We are a group of volunteers and starting a new initiative in a community in the same
niche. Your blog provided us valuable information to work on. You have done a wonderful job!

Feel free to visit my page ... regali battesimo -

An outstanding share! I've just forwarded this onto
a colleague who was conducting a little homework on this.
And he actually ordered me lunch simply because I found it for him...
lol. So let me reword this.... Thanks online pharmacy for - the meal!!
But yeah, thanks for spending the time to talk about this subject here on your blog.

The proceeds of selling your older car can go to the operations of the charity like giving food or
clothing to the family that they supported. Producing a very light car will drop its fuel consumption, and oil companies will not
appreciate this. 00 per gallon, depending on market prices, but that is a good benchmark.

Look into my website :: bot takipçi -

I constantly emailed this weblog post page to all my friends, as if like to read it then my contacts will too.

Also visit my web page - thay mat kinh iphone 6 -

I love reading through a post that will make men and women think.
Also, many thanks for allowing me to comment!

Review my website :: cara daftar email ugm -

Feel free to surf to my web рage :: dog t shirts
іn bulk - Mamie - ,

A mente por trás da Barbie original - aquela de seios fartos e cintura fina - pertencia a uma senhora, Ruth Handler.

Have a look at my site - jogos de cortar cabelo da barbie e maquiar

TҺen ѕhoԝ them how to make stars applying ѕix green triangles аnd 1 yellow hexagon pattern blocks.

Мү weblog - customised dog t shirts ( Xiomara
- )

Way cool! Some very valid points! I appreciate you penning this
post and also the rest of the website is also
really good.
wholesale MLB jerseys -

I think this is one of the most important information for me.

And i'm glad reading your article. But should remark on some general things,
The web site style is wonderful, the articles is really excellent : D.
Good job, cheers
cheap MLB jerseys -

The girls gathered гight ɦere toԀay aгe
all directors of museums іn the boroughs or upper гeaches of Manhattan—not neϲessarily in Museum
Mile ߋr Midtown Manhattan,” explained Martha Schwendener, аn art critic moderating tһe
panel, whіch integrated Pasternak tһe Bronx Museum'ѕ Holly Block thе future iѕ
female sweatshirt etsy - Studio Museum іn Harlem
's Thelma Golden ɑnd thᥱ Queens Museum 's Laura Raicovich.

Our latest addition to the limousine fleet is the 7 passenger Cadillac
Escalade. Strict standards and excellence in service is what
made Cullitons the premiere limo service of choice for
thousands of Torontonians as well as visiting guests from all over the world.

Go to the search tool and search for keyword like used cars in Bangalore, pre owned cars and second hand
cars in Bangalore.

Also visit my page: online piano lessons -

My web site :: refugees աelcome shirt berlin - Leta - -


Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.