There are a number of threads regarding this topic, but I haven't been able to troubleshoot my issue yet and haven't seen much talk of using XBee-4 Nano. I am working on a Arduino/Android project where I need to have a remote XBee monitoring a button, once the button is pressed an notification is sent to my Android phone and I receive a message in the task bar saying the button was pressed.
I've been working on this for weeks... I've read many home automation book, walked through the XBee Lab manual, searched many forums, and installed the tools for Amarino. and the issue I'm having is not understanding how to get the XBee and Arduino to work enough to be discovered by . The Android portion I will be able to take care of.
The tools I have are
http://www.makershed.com/Xbee_Series_1_Starter_Kit_p/mkpx19.htm
(2) XBee 802.15.4 (Series 1) embedded-antenna modules.
(1) XBee USB Adapter for easy PC connection.
(1) XBee 5V/3.3V Adapter for microcontroller connection.
http://www.gravitech.us/xbadforarna.html
(2) XBee-4 Nano (shield for XBee and Arduino Nano)
(3) Arduino Nano
(1) Arduino Uno
X-CTU
Putty
Arduino IDE with Amarino
Android Phone
My ideal setup is connect configure XBee and Arduino Nano on the XBee-4 Nano shield to monitor a button, connect XBee/Arduino to Android phone, then on button press, phone receives a notification.
I am able to monitor the button and turn on LED on button press using the Adruino Nano. How do I sent this data from the Arduino to the XBee using XBee-4 Nano? Are the TX->RX and RX->TX already connected and the XBee will just broadcast the data, or do I need to manually set up jumpers to do this?
Next question is how do I discover the XBee module from my Android phone? I have successfully completed the Bluetooth chat project between my 2 XBee's. I have installed the Amarino on my phone, but when I have the XBee hooked up to either of the adaptors or XBee-4 Nano, I am unable to discover the xbee. Why is this? Is there something with the baud rate or other setting I need to update to be able to do the discovery? Is the issue with the adaptor I am using? There is power to the XBee since I can light up an LED using D05 = 1 and ground.
If you can point me in the right direction on how to use the XBee-4 Nano and how to discover the XBee from an Android phone (using Amarino), it would be much appreciated.
Thanks
Are the TX->RX and RX->TX already connected
yes, just look at the schematics: http://site.gravitech.us/Arduino/XBEE-4NANO/Schematic.pdf
how do I discover the XBee module from my Android phone?
What do you mean for "discover"?
if you mean when the xbee is plugged, you cant easily. xbee is transparent, they are like connecting cable directly. but they respond to come AT command, if i'm right, so you can try to use them (but probabily the BLUETOOTH card will respond), unless the request is done on the mini side, and only a specific signal is sent back to amarino.
Related
First, I'm new to Arduino and Android programming. I had a college project, an automatic crash detection and notification. I used this link.
I have made all the connections correctly. The first problem I faced was that I couldn't connect my phone to the HC-05. It wasn't even discoverable and the LED didn't work. I thought my HC-05 was faulty and bought a new one. This one flashed the LED when connected. Then without going into AT command mode to change the baud rate I directly paired the HC-05 with my Android phone and tried the app.
The data from my Arduino wasn't being sent to the phone. I tried getting my HC-05 into AT command mode later on, but it wouldn't go into that mode. I tried all the tips from here. Still it wouldn't go into AT command mode. Can anyone help me with this problem please?
Need to do initialization
- the BT pins:
5v to 5v arduino
GND to GND arduino
TX to RX arduino
RX to TX arduino
solder pin 34 of BT with wire and connected to any digital pin of arduino
then, in void setup set digital pin to low, and after delay, 1 sec, set pin to high
this way will let you get in AT command.
I am working on a project that including an android phone that sends simple serial messages to a picaxe microcontroller(14m2) like '1','2','a' etc.
I searched alot on the web, and I only found a way that the android smartphone first "connecting" to the device and "discover" it, the problem is that PICAXE microcontroller is NOT a 'USB' device, and it can't be discoverd by the android, that means the android will not be able to send serial messages to the PICAXE.
if theres any way to send simple pulses from android to PICAXE, please let me know about it.
EDIT: There's any way to do that by connecting the AXE027 download cable with OTG?
I do some project with communicating over serial port. You can use chineese bluetooth adapters (see on ebay arduino bluetooth), those communicate with controllers via Usart and connect to phone by bluetooth. There is sample project Bluetooth chat from google about how to use bluetooth on android. On hardware iside, you can use arduino for receiving data by bluetooth and converting it in format of your controller. You wont have to use any wires
I'm new to Arduino development. My device is TinyDuino from TinyCircuits. I'm looking for a way that will allow me connect my Arduino device to my Android phone (Android app) , via TinyWifi shield. Yet all the methods I found are for specific module or specific shield. I'm looking for some way that works with my device or something general that could be modified to work with any shield.
Depends on what actions you want to do after you connect with your phone.
If you only want manual exchange of simple data, you can use term apps. For WiFi, find WiFi Term. For Bluetooth (Tinycircuit's BLE module), find BLE term. There are many available.
If you need more complicated action, you need to write your own app for it.
I am trying to wirelessly connect my android phone to a Raspberry-Pi, so I can then make a controller app to interact with the RPi.
I have just bought a dongle, as I was thinking of using Wifi-Direct. However this doesn't look as simple as I originally thought.
There's not much information out there on how to do this, and I am completely new to RPis.
I have found the odd tutorial like this: https://www.youtube.com/watch?v=6GPv8TfZqe4
But it seems overly complicated and I am not sure if they applicable to my dongle.
I am thinking there must be a more simple way to do this(e.g. through wpa_gui on Raspbian)
Any suggestions on how I could achieve this?
You can try:
SSH to raspberry Pi with given credentials (if both devices are connected to the network... but that may not always be doable)
Setup web API/app on RPi and use it via browser on Android (like https://github.com/NeonHorizon/berryio )
Use Bluetooth UART: Adafruit has a full blown Bluetooth UART board, and Chinese make many slave (or master) UART serial boards. This way you could open a serial connection from the phone - and with luck you would get the terminal which by default is cloned to UART in RPi (or it would get your script running on Pi and handling incoming UART messages).
I'm working on an Android application and I have to make a Bluetooth serial communication between an Android device and a Computer with Ubuntu OS. I don't know what to do and how to connect them. I'm looking for good references and someone who can help me.
I made a button which navigates to the Bluetooth settings of our Android device. I don't know what else I should do.
Pair the devices. This has nothing to do with any software, so it has to be done via the phone settings
Once paired, look at 'Bluetooth Chat' example by Google. It has drop in code for connecting two devices. A serial connection is done via Serial Port Profile that is established over RFCOMM. The UUID for SPP is well known, again, you'll find it in the Bluetooth Chat example.