Basys 3 connected to smartphone.  - Page 1
Forum section: electronics / general

author: GuilTy
author_rank: Contributor
timestamp: May 26, 2016, 07:28:41 am
content: 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?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.pdfThank you,GuilTy

author: bazsa56
author_rank: Contributor
timestamp: May 26, 2016, 04:38:45 pm
content: 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.

author: jnz
author_rank: Frequent Contributor
timestamp: May 26, 2016, 05:54:39 pm
content: Quote from: bazsa56 on May 26, 2016, 04:38:45 pmThat'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.

author: hamster_nz
author_rank: Super Contributor
timestamp: May 26, 2016, 09:08:01 pm
content: 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

author: GuilTy
author_rank: Contributor
timestamp: May 27, 2016, 07:13:14 am
content: 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.Quote from: hamster_nz on May 26, 2016, 09:08:01 pmHappy synthesis,GuilTy

author: NiHaoMike
author_rank: Super Contributor
timestamp: May 30, 2016, 01:18:39 am
content: 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.