element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Test & Tools
  • Technologies
  • More
Test & Tools
Blog PSA.. SCPI firmware for Pico Data Acquisition Board as a plug-in module
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Test & Tools to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 13 Nov 2023 1:36 PM Date Created
  • Views 747 views
  • Likes 8 likes
  • Comments 2 comments
  • raspberry
  • pico_usbtmc_scpi
  • pico
  • USBTMC
  • Pico SCPI labTool
  • labview
  • scpi
Related
Recommended

PSA.. SCPI firmware for Pico Data Acquisition Board as a plug-in module

Jan Cumps
Jan Cumps
13 Nov 2023

The Data Acquisition Board for Pi Pico is an analogue front end for the Raspberry Pico. 
I turned the SCPI firmware for into a submodule that you can plug in your PST.. based designs. 

image

What is that module?

It's a library for the data acquisition board. The module includes

  • SCPI commands to get the 2 analogue input values
  • the initialisation code,
  • board detection
  • communication with the ADC

Adding support to projects based on the PST.. template design (see  Do you want to create your own Pico SCPI device, based on PST.. Pico SCPI USBTMC labLib (and labTool)? ) is easy. A few (really, 5!) lines of code.

Add support for the board to your firmware

Starting point: you have started a project based on the PST template (see again  Do you want to create your own Pico SCPI device, based on PST.. Pico SCPI USBTMC labLib (and labTool)? )

  1. Go to the project base folder.
  2. Add the submodule
  3. Amend the CMake file (1 line)
  4. Add an include (1 line), init code (2 lines), and SCPI commands (1 line)

Here are the details:

In your project base folder, execute these commands to add the module:

git submodule add https://github.com/jancumps/pico_scpi_mod_dataacquisitionboard.git

git add .

git commit -a -m "PSA as submodule"

git push

In ./CMakeList.txt, add this line:

pico_add_subdirectory(pico_scpi_mod_dataacquisitionboard)

This will add the include folder to the path, and take care that the lib sources are built when you build your firmware.

In ./scpi/scpi-def.c, add to the includes:

#include "dab_utils.h"

this to the scpi commands section:

    INSTRUMENT_DAB_INP_COMMANDS

and this to the end of initInstrument() :
    initDabUtils();
    initDabPins();

That is it. Your instrument now supports the  Data Acquisition Board for Pi Pico 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

link to all posts

  • Sign in to reply
  • Jan Cumps
    Jan Cumps over 1 year ago in reply to shabaz

    3 Hz sinus

    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 1 year ago

    Wow

    Pretty mind-blowing just how well the software modules can connect together like this. Its going to be a great example for future add-ons too.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube