Author Topic: Basys 3 connected to smartphone.  (Read 3318 times)

0 Members and 1 Guest are viewing this topic.

Offline GuilTyTopic starter

  • Contributor
  • Posts: 35
  • Country: ro
  • Electronics
Basys 3 connected to smartphone.
« on: May 26, 2016, 07:28:41 am »
I want to connect  a smartphone to the Basys 3 FPGA board from Xilinx. Has anybody tried this before and have some piece of advice on how to do that?

For the beginning I just want to establish the connection between the smartphone and FPGA. I'm thinking of designing an android app that sends data to the FPGA board,  and lights an LED from the board.

Is there any chance that I can use the usb type A from the FPGA or do I need to use the micro-usb type B?
 :scared: :scared:
I have attached a picture with the board and a reference manual of it.
Link to reference manual: https://reference.digilentinc.com/_media/basys3:basys3_rm.pdf


Thank you,
GuilTy
 

Offline bazsa56

  • Contributor
  • Posts: 24
  • Country: hu
Re: Basys 3 connected to smartphone.
« Reply #1 on: May 26, 2016, 04:38:45 pm »
You have 3 options basically:

- As far as I know FTDI has usb serial port support for Android with some sort of API ready. Never tried it.
- You could use a bluetooth serial port module. The're available pretty cheap these days and the cheaper ones are quite easy to use. Used a few of these where I wrote both the PC/Android/iOS/WP code and the MCU code. Should be pretty easy to inteface with an FPGA.
- Use a Wifi module. There are some wifi->serial port modules out there that are quite easy to use. This option though would still be the hardest. Good learning experience though.
 

Offline jnz

  • Frequent Contributor
  • **
  • Posts: 593
Re: Basys 3 connected to smartphone.
« Reply #2 on: May 26, 2016, 05:54:39 pm »
You have 3 options basically:

- As far as I know FTDI has usb serial port support for Android with some sort of API ready. Never tried it.
- You could use a bluetooth serial port module. The're available pretty cheap these days and the cheaper ones are quite easy to use. Used a few of these where I wrote both the PC/Android/iOS/WP code and the MCU code. Should be pretty easy to inteface with an FPGA.
- Use a Wifi module. There are some wifi->serial port modules out there that are quite easy to use. This option though would still be the hardest. Good learning experience though.

That's pretty much it.

I'd add that if you only need slow data, there is the data-over-3.mm-audio connection to the headset jack.

The FDTI/Serial/USB over an actual wire is 99% NO GO on iphone.

Bluetooth is divided into Bluetooth Classic (SPP for serial connection) and BT Low Energy (BT Smart actually, but no one calls it that.

And wifi is going to be the only fast option that works regardless of platform.
 

Offline hamster_nz

  • Super Contributor
  • ***
  • Posts: 2803
  • Country: nz
Re: Basys 3 connected to smartphone.
« Reply #3 on: May 26, 2016, 09:08:01 pm »
I've got a project allowing a Basys3 to talk to a ESP8266 WiFi module... In this case it sends data from the Basys3 to preconfigured IP address, but you could adapt it to receive data off the Wifi too.

http://hamsterworks.co.nz/mediawiki/index.php/FPGA_ESP8266
Gaze not into the abyss, lest you become recognized as an abyss domain expert, and they expect you keep gazing into the damn thing.
 

Offline GuilTyTopic starter

  • Contributor
  • Posts: 35
  • Country: ro
  • Electronics
Re: Basys 3 connected to smartphone.
« Reply #4 on: May 27, 2016, 07:13:14 am »
Thank you all for your responses. I've taken into consideration using bluetooth and Wi-fi, but I was more curious if I can establish a connection between smartphone and FPGA using an USB cable.
 
Thanks for the example.
I've got a project allowing a Basys3 to talk to a ESP8266 WiFi module... In this case it sends data from the Basys3 to preconfigured IP address, but you could adapt it to receive data off the Wifi too.

http://hamsterworks.co.nz/mediawiki/index.php/FPGA_ESP8266

Happy synthesis,
GuilTy
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9018
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Basys 3 connected to smartphone.
« Reply #5 on: May 30, 2016, 01:18:39 am »
It looks like the Basys doesn't connect the SPI from the PIC to the FPGA, unlike the Atlys. I once managed to program the PIC onboard the Atlys to communicate with an Android tablet and charge it at the same time, but the PIC only implements USB 1.1 which greatly limits the potential applications. I looked into using a PIC32 with USB 2.0 to replace it but the pinout wasn't compatible. Most likely I'll end up adding a small Linux embedded system like a Pi Zero.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf