+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 20 of 39

Thread: How to use those cheap Bluetooth modules with the Prop (and more)

  1. #1

    Default How to use those cheap Bluetooth modules with the Prop (and more)

    I've been playing with those cheap Bluetooth modules (All kinds of them on Ebay under $15.00)
    The catch with these is that they are cheap from China, but it takes some digging to get the documentation straight.

    Hopefully, this project will save some folks some of the time and frustration I've gone through, as they are cheap, and easy to use serial devices which will provide good short range communication with the Propeller. To top it off, I've added an Introduction to Just Basic for creating a snazzy interface on the PC to control your Propeller projects.

    Here's the link:
    http://www.gadgetgangster.com/news/5...oth-howto.html
    Attached Thumbnails Attached Thumbnails Click image for larger version

Name:	How-to-use-Bluetooth-with-your-Propeller.jpg‎
Views:	407
Size:	17.8 KB
ID:	92178   Click image for larger version

Name:	Enhancing-the-Interface.jpg‎
Views:	265
Size:	22.4 KB
ID:	92179  
    Visit PROPELLERPOWERED.COM -:- PMC/PEB 2014 available now!
    After you are done here, wander over to our Friendly Forums.
    Online Chat Saturday Nights 9pm EST -:- Projects, not Platforms -:- Follow me on Twitter.

  2. #2

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    Good tutorial. Have you figured out the AT commands to set the baud rate for the module rather than use the default of 9600?

  3. #3

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    Quote Originally Posted by Martin_H View Post
    Good tutorial. Have you figured out the AT commands to set the baud rate for the module rather than use the default of 9600?
    I have some notes on that here that I can dig out, but it wasn't really a big item for the article. Spent a lot of time figuring out how to get proper communication settings between the Propeller and the module. Hopefully, that will be remedied with this.
    Visit PROPELLERPOWERED.COM -:- PMC/PEB 2014 available now!
    After you are done here, wander over to our Friendly Forums.
    Online Chat Saturday Nights 9pm EST -:- Projects, not Platforms -:- Follow me on Twitter.

  4. #4

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    Very nice. I see them on Ebay for $8.60, that's pretty cheap... Thanks, OBC.
    This does look like the lowest cost path to wireless (if your laptop or PC already has Bluetooth).

  5. #5

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)


  6. #6
    Cluso99's Avatar
    Location
    Sydney/Brisbane Australia or 'sailing on the high seas'
    Posts
    10,049

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    Nice job OBC!
    phishguy - nice find!

    Beats wasting 3-4 cogs and a $1 Bluetooth although smaller.

    Now we just need a similar priced wifi version
    My Prop boards: CpuBlade, TriBlade, RamBlade, www.clusos.com
    Prop Tools (Index)
    Emulators (Index) ZiCog (Z80)
    Prop OS (also see Sphinx, PropDos, PropCmd)

  7. #7

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    The trouble with the $6.60 ons is that they are still a SMD module whereas the other ones are mounted onto a carrier so that so can be plugged in using the 4 pin header. I ordered 6 of these 4-pin versions to play with.
    While wi-fi versions would be nice they would have to look like a serial port surely, much like the XPORT modules I use in other products.

  8. #8
    Cluso99's Avatar
    Location
    Sydney/Brisbane Australia or 'sailing on the high seas'
    Posts
    10,049

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    Nice find Peter
    Yes, would like the wifi to be serial too.
    My Prop boards: CpuBlade, TriBlade, RamBlade, www.clusos.com
    Prop Tools (Index)
    Emulators (Index) ZiCog (Z80)
    Prop OS (also see Sphinx, PropDos, PropCmd)

  9. #9

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    phishguy, just so you know, there are a ton of lower priced modules that don't have the through-hole pin connector like the one OBC has...
    The ones with the connector are like the one you found, but soldered onto a slightly larger motherboard...

  10. #10

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    I've been playing with these modules and have found them very easy to work with. The really cheap ones out there charge extra for postage which brings them back into line with the 4-pin mounted ones I get for less than $8. BTW, the 4-pin versions have an on-board regulator so you can power them straight from +5V. The default baud rate is 9600 if you don't want to fiddle with anything.

    I reconfigured PropForth to output 9600 baud serial onto different I/O on a separate header I have on one of my pcbs which is basically 2 Prop I/Os and +5V and ground. So I plugged the BT module in and went back to Windows and paired via a COM port then I just use TeraTerm to communicate. Having Forth preloaded onto the Prop means that you only need this BT link to download new code etc. I can issue commands for my systems directly to the Forth console which makes it a very easy platform to develop on, and now, no wires!

    BTW, BlueTerm from an Android tablet works beautifully too!

  11. #11
    prof_braino's Avatar
    Location
    City of Chicago, State of Wonder, 2,158.4 mi to Parallax
    Posts
    3,946
    Blog Entries
    8

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    Sal is using the $6.44 modules for MCS/Go channels. He's got them at the standard (for MCS) 230400 baud and running 16 or 32 channels over each bluetooth connection. He didn't collect throughput data yet, but it looks like its slightly slower than wired, but still useable. When 5.3 is getting ready for release, we'll want to compare notes with you, as this bluetooth + MCS is looking like a new addition to the automated testing support.

    I didn't order any yet, but these are looking really cool.

  12. #12

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    Quote Originally Posted by prof_braino View Post
    Sal is using the $6.44 modules for MCS/Go channels. He's got them at the standard (for MCS) 230400 baud and running 16 or 32 channels over each bluetooth connection. He didn't collect throughput data yet, but it looks like its slightly slower than wired, but still useable. When 5.3 is getting ready for release, we'll want to compare notes with you, as this bluetooth + MCS is looking like a new addition to the automated testing support.

    I didn't order any yet, but these are looking really cool.
    Are these the same modules that I am using? Do you have a link for the ones that Sal is using?
    The best price I can get for the 4-pin version is $6.80 in 50 off but I may end up using the SMD version on my own adaptor to suit my standard 8-pin PropPlug/Expansion header.

  13. #13

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    Hi Prof, no need to worry about a reply, I found your link in the other thread so they are the same modules excepting of course the cheaper one is just the SMD module vs the ready to go 4-pin module. I decided to hook it up to the PC and check it's command codes and was able to set it to 230400 baud as well as change the device name. The unit holds the last setting which is what I want for a transparent connection. Using the latest FastSerial PropForth beta I set it up to 230400 baud and pasted a fair bit of code into it over bluetooth without mercy...... and it took it !!! Way to go, I will have to play some more

  14. #14

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    I have tried out these 4-pin Bluetooth modules on the Prop and especially with PropForth as the OTA diagnostics, command handler, and software development environment (non-Forthers are missing out big time). However I would like a module that would plug straight in to my Prop boards. These use an 4x2 header that's compatible with the Prop Plug as well. So I've ordered about 50 of the SMD Bluetooth modules which I will mount on my own backplane along with a few extra components. Before I go and get these backplane pcbs made maybe I can add a few enhancements, perhaps even a cheap (39 cents) MSP430 to monitor the serial and allow for OTA Prop bootloader programming.

    Here's a screenshot of the pcb artwork with the brown patch on the right side reserved for the BT's PCB antenna. The 5-pin connector on the left side is for SPI programming of the BT module via CSR's SDK while the 4x2 connector is what I want. The left hand side of this connector is PropPlug compatible if you flip the module upside down in which case I might allow for an extra LED to be mounted on the same side as the BT module to indicate state. The other 4 pins are usually I2C and VCC and a spare although in this version I have allowed for RTS/CTS if required, and if not then I don't loaded the resnet next to it.

    It's a pity that Parallax standardized on a 4-pin programming connector but never allowed for power with a 5th pin. On some boards I just add an extra power pin in series with the four however this pin is usually 5V so I always have a good LDO regulator so that I can operate from 5 or 3.3V as in the case of this adapter.

    Click image for larger version

Name:	BTSER.jpg
Views:	130
Size:	74.1 KB
ID:	93247

    So what do you think? Is there something I can add to this to help make it a bit more universal that more people can use?

  15. #15
    Cluso99's Avatar
    Location
    Sydney/Brisbane Australia or 'sailing on the high seas'
    Posts
    10,049

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    Nice work Peter.

    If possible, I use 5V,GND,/RTS,SI,SO,OUT as a 1x6pin header where the middle 4 are propplug. You don't have room for the OUT pin, but if possible I would like the 5V to be added above the gnd piin on your 2x4 header. My propplug equiv has this 6pin header (its on tubulars smorgasboard) which can provide 5v from the USB. This would make your board compatible to this propplug connection. IIRC Bill uses 3v3 and gnd the I/Os as a standard also. Just need provision for a link to bypass the onboard regulator.

    Which 3v3 regulator are you using. I use the MCP1700T-3V3 and use large pads to give a bit of heatsinking. The other day I found Element14 (local) have a sot23 regulator that will take up to ~15V input and 800mA and about the same price. I need to check its full specs but think this may be better than we are both using. I'll let you know offline.

    Do you have soace perhaps for an ATTiny 44/84 SOIC16 on the underside? If so, it can be programmed by the prop (I have posted code).
    My Prop boards: CpuBlade, TriBlade, RamBlade, www.clusos.com
    Prop Tools (Index)
    Emulators (Index) ZiCog (Z80)
    Prop OS (also see Sphinx, PropDos, PropCmd)

  16. #16

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    No problem to put an extra pad in-line next to the ground of the PropPlug section, it just fits in. I could put another pin on the other side of the board next to RXD if that helps too. I'm using a variety of 3.3V regs as there are so many to choose from and it is possible to use a good LDO that only drops less than 50mV so it doesn't matter if you run 3.3V straight into it. Even the cheap TC1185 (SOT-23) is close to this. BTW, what's the use of 15V input and 800ma anyway, the regulator's power handling is limited by the package, so it's going to be something like 15V input at 20ma or 3.6V input at 800ma (slightly exaggerated).

    If I use an ATTiny I would go for the QFN pack due to it's compactness. There doesn't seem to be any TSSOP packs readily available. My favorite is to use the Silabs chips even though they cost a little more, they are easy to ICP etc.

  17. #17
    Cluso99's Avatar
    Location
    Sydney/Brisbane Australia or 'sailing on the high seas'
    Posts
    10,049

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    Just the single 5V pad would be great. The other is not used here anyway. You have the MISO,MOSI & CLK which is reqd to program ATTiny's plus reset.

    Yes, its a pity there is not TSSOP for the ATTiny's. The SOIC16 (ATtiny24/44/84) takes the same space as the SOIC8 (ATtiny25/45/85) and they are almost the same price, so pointless using them. I am still not into QFN packages yet.

    OT I have a small pcb with QFNs for gyro, accelerometer, compass and pressure/temp. Could you do me a favour and reflow one for me???
    My Prop boards: CpuBlade, TriBlade, RamBlade, www.clusos.com
    Prop Tools (Index)
    Emulators (Index) ZiCog (Z80)
    Prop OS (also see Sphinx, PropDos, PropCmd)

  18. #18

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    Peter,
    Are you going to make these boards available assembled? If so, how much & how soon?
    Jim

  19. #19

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    After much deliberation I made what I think are my final design decisions and changes. I have considered quite a few different micros but added a cheap MSP430G2001 micro to the board so that it can permit OTA Prop firmware updates directly to the EEPROM (if you use the extended 4x2 pins) using a special command sequence and standard HEX files. It should be possible to also program the Prop via it's bootloader. The on-board micro also handles the firmware programming of the Bluetooth's Flash so I was able to get rid of a connector but this requires different firmware loaded into the MSP430 if this is ever necessary.

    The Prop uses the center outside 4 pins when this module is flipped over otherwise the connector suits my 4x2 and 5x1 PropPlug pin-outs. So there is a VCC connection on either side of the 4-pinProp Plug to suit other formats such as Cluso's. The other two extra pins are for programming the on-board micro.

    Click image for larger version

Name:	BTSER+BSL.jpg
Views:	122
Size:	94.4 KB
ID:	93290
    BTSER - Bluetooth Prop backplane module
    Overall length including BT antenna is 1.3" x 0.56"

    And yes, I will make these available soon as an assembled item, I just need to get some pcbs back and test them out. Should be good. Price is going to be a little bit more than what you would pay for the 4-pin ebay version but I will keep it cheaper than the PropPlug.

  20. #20

    Default Re: How to use those cheap Bluetooth modules with the Prop (and more)

    Here's an update on the pcb I did for these BT modules so that they can plug directly into a PropPlug plus allow OTA firmware updating (but not through the Spin tool). The PCB manufacturer quotes me 13 cents a piece for these boards so that even after I order 240 of them the shipping cost is still greater which is still far less than the tooling costs. In the end the pcbs end up costing 86 cents each in quantities of 240. I read and identified with the "Perils of pedward" about his PropKey and getting these manufactured in small quantities, it's something I go through all the time.

+ Reply to Thread

Similar Threads

  1. Touchscreen modules, Prop pins and memory size.
    By eagletalontim in forum Propeller 1 Multicore Microcontroller
    Replies: 28
    Last Post: 02-07-2012, 06:17 AM
  2. Xbee wifi modules and prop?
    By smbaker in forum Propeller 1 Multicore Microcontroller
    Replies: 2
    Last Post: 08-03-2011, 07:08 PM
  3. Bluetooth modules to transmit audio stream?
    By Peter Jakacki in forum Propeller 1 Multicore Microcontroller
    Replies: 3
    Last Post: 06-15-2010, 01:54 PM
  4. Peltier Thermoelectric cooling modules - Has anyone used a Prop to rule these b
    By ElectricAye in forum Propeller 1 Multicore Microcontroller
    Replies: 26
    Last Post: 08-13-2009, 01:05 AM
  5. Cheap Wireless Prop-Prop Communication
    By Philldapill in forum Propeller 1 Multicore Microcontroller
    Replies: 6
    Last Post: 03-16-2009, 08:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts