• 0
amosczh

Pmodbt2 - Bluetooth Functionality Implementation

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

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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!

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

Edited by jpeyron

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now