nanoFramework.Iot.Device.Dac63004 1.0.484

Prefix Reserved
dotnet add package nanoFramework.Iot.Device.Dac63004 --version 1.0.484
                    
NuGet\Install-Package nanoFramework.Iot.Device.Dac63004 -Version 1.0.484
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="nanoFramework.Iot.Device.Dac63004" Version="1.0.484" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="nanoFramework.Iot.Device.Dac63004" Version="1.0.484" />
                    
Directory.Packages.props
<PackageReference Include="nanoFramework.Iot.Device.Dac63004" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add nanoFramework.Iot.Device.Dac63004 --version 1.0.484
                    
#r "nuget: nanoFramework.Iot.Device.Dac63004, 1.0.484"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=nanoFramework.Iot.Device.Dac63004&version=1.0.484
                    
Install nanoFramework.Iot.Device.Dac63004 as a Cake Addin
#tool nuget:?package=nanoFramework.Iot.Device.Dac63004&version=1.0.484
                    
Install nanoFramework.Iot.Device.Dac63004 as a Cake Tool

DAC63004/DAC63004W - Ultra-low-power quad-channel 12-bit smart DAC with I²C, SPI and PWM

This library supports DAC63004 and DAC63004W devices. Currently the implementation allows I2C connection to the device. SPI will be added in the future.

Documentation

Device & EVM

Device diagram
Device diagram
Evaluation Module
Evaluation Module

Usage

Warning: If using an ESP32, make sure to properly setup the I2C pins before creating the I2cDevice. Add a reference to nanoFramework.Hardware.ESP32 NuGet package and add the following code lines:

//////////////////////////////////////////////////////////////////////
// when connecting to an ESP32 device, need to configure the I2C GPIOs
// used for the bus
Configuration.SetPinFunction(21, DeviceFunction.I2C1_DATA);
Configuration.SetPinFunction(22, DeviceFunction.I2C1_CLOCK);

For other devices like STM32, please make sure you're using the preset pins for the I2C/SPI bus you want to use.

Hardware Required

  • DAC63004W EVM
  • Male/Female Jumper Wires

Circuit

  • SCL - SCL
  • SDA - SDA
  • VCC - 5V
  • GND - GND

Code

The following code creates an I2C configuration and instantiates a Dac63004 object. Then it prints the Minimum System Voltage detected by the device at boot. Last it enters a loop where it prints the current Vbus voltage each second.

I2cConnectionSettings settings = new I2cConnectionSettings(1, Bq25798.DefaultI2cAddress);
I2cDevice device = I2cDevice.Create(settings);

using (Bq25798 charger = new Bq25798(device))
{
    Debug.WriteLine("");
    Debug.WriteLine($"DAC63004 connected to I2C{device.ConnectionSettings.BusId}");
    Debug.WriteLine("");

    Debug.WriteLine($"Minimum System Voltage is config @ {charger.MinimalSystemVoltage.VoltsDc:N3}V");

    while (true)
    {
        Debug.WriteLine($"Current Vbus: {charger.Vbus.VoltsDc:N3}V");

        Debug.WriteLine("");

        Thread.Sleep(1000);
    }
}

Acknowledgments

The development of this library was kindly sponsored by OrgPal.IoT!

orgpallogo.png

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.484 146 4/2/2025
1.0.479 149 4/2/2025
1.0.467 155 3/11/2025
1.0.461 157 3/10/2025
1.0.437 109 2/26/2025
1.0.390 113 2/4/2025
1.0.387 98 2/4/2025
1.0.370 109 1/31/2025
1.0.358 97 1/20/2025
1.0.352 84 1/13/2025
1.0.333 97 12/30/2024
1.0.311 102 12/16/2024
1.0.288 107 10/23/2024
1.0.271 104 10/3/2024
1.0.254 124 9/6/2024
1.0.246 116 8/28/2024
1.0.228 123 8/9/2024
1.0.216 97 7/26/2024
1.0.205 109 7/17/2024
1.0.188 131 6/19/2024
1.0.185 117 6/14/2024
1.0.151 133 4/15/2024
1.0.129 137 3/22/2024
1.0.109 114 2/28/2024
1.0.104 115 2/15/2024
1.0.89 136 1/24/2024
1.0.77 173 1/5/2024
1.0.73 141 12/20/2023
1.0.51 165 11/10/2023
1.0.31 118 11/8/2023
1.0.28 114 11/7/2023
1.0.20 133 10/6/2023
1.0.18 127 10/6/2023
1.0.11 134 9/27/2023
1.0.3 131 9/13/2023
1.0.1 134 9/9/2023