GithubHelp home page GithubHelp logo

antboard / discotmc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from karlp/discotmc

8.0 6.0 8.0 472 KB

USBTMC DAC firmware for the stm32f4 discovery board

C 82.51% C++ 3.32% Makefile 10.69% Python 3.48%

discotmc's Introduction

This is a usbtmc 2 channel function generator on an stm32F4 discovery board. Bandwidth and all that sort of stuff is limited, we're using the onboard DAC, but the flexibility can't be beat.

Current status:

  • dual channel sine wave output, 1hz-20khz. (granularity is terrible above ~4kHz, but that's fixable)
  • Load arbitrary data and output. (lots of bugs in data bigger than usb frames)
  • still bugs in usb comms, need to reset the board far too often.
  • Some preliminary support for the L1...

getting started....

git submodule update --init

Device firmware portion

make -C libopencm3
make -C scpi-parser/libscpi
make -C device/stm32_ocm3/stm32f4discovery
(assuming openocd installed and operational)
make -C device/stm32_ocm3/stm32f4discovery flash

See device/native-tcp-server for a host build of the core functionality. (No DAC, but all the wavetable generation and SCPI parsing code can be tested)

host side

sudo cp 68-disco-tmc.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
[plug in or reset board here]
virtualenv --system-site-packages .venv
. .venv/bin/activate
pip install -e python-usbtmc
python tmcpoke.py   # should toggle the red led on the board

discotmc's People

Contributors

karlp avatar

Stargazers

 avatar  avatar arphone avatar onlyistranger avatar  avatar zsuiris avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar  avatar 极客icecut avatar  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.