User Tools

Site Tools


bluetooth

The link below will point you toward a page that contains a new hardware system that you will allow you to access the bluetooth module via a PMOD. It also has a main.c file that contains code that shows how to access the Android handset via software.

Important Notes

Some of the pins from the previous 330 hardware were repurposed (there aren't enough PMOD slots to add the Bluetooth module and keep all of the previous pin assignments). For GPIO purposes (the trigger, etc.) you will need to use the keypad GPIO module. This gives you a total of 8 pins that you can individually configure to be inputs or outputs. There is an example on how to use the keypad GPIO in the Main.c file that you can see on the web page located at the link. You can see the keypad pin assignments in the UCF file that can be viewed at the same link.

Here are the steps:

  1. Download the zip'd hardware system below and import it into the SDK as shown in the original 330 tutorials. It defines a couple of pins on the JB PMOD connector that access the Bluetooth PMOD.
  2. Check out a Bluetooth PMOD from the shop.
  3. Look at the file named Main.c on the same web page where you downloaded the hardware system. Access to the bluetooth PMOD is via the XUartLite_ functions. Carefully study the code to see how to access the Bluetooth module.
  4. You will also need to checkout an Android handset from the shop. You will pair the handset with your system (just as you do with any Bluetooth system) and then run the Laser Tag application that has already been installed on the handset.

Hardware System - 390 Students use this!

This is the XPS System used to generate the hardware system - Don't use this

Here is the old link to the software examples (don't use the hardware systems that are located there).

http://lasertag.groups.et.byu.net/doku.php?id=milestone_2_code

Here is a link to some simple documentation that describes both how to use and some limitations in the current Android app.

Andriod App Doc

Happy Bluetoothing!

bluetooth.txt · Last modified: 2014/04/04 12:00 by hutch