SMK
User Manual
www.terasic.com
October 25, 2017
Content
Chapter 1
Introduction.................................................................................... 1
1.1 Package Contents ...........................................................................................................1
1.2 RFS System CD .............................................................................................................3
1.3 Assemble the RFS Daughter Card .................................................................................3
1.4 Getting Help ...................................................................................................................7
Chapter 2
RFS Daughter Card ....................................................................... 8
2.1 Features ..........................................................................................................................8
2.2 Block Diagram of the RFS Daughter Card ....................................................................9
2.3 Component Layout .........................................................................................................9
2.5 Interface for FPGA Host ..............................................................................................10
Chapter 3
RTL Example Designs ................................................................. 11
3.1 Query Current Time through Wi-Fi ............................................................................. 11
3.2 Bluetooth SPP Slave ....................................................................................................15
3.3 Sensor Measurement ....................................................................................................22
Chapter 4
Nios II Based Example Designs ................................................... 28
4.1 Wi-Fi Client .................................................................................................................28
4.2 Wi-Fi Server .................................................................................................................34
4.3 Bluetooth Configuration ..............................................................................................39
4.4 Bluetooth SPP Master ..................................................................................................46
4.5 Sensor Measurement ....................................................................................................55
Chapter 5
Appendix A .................................................................................. 62
5.1 Revision History ..........................................................................................................62
SMK User Manual
www.terasic.com
October 25, 2017
Chapter 1
Introduction
The RFS (Radio Frequency and Sensor) daughter card is designed for the applications such as
wireless control, environment monitor, and IoT (Internet of Things). The daughter card can be
linked to the FPGA development kit via the 2x20 Pin GPIO connector.
The daughter card include Wi-Fi and Bluetooth wireless capabilities and includes a lot of sensors.
Sensors include ambient light sensor, temperature sensor, humidity sensor, accelerometer,
magnetometer, and gyroscope. An UART-to-USB interface also be provided to communication with
Host PC.
1.1 Package Contents
Figure 1-1
shows the RFS kit content. It includes
1.
2.
3.
RFS Daughter Card
CD Download Guide
40-pin IDC to Box Header Cable
RFS User Manual
www.terasic.com
October 25, 2017
1
Figure 1-1 The RFS Kit content
RFS User Manual
www.terasic.com
October 25, 2017
2
1.2 RFS System CD
The RFS System CD contains all the documents and supporting materials associated with the
daughter card, including the user manual, reference designs, and device datasheets. Users can
download this system CD from the link:
http://rfs.terasic.com/cd.
1.3 Assemble the RFS Daughter Card
The RFS daughter card can be connected to any FPGA development kit that is equipped with a
2x20 Pin GPIO connector. It can directly connect to the FPGA mainboard or indirectly connect to
the FPGA board via a 40-pin IDC Cable. The pictures below show how the RFS daughter card is
connected to various Terasic FPGA Boards:
Figure 1-2 Connect the RFS to DE10-Lite directly
RFS User Manual
www.terasic.com
October 25, 2017
3