Skip to main content

Python class for serial communication with QuSpin Zero Field Magnetometer

Project description

QuSpin Zero Field Magnetometer DAQ

Read and control QuSpin magnetometer (unofficial)

Uses QZFM commands to send/receive signals via the pySerial module. See also this guide for more info on setup for the QuSpin.

This has been tested on the QuSpin Triaxial sensor.


See API documentation here.

Documentation generated with handsdown


Debugging Issues

Known issues with connecting to QuSpin:

1. Lacking permissions to access USB device [LINUX]

If your user lacks permissions to read/write from the USB device follow the below:

# check which group can use the USB device
# in the below example, we need to make sure the user is a part of the group "dialout"
$ ls -l /dev | grep USB
crw-rw----   1 root      dialout 188,   0 May 30 18:18 ttyUSB0

# check which users are in the group dialout
$ getent group dialout
dialout:x:20:dfujimoto

# if your user is listed above, then you have a different problem. If not then add your user to the group
$ sudo usermod -a -G dialout yourusername

# then logout to have the changes take effect

2. Cannot find device

If one cannot find the device you can look at the list of available ports and devices using the following python script:

from serial.tools import list_ports

for port in list_ports.comports():
    print(port)

On linux you should see something like ttyUSB0 listed next to a device which has the QuSpin ID (i.e. something like Z3T0). Update your connection string as needed.

In windows you're likely to see something like COM3 or COM5. Use the relevant COM device as the connection string.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

QZFM-0.0.4.tar.gz (11.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page