Bestilt før kl. 14.00 på hverdage = afsendt samme dag 30 dages fortrydelsesret 1 års garanti
← Terug til oversigten

Tilslutningsdiagram og kodeeksempel

Sådan tilslutter du MT3608 2A Max DC-DC Step Up Power Module Booster Power Module til en Arduino UNO eller ESP32, med en eksempelsketch, du kan uploade med det samme.

MT3608 DC-DC step-up booster-demo

Dette setup viser, hvordan MT3608 step-up boost-konverteren tilsluttes strøm- og lastskinnerne på Arduino Uno. Modulet modtager 5V fra boardet og løfter det til en justerbar højere spænding (op til 28V) via det indbyggede fleromdrejningspotentiometer. Brug et multimeter over VOUT+ og VOUT- til at indstille og kontrollere den ønskede udgangsspænding.

Tilslutningsdiagram: MT3608 2A Max DC-DC Step Up Power Module Booster Power Module på en Arduino UNO
Tilslutningsdiagram · Klik for at forstørre
Tilslutningstabel: MT3608 2A Max DC-DC Step Up Power Module Booster Power Module på en Arduino UNO
Tilslutningstabel · Klik for at forstørre
MT3608_DC_DC_Step_Up_Booster_Demo.ino · kompileret og testet
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : MT3608 DC-DC Step-Up Booster Demo
 *  Board     : Arduino UNO (arduino:avr:uno)
 *  Parts     : MT3608 2A Max DC-DC Step Up Power Module Booster Power Module
 *  Libraries : none (built-in)
 *
 *  Codey Online is an AI-powered browser IDE for Arduino and ESP32.
 *  Describe your project and Codey writes the code, draws the wiring
 *  diagram and uploads it to your board, straight from the browser.
 *  This code is free to use, modify and share, without warranty.
 * ==================================================================
 */

// MT3608 DC-DC Step-Up Converter Demo

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
  Serial.begin(115200);

  Serial.println(F("--- MT3608 Boost Converter Demo ---"));
  Serial.println(F("Input: Arduino 5V -> VIN+, GND -> VIN-"));
  Serial.println(F("Output: VOUT+ / VOUT- provides the boosted DC supply."));
  Serial.println(F("Tip: Turn the onboard potentiometer counter-clockwise"));
  Serial.println(F("     (often 10-20 turns initially) to step up the output."));
  Serial.println(F("Use a multimeter across VOUT+ and VOUT- to calibrate."));
}

void loop() {
  // Heartbeat pulse to confirm the board is active
  digitalWrite(LED_BUILTIN, HIGH);
  delay(500);
  digitalWrite(LED_BUILTIN, LOW);
  delay(500);
}

Wiring diagram and example code generated by Codey.online — https://www.codey.online

MT3608 DC-DC Step-Up spændingsovervågning

Dette projekt forsyner MT3608 step-up-boosteret fra ESP32's VIN-pin og overvåger den hævede udgangsspænding i realtid. En spændingsdeler med to modstande skalerer den høje udgangsspænding sikkert ned til ESP32's ADC-område. Drej på multiturn-trimmerpotentiometeret på MT3608 for at justere udgangen og se, hvordan aflæsningen opdateres i Serial Monitor.

Tilslutningsdiagram: MT3608 2A Max DC-DC Step Up Power Module Booster Power Module på en ESP32 DevKit V1
Tilslutningsdiagram · Klik for at forstørre
Tilslutningstabel: MT3608 2A Max DC-DC Step Up Power Module Booster Power Module på en ESP32 DevKit V1
Tilslutningstabel · Klik for at forstørre
MT3608_DC_DC_Step_Up_Voltage_Monitor.ino · kompileret og testet
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : MT3608 DC-DC Step-Up Voltage Monitor
 *  Board     : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
 *  Parts     : MT3608 2A Max DC-DC Step Up Power Module Booster Power Module
 *  Libraries : none (built-in)
 *
 *  Codey Online is an AI-powered browser IDE for Arduino and ESP32.
 *  Describe your project and Codey writes the code, draws the wiring
 *  diagram and uploads it to your board, straight from the browser.
 *  This code is free to use, modify and share, without warranty.
 * ==================================================================
 */

const int SENSE_PIN = 34;
const float R1 = 10000.0;
const float R2 = 2000.0;
const float DIVIDER_RATIO = (R1 + R2) / R2;

void setup() {
  Serial.begin(115200);
  delay(1000);
  Serial.println("--- MT3608 Boost Converter Monitor ---");
}

void loop() {
  // Read the scaled voltage from the resistor divider
  int raw = analogRead(SENSE_PIN);
  float pinVoltage = (raw / 4095.0) * 3.3;
  float boostVoltage = pinVoltage * DIVIDER_RATIO;

  Serial.print("ADC Raw: ");
  Serial.print(raw);
  Serial.print(" | Boost Output Voltage: ");
  Serial.print(boostVoltage, 2);
  Serial.println(" V");

  delay(500);
}

Wiring diagram and example code generated by Codey.online — https://www.codey.online

Set for nylig

HC-SR04 ultrasonisk afstandssensor

HC-SR04 ultrasonisk afstandssensor

€ 2,89
Se