Page 10 of 10

Re: Adding Bluetooth module

Posted: Mon Jan 31, 2022 5:16 pm
by OctavioS
MikeB wrote: Mon Jan 31, 2022 4:21 pm Yes. I've only ever used a 3.3V supply to a HC-05 or a HC-06.

Mike
Thx Mike.

Re: Adding Bluetooth module

Posted: Mon Jan 31, 2022 8:09 pm
by OctavioS
So my bluetooth module is setup. light blinks, but it doesnt seem to work. Can't detect anything. Before testing another module, is there anything im missing?

Re: Adding Bluetooth module

Posted: Mon Jan 31, 2022 8:29 pm
by OctavioS
Figured out. Mine has a small button. if i keep pressing it works fine. should i remove it and make a direct connection or there is a way to make it work like this??

Re: Adding Bluetooth module

Posted: Mon Jan 31, 2022 9:14 pm
by MikeB
Are you adding this to a 9XR-PRO?
You will likely need to do some small mods to the BT module, see here: https://openrcforums.com/forum/viewtopi ... 90#p107854
Then add a wire from the "Erase" signal to "pin 34".

Mike

Re: Adding Bluetooth module

Posted: Mon Jan 31, 2022 9:32 pm
by OctavioS
I have seen that before Mike, and i was trying to avoid that, untill last resort. so i testet the module and realised that if the button was constantly pressed it would work fine. so i did the lazy mod and applyed some superglue to the button and kept it down untill it was glued. It worked. Lets see untill when.
Thx for your help.

Re: Adding Bluetooth module

Posted: Mon Jan 31, 2022 10:39 pm
by OctavioS
i think i fried my radio. only backlight is on and nothing else. is it fried??

Re: Adding Bluetooth module

Posted: Tue Feb 01, 2022 10:13 am
by MikeB
Try plugging the USB to your computer, then switch the radio on. See if the bootloader starts.

Mike

Re: Adding Bluetooth module

Posted: Tue Feb 01, 2022 1:40 pm
by OctavioS
Hi Mike,
when i connect to pc, i hear the usb sound and get a usb serial device (com3 in this case), but nothing else. I power on with the trims in, trims out and only backlight.

Re: Adding Bluetooth module

Posted: Tue Feb 01, 2022 2:40 pm
by MikeB
OK, what has happened is the ERASE signal has been asserted at power on, causing the processor flash memory to be erased, including the bootloader. However, you do have access to the ROM based loader, and need to use SAM-BA to flash the processor.

The instructions for doing this are here: https://openrcforums.com/forum/download ... hp?id=8189.

Mike

Re: Adding Bluetooth module

Posted: Tue Feb 01, 2022 8:09 pm
by OctavioS
Mike, in the pdf file, under "Installing Sam-Ba", on the 5th paragraph, the link to download the "at91sam3s8-9xr.zip" file, says that "You are not authorised to read this forum." Odd. So im stuck.

EDIT:
I found the file in another post, so this part is ok.
The next problem is that when i try to install Sam-Ba, no prompts show up. I have SAM-ba v3.5 version.

Re: Adding Bluetooth module

Posted: Tue Feb 01, 2022 9:04 pm
by OctavioS
OctavioS wrote: Mon Jan 31, 2022 2:52 pm Hi all,
will this hc-05 BT module work well on 3.3v out of com3? Thx.
Image
Probably everybody knows this, but the "en" pin means "enable" which has the same function as the "key" pin in another hc-05 module variant.

I remember that my radio went bricked when i connected the button front pad to the erase pin in the 9xr. Which i think its odd, because, as far as one can tell, somebody else did this and went well. :| :?: :idea:

Re: Adding Bluetooth module

Posted: Tue Feb 01, 2022 9:58 pm
by MikeB
There is a copy of SAM-BA 2.12 here: https://code.google.com/archive/p/ersky9x/downloads
This is the one I've used.

If the ERASE signal is held HIGH at power on, this erases the Atmel processor. You need to make sure the EN signal on the HC-05 is not pulling high. I recall needing to do some mods to some HC-05 modules (cutting a track) to get it to work correctly.
The HC-05 operates by looking at the pin 34 signal to decide if the serial data is data to send, or control data for the module.

Mike

Re: Adding Bluetooth module

Posted: Tue Feb 01, 2022 10:07 pm
by OctavioS
Hi Mike, i just managed to bring the radio back to life, following those instructions. Definetly dont use sam-ba 3.5, there is something wrong with that zip file, or im not getting it. I tried the 2.18 version and it worked well ( i was planning to try 2.12 if 2.18 also failed).
Regarding the module mod, ill need to look into it a little bit better, because how do i know when the module is set to high?? Is when i keep pressing the button?
Thx for your help.

Re: Adding Bluetooth module

Posted: Tue Feb 01, 2022 11:03 pm
by OctavioS
Here they dont talk about cutting a trace. But i wonder if for the 9xr pro is the same?

Re: Adding Bluetooth module

Posted: Wed Feb 02, 2022 11:04 am
by MikeB
Have a look at this thread, see if your BT module is the same and needs the track cut: https://openrcforums.com/forum/viewtopi ... 40#p101998.

Mike

Re: Adding Bluetooth module

Posted: Wed Feb 02, 2022 4:25 pm
by OctavioS
@Mike do you know that wtf (sorry for my rudness) moment, when you follow the instructions as carefully as possible and still your radio bricks again?
i just went through a moment like that. im speechless.

Re: Adding Bluetooth module

Posted: Wed Feb 02, 2022 4:35 pm
by OctavioS
Do you know if there should be continuity between the button front pad and pin 34 after the trace is sliced?? Mine does'nt have.

Edit:

I removed the button and tested for continuity. So the front pad doesnt have, but the rear one has. Most likely cut trace related?

The cut trace is well done, because i tested continuity.

Re: Adding Bluetooth module

Posted: Wed Feb 02, 2022 7:29 pm
by MikeB
Your BT module is different to any I have, so I can't be certain.
My suggestion is to connect the erase signal either to the pad 34, or, if you have found a pad near the connector that is connected to pad 34, then connect the erase signal to that. Ignore the EN pin of the connector.

Mike

Re: Adding Bluetooth module

Posted: Wed Feb 02, 2022 8:37 pm
by OctavioS
MikeB wrote: Wed Feb 02, 2022 7:29 pm Your BT module is different to any I have, so I can't be certain.
My suggestion is to connect the erase signal either to the pad 34, or, if you have found a pad near the connector that is connected to pad 34, then connect the erase signal to that. Ignore the EN pin of the connector.

Mike
Must be like the module i have on the other radio, that one was almost plug and play.
Anyway I manage to figure out and did just that. So i soldered the erase wire to the button back pad, because there was no continuity to the front one and its done. i have been testing and its working fine. Unfortunately 2 to 3 meters away looses connection, but i think that thats more than enough range for a trainer feature.
Finally this is done.
I really apreciate your help.

Re: Adding Bluetooth module

Posted: Sat Feb 05, 2022 11:06 pm
by OctavioS
When everything seemed to be fine, it turned out its not. My master radio is not controlling the slave when the trainer switch is activated and honestly i dont know what im missing.

Here are my settings:
Image
Image
Image
Numbers change fast here.
Image
Image
Im getting activity here. Numbers change when i move the sticks.
Image
Image

Something im not getting is that the cpu of the radio on the right is very hot when compared to the left one,
Image

Thx in advance for the helping hand.

Re: Adding Bluetooth module

Posted: Sun Feb 06, 2022 10:48 am
by MikeB
The CPU temp values are known to be inaccurate.

Please confirm that on the TRAINER screen (3rd from bottom), the 4 numbers at the bottom change when you move the sticks on the "other" Tx. This will confirm the bluetooth connection is working correctly.

Your settings look correct, and I just set the same on a couple of Txs and it works. On the mixer screen of the "master", the bar at the top should be controlled by the master Tx when the RUD switch is OFF, and by the slave when it is on.

Mike

Re: Adding Bluetooth module

Posted: Sun Feb 06, 2022 4:52 pm
by OctavioS
MikeB wrote: Sun Feb 06, 2022 10:48 am The CPU temp values are known to be inaccurate.
ok.
MikeB wrote: Sun Feb 06, 2022 10:48 am Please confirm that on the TRAINER screen (3rd from bottom), the 4 numbers at the bottom change when you move the sticks on the "other" Tx. This will confirm the bluetooth connection is working correctly.
Yes that happens.
MikeB wrote: Sun Feb 06, 2022 10:48 am Your settings look correct, and I just set the same on a couple of Txs and it works. On the mixer screen of the "master", the bar at the top should be controlled by the master Tx when the RUD switch is OFF, and by the slave when it is on.

Mike
That doesnt happen. Nothing moves. When the rudder switch is off, the bar on the "master"radio moves, but when its on the bar doesnt move in none of the radios.

EDIT:
I dont understand this polarity options (neg or pos), could it be that?

Re: Adding Bluetooth module

Posted: Sun Feb 06, 2022 6:40 pm
by MikeB
Polarity only applies to the trainer jack.

Just checking you are only switching the RUD switch on one of the radios? While the BT does send the data both ways (with TrnTxRx selected), you only use it in one direction at a time.

Mike

Re: Adding Bluetooth module

Posted: Sun Feb 06, 2022 7:10 pm
by OctavioS
MikeB wrote: Sun Feb 06, 2022 6:40 pm Polarity only applies to the trainer jack.

Just checking you are only switching the RUD switch on one of the radios? While the BT does send the data both ways (with TrnTxRx selected), you only use it in one direction at a time.

Mike
Yes, only one radio with trainer activated at a time.
fyi i accidentally tried with both radio trainer activated and also nothing special happened, only some channels bar or value slowly increasing.

Re: Adding Bluetooth module

Posted: Sun Feb 06, 2022 7:18 pm
by OctavioS
Mike i think i was doing it wrong. So i thought that the radio that assumed the control was the one with the switch turned on but, by accident i found out that it works the other way around. Sorry for making you loose your time...damn.

Re: Adding Bluetooth module

Posted: Sun Feb 06, 2022 7:24 pm
by OctavioS
@Mike, i donated 10 pounds, so you can enjoy a well deserved beer.

Re: Adding Bluetooth module

Posted: Sun Feb 06, 2022 9:22 pm
by OctavioS
Another question:
If i place the bluetooth module in one of the sides of the handle, do you think that there will be interference from antenna to bt or vice versa?
im planning to do this in the hopes that it will improve the signal, since in the actual position, i get a bt signal lost just by placing my hand on the tx, where the module is.

Re: Adding Bluetooth module

Posted: Sun Feb 06, 2022 10:47 pm
by MikeB
Since both are on 2.4GHz, there is always a chance of interference. The BT module could swamp the received telemetry signal, and the Tx module can swamp the BT receiving.
Worth trying different positions, and trying to keep the radio antenna and the BT antenna at right angles, if possible.

Mike