I'm quite knowledgeable of as3 and writing programs/apps in flash cs6. I've also played around with my arduino uno, which I've read is psuedo-java. Very little knowledge of c languages.
I've seen people using Bluetooth to connect to an arduino with adobe air. I have an xbee shield but not the little BT adapter with it. I don't want to rely on BT connection anyway. I want it plugged in directly to my spare android phone's USB port.
I have used a usbhost program to connect thumb drives and game controllers, so I know that USB hosting is possible. Tried it with arduino and i get lights. I want to write a flash/as3 program to control the arduino while taking advantage of the phone's capabilities, such as camera, WiFi, bt and also the graphical interface that I can create flash. How do I go about this? I haven't found an ane for this.
I have tested it and success with Arduino uno using blink example.Check this out if you interested in.
https://github.com/GIGATeam/UsbExtension
Related
I have mostly a general question, so I'm sorry if this is too broad. But I am working on plan for a robot and I wanna connect devices together.
Basically, I want to have an Android device connect to an Arduino Uno via Bluetooth, and then the Android Device connect to either another Android, or to a Bluetooth controller. The reason for this is that I want the main Android device to be used as a controller, and feed instructions to the Android device connected to the arduino, and that device to the arduino, and carry out that instruction. But is that even possible? If not, how can I work around it? And if it is possible, any examples?
Summary:
*Android Device to Android Device to Arduino via Bluetooth
*First device as a controller, second as a brain to arduino
*First communicates with second, second communicates with arduino
Yepp bro it's possible i did with some other development board other than arduino
but the important thing is concept and it's same for all developement boards.
In my project i created a connection between an android mobile & robot and then controlled its movement through an App like picking up an object using robotic arm and its motion.
I am coding an application in Android Studio that uses analog inputs from an arduino. I am trying to send analog input from an Arduino Pro mini to an Android App. However, I cannot connect straight to the phone (USB port isn't available). The method I've thought of is to connect both the phone and Arduino to PC and read the Analog input using Android Studio and Use my phone to run the application instead of an emulator. Would this work in real time.
Is it possible to have the Android Studio run the app and the app still reads information from the Arduino real time? The application reacts to analog inputs from the Arduino. So I need to find a way to access the arduino in android studio and run the app through android studio in place of its emulator
I can't find any sources so if anyone has a clue please help me. Thank You!
You should post this to the Arduino StackExchange forum: http://arduino.stackexchange.com.
A couple things:
Android Studio is just for developing Android apps, it's not going to help you read data from the Arduino. You would need to write a separate app for the PC that would moderate between the Android and Arduino. Not fun.
When you say "USB port isn't available" I assume you mean the host port. Actually, many newer Android devices are able to be a USB host, so you would just need the right dongle to be able to connect the two. Then you would use the classes in package android.hardware.usb like UsbManager to connect to the Arduino.
Another thing you might think about is getting a BlueTooth shield for your Arduino and connecting to the Android with BlueTooth.
Hey! Wanna be a real Evil Genius(TM)? Write some code to flash the LED on the Arduino like Morse Code or Navy signaling, then write some Android code to read the video from the camera and turn the LED flashes back into data! Impress your friends! Put it on your resume!
Just some random ideas to get you going. I think the folks on the Arduino StackExchange forum can be more help.
I'm using arduino Mega ADK and RedBear BLE shield.
The goal is to make arduino send sensordata to androidphone(nexus 7) via bluetooth. Sensor should be accelerometer/Gyro type.
I have used RedBears SimpleChat as a starting point to get understanding how this is suppose to work, but i'm having some problems. When i use RedBears own app from google play store and the examples that they distribute, everything works just fine. App finds arduino and i can connect to it that way.
But i can't connect to arduino without the app, it just... rejects it. I have tried changing my tablet settings anyway possible but that just doesn't seem possible.
Additionaly if i run any other code(not from the redbear i mean) to arduino, tablet cant find arduino from bluetooth connections anymore and neither can any app that has BT finding properties.
So what i'm trying to figure out is:
A way to connect my tablet to arduino without redBear app.
Does the redBear BLE shield somehow prevent other codes to be passable?
Does the redBear have some kind of BT method that is better than others?
Any help, examples or answers are much appreciated.
Sorry for the bad English -_-
Here is a SDK provided by RedBearLab for Android https://github.com/RedBearLab/Android. It also contains examples.
First of all, I want to understand if is possible plug an external micro USB WiFi antenna like this to an android phone and drive it through application to communicate with another android device that have same antenna plugged.
I'm able to detect plugged external antenna in my application using USB Host API of android as specified here and establish an USB connection with it.
In this page there is also a sample that explains how to send commands to an external usb device sending data via connection like "1" "turn left", "2" "turn right".
How can I know what commands (methods/interface/api or data byte stream) I have to send to use device features?
I understand that there is the possibility that I'm saying a lot of stupid things !!! but be patient please!
I also read about this but i cant figure if it is the right way!
I have seen on youtube a Drone driven by an android phone with same antenna plugged through Andropilot application! see video here
There is some guide or tutorial to point me to the right way?
For something like the drone radio you probably saw, you would use the Android Open Accessory protocol to talk to devices over USB. You can prototype and experiment using boards like the Android ADK or the IOIO. Here's a page comparing those boards that has more information: http://forum.xda-developers.com/showthread.php?t=1371750
And here's a simple tutorial showing how to use the ADK to control LEDs via USB: http://www.instructables.com/id/Arduino-ADK-LED-Lighting/
I'm working on a course project. We are making a circuit board, which has a LMX9838 chip connected to a ARM-based MCU. I want to make an application on Android to connect the smartphone to our board using bluetooth featured on the smartphone and LMX9838 Bluetooth controller. My app will be able to send command from the smartphone to the MCU via LMX9838 and it will be able to transfer data (e.g files) between the phone and the MCU too.
That's what I want to do. But I wonder if it is possible to connect bluetooth on the smartphone and the LMX9838 bluetooth controller? And if it is possible, how can I make it? I know my question is very unspecific but you guys could give me some hints about the basic step, please. Because I've never worked with bluetooth technology so my experience in it is nearly zero.
Anyone have any suggestion? Thanks in advance!