element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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
  • 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: 12 Nov 2023 9:32 PM Date Created
  • Views 513 views
  • Likes 7 likes
  • Comments 1 comment
  • pico_usbtmc_scpi
  • pico
  • USBTMC
  • Pico SCPI labTool
  • labview
  • raspberry_pi_projects
  • scpi
Related
Recommended

PSA.. SCPI firmware for Pico Data Acquisition Board

Jan Cumps
Jan Cumps
12 Nov 2023
PSA.. SCPI firmware for Pico Data Acquisition Board

The Data Acquisition Board for Pi Pico is an analogue front end for the Raspberry Pico. 
I created SCPI firmware for it. To validate shabaz 's sample code for the board. And to see if our Pico SCPI framework can be used for custom designs. 

image

What's the Pico Data Acquisition Board?

See  Data Acquisition Board for Pi Pico . It is a Pico-sized board that adds two analogue inputs to a Pico. You get 2 16-bit differential ADC channels, with +-4 V input range. You talk to it (actually: to its ADC IC) via i2c.

image

The board is versatile and flexible. You can use it with Python or C. Single-shot or continuously sampling. It's up to the firmware designer. And that's a segway to:

SCPI firmware for the board

We 've been working on a Pico library for SCPI instruments. To allow you to develop LabVIEW (and standards!) compatible test instruments. The library comes with an example project, The Pico SCPI labTool.

To real test for the library is, to check if you can make an application for new hardware. That's what I'm doing here.
I took the labTool firmware template, and used it as a bootstrap to build a firmware for the Data Acquisition Board for Pi Pico .

What can it do:

  • the essential: get voltage form the acquisition board's two +- 4 V inputs, 16 bits, via SCPI
  • IEEE488.2 standard USBTMC and SCPI functions
  • additionals - 3 x GPIO in, 3 X GPIO out, 2 x 12 bit ADC in (0 - 3.3 V)

image

Commands:

ANAlog:HIres:INPut#?

ANAlog:HIres:INPut#:RAW?

The .uf2 ready-to-load firmware (and source code) is available on GitHub.

To see what the firmware does, check the ./pico_scpi_mod_dataacquisitionboard subfolder. In essence, it's almost identical to the example code for the board. Adapted to become a single shot test instrument.
I've prepared that code so, that it can be offered as a lib - and (soon) as a Git submodule. You could start your own PST based firmware, and "just add" this functionality, including its SCPI commands.

LabVIEW driver

The driver will be adapted to work with this firmware too.
You 'll be able to change the ID string, so that it can regognise the analog tool.
There is an new example for the board too. Available for download on GitHub, in the driver's develop branch.

image

edit: see also  PSA.. SCPI firmware for Pico Data Acquisition Board as a plug-in module .

link to all posts

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

    This is always a highlight of LabVIEW for me.. one can always drop in a proper decent meter dial to display your voltages!

    • 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