Total Phase Aardvark Adapter connection (2024)

Total Phase Aardvark Adapter connection

Since R2023a

expand all in page

    Description

    An aardvark object represents a connection to a Total Phase® Aardvark I2C/SPI™ Host Adapter. The Aardvark™ controller can have one or more I2C peripheral devices connected to it. To configure and communicate with a peripheral device on the Aardvark controller, you must first create an aardvark object and then use the device function. You can connect to multiple peripheral devices with a single aardvark object. The aardvark object in MATLAB® always has the I2C controller role and cannot be used in the peripheral role.

    Note

    To use the aardvark interface, you must have the Instrument Control Toolbox™ Support Package for Total Phase Aardvark I2C/SPI Interface installed. For more information, see Install Instrument Control Toolbox Support Package for Total Phase Aardvark I2C/SPI Interface.

    Creation

    Syntax

    controller = aardvark(serialNumber)

    controller = aardvark(serialNumber,Name=Value)

    controller = aardvark

    Description

    example

    controller = aardvark(serialNumber) creates a connection to the Total Phase Aardvark I2C/SPI Host Adapter specified by the serial number serialNumber. You can find the serial number for your Aardvark controller by calling the aardvarklist function.

    The input serialNumber sets the SerialNumber property.

    controller = aardvark(serialNumber,Name=Value) creates a connection to the Aardvark controller board and sets properties using one or more name-value arguments, where Name is the property name and Value is the corresponding value. Set the EnablePullupResistors and EnableTargetPower properties using name-value arguments as Name1=Value1,...,NameN=ValueN, where Name is the property name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the arguments does not matter.

    example

    controller = aardvark, without arguments, attempts to create a connection to the last successfully connected Aardvark controller board. If you have not previously connected to an Aardvark controller, using this syntax creates a connection to the first available controller in the aardvarklist output.

    Properties

    expand all

    This property is read-only.

    Controller board model, specified as Total Phase Aardvark.

    Example: controller.Model returns the model Total Phase Aardvark.

    Data Types: string

    This property is read-only.

    Unique numeric identifier of the Total Phase Aardvark controller board, specified as a string scalar. This property can be set only at object creation.

    Example: controller.SerialNumber returns the unique identifier of the Aardvark controller.

    Data Types: string

    This property is read-only.

    Digital pins available on Aardvark controller, specified as a string array. Connect your I2C peripheral devices to the controller using these pins. Refer to the Aardvark documentation for a description of each pin. Configure and communicate with these pins using configureDigitalPin, readDigitalPin, and writeDigitalPin.

    Example: controller.AvailableDigitalPins returns the digital pins of the Aardvark controller.

    Data Types: string

    This property is read-only.

    Voltage level of pins in volts, specified as 3.3. This is the only possible voltage level of the pins on the Aardvark controller.

    Example: controller.VoltageLevel returns the voltage level of the Aardvark pins.

    Data Types: double

    Setting to allow I2C communication by enabling internal pullup resistors, specified as a numeric or logical 1 (true) or 0 (false). Each I2C line (SCL and SDA) has a 2.2 kΩ resistor. When enabled, they are pulled up to 3.3 V, resulting in approximately 1.5 mA of pullup current.

    Example: controller.EnablePullupResistors = false disables internal pullup resistors.

    Data Types: logical

    Setting to allow target power on pins 4 and 6 of the Aardvark controller, specified as a numeric or logical 1 (true) or 0 (false).

    Example: controller.EnableTargetPower = false disables target power on pins 4 and 6.

    Data Types: logical

    This property is read-only.

    Modes of digital pins of Aardvark controller, specified as a table. The table has the columns Pin and Mode. Pin lists the digital pins specified by AvailableDigitalPins and Mode lists the pin mode of each of these pins as input or output.

    When you create an aardvark object, all the pins are input by default. Change pin modes using configureDigitalPin. You can read logic values from input pins using readDigitalPin and send logic level values to output pins using writeDigitalPin.

    Example: controller.DigitalPinModes returns a table with the pin modes of the digital pins on the Aardvark controller.

    Data Types: table

    Object Functions

    configureDigitalPinSet digital pin mode on controller
    readDigitalPinRead logic level value of digital pin on controller
    writeDigitalPinWrite logic level value to digital pin on controller
    scanI2CBusScan for I2C peripheral devices connected to controller board

    Examples

    collapse all

    Connect to Total Phase Aardvark I2C/SPI Host Adapter

    Discover and connect to a Total Phase Aardvark I2C/SPI Host Adapter controller board on your machine.

    Use aardvarklist to list all available Total Phase Aardvark I2C/SPI Host Adapter controller boards connected to your machine.

    list = aardvarklist
    list = 1×2 table Model SerialNumber ______________________ ____________ 1 "Total Phase Aardvark" "2239143731" 

    Use the value of SerialNumber to create a connection to your Aardvark.

    controller = aardvark(list.SerialNumber)
    controller = Aardvark with properties: Model: "Total Phase Aardvark" SerialNumber: "2239143731" AvailableDigitalPins: ["Pin1" "Pin3" "Pin5" "Pin7" "Pin8" "Pin9"] Show all properties, functions

    You can now connect to any I2C peripheral devices on the Aardvark controller by using the device function.

    Set Digital Pin Mode on Total Phase Aardvark I2C/SPI Host Adapter

    Connect to a Total Phase Aardvark I2C/SPI Host Adapter and configure the pins on it.

    Connect to the Total Phase Aardvark using its serial number. In this example, the Aardvark controller board that is connected to the computer has a serial number 2239143731.

    controller = aardvark("2239143731");

    View the available digital pins on the controller and their respective pin modes by using the DigitalPinModes property.

    controller.DigitalPinModes
    ans = 6×2 table Pin Mode ______ _______ "Pin1" "input" "Pin3" "input" "Pin5" "input" "Pin7" "input" "Pin8" "input" "Pin9" "input"

    Configure pin 5 as output.

    configureDigitalPin(controller,"Pin5","output")

    Since pin 5 is an output pin, you can now send it a logic high level using writeDigitalPin.

    Scan for I2C Peripheral Devices on Total Phase Aardvark I2C/SPI Host Adapter

    Connect to a Total Phase Aardvark I2C/SPI Host Adapter and scan for I2C peripheral devices connected to it.

    Connect to the Total Phase Aardvark using its serial number. In this example, the Aardvark controller board that is connected to the computer has a serial number 2239143731.

    controller = aardvark("2239143731");

    Make sure that your I2C peripheral devices are physically connected to the controller. Scan for connected I2C peripheral devices. The scanI2CBus function returns a list of the I2C addresses of these peripheral devices.

    i2cAddresses = scanI2CBus(controller)
    i2cAddresses = 1×2 string array "0x38" "0x50"

    In this example, two peripheral devices are connected. You can now create a connection to one or more of them using the device function with one of the listed I2C addresses. Refer to your peripheral device's datasheet to determine its I2C address.

    Version History

    Introduced in R2023a

    See Also

    aardvarklist | ni845x | scanI2CBus | device

    MATLAB Command

    You clicked a link that corresponds to this MATLAB command:

     

    Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.

    Total PhaseAardvark Adapter connection (1)

    Select a Web Site

    Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

    You can also select a web site from the following list:

    Americas

    • América Latina (Español)
    • Canada (English)
    • United States (English)

    Europe

    • Belgium (English)
    • Denmark (English)
    • Deutschland (Deutsch)
    • España (Español)
    • Finland (English)
    • France (Français)
    • Ireland (English)
    • Italia (Italiano)
    • Luxembourg (English)
    • Netherlands (English)
    • Norway (English)
    • Österreich (Deutsch)
    • Portugal (English)
    • Sweden (English)
    • Switzerland
      • Deutsch
      • English
      • Français
    • United Kingdom (English)

    Asia Pacific

    • Australia (English)
    • India (English)
    • New Zealand (English)
    • 中国
    • 日本 (日本語)
    • 한국 (한국어)

    Contact your local office

    Total Phase
Aardvark Adapter connection (2024)

    FAQs

    What is the bitrate of the aardvark SPI? ›

    As you noted, the bitrates that the Aardvark SPI master supports is 125 kHz to 8 MHz, which cannot be changed.

    How do I set up Aardvark? ›

    Getting Started Guidelines
    1. Download and run the latest version of the Total Phase USB Drivers Installer. ...
    2. Connect the Aardvark adapter to the PC via the USB connector.
    3. Download and unzip the latest version of Control Center; select Windows, Linux, or Mac OS X. ...
    4. Launch Control Center. ...
    5. Connect to the Aardvark adapter.

    What voltage is aardvark I2C? ›

    The Aardvark I2C/SPI Host Adapter operates at 3.3V (+/- 10%). The adapter device is compatible with both 3.3V and 5V signal levels out of the box.

    What is Aardvark I2C SPI host adapter? ›

    The Aardvark I2C/SPI Host Adapter is a fast and powerful I2C bus and SPI bus host adapter through USB. It allows a developer to interface a Windows, Linux, or Mac OS X PC via USB to a downstream embedded system environment and transfer serial messages using the I2C and SPI protocols.

    What bitrate for 1080p 60 fps? ›

    If you're going for the peak quality stream at 1080p and 60 fps, you will need a bitrate of at least 4,500 kbps. And depending on the overall strength of your Internet connection, you should be able to increase that to 6,000 kbps for better streaming performance.

    What is the highest bitrate for 1080p 60fps? ›

    What's the best video bitrate for 1080p broadcasts? For 1080p videos, the ideal bitrate ranges from 3,500 to 6,000 Kbps. If you're using a standard frame rate (30fps), aim for the lower end of the range, between 3,500 and 5,000 Kbps. If you have a high frame rate (60fps), aim for a bitrate of 4,500 to 6,000 Kbps.

    Why did Google shut down aardvark? ›

    Although Google invested a large sum in the purchase of Aardvark and the service had great potential, Google never fully tapped that potential. Ultimately, Google's executive team decided that the service was causing them to lose focus and the need to streamline outweighed the future potential of Aardvark.

    What is the home range of an aardvark? ›

    They avoid eating the African driver ant and red ants. Due to their stringent diet requirements, they require a large range to survive. An aardvark emerges from its burrow in the late afternoon or shortly after sunset, and forages over a considerable home range encompassing 10 to 30 kilometres (6.2 to 18.6 mi).

    What is the aardvark real name? ›

    aardvark, (Orycteropus afer), also called antbear, stocky African mammal found south of the Sahara Desert in savanna and semiarid areas. The name aardvark—Afrikaans for “earth pig”—refers to its piglike face and burrowing habits.

    What is the minimum voltage for I2C? ›

    I2C uses only two bidirectional open-collector or open-drain lines: serial data line (SDA) and serial clock line (SCL), pulled up with resistors. Typical voltages used are +5 V or +3.3 V, although systems with other voltages are permitted.

    What is typical I2C voltage? ›

    When I2C was first introduced the typical electrical VCC level of electronics was 5V and the initially specified speed was a maximum of 100 kHz. With these parameters it was possible to operate over a wide range of electrical parameters in terms of bus termination and capacitance.

    What is the voltage range for I2C? ›

    The operating voltage range is 3 to 12 V and the operating temperature range is -40 to 85 °C. All the I/O have diodes to VCC and GND, and, since the device is manufactured in a bipolar process that has no latching structures, operation is latch-up free.

    How to read data from I2C device? ›

    After physically connecting your I2C device to the I2C pins, get the addresses of I2C devices attached to the I2C bus, 'i2c-1' . Create a connection, i2csensor , from the MATLAB software to the I2C sensor at '0x20' . Read two uint8 numbers from the sensor. Read the value of register 14 from the sensor.

    Does SPI need wires than I2C? ›

    I2C is a two wire protocol and SPI is a four wire protocol. I2C supports clock stretching and SPI does not have clock stretching. I2C is slower than SPI.

    What is the highest 1080 bitrate? ›

    Video bitrate for 1080p is at maximum kept at 2000 kbps for video course content , for certain high motion movies video bitrate for 1080p is kept at 2500 to 5000 kbps range. For certain cases, low motion lectures, video bitrate for 1080p can be as low as 600 kbps.

    What is the best sound bitrate? ›

    There is no best bitrate, only the right bitrate.

    More information, in a very general sense, means better sound quality. Audio CD bitrate is always 1,411 kilobits per second (Kbps). The MP3 format can range from around 96 to 320Kbps, and streaming services like Spotify range from around 96 to 160Kbps.

    References

    Top Articles
    Latest Posts
    Article information

    Author: Pres. Carey Rath

    Last Updated:

    Views: 6758

    Rating: 4 / 5 (61 voted)

    Reviews: 84% of readers found this page helpful

    Author information

    Name: Pres. Carey Rath

    Birthday: 1997-03-06

    Address: 14955 Ledner Trail, East Rodrickfort, NE 85127-8369

    Phone: +18682428114917

    Job: National Technology Representative

    Hobby: Sand art, Drama, Web surfing, Cycling, Brazilian jiu-jitsu, Leather crafting, Creative writing

    Introduction: My name is Pres. Carey Rath, I am a faithful, funny, vast, joyous, lively, brave, glamorous person who loves writing and wants to share my knowledge and understanding with you.