Bluetooth Attachment

Expansion modules and attachments
Post Reply
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Bluetooth Attachment

Post by rimai »

Hi Guys,

I have a few boards that you can purchase in advance before they become available in the webstore.
BluetoothAttachment.jpg
BluetoothAttachment.jpg (33.1 KiB) Viewed 32963 times
This module is used for wireless code upload and you won't need to keep connecting usb cable and disconnecting the wifi attachment from the head unit.
It is connected directly to the head unit and the wifi attachment is daisy chained to it.
Data traffic is routed to wifi or Bluetooth on-demad as needed.
They are going for $89.
PM me if you are interested in grabbing one of them.

This is installation instruction until I put together the manual.

Note: You will need your own Bluetooth adapter properly installed in your computer.

Connecting the Bluetooth attachment

1. The Bluetooth attachment comes with the communication cable. Please connect the 8-pin connector to your Reef Angel head unit and the 6-pin connector to your Bluetooth attachment. Pin 1 is the black wire.
2. If you also have the wifi attachment, you can connect the 8-pin connector from the wifi attachment to your Bluetooth attachment. Pin 1 is the black wire.
3. Please confirm that you can access your Reef Angel system through wifi.

Adding the Bluetooth attachment to your computer

1. Please follow the instruction on how to add a Bluetooth device to your computer:
Windows 8 - http://windows.microsoft.com/en-us/wind ... s-printers
Windows 7 - http://windows.microsoft.com/en-us/wind ... r-computer
Windows Vista - http://windows.microsoft.com/en-us/wind ... led-device
MacOSX Mountain Lion - http://support.apple.com/kb/PH10545
MacOSX Lion - http://support.apple.com/kb/PH3651

2. If you are asked for a pairing code, please enter 1234

3. Your computer will have 2 new serial ports. One for incoming connections and another for outgoing connections.
We are only interested on the serial port for outgoing connections.
Windows 7 - http://windows.microsoft.com/en-us/wind ... led-device
Windows Vista - http://windows.microsoft.com/en-us/wind ... led-device

Setting up your Arduino IDE - Windows only

1. The current release of Arduino IDE for Windows has a flaw in the rxtxSerial.dll file, which causes the Arduino IDE to slow down when Bluetooth devices are connected to your computer.
More info: http://forum.arduino.cc/index.php/topic,46977.0.html

2. We need to replace the rxtxSerial.dll file located at "\Program Files (x86)\Reef Angel Controller" with the one attached.

Uploading your code wireless

1. Open Arduino IDE

2. Select the outgoing serial port you identified above on menu Tools->Serial Port

3. Click Upload

4. You will see that when your computer establishes a connection, the green LED on the Bluetooth attachment will stop blinking, the controller will reboot and the red status LED on the head unit will start blinking, indicating you are uploading your code wireless.
Attachments
rxtxSerial.zip
(40.23 KiB) Downloaded 833 times
Roberto.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

I forgot to mention that it does not come with the Bluetooth adapter for your computer.
Several laptops come with it built-in lately.
If you don't have one, you can get any Bluetooth dongle adapter in your electronics store. Even one of those super mini ones like this one:
http://www.amazon.com/Asus-Mini-Bluetoo ... B0041UJVI2
Roberto.
ReeferBee
Posts: 55
Joined: Wed May 08, 2013 6:23 pm
Location: North GA

Re: Bluetooth Attachment

Post by ReeferBee »

What all can be done over Bluetooth? Thanks
Barry

Current tank info: 150g mixed reef

"Some of the worst mistakes of my life were hair cuts" -Jim Morrison
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

The Bluetooth attachment will let you program your controller without having to connect the USB-TTL cable.
You can do it wirelessly through Bluetooth serial connection.
Roberto.
Marco
Posts: 10
Joined: Mon Mar 18, 2013 5:36 pm

Re: Bluetooth Attachment

Post by Marco »

Silly question perhaps... but would this new BT connection not get in the way of the WiFi add-on connection? Or are we talking some form of y-splitter?
As long as it does not cause some conflict, I am interested (since I can't pm yet) :)
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

The module is actually daisy chained.
So, you attach the Bluetooth module to RA head unit and the wifi module into the Bluetooth module.
This way, you can program wirelessly without having to disconnect anything.
The module is smart enough to route the data traffic between Bluetooth and wifi on the fly as needed.
Roberto.
mudcat1
Posts: 133
Joined: Sun Dec 09, 2012 7:23 pm

Re: Bluetooth Attachment

Post by mudcat1 »

Roberto,
Will the Bluetooth module allow me to run serial monitor from Aurdiuno while the Wifi adapter is running?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

mudcat1 wrote:Roberto,
Will the Bluetooth module allow me to run serial monitor from Aurdiuno while the Wifi adapter is running?
No, it is either/or.
Data traffic can only be sent to one of the modules at a time.
If you have a connection established with the Bluetooth, data traffic from the head unit will never reach the wifi attachment. Once the connection with the Bluetooth is disconnected, data will start flowing to wifi again.
Roberto.
Marco
Posts: 10
Joined: Mon Mar 18, 2013 5:36 pm

Re: Bluetooth Attachment

Post by Marco »

Very nice. I will take one of your hands. If you don't mind a newbie having one. ;)
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Bluetooth Attachment

Post by cosmith71 »

What are the dimensions, Roberto? Looking for a project box as a temporary home.

Thanks,

--Colin
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

It's actually going to fit in the same enclosure as the WiFi module

Sent from my SPH-L710 using Tapatalk 4 Beta
Roberto.
agentgreen
Posts: 97
Joined: Wed Jul 06, 2011 6:45 am

Re: Bluetooth Attachment

Post by agentgreen »

This is bad a$$!!
Marco
Posts: 10
Joined: Mon Mar 18, 2013 5:36 pm

Re: Bluetooth Attachment

Post by Marco »

I will just keep posting until I can pm you to tell you that I want to order one..

There, successfully pm'd. Now I feel like I am a part of a true community. :)
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

Ok, so until I put together the manual for the module, please refer to the original post.
Roberto.
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Bluetooth Attachment

Post by Sacohen »

Got it set up and working.
A coupe of small things.

1 time said that the port was already in use.
I shut down the Arduino software and restarted it and it was fine.
The 2 was that in the middle of uploading the Arduino software just closed.
Opened it again and it worked fine.

Great work Roberto.
Thanks
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Bluetooth Attachment

Post by cosmith71 »

So after a horrible day fighting with it and my computer (mostly my computer) I got it going. I went and found the replacement for the rxtxSerial file and it seems to have solved my problems.

Roberto, what does the on/off jumper do?

--Colin
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

Awesome!!!
The on/off jumper is meant for turning the programming mode on/off. Mainly for me to program any settings it needs to be pre-programmed before shipment.
Roberto.
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Bluetooth Attachment

Post by Sacohen »

I found and replaced the rxtxSerial file too and it seems to be working a lot better
The tools menu opened up right away and not problems uploading this time.
I tried to upload after my last post and I got the message that Com port 4 was being used 2 times before it uploaded.

When I tried uploading after replacing the rxtxSerial file it went smooth.
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Bluetooth Attachment

Post by cosmith71 »

rimai wrote:Awesome!!!
The on/off jumper is meant for turning the programming mode on/off. Mainly for me to program any settings it needs to be pre-programmed before shipment.
Default should be off? When I have it set to off my head unit screen goes black and the status light comes on.

Make any sense?

--Colin
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

Yes, should be off.
Weird behavior.
Does it work if you leave on?
Roberto.
Smotz
Posts: 401
Joined: Sat Mar 30, 2013 5:02 pm
Location: CT, USA

Re: Bluetooth Attachment

Post by Smotz »

interested once it becomes mainstream.
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Bluetooth Attachment

Post by Sacohen »

I've used it a couple of time since I got it Tuesday and it is really nice not to have to unplug the laptop, carry it over there, unplug the WiFI adapter, plug in the TTL to USB cable and then reverse everything when you are done.

Once I replaced the rxtxSerial.dl file it's been running smoothly.
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Bluetooth Attachment

Post by cosmith71 »

I had a couple of issues with RF noise due to my environment, but other than that and the rxtx file issue (an arduino issue not specific to RA) its a dream. It's great being able to change things on the fly without all the setup.

Sent from my HTC One X using Tapatalk 2
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Bluetooth Attachment

Post by Sacohen »

Colin;

Aren't you the same guy that said this...
cosmith71 wrote: I use a USB extension cable and sit on the couch. Nice and comfy. :D

--Colin
:lol:
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Bluetooth Attachment

Post by cosmith71 »

Yes, but now I don't even have to get up to switch the cable. Life is good. :mrgreen:

Sent from my HTC One X using Tapatalk 2
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Bluetooth Attachment

Post by Sacohen »

cosmith71 wrote:Yes, but now I don't even have to get up to switch the cable. Life is good. :mrgreen:

Sent from my HTC One X using Tapatalk 2

That's what I was saying. :D
Roberto is a god.
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: Bluetooth Attachment

Post by lnevo »

cosmith71 wrote:Yes, but now I don't even have to get up to switch the cable. Life is good. :mrgreen:

Sent from my HTC One X using Tapatalk 2
+1

If anyone gets it to working on Linux or can test the range on it :) My computer is downstairs and my wife's computer is a few rooms away.... would be great to use them though, but I know bluetooh range is like 20-30 feet and I doubt it would work through walls.
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Bluetooth Attachment

Post by cosmith71 »

Mine works through two walls with no problems.

Sent from my HTC One X using Tapatalk 2
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Bluetooth Attachment

Post by Sacohen »

Mine is currently about 14-15 feet away and it has to go thru 1 wall, kind of.
There is a wall separating the 2 rooms, but there is also a door the end of the wall, so I''m not sure if it is going thru the wall or the door.

If Bluetooth goes in a straight line then it is going thru the wall, if not it could be going thru the door and kind of making 2 right turns.
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: Bluetooth Attachment

Post by lnevo »

Radio waves don't make turns :)
Post Reply