Jump to content
  • 0

Pmodbt2 - Bluetooth Functionality Implementation


amosczh

Question

Hi,

 

We would like to implement bluetooth capabilities on our FPGA (nexys3) board. We want an app on our mobile phone to be able to transmit and receive data to/from the FPGA.

We have tried looking for sample codes all over the net but we couldn't find any. Hope that any of you guys have experience working with this pmod module.

 

1) How should I go about implementing this in verilog?

2) For the app, is there data formatting to be done on the phone application? I'm looking at the default slave mode for this application. To use this mode, do I need to enter command mode, and transmit '$$$' from my mobile application?

 

These are some of the reference materials for the pmodBT2.

http://www.digilentinc.com/Products/Detail.cfm?Prod=PMOD-BT2

http://www.digilentinc.com/Data/Products/PMOD-BT2/PmodBT2_rm.pdf

http://ww1.microchip.com/downloads/en/DeviceDoc/bluetooth_cr_UG-v1.0r.pdf

 

Cheers,

Amos

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

Hi Amos,

 

Welcome to the Forum!

 

The Pmod-BT2 is really handy because it should work with just about any reference materials that use a UART interface. Basically you pair it with a bluetooth host (PC, etc.) and create a virtual COM port that can be communicated with the same way as an RS232 device or a USB-UART bridge. To prove this, we ported the Nexys3 ISE GPIO demo (DSD-0000314 on the Nexys3 product page) so that it uses the PmodBT2 instead of using the onboard USB-UART bridge. Here is a link to the Wiki page with the source code and instructions for running the demo: https://reference.digilentinc.com/nexys:nexys3:pmodbt2_demo.

Link to comment
Share on other sites

Hi sbobrowicz,

 

Thanks for the reply and resources! I have downloaded and viewed the files and they are awesome. However, the code is in vhd and I have no knowledge on vhd.

 

This is a noob question but i'm wondering if there is a verilog version (.v) so that I'm able to modify the code to my needs.

 

Once again, thanks for your help!

Link to comment
Share on other sites

Hi Sam,

 

I'm able to transmit using the pmodbt2, but not able to receive. Say I wanted use the same Android bluetooth terminal you pointed to in your demo link and transmit back to pmodbt2, do have a demo for this functionality? Thank you.

Alex

Link to comment
Share on other sites

Hi,

 

I believe a demo for receiving data through UART was being worked on; I'll ask around and find out the status on that.  In the mean time, you can check out these two reference designs for RS232 which utilizes UART here and here.

 

Thanks,

JColvin

Link to comment
Share on other sites

Hi ker_ouss,

You would add the VHDL files to the new project and then make a new XDC for the zybo using the UCF of the Nexys 3 as a reference. Here is a link to our Github that has IP's for most of our Pmods like the PmodBT2. These IP's are made with both zynq and microblaze architecture in mind. 

cheers,

Jon

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...