Page 1 of 11

$7 bluetooth WORKING on MS1!

Posted: Sat Feb 04, 2012 5:25 pm
by t_cel_t
haven't seen anyone do a writeup or even say they got this cheapo bluetooth working.
this should work for the ms2 or 3 if you change the baud rate on the bluetooth with hyper terminal.
using this
Image
ebay=> similar to this(shop around) auction

for some reason these do not like to talk through the db9 on the MS.
i made a jumper off the db9
pin1=5v
pin5=ground
you dont need to get the power and ground from here, you can take it from the proto area if your going to keep the bluetooth inside the ms case.

RX=pin 13 on processor, or pin 12 on rs232 chip
TX=pin 12 on processor, or pin 11 on rs232 chip
schematics page=> http://msextra.com/doc/general/ms1v3schems.html

i just soldered some small wires to the underside of the rs232 chip and ran them out the front of the case, then soldered them to the rx and tx pins on the bluetooth.
thats it. this way i just pull the connector and i can plug my laptop in with a serial cable(that is untill i get bluetooth for my laptop :D )
range is not an issue, once i connect with my phone i kept a connection to the MS through 4 walls and about 60feet. it only then started to miss some reads, displays around 12.5 reads a second.
Image

Image

Image

Image

Image

Re: $7 bluetooth WORKING on MS1!

Posted: Mon Feb 06, 2012 7:44 pm
by ol boy
what type of range do you get out of your set up?

Re: $7 bluetooth WORKING on MS1!

Posted: Tue Feb 07, 2012 12:16 am
by t_cel_t
ol boy wrote:what type of range do you get out of your set up?
t_cel_t wrote:range is not an issue, once i connect with my phone i kept a connection to the MS through 4 walls and about 60feet. it only then started to miss some reads, displays around 12.5 reads a second.

Re: $7 bluetooth WORKING on MS1!

Posted: Wed Feb 15, 2012 9:36 am
by gndan
"this should work for the ms2 or 3 if you change the baud rate on the bluetooth with hyper terminal."

What do you mean by this? I have 3 MS3s and am very interested in doing this. Is hyper terminal a program or a function in Tuner Studio?

,Dan

Re: $7 bluetooth WORKING on MS1!

Posted: Wed Feb 15, 2012 10:55 am
by rx7locost
I am running a similar BT module with TS and my MS2. My module includes the MAX232 rs232 level shifter and DB9 connector. For me, it is a complete solution only requiring some software adjustments; no wiring changes. However, several others have had some problems getting it up and running. In fact, I've tried installing TS and my BT module on a 2nd laptop running WIN7 and had problems with that install. That was resolved by upgrading TS to V1.21beta. I see that both your implementation and mine include the Linvor BT module. Is you BT module loaded with Linvor v1.5 firmware?

Continue working on this. I will be following this thread as others try to implement your solution.

FYI, our trials and tribulations can be tracked here: http://www.rx7club.com/showthread.php?t=975008

Re: $7 bluetooth WORKING on MS1!

Posted: Sun Feb 19, 2012 3:13 pm
by t_cel_t
gndan wrote:"this should work for the ms2 or 3 if you change the baud rate on the bluetooth with hyper terminal."

What do you mean by this? I have 3 MS3s and am very interested in doing this. Is hyper terminal a program or a function in Tuner Studio?

,Dan
http://www.e-gizmo.com/KIT/images/EGBT- ... %201r0.pdf
check out this datasheet/manual. its has the at codes for programming it for different speeds. just need an old serial cable and 4 jumper wires to hook it up to you computer, use hyperterminal to change the baud rate(the commands are in that manual) and it should work.


hyperterminal is a program that talks through any port, its included on every PC

Re: $7 bluetooth WORKING on MS1!

Posted: Sun Feb 19, 2012 3:30 pm
by racingmini_mtl
t_cel_t wrote:...

hyperterminal is a program that talks through any port, its included on every PC
Not on Win 7.

Jean

Re: $7 bluetooth WORKING on MS1!

Posted: Tue Feb 21, 2012 7:28 am
by elaw
racingmini_mtl wrote:
t_cel_t wrote:...

hyperterminal is a program that talks through any port, its included on every PC
Not on Win 7.

Jean
Unless you copy it from an XP box (http://brianshowto.com/?p=35) 8)

Re: $7 bluetooth WORKING on MS1!

Posted: Tue Feb 21, 2012 7:34 am
by elaw
Just to toss out another mini-success-story, I got this working on my MS3 setup with very little difficulty:
Image

A $15 bluetooth module from ebay, a homemade two-transistor TTL-to-RS232 level converter, and a USB bluetooth dongle for the laptop (< $2.00 on ebay!), a little configuring, and it works great!

The key trick, as indicated by other posters, is to connect directly to the module (via the serial port, not via bluetooth) and send the command "AT+BAUD8" to set its default baud rate to 115200. Then connect it to the Megasquirt, power it up and pair the device to your computer, fire up TS and point it to the bluetooth serial port, and you're done!

Not surprisingly, the data rate seems a bit limited with this setup. Mine seemed to "stutter" a bit at 15 frames/second so I reduced the rate to 10 and it seems solid.

Re: $7 bluetooth WORKING on MS1!

Posted: Thu Feb 23, 2012 10:13 pm
by Ute_Man
I just ordered one of these as well. I didn't see any with that sub board in the 7$$ range. I went with the bare board for a little over 6$$ instead. I'll have to come up with a 3.3v regulator. Thanks for testing this thing out and posting your results. Now if only my Kindle Fire had working bluetooth, it'd make an excellent dashboard.

Re: $7 bluetooth WORKING on MS1!

Posted: Thu Mar 01, 2012 9:26 am
by tiagom
Awesome, im defiantly going to have to try this. Did you have to put a RS232 to ttl converter in between the db9 and the Bluetooth adapter?

Re: $7 bluetooth WORKING on MS1!

Posted: Sun Mar 04, 2012 11:56 pm
by t_cel_t
tiagom wrote:Awesome, im defiantly going to have to try this. Did you have to put a RS232 to ttl converter in between the db9 and the Bluetooth adapter?
i did not, i just ran mine right to the pins on the processor(ms1). elaw did thats why his talks right through the db9 with no internal connections. you can do it either way, my way for an internal instal or the other way to have it removable.

Re: $7 bluetooth WORKING on MS1!

Posted: Mon Mar 05, 2012 7:28 am
by sabretooth
elaw wrote:Just to toss out another mini-success-story, I got this working on my MS3 setup with very little difficulty:
Image

A $15 bluetooth module from ebay, a homemade two-transistor TTL-to-RS232 level converter, and a USB bluetooth dongle for the laptop (< $2.00 on ebay!), a little configuring, and it works great!

The key trick, as indicated by other posters, is to connect directly to the module (via the serial port, not via bluetooth) and send the command "AT+BAUD8" to set its default baud rate to 115200. Then connect it to the Megasquirt, power it up and pair the device to your computer, fire up TS and point it to the bluetooth serial port, and you're done!

Not surprisingly, the data rate seems a bit limited with this setup. Mine seemed to "stutter" a bit at 15 frames/second so I reduced the rate to 10 and it seems solid.
Do you have a schematic for your TTL-to-RS232 level converter?

Re: $7 bluetooth WORKING on MS1!

Posted: Mon Mar 05, 2012 7:50 am
by elaw
The circuit I built is based on the one on this page: http://www.uchobby.com/index.php/2007/0 ... explained/.

Vcc comes from pin 1 (or 9) of the DB-9 connector (ie from the Megasquirt) and is also used to power the bluetooth module. I had to install a 10K resistor between the emitter and base of Q1 to match the module's 3.3-volt logic level. I used a 2N2222 for Q2 and a 1uF cap for C1 because that's what I had lying around. I omitted LED1, LED2, R6, and R7.

And for direct connection to the megasquirt (as opposed to using a null-modem cable), the connections to pins 2 and 3 on the DB-9 need to be reversed.

Re: $7 bluetooth WORKING on MS1!

Posted: Mon Mar 05, 2012 1:32 pm
by tiagom
Could also use a MAX3232 for TTL-to-RS232. That is what i plan on doing, works out great since i have one laying around from toying with microprocessors.

Re: $7 bluetooth WORKING on MS1!

Posted: Tue Mar 06, 2012 10:13 pm
by gndan
http://www.ebay.com/itm/1pcs-Wireless-B ... 6725351188

Here is a good option for a Bluetooth setup since its already 115200 Baud Rate. I have one that is 9600 Baud and am having a nightmare trying to get it to connect with my Windows 7 PC. I have tried all sorts of things like hyper terminal and Tera Term and cannot connect. The LED is blinking but nothing seems to work. I tried building a RS232 to TTL converter and nothing still using my USB to serial converter it seems that using huperterm i can "loop" the converter fine but it doesn't pick up the bluetooth. I bought a USB to TTL converter and am waiting for it to ship, hopefully that will work! Anyone have any other ideas?

,Dan

Re: $7 bluetooth WORKING on MS1!

Posted: Wed Mar 07, 2012 5:35 am
by elaw
I'd bet $20.00 that module does not default to 115200. Ebay sellers often, um, "take liberties" with product descriptions - that module looks like the same one everyone else is selling which comes from the factory set to 9600. It's possible that seller is taking every single one and plugging it into a test jig and resetting the baud rate but for the $8.00 price I'm skeptical.

A couple of tips on connecting: to set the baud rate you *must* connect to it from the "wired" side, not via Bluetooth. In fact from what I understand, if it's connected via Bluetooth you cannot set the baud rate even from the wired side. So the blinking LED is actually a good thing, it means the module isn't talking to anything over Bluetooth.

And now the point where I got tripped up: can you post a schematic or a link for your TTL-RS232 converter circuit? The circuit I used, and many others from what I can tell, will not work on those modules without modification. The reason is that while the module takes a +5 volt supply, it's got an onboard regulator and internally is actually 3.3 volt logic. So the module's "transmit" pin, the one that drives the PNP transistor that creates the TX signal going to the RS232 connector, only goes to 3.3 volts at its "high" logic state, not the 5 volts that the converter circuit expects. The 5-minus-3.3 volt difference is enough to keep the PNP transistor turned on all the time which makes the circuit not work. I fixed the problem on mine by adding a 10K resistor between the base and emitter of the PNP transistor.

One last tip: when you send commands to the module you do NOT need to end them with a carriage return/"newline"/CRLF/whatever you want to call it. Adding a CR/LF can actually make it not work.

Re: $7 bluetooth WORKING on MS1!

Posted: Wed Mar 07, 2012 10:45 am
by gndan
This is the circuit that I used, I have both tried adding 3.3v and 5v at the VCC port. Both times the light just blinks and when i try to connect hyperterm it just says to check com port 1 (port I have adaptor on) no connection. This circuit is the one i used and appears to have a 10K resistor where you state, though I am not sure what you mean with the CR/LF at the end of a command? Do you just mean to not hit anthing after entering the command?

Thanks, Dan

Re: $7 bluetooth WORKING on MS1!

Posted: Wed Mar 07, 2012 11:25 am
by elaw
Yup, that circuit is pretty much identical to the one I used, and has the same problem. The resistor I refer to is not R2, it works in conjunction with R2 to adjust the voltage that Q1 sees. The extra resistor should be 10K or even better the next lower value like 8.2K, and have one end connected to the junction of R2 and Q1's base, and its other end connected to Vcc.

You're also going to encounter some problems with the DB-9 connector, J2. If you wish to plug your circuit directly into the Megasquirt, J2 needs to be male and the connections to pins 2 and 3 need to be reversed. If you wish to connect the circuit directly to a PC, the connections to pins 2 & 3 are okay but you'd need a female connector.

I dealt with the problem by wiring it to be directly connected to the Megasquirt, then building a little adapter that did the gender-change and pin swaps to allow connection to the PC and also had wires so I could hook up a 5-volt supply to power the thing.

Re: $7 bluetooth WORKING on MS1!

Posted: Wed Mar 07, 2012 2:00 pm
by gndan
Great, thanks for the quick reply! I will try it here and see what I get. I plan to hard wire it into my MS3 once I get it figured out. I have it on a bread board now, just looking to connect it to my PC to change baud rate. :-)

,Dan