Code Monkey home page Code Monkey logo

stm32f7-rtlsdr's Introduction

stm32f7-rtlsdr

Portable SDR using STM32F7-Discovery board and RTLSDR USB receiver.

Motivation

We want to make a low-cost RF spectrum analyzer / receiver using an RTL-SDR compatible dongle connected to an STM32F7-Discovery board. The goal is to demonstrate the DSP capabilities of the STM32F7 processor and the usage of the USB Host Middleware in STM32 Cube to implement a custom class.

Build system

The project is developed using the free, Eclipse-based IDE called System Workbench for STM32 (SW4STM32). To set-up the IDE you should follow the instructions of the site. I used Eclipse Neon for C/C++ developers under Ubuntu 16.04.

Current status

  • USBH driver is able to recognize and enumeate RTL-SDR
  • Manipulating RTL2832 registers with USB Control Transfers working
  • USBH driver was modifed to be able to deal with Stalled Control Transfers, that may arise while recognizing the RTL-SDR tuner chip by I2C.
  • Tuner chip recognition (probing) is working.
  • Elonics E4000 tuner driver is working.
  • The data samples from RTLSDR are successfully copied to a SDRAM buffer.

Next tasks

  • Use DMA for speeding up the data transfers from EP1 (samples)
  • Perform some FFT on the samples to check what we are receiving.
  • Check the correct operation of E4K_tune_freq
  • Implement/Port other tuners from librtlsdr.

Requirements

Hardware

  • STM32F7-Discovery Evaluation Board
  • RTL-SDR compatible USB dongle
  • Micro USB to USB OTG Adapter Cable (Look for in eBAY)
  • External 5V power supply to STM32F7-Discovery.

Software

  • Linux standard build system (Make)
  • GNU ARM Compiler Toolchain
  • OpenOCD (properly patched for STM32F7)

Power supply issues

The STM32F7-Discovery board connected to an RTL-SDR dongle was found to draw a total current of approximately 650mA. This is beyond the limit of current that can be provided by a standard USB 2.0 port (500mA). Therefore an external 5V power supply must be attached to JP2. In addition, the JP1 jumpers must be set as follows:

  • JP1 5Vext: ON
  • JP1 5Vlink: OFF
  • JP1 USB_FS: OFF
  • JP1 USB_HS: OFF

Screenshot

Screenshot

stm32f7-rtlsdr's People

Contributors

vpecanins avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.