Skip to main content

Remotely Control And Monitor An 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.1.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

telemetrix_nano_2040_wifi-1.1-py2.py3-none-any.whl (16.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file telemetrix-nano-2040-wifi-1.1.tar.gz.

File metadata

File hashes

Hashes for telemetrix-nano-2040-wifi-1.1.tar.gz
Algorithm Hash digest
SHA256 bbcfe8b2b72d06f96c6119b362b337cdbcde34706e4d88c8617f93f593c20b04
MD5 508299245872276e703dd93fb78b28be
BLAKE2b-256 353a6a6d539ba9b8cada21d758a8263f0442987c2e264574320ed3a5cb78d3c2

See more details on using hashes here.

File details

Details for the file telemetrix_nano_2040_wifi-1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for telemetrix_nano_2040_wifi-1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e524f75ee82b785f5db96ff01ee1ac458d378bfd6aa008123d36728b3d4d6890
MD5 3b465faf9c548f4af8269aef8867b1f8
BLAKE2b-256 c881ac66774b3f459b8a87d1261486696135afede44faae40c90150f0fc7f455

See more details on using hashes here.

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