Skip to main content

Telemetrix Client For The Arduino Nano RP2040 Connect

Project description

Telemetrix-Nano-2040-WiFi

Telemetrix-Nano-2040-WiFi is a member of the Telemetrix family and is a Python client specifically tailored to remotely control and monitor an Arduino Nano RP2040 Connect using Python scripts running on your PC.

When paired with the Telemetrix4Connect2040 custom Arduino server sketch, control and monitoring of the Arduino Nano RP2040 Connect is accomplished using a Wi-Fi link between the PC and the Arduino.

This library supports the following features:

  • Analog and Digital Input
  • Digital Outputs including PWM
  • Onboard devices:
    • IMU
    • Microphone
    • RGB LED
  • I2C device communications.
  • SPI device communications.
  • HC-SR04 Type distance sensors.
  • DHT Type humidity/temperature sensors.
  • Servo motors.
  • NeoPixel strips.

A User's Guide explaining installation and use is available online.

The Python API for may be found here.

Here is a sample project that blinks the Arduino Board LED:

import sys
import time

from tmx_nano2040_wifi import tmx_nano2040_wifi

"""
Blink the board LED.
"""

# some globals
DIGITAL_PIN = 13  # the board LED

# Create a Telemetrix instance.
board = tmx_nano2040_wifi.TmxNano2040Wifi(ip_address='192.168.2.246')

# Set the DIGITAL_PIN as an output pin
board.set_pin_mode_digital_output(DIGITAL_PIN)

# Blink the Board LED
for blink in range(3):
    # When hitting control-c to end the program
    # in this loop, we are likely to get a KeyboardInterrupt
    # exception. Catch the exception and exit gracefully.
    try:
        print('1')
        board.digital_write(DIGITAL_PIN, 1)
        time.sleep(1)
        print('0')
        board.digital_write(DIGITAL_PIN, 0)
        time.sleep(1)
    except KeyboardInterrupt:
        board.shutdown()
        sys.exit(0)
board.shutdown()
sys.exit(0)

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

telemetrix_nano_2040_wifi-1.2.2.tar.gz (49.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

telemetrix_nano_2040_wifi-1.2.2-py3-none-any.whl (70.3 kB view details)

Uploaded Python 3

File details

Details for the file telemetrix_nano_2040_wifi-1.2.2.tar.gz.

File metadata

File hashes

Hashes for telemetrix_nano_2040_wifi-1.2.2.tar.gz
Algorithm Hash digest
SHA256 0526a9841b772e47638dda44f60e3de13ff219837cfda0555adc62370e589dc8
MD5 3e2330c477b1eb94363260898638e5e3
BLAKE2b-256 66981681ace091c9656cfb96f70a61fd0ba4f5001a756cc932263407a6315769

See more details on using hashes here.

File details

Details for the file telemetrix_nano_2040_wifi-1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for telemetrix_nano_2040_wifi-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d1b0b97ea45cdfe7cb1ff08701a21ea71997e00ec2562d33edfef80edb4067d3
MD5 6f2f14c1255433c31e1b7a702afa7bc8
BLAKE2b-256 dfb751a6d46f1863f8de73cb0fab3a18b3dc68f6bc826a4678b5d76ece34d788

See more details on using hashes here.

Supported by

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