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



allways i used to read smaller articles or reviews which as well clear thgeir motive, and that is
also happening with this paragraph which I am reading at this place.

my homepage ... Castle Creeps TD iPhone -

Costs there can be as minimal as $500 for your automobile in a excellent
situation. Producing a very light car will drop its fuel consumption, and oil companies will not appreciate this.
This is a rear-wheel drive car, and that means that unlike front-wheel drive cars -
which typically can't be used much beyond B class - the MR2 can be upgraded all
the way to the top of A - although going into S class is probably a bit much.

Also visit my weblog passcode unlock -

Ido accept as true with all of the ideas
you hae offered in yourr post. They are very convincing and wiol crtainly work.
Still, the posts are tooo shrt for starters. May you please
prolong themm a bit from next time? Thank you for the post.

Feel free to surf to my homepage; Castle Creeps TD hack
android download -

Hey there! I knoww this is kinda off topiic butt I was wonderring
if you knew where I could get a captcha plugin for my comment form?
I'm using the same blog platform as yours and I'm
having problems finding one? Thanks a lot!

Also visit my blog :: Castle Creeps TD hacdk no surveys no password -

I couldn't refrain from commenting. Exceptionally well written!

My website ... Pharmacy price check -

Heyya 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.

Also visit my page :: amazing Birmingham escorts ( Mable - )

You've made some good points there. I looked on the web
for more info about the issue and found most individuals will go
along with your views on this site.

My web-site :: IPL 2017 Schedule -

I rwally lioke whatt you guys ten tto bbe upp too. This kind off lever work annd exposure!

Keepp upp the god worrks guys I've included yyou guys tto myy
persomal blogroll.

Havve a loook att mmy site Jane -

Can I simply say what a relief to discover somebody that truly understands what
they are discussing online. You certainly understand how to bring an issue to light and make it important.

More and more people need to look at this and understand this
side of the story. I was surprised you are not more popular since you surely have the gift.

Also visit my web blog :: "quantum break" -

Thanks for the opportunity to post in this website. I need to thanks you about all the work you needed for do all
that you did there. Thanks again!

Review my webpage buy smurf lol -

For most recent information you have to visit the web and
on the web I found this site as a finest web site for hottest updates.

Here is my web-site ... Pharmacy -

What's up, just wanted to mention, I loved this blog post.

It was inspiring. Keep on posting!

my page :: Pharmacy -

Running revolution has been identified in our society,
with the assistance of medical professional, people today presently translate into a
new way to maximum release their feet.

Also visit my webpage: health insurance companies ( Hester - )

I will right away snatch your rss feed as I can't to find your email subscription link or newsletter service.

Do you've any? Please permit me recognise in order that I
could subscribe. Thanks.

Here is my site - Pharmacy -

Hi, I think your web site may be having internet browser compatibility issues.
When I look at your website in Safari, it looks
fine however, when opening in I.E., it's got some overlapping issues.
I merely wanted to give you a quick heads up! Other than that, wonderful website!

Also visit my web blog; Pharmacy -

Excellent blog here! Also your website loads up fast!
What host are you using? Can I get your affiliate link to your host?
I wish my site loaded up as quickly as yours lol

Also visit my homepage: online meds -

Feel free to visit my blog post :: ΠΡΟΩΘΗΣΗ ΙΣΤΟΣΕΛΙΔΩΝ -

You ought to take part in a contest for one of the best blogs online.
I most certainly will recommend this blog!

Feel free to surf to my web blog: Pharmacy -

Simply wish to say your article is as astonishing. The clarity
in your post is simply excellent and i can assume you are an expert on this subject.
Fine with your permission allow me to grab
your feed to keep up to date with forthcoming post. Thanks
a million and please keep up the gratifying work.

Also visit my web-site Pharmacy -

It's the best time to make some plans for the future and it's time
to be happy. I've read this post and if I could I desire to suggest you few interesting things or tips.
Maybe you can write next articles referring to this
article. I want to read even more things about it!

Here is my blog Pharmacy -

When I initially commented I clicked the "Notify me when new comments are added" checkbox and now each time
a comment is added I get four e-mails with the same comment.
Is there any way you can remove me from that service?

My site Pharmacy -


Check out my web-site - ラメラエッセンス -

Hi! I know this is somewhat off topic but I was wondering if you
knew where I could find a captcha plugin for my
comment form? I'm using the same blog platform as yours and I'm having problems finding one?
Thanks a lot!

Here is my web-site: price auctions -

Do you have a spam problem on this blog; I also am a blogger, and I was wanting to know your situation; many of us
have created some nice methods and we are looking to exchange methods with others, please shoot me an e-mail if interested.

Feel free to surf to my web blog how to play co op skill games fifa 17 ( Helen - )

These are genuinely fantastic ideas in concerning blogging.
You have touched some nice factors here. Any way keep up wrinting.

My web blog; cheap longchamp bag -

Hoqdy would yyou miind syating whicxh bog platform you're using?
I'm going to stazrt my oown boog soon bbut I'm having a diffficult time deciding between BlogEngine/Wordpress/B2evolution andd Drupal.

Thee reasn I ask iis becausse yoour dsign andd stylee seeems
differenjt then moost bllogs andd I'm looking ffor sonething
compoletely unique. P.S My apolgies for getting off-topic butt I haad too ask!

My site ... Jane -

My developer is trying to convince me to move to .net from PHP.
I hhave always disliked the idea because of the costs. But he's tryiong none the less.
I've been using Movable-type on numerous websites for aabout a
year and am anxious abokut switching to another platform.
I hav heard excellent things about
Is there a way I can import all my wordpress
content inmto it? Anny help would be greatly appreciated!

my web site ... Neurolon Review -

I've been browsing online more than three hours today, yet I never found any interesting article like yours.

It's pretty worth enough for me. In my opinion, if all site owners and
bloggers made good content as you did, the web will be much
more useful than ever before.|
I couldn't refrain from commenting. Very well written!|
I'll right away take hold of your rss as I can't in finding your email subscription link or
newsletter service. Do you have any? Kindly allow me realize so that I may just subscribe.
It's appropriate 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
some interesting things or advice. Perhaps you can write next
articles referring to this article. I desire to read even more things
about it!|
It is the best time to make some plans for the future and it's
time to be happy. I've read this publish and if I may just I
want to counsel you few interesting issues or tips. Perhaps you can write subsequent articles regarding this article.
I desire to learn even more issues about it!|
I've been surfing on-line greater than three hours today, yet I never discovered any interesting article like yours.
It is lovely worth enough for me. In my view, if all
site owners and bloggers made just right content material as
you did, the web might be much more useful than ever
Ahaa, its fastidious conversation concerning this post here at this web site, I have read all
that, so now me also commenting here.|
I am sure this paragraph has touched all the internet people, its really really nice piece of writing on building
up new website.|
Wow, this article is fastidious, my sister is analyzing
these things, thus I am going to let know her.|
Saved as a favorite, I really like your blog!|
Way cool! Some very valid points! I appreciate you writing this article and also
the rest of the website is really good.|
Hi, I do think this is a great website. I stumbledupon it ;) I am going to return yet again since i have book marked it.
Money and freedom is the best way to change, may you be rich and continue to help other people.|
Woah! I'm really loving the template/theme of this blog.
It's simple, yet effective. A lot of times it's difficult to get that "perfect balance" between superb usability and appearance.
I must say you've done a very good job with this. In addition, the blog loads
extremely quick for me on Internet explorer. Excellent Blog!|
These are genuinely great ideas in concerning blogging. You have touched some fastidious factors here.
Any way keep up wrinting.|
I really like what you guys tend to be up too.
This type of clever work and exposure! Keep up the very good
works guys I've added you guys to blogroll.|
Hey! Someone in my Myspace group shared this website with us so I came to take a look.
I'm definitely enjoying the information. I'm bookmarking and will
be tweeting this to my followers! Exceptional blog and excellent design and
I like what you guys are up too. This kind of clever work and
reporting! Keep up the amazing works guys I've included you guys to blogroll.|
Howdy would you mind stating which blog platform you're working with?

I'm looking to start my own blog in the near future but I'm having a difficult time
deciding between BlogEngine/Wordpress/B2evolution and Drupal.

The reason I ask is because your layout 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
Howdy would you mind letting me know which hosting company you're working with?
I've loaded your blog in 3 different internet browsers and I must say this blog
loads a lot quicker then most. Can you recommend a good hosting
provider at a honest price? Kudos, I appreciate it!|
I like it when people get together and share ideas. Great
blog, keep it up!|
Thank you for the auspicious writeup. It in fact was a amusement account it.
Look advanced to more added agreeable from you! However, how could we communicate?|
Howdy just wanted to give you a quick heads up. The text in your post seem to be running off the screen in Safari.
I'm not sure if this is a format issue or something to do with internet browser compatibility but I figured I'd post
to let you know. The style and design look great though!
Hope you get the issue fixed soon. Kudos|
This is a topic that is near to my heart... Best wishes! Where are your
contact details though?|
It's very simple to find out any matter on net as compared to books, as I found this article at
this web page.|
Does your website have a contact page? I'm having trouble locating it
but, I'd like to send you an e-mail. I've got some creative ideas for your blog you might be interested in hearing.
Either way, great site and I look forward to seeing it improve over time.|
Hola! I've been following your web site for some time now and
finally got the bravery to go ahead and give you a shout out from Houston Texas!
Just wanted to mention keep up the fantastic job!|
Greetings from Carolina! I'm bored at work so I decided to check out your website on my iphone during lunch break.

I really like the info you provide here and can't wait
to take a look when I get home. I'm shocked at how quick your blog loaded on my mobile ..
I'm not even using WIFI, just 3G .. Anyhow, awesome site!|
Its like you read my thoughts! You appear to grasp a lot approximately this, like
you wrote the ebook in it or something. I feel that you just
could do with a few % to drive the message house a little bit, but other than that, this
is magnificent blog. A fantastic read. I will definitely be back.|
I visited many sites but the audio quality for
audio songs current at this web site is really superb.|
Hi, i read your blog from time to time and i own a similar one and i was
just wondering if you get a lot of spam responses? If so how do you reduce it, any plugin or anything you can recommend?
I get so much lately it's driving me insane so any assistance
is very much appreciated.|
Greetings! Very helpful advice in this particular post! It's the little changes that make
the most important changes. Thanks for sharing!|
I absolutely love your site.. Very nice colors & theme.
Did you build this web site yourself? Please reply back
as I'm hoping to create my own personal blog and would love
to find out where you got this from or what the theme is named.

Hello there! This article couldn't be written any better!
Going through this post reminds me of my previous roommate!
He always kept talking about this. I will forward
this article to him. Fairly certain he will have a great read.
Many thanks for sharing!|
Wow! 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. Great choice of colors!|
There's certainly a great deal to learn about this topic.
I love all of the points you have made.|
You made some really good points there. I looked on the web for
more info about the issue and found most people will go along with your views on this website.|
Hi, I read your blogs like every week. Your story-telling style is witty,
keep up the good work!|
I simply couldn't leave your site prior to suggesting that I
actually loved the usual information a person supply on your guests?
Is gonna be back frequently to check out new posts|
I want to to thank you for this fantastic read!! I absolutely loved every bit of it.
I have you saved as a favorite to check out new stuff you post…|
Hi there, just wanted to mention, I liked this post.
It was funny. Keep on posting!|
Hi there, I enjoy reading all of your post. I like to write a little comment to support
I constantly spent my half an hour to read
this blog's content daily along with a cup of coffee.|
I always emailed this blog post page to all my friends, as
if like to read it after that 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 Movable-type on a variety
of websites for about a year and am nervous about
switching to another platform. I have heard great things about
Is there a way I can import all my wordpress posts into
it? Any kind of help would be greatly appreciated!|
Hello! I could have sworn I've visited your blog before but after browsing through many of the articles I
realized it's new to me. Anyways, I'm definitely happy I stumbled upon it and I'll be book-marking it and checking back frequently!|
Great work! That is the kind of info that are supposed to be shared across the internet.
Shame on the search engines for now not positioning this submit upper!
Come on over and seek advice from my site . Thanks =)|
Heya i am for the first time here. I found this board and
I find It really useful & it helped me out much. I hope to give something back and help others like you helped me.|
Hi, I think your blog may be having browser compatibility problems.
Whenever I take a look at your blog in Safari, it looks fine
however, if opening in IE, it has some overlapping issues.
I simply wanted to give you a quick heads up! Apart from that, wonderful site!|
Someone essentially lend a hand to make critically posts I would state.
That is the first time I frequented your website page and thus far?
I surprised with the analysis you made to create this particular publish extraordinary.
Magnificent activity!|
Heya i am for the primary time here. I came across this
board and I find It really useful & it helped me out much.
I hope to give one thing again and aid others such as you aided me.|
Hey there! I just would like to give you a huge thumbs up for
your excellent info you've got right here on this post.
I am returning to your website for more soon.|
I all the time used to read paragraph in news papers but now as I am a user of net so from now I am using net for
articles, thanks to web.|
Your means of telling all in this paragraph is in fact nice, every one can without difficulty understand it, Thanks
a lot.|
Hello there, I found your website via Google even as searching for a similar subject, your website got here up,
it appears good. I have bookmarked it in my google bookmarks.

Hi there, simply turned into aware of your blog
through Google, and found that it's really informative.
I am gonna watch out for brussels. I'll appreciate if you happen to proceed this in future.
A lot of folks might be benefited from your writing.
I'm curious to find out what blog platform you are utilizing?
I'm having some minor security problems with my latest blog and I'd like
to find something more safeguarded. Do you have any solutions?|
I'm extremely impressed with your writing skills as well as with the layout on your weblog.

Is this a paid theme or did you modify it yourself?
Either way keep up the excellent quality writing, it is rare to see a great blog like this one today.|
I'm really inspired along with your writing talents and also with the format to your blog.
Is this a paid topic or did you customize it yourself?
Either way stay up the nice high quality writing, it's uncommon to
see a nice weblog like this one these days..|
Hi, Neat post. There's an issue with your website in web explorer, would test this?
IE still is the marketplace chief and a huge part of folks will pass over your magnificent writing due to this problem.|
I am not sure where you're getting your info, but great topic.
I needs to spend some time learning much more or understanding more.
Thanks for great info I was looking for this information for my mission.|
Hi, i think that i saw you visited my blog so i came to
“return the favor”.I am attempting to find things to enhance my
website!I suppose its ok to use some of y\

My web blog ... Grantchester tv -

It’s tthe bsst ttime to make slme plans foor thee future annd it’s timme tto bbe happy.
I’ve rdad thiis post and if I coluld I wan tto suggeest youu sime interesting things or advice.
Perhapss youu could wtite next articlews refrerring to thius article.
I desire to read evedn more thinjgs aboout

My bloig Kill -

I am in fact thankful to the holder of this website who has
shared this impressive paragraph at at this place.

My web site - Pharmacy -

Anyway can jog if they want to and to drop weight you're going
to have to jog or stroll every evening and make confident that it
remains consistent.

My blog post: walking dead tara comic; Lila - ,

Thank you, I have just been searching for information approximately this topic ffor
a long time and yours is the best I have foound out so far.
However, what about the conclusion? Are you positive in regards to the supply?

My website: Neurolon Supplement -

It's awesome designwd for me to have a web page, which is useful in favor of
my know-how. thanks admin

Look into my website - the zcode system -

Nowadays, the non-embryonic tissues are accustomed to providethe skin having
a variety of advantages. The skincaremarketplace is developing daily.
Today,the skincare experts have been wanting tomake use of
the base tissues to stop agingsigns for quite some
time and intruth, they have become a reality.
Get acquainted with in short about them. These are these stem cells, whichare extracted from specialized plants,
that are effective at protecting the skin from various kinds of damage.
Moreover, these stem cells areeffective at operating at
a cellular level, as it pertains for the nutrition of the skin into a excellent extent.

This really is incredible to understand you need to usethese stem tissues today, if you are coping with the indications of aging as
there'sa new formula available in the market, which is referred to as Derma Heavenly.

This skincare treatment containsexclusive stem cells to enhance the
natural splendor of the lady by taking care of herdamaged or untreated skin following the year
of 30. Examine morerelating to this antiaging treatment,with the support with this review:

read more --- > visit here -

The wider the stock you stay to find out, the superior you could chance upon the finest product.

The equipment will probably be made to increase the the flow of blood in legs, shoulders and back muscles that would also lessen the swelling that
comes about from sitting in one position for too long hours.
In this era, where time is money, the opportunity to multi-task is important.

My weblog: Viitor chair -

Hi there! I just wanted to ask if you ever have any issues with hackers?

My last blog (wordpress) was hacked and I ended up losing
several weeks of hard work due to no data backup. Do you have any solutions to protect
against hackers?

my weblog; generic cabergoline buy online shop -

屋根材としてのガルバリウム鋼板を開発・製造している製造メーカーは、既に亜鉛+アルミ+シリコンのめっきを施された鉄の薄板を仕入れて、その会社独自の表面処理、塗装や更なる表面処理、屋根材用としての加工をして中間業者に販売しているメーカーです。中にはめっき製造工程から行っているメーカーもあります。また、ガルバリウム鋼板を製造してグループ会社で屋根材に加工して販売している会社もあります。ガルバリウム鋼板は、トタンより進んだ金属屋根材です。その組成は、亜鉛、アルミ、シリコンの合金めっきを施した腐食に強い材料で、屋根材にも積極的に採用されています。屋根材や外壁材として活躍するガルバリウム鋼板ですが、鋼板圧延材を生産する大手高炉会社、そのコイル状の鋼板を大手鉄鋼会社から供給してもらい、独自の塗装、会社独自の保護材処理、屋根材料としての加工を施して、屋根材としての ガルバリウム鋼板屋根 - 材を製造するメーカーとに分かれます。近くの屋根屋さん、屋根板金の屋根屋さんは、ガルバリウム鋼板の板を問屋から仕入れて、屋根の材料に自分のところで加工する会社もあります。 ここでは主に、鋼板を製造する大手高炉会社と、屋根用に加工する屋根材としてのガルバリウム鋼板を作る会社の解説です。屋根材のガルバリウム鋼板の価格は、材料費と屋根屋の施工費・手間賃は、おおよそ平米(㎡)あたり、\5,000-から\6,000-といったところである。葺き替えの場合は、これに、下地材の交換費用、ルーフィングの交換費用、足場や養生(カバーシートなど)費、運搬費、既存の材料を処分するときには、処理費用が加算されます。

It's amazing to pay a quick visit this site and reading the views of all mates regarding this article, while
I am also eager of getting familiarity.

My web site; cheap oakley gascan sunglasses -

Pretty! This has been a really wonderful article. Thank you for providing this info.

Você pluga sr desktop, mouse, teclado, monitor, realizar
de cilada, discos externos contudo próximos periféricos em direção a dock”,
todavia portátil a interesse.

My website; notebook Lenovo i5 [ - ]

First off I want to say wonderful blog! I had a quick question that I'd like to ask if you
do not mind. I was curious to find out how you center
yourself and clear your mind before writing. I have had difficulty
clearing my mind in getting my ideas out. I do enjoy writing but it just seems like
the first 10 to 15 minutes are wasted simply just trying to figure out how to begin.
Any recommendations or hints? Kudos!

Feel free to visit my page - Bitcoin wallet size -

Hi there! I could have sworn I've been to this site before
but after reading through some of the post I realized it's new to
me. Anyways, I'm definitely delighted I found it
and I'll be book-marking and checking back often!

Feel free to visit my site ... Pharmacy -

Fragile Speedster : Sonic and Tails have become this; Sonic in the ground way (fastest character in ground) and
Tails in air.

Here is my blog :: super smash flash 2 atualizado -

Hi i am kavin, its my first time to commenting anywhere, when i
read this piece of writing i thought i could also create comment due to this good
piece of writing.

My page; Concrete Driveways Melbourne -

Faites cuire pendant 2 h. 30 environ, puis laissez-les refroidir dans le court-bouillon.

my web site :: cocotte minute -

bookmarked!!, I like your web site!

My weblog ... binary options live signals forum -

magnificent put up, very informative. I wonder why the opposite experts of this sector don't realize this.
You should continue your writing. I'm sure, you have a huge readers' base already!

My page: Pharmacy -

Thanks for finally writing about > Add new comment
| gerdsLAB hackear facebook</a>


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.