Skip to content

The Shimmer3.py module provides APIs to handle in a friendly way the Shimmer3 devices with LogAndStream firmware.

Notifications You must be signed in to change notification settings

matmont/shimmer3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Shimmer3 module

Shimmer3.py is a module written in Python that provides a set of API to handle in a friendly way the Shimmer3 devices with LogAndStream firmware.

The module offers API to:

  • Connection and Disconnection
  • Start and stop streaming data via bluetooth
  • Read data packets
  • Configuration of the devices and enable/disable sensors
  • Calibration of raw data to converted data

An example of use:

from shimmer import shimmer, util

TYPE = util.SHIMMER_GSRplus
PORT = "COM14"

shimmer = shimmer.Shimmer3(TYPE, debug=True)
shimmer.connect(com_port=PORT, write_rtc=True, update_all_properties=True, reset_sensors=True)
shimmer.set_sampling_rate(512.0)
shimmer.set_enabled_sensors(util.SENSOR_LOW_NOISE_ACCELEROMETER)
shimmer.print_object_properties()

shimmer.start_bt_streaming()

reads = []

try:
    while True:
        n_of_packets, packets = shimmer.read_data_packet_extended(calibrated=True)
        if n_of_packets > 0:
            for packet in packets:
                print(packet)
except KeyboardInterrupt:
    shimmer.stop_bt_streaming()
    shimmer.disconnect(reset_obj_to_init=True)

About

The Shimmer3.py module provides APIs to handle in a friendly way the Shimmer3 devices with LogAndStream firmware.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages