Skip to content

Customize

Once you've gotten started, use these simple demos as branching points to extend the system to your use case.

Analog Plotter

A custom host-side app that plots analog data using the built-in sensor node app qtpycmd.

  •   Analog input
  •   Network / MQTT
  •   Serial / UART

Screenshot of Analog Plotter demo app

  1. Copy the app's source file analog_plotter.py to your qtpy-preview folder
    • View it in your browser
    • Save-As to download it directly
  2. Run it with
    PowerShell
    python analog_plotter.py
    
  3. Edit the variables at the top of get_and_plot_data() to exercise the features
    • Note that this example only enables UART communication to start
    • If you setup MQTT to use WiFi, change use_mqtt to True
      get_and_plot_data()
        # Customize
        use_uart = True
        use_mqtt = False
        minimum_mqtt_node_count = 1
        channel_cmd_string = "A0 A3"
        mqtt_group = datatypes.Default.MqttGroup
        max_adc_voltage = 3.3
        max_adc_code = 2**16
      

Full-stack app

Still cooking...

Ready for more?

See Develop and choose:

  • Add qtpy-datalogger to your project
  • Or fork-and-branch

Go get logging!