Professional Documents
Culture Documents
Kino App Inventor 1
Kino App Inventor 1
58% DE DESCUENTO *
Hello,
I was trying to send some data from an Arduino Ble4 device to a mobile device
(android). I tried with the wonderful MIT App Inventor 2 but the Ble features are
not implemented yet.
About This Instructable
So after looking around for a while, I have found an app called Kino App
Inventor, that is written for Iphone and Ipad devices.
8 9.481 views Posted:
The app is really easy and good looking and in a few I was able to do a lot of Aug 23, 2014
interesting things.
15 favorites License:
Inventor12andBLEBluetoothLow
Step 1: Intro Energy/)
; Group
(/file/FM462FGHZ6T61GZ/)
In Kino App Inventor you have a section related to the input (internal as the Gps
or Gyroscope of your mobile) or linked to external resources as the Bluetooth or
Internet, that is calles "Controllers" (A in the image).
A second section is dedicated to the so called "Receptors" aimed mostly to
show some features. (B in the image). The third and really useful part is called
(Labels), and it's used to show the results coming mostly from the Controllers (C
in the image below).
Another useful part is called "Metters" (the developer is Spanish and maybe
there is an incorrect double T in Meters). This part is useful to show graph and
other meters of the data. (D in the image).
Last but not least you can do your own scripts in Lua and this add a great
performance to your experiments. Now we can start.
Switch on your BLE device (I am using a Xadow Ble from Seeed Studio, but
it should work with any other).
Find in the controllers section the "Bluetooth 4.0". Drag it and keep it pressed
until a panel is sliding on the right side of the screen.
press th "+" sign and add your Ble device
Kino App Inventor 1.2 and BLE (Bluetooth Low Energy) + Xadow by
fabiodagnano (/member/fabiodagnano/) in technology (/tag/typeid/categorytechnology/)Earduino (/tag/typeid/categorytechnology/channelarduino/)
(/file/F7U1D2BHZ6T69SC/)
In Arduino you can easlily send data with the Serial.print command.
Kino App
I suggest to Inventor 1.2Serial
use the Software andexample
BLE (Bluetooth
in order to have Low Energy)
a second virtual + Xadow by
serial port(/member/fabiodagnano/)
fabiodagnano in Arduino, different from the standard
in technology 0 and 1 digital pins used
(/tag/typeid/categorytechnology/) Efor the (/tag/typeid/categorytechnology/channelarduino/)
arduino
standard serial transmission.
Download h (/id/KinoAppInventor12andBLEBluetoothLowEnergy/) 8 Steps .
For instance if we want to see something in the Serial Monitor we use the
Serial.print(data) command, and if we want to send it through theBLE Collection
device we I Made it! Favorite Share
use Serial1.print(data) where Serial1 is the virtual/software serial port.
To be sure that the transmission is fine we can send numbers from Arduino with
a simpe code like the following.
This produces a series of numbers starting from 0 to 99, and then starts again.
This is commonly called "saw curve".
Now we have to decode the data in Kino.
BLE_saw.ino (/files/orig/F0X/XKEV/HZ6T6GAP/F0XXKEVHZ6T6GAP.ino)
(/file/FOY25HIHZ6T6A9G/)
Kino App Inventor 1.2 and BLE (Bluetooth Low Energy) + Xadow by
fabiodagnano (/member/fabiodagnano/) in technology (/tag/typeid/categorytechnology/)Earduino (/tag/typeid/categorytechnology/channelarduino/)
(/file/FC0BXQKHZ6T6EAJ/)
(/file/FJGXVJ6HZ6T6EAQ/)
In the first row we are declaring that the variable "value" is an integer number.
In the second row this variable is equal to
[name_of_the_controller.name_of_the_feature] (Mind the brackets!).
Now we can use this variable in our sketch.
Use a Label (see previuos steps) and use Script as source and "int.value" as
target.
if everything is fine you should see the same value in both labels (the first
coming directly from the Ble device, the second passing through the Scripts in
the first image).
_____
dim led as integer
if value < 50 then led = 1
else led = 0
end
______
Step 7: Show the results!
(/file/F1KUIBAHZ6T6A9Q/)
Now we can add other features from Metters, always using script as a source
and int.value as target.
You can do a lot more with the Kino App Inventor and Arduino Ble (Xadow),
enjoy!
Kino App Inventor 1.2 and BLE (Bluetooth Low Energy) + Xadow by
fabiodagnano (/member/fabiodagnano/) in technology (/tag/typeid/categorytechnology/)Earduino (/tag/typeid/categorytechnology/channelarduino/)
(/file/FKBJALBHZ6T6KF9/)
(/file/FJD68QWHZ6T6LL4/)
To do this we need to add few lines and to send the value of the battery charge.
You can refer to the first image to get the value from the Xadow.
Now we have to remap the values to get the charge range from 0 to 100%.
At a maximum charge my battery can give 4.23 volts and below 3.3 it's dead.
So I do 4.233.3 and I have 0.93.
100/0.93 gives 107.5 that is the proper ratio to have my values in a percent
base.
So I add:
dim charge as double
charge= [BLE1.ffe0/ffe01]
charge=(charge3.3)*107.5
At this point I can Use this value to display the battery charge with a meter.
In the second image you can se the volts (3.95) the remapped value (71) and a
graph.
Kino App Inventor 1.2 and BLE (Bluetooth Low Energy) + Xadow by
fabiodagnano (/member/fabiodagnano/) in technology (/tag/typeid/categorytechnology/)Earduino (/tag/typeid/categorytechnology/channelarduino/)
stonez56 (/member/stonez56)
It was a pity that I don't have an iPhone. 2 years ago Reply
I was also looking BLE implementation libraries for Android App Inventor 2, but
no luck so far. Any one know about this?
Flag
I
did it with a trick: use a third part software for ble (for instance Ble
tool from Tony was perfect for me) and use his log file in App Inventor
2. It works in real time.
Flag
2 years ago
Where can I find the third party s/w for BLE for app inventor2?
Flag
2 years ago
https://groups.google.com/forum/#!topic/appinventoropen
sourcedev/QVo4K4smLpE
Flag
Flag
FEATURED CHANNELS
Woodworking Paper Kitchen Hacks Puzzles Space Ice Cream Homesteading 3D Printing Sewing
(/tag/type (/tag/type (/tag/type (/tag/type (/tag/type (/tag/type (/tag/type (/tag/type (/tag/type
id/category id/category id/keyword id/category id/keyword id/keyword id/category id/category id/category
workshop/channelcraft/channel kitchen%20hacks/?play/channel astronomy/? ice%20cream/? home/channel technology/channel
craft/channel
woodworking/) paper/) sort=FAVORITES) puzzles/) sort=FAVORITES)sort=FAVORITES)homesteading/) 3DPrinting/) sewing/)
Newsletter
Kino App Inventor 1.2 and BLE (Bluetooth Low Energy) + Xadow by
Join 2 million + to receive instant
fabiodagnano (/member/fabiodagnano/) in technology (/tag/typeid/categorytechnology/)Earduino (/tag/typeid/categorytechnology/channelarduino/)
DIY inspiration in your inbox.
Download h (/id/KinoAppInventor12andBLEBluetoothLowEnergy/)
enter email I'm in!
8 Steps .
Collection I Made it! Favorite Share
Mobile
Download our apps!
Android » (https://play.google.com/store/apps/details?id=com.adsk.instructables)
iOS » (https://itunes.apple.com/app/instructables/id586765571)
Windows » (http://apps.microsoft.com/windows/enus/app/7afc8194c771441a959054250d6a8300)
About Us Find Us
Who We Are (/about/) Facebook (http://www.facebook.com/instructables)
Advertise (/advertise/) Youtube (http://www.youtube.com/user/instructablestv)
Contact (/about/contact.jsp) Twitter (http://www.twitter.com/instructables)
Jobs (/community/PositionsavailableatInstructables/)
Pinterest (http://www.pinterest.com/instructables)
Help (/id/howtowriteagreatinstructable/)
Google+ (https://plus.google.com/+instructables)
Resources
For Teachers (/teachers/)
Artists in Residence (/air)
Gift Premium Account (/account/give?sourcea=footer)
Forums (/community/)
Answers (/tag/typequestion/?sort=RECENT)
Sitemap (/sitemap/)
Kino App Inventor 1.2 and BLE (Bluetooth Low Energy) + Xadow by
fabiodagnano (/member/fabiodagnano/) in technology (/tag/typeid/categorytechnology/)Earduino (/tag/typeid/categorytechnology/channelarduino/)