Codey OnlineArduino- & ESP32-Komponentenbibliothek › PWM naar Voltage converter module 0-10V
PWM naar Voltage converter module 0-10V
Sonstiges

PWM naar Voltage converter module 0-10V

Dieses Modul wandelt ein PWM-Signal in eine entsprechende analoge Spannung am Ausgang um, typischerweise im 0-10V-Bereich für Steuerungsanwendungen. Es wird häufig mit Mikrocontrollern wie Arduino oder ESP32 verwendet, um Geräte anzusteuern, die einen Spannungsteuereingang akzeptieren.

Breite: 17.6 mm

Pinbelegung — PWM naar Voltage converter module 0-10V

Pin Signal Beschreibung
VIN power Positive DC supply input for the converter, typically 12-30V depending on module version.
GND ground Power supply ground return for the converter module.
PWM PWM PWM control signal input from a microcontroller; duty cycle sets the analog output voltage.
GND.1 ground Ground reference for the PWM input signal from the controller.
VOUT analog Analog voltage output proportional to PWM duty cycle, typically adjustable up to 0-10V.
GND.2 ground Ground return/reference for the analog voltage output load.

Beispielschaltplan — PWM naar Voltage converter module 0-10V

Von Nach Kabel
board:5V x1:VIN red
board:GND x1:GND black
board:D9 x1:PWM green
board:GND.1 x1:GND.1 black
x1:GND.2 board:GND.2 black

Arduino-Beispielcode — PWM naar Voltage converter module 0-10V

Dieses Beispiel wurde für das arduino-uno geschrieben und kompiliergeprüft. Codey Online passt es für jedes andere unterstützte Board an.

// PWM to Voltage Converter Module 0-10V
// This example outputs a changing PWM signal on D9.
// The module converts that PWM duty cycle into a proportional analog voltage.

const int pwmPin = 9;

void setup() {
  pinMode(pwmPin, OUTPUT);
  Serial.begin(9600);
  Serial.println("PWM to Voltage Converter Module demo");
}

void loop() {
  // Sweep from 0% to 100% duty cycle
  for (int value = 0; value <= 255; value++) {
    analogWrite(pwmPin, value);
    Serial.print("PWM value: ");
    Serial.println(value);
    delay(10);
  }

  // Sweep back down from 100% to 0% duty cycle
  for (int value = 255; value >= 0; value--) {
    analogWrite(pwmPin, value);
    Serial.print("PWM value: ");
    Serial.println(value);
    delay(10);
  }
}

Ähnliche Komponenten

4-Channel Optoisolator Board

4-Channel Optoisolator Board

AD9850 DDS Signal Generator Module

AD9850 DDS Signal Generator Module

Adjustable Step-down Module 3-40VDC  1.5-35VDC LM2596

Adjustable Step-down Module 3-40VDC 1.5-35VDC LM2596

Breadboard 400 pin

Breadboard 400 pin

Bau dein Arduino- oder ESP32-Projekt mit AI

Beschreib einfach, was du bauen willst. Codey Online schreibt den Code, zeichnet den Schaltplan, kompiliert alles und flasht dein Board direkt aus dem Browser.

Kostenlos starten