-
Datei
softwareSerial_HX711_Arduino_final.ino
#include <SoftwareSerial.h> #include "HX711.h" #define calibration_factor -7050.0 //This value is obtained using the SparkFun_HX711_Calibration sketch #define DOUT 3 #define CLK 2 HX711 scale(DOUT, CLK); SoftwareSerial ArduinoUno(7,8); int sendValue = 0; float DMS_value = 0; void setup(){ Serial.begin(9600); ArduinoUno.begin(115200); Serial.println("HX711 scale demo"); scale.set_scale(calibration_factor); //This value is obtained by using the SparkFun_HX711_Calibration sketch scale.tare(); //Assuming there is no weight on the scale at start up, reset the scale to 0 Serial.println("Readings:"); }
in „ADXL345 und ESP8266: Echtzeitdatenergassung mit konstanter Abtastrate und Interrupts“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
test_spi1_arduino_x5.ino
// Arduino STM32 core // BluePill // 2018 // Urheber: // mit PB13 und PB15 Problem #include <SPI.h> // Pin Belegung SS (CS) Signal #define SS_1_PIN PA4 #define SS_2_PIN PB12 SPIClass SPI_1(PA7, PA6, PA5); SPIClass SPI_2(PB15, PB14, PB13); void setup() { pinMode(PC13, OUTPUT); pinMode(SS_1_PIN, OUTPUT); pinMode(SS_2_PIN, OUTPUT); //pinMode(PB13, INPUT); //pinMode(PB15, INPUT); //digitalWrite(PB13, HIGH); //digitalWrite(PB15, HIGH); // Aktiviere den SPI Port. SPI_1.begin(); // Aktiviere den SPI Port. SPI_1.beginTransaction(SPISettings(1000000, MSBFIRST, SPI_MODE0)); SPI_2.begin(); // Aktiviere den
in „Arduino IDE mit STM32 Core Themen, BluePill, SPI 2“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
st7735_soft_spi_bluepill_02.ino
/* Arduino 1.8.5 STM32 Core BluePill mit Software SPI ST7735 TFT Display 2018 Urheber: Unbekannt */ #define TFT_CS PA4 #define TFT_DC PB7 #define TFT_CLK PA5 #define TFT_MISO PA6 #define TFT_MOSI PA7 /* #define TFT_CS PB12 #define TFT_DC PB7 #define TFT_CLK PB13 #define TFT_MISO PB14 #define TFT_MOSI PB15 */ #define _swap(a, b) { signed int t; t = a; a = b; b = t;} #define _width 128 #define _height 160 #define ST7735_NOP 0x00 #define ST7735_SWRESET 0x01 #define ST7735_RDDID 0x04 #define ST7735_RDDST 0x09 #define ST7735_SLPIN 0x10 #define ST7735_SLPOUT 0x11 #define ST7735_PTLON 0x12 #define ST7735
in „Arduino IDE mit STM32 Core Themen, BluePill, SPI 2“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
st7735_hard_spi_bluepill_02.ino
/* Arduino 1.8.5 STM32 Core BluePill mit Hardware ST7735 TFT Display 2018 Urheber: Unbekannt */ #include <SPI.h> // Pin Belegung #define SPI_1_CS PA4 #define SPI_1_DC PB7 #define SPI_1_CLK PA5 #define SPI_1_MISO PA6 #define SPI_1_MOSI PA7 #define _swap(a, b) { signed int t; t = a; a = b; b = t;} #define _width 128 #define _height 160 #define ST7735_NOP 0x00 #define ST7735_SWRESET 0x01 #define ST7735_RDDID 0x04 #define ST7735_RDDST 0x09 #define ST7735_SLPIN 0x10 #define ST7735_SLPOUT 0x11 #define ST7735_PTLON 0x12 #define ST7735_NORON 0x13 #define ST7735_INVOFF 0x20 #define ST7735_INVON 0x21 #define
in „Arduino IDE mit STM32 Core Themen, BluePill, SPI 2“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
I2C_Array_TestRX.ino
// Wire Slave Receiver // by Nicholas Zambetti <http://www.zambetti.com> // Demonstrates use of the Wire library // Receives data as an I2C/TWI slave device // Refer to the "Wire Master Writer" example for use with this // Created 29 March 2006 // This example code is in the public domain. #include <Wire.h> void setup() { Wire.begin(8); // join i2c bus with address #8 Wire.onReceive(receiveEvent); // register event Serial.begin(112500); // start serial for output } void loop() { delay(100); } // function that executes whenever data is received from master // this function is registered as an event
in „Wie kann ich ein Array über I2C übertragen?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
I2C_Array_TestRX.ino
#include <Wire.h> void setup() { Wire.begin(8); // join i2c bus with address #8 Wire.onReceive(receiveEvent); // register event Serial.begin(112500); // start serial for output } void loop() { delay(100); } byte Array[21]; int count = 0; void receiveEvent(int howMany) { while (1 < Wire.available()) { // loop through all but the last Array[count] = Wire.read(); // receive byte as a character Serial.println(Array[count]); ++count; } Serial.println(); int x = Wire.read(); // receive byte as an integer Serial.println(x); // print the integer count=0; }
in „Wie kann ich ein Array über I2C übertragen?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Lichtsignal-attiny85-ok-1-Adresse.ino
#include <NmraDcc.h> // die NmraDCC - Library gibt es unter https://github.com/mrrwa/NmraDCC/archive/master.zip // anzupassende Konstante: #define DCC_DECODER_VERSION_ID 02 // Versions-ID zur Speicherung in CV 7 #define LEDanzahl 8 #define Adressen 1 unsigned long aktMillis, altMillis; unsigned int zeit = 3000; bool zustand = false; bool aenderung; byte ledpins [] = {10,9,8,7,6,5,4,3}; //Attiny85 int DCC_ADDR = 1; // DCC-Adresse byte Signalbildgruppe = 0; // 0=Sh0 2=Hauptsignal boolean Prog = false; byte Signalbild [4][5] = { {1,1,1,1,1}, // Sh0 {0,0,0,0,0}, // Sh1 {1,0,0,1,0}, // Hp0 Vr0 {0,1,1,1,0
in „Attiny84V-10PU“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
NRF52AdafruitI6HRC.ino
#include <SPI.h> #include <BLEPeripheral.h> #include <Adafruit_GFX.h> #include <Adafruit_ST7735.h> #include <nrf_nvic.h>//interrupt controller stuff #include <nrf_sdm.h> #include <nrf_soc.h> #include <WInterrupts.h> #include <Wire.h> // sd_nvic_SystemReset(); #define ana 31 Adafruit_ST7735 tft = Adafruit_ST7735(/*cs=*/ 11,/*cd=*/ 13, /*reset=*/ 12); #define BUTTON_PIN 27 #define INTERRUPT_PIN 26 #define BATTERY_PIN 28 BLEPeripheral blePeripheral = BLEPeripheral(); BLEService batteryLevelService = BLEService("180F"); BLEUnsignedCharCharacteristic batteryLevelChar = BLEUnsignedCharCharacteristic("2A19", BLERead
in „Arduino Custom Firmware für Fitness Armband mit NRF52“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
OV7670_Uno-FiFo_320.ino
// // Source code for application to transmit image from ov7670 to PC via USB // By Siarhei Charkes in 2015 // // #define PIN_HREF PB0 // IN H-aktiv OV7670 Zeilenstart mit H-Impuls #define PIN_VSYNC PD3 // IN H-aktiv OV7670 Bildstart mit H-Impuls #define PIN_WRST PD2 // OUT L-aktiv AL422B Write-Counterreset mit L-Impuls #define PIN_STR PB1 // IN H-aktiv OV7670 Blitzlichtsteuerung #define PIN_RCK PB2 // OUT H-aktiv AL422B default L #define PIN_RRST PB3 // OUT L-aktiv AL422B Read-Counterreset mit L-Impuls #define PIN_WR PB4 // OUT H-aktiv AL422B verknüpft mit HREF OV7670 zu /WR AL422B #define PIN_OE PB5
in „Brauche Unterstützung beim OV7670 (bzw. SCCB)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
countdown_timer_4x7_seg.ino
//Version.von 25.08 //Library #include <SevenSeg.h> //Seven Seg //SevenSeg disp (10, 9, 8, 7, 6, 11, 12);Defines the segments A-G: SevenSeg(A, B, C, D, E, F, G); Internet bsp variante. SevenSeg disp (5, 25, 28, 27, 6, 23, 22); //Defines the segments A-G: SevenSeg(A, B, C, D, E, F, G); //Constants const int numOfDigits =4; int digitPins [numOfDigits]={13,12,11,10}; //CC(or CA) pins of segment //13= left seg; 12= left_mittel; 11=right_mittel; 10= right; const int startBT = 7; const int changeBT = 8; const int setBT = 9; const int dotPoint1=A0; //left digit const int dotPoint2=A1; //left_mittel digit
in „Countdown_with 4x7seg.Anzeigen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ArduinoUno_nRF24_scanner.ino
//https://github.com/maniacbug/RF24 /* Copyright (C) 2011 J. Coliz <maniacbug@ymail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. */ /** * Channel scanner * * Example to detect interference on the various channels available. * This is a good diagnostic tool to check whether you're picking a * good channel for your application. * * Inspired by cpixip. * See http://arduino.cc/forum/index.php/topic,54795.0.html */ #include <SPI.h> #include "nRF24L01.h" #include "RF24
in „nRf24 Analyse“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
STM32F7_discovery_clock.ino
/* * !!! use STM32GENERIC framework !!! from https://github.com/Bodmer/TFT_ILI9341/tree/master/examples/TFT_Clock reworked for ARDUINO DUE using the Adafruit Libraries Hardware: STM32F7 Discovery libraries used: https://github.com/adafruit/Adafruit_ILI9340 https://github.com/adafruit/Adafruit-GFX-Library An example analogue clock using a TFT LCD screen to show the time use of some of the drawing commands with the modified Adafruit_TFT_AS library. For a more accurate clock, it would be better to use the RTClib library. But this is just a demo. This sketch uses font 4 only. Make sure all the required
in „STM32F746 Discovery ARDUINO“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
binary_clock_arduino_code_v10.ino
#include <Time.h> #include <Wire.h> #include <DS1307RTC.h> //Pin connected to ST_CP of 74HC595 const int latchPin = 8; //Pin connected to SH_CP of 74HC595 const int clockPin = 12; ////Pin connected to DS of 74HC595 const int dataPin = 11; //Pins for setting the time const int button0Pin = 5; const int button1Pin = 6; // Variables for debounce int button0State; int button1State; int previousButton0State = LOW; int previousButton1State = LOW; long lastDebounce0Time = 0; // the last time the output pin was toggled long lastDebounce1Time = 0; // the last time the output pin was toggled long debounceDelay
in „Binär-Uhr Projekt Arduino“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
countdown_timer_4x7_seg_.ino
////////////////////////////////Projekt Pressentationsanzeige Stand:___27.09.2016______/////////////////////////////////// /* Programmbeschreibung: Es wird eine Pressentationszeitanzeige für Vorträge und Präsentationen mit einem Mikrocontroller programmiert. Über 4 Taster wird die Zeit programmiert, zudem kann man mit den Tastern noch die Pausen,Reset,Start funktionen darstellen. Das ganze wird über die 4*7 Segmentanzeigen dargestellt. Der fortschreiteden Zeitverlauf, der eingestellten Zeit, wird über entsprechende LED dargestellt. LED gelb = zeit ist zwischen 2-0 Minuten und 0 Sekunden LED gruen
in „7Sgement 12V Betrieb, per multiplexen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Bluetti-ESP32-BLE-test-Client.ino
#include "BLEDevice.h" #include "crc16.h" /* Specify the Service UUID of Server static BLEUUID serviceUUID("4fafc201-1fb5-459e-8fcc-c5c9c331914b"); /* Specify the Characteristic UUID of Server static BLEUUID charUUID("beb5483e-36e1-4688-b7f5-ea07361b26a8"); */ // The remote Bluetti service we wish to connect to. static BLEUUID serviceUUID("0000ff00-0000-1000-8000-00805f9b34fb"); // The characteristics of Bluetti Devices static BLEUUID WRITE_UUID("0000ff02-0000-1000-8000-00805f9b34fb"); static BLEUUID NOTIFY_UUID("0000ff01-0000-1000-8000-00805f9b34fb"); static boolean doConnect = false; static boolean
in „ESP32C3 Arduino Bluetooth keine Reaktion“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ArduinoPilotMicro433WindNG.ino
/* This code is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to
in „Hilfe bei Fehlersuche Arduino Funkverbindung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
FastPWM-Mode_15_Code_Fehler.ino
//////////////////////////////////////////////////////////////////////////////// // Ein Schrittmotor wird fortlaufend beschleunigt und abgebremst. // Es wird eine Anzahl von Schritten vorgefahren und sofort zurueck. // Danach bleibt der SM fuer ca. 1,5 Sekunde stehen und das Spiel wiederholt sich. // Im FastPWM-Mode 15 wird eine maximale Frequenz von ca. x kHz erreicht. // //#include "Define.h" #define SM_RICHTUNG_DDR DDRK #define SM_RICHTUNG_PORT PORTK #define SM_RICHTUNG_PIN PINK #define SM_RICHTUNG ( 1<<PK0 ) // 62 #define SM_DREHEN_STOP ( 1<<PK1 ) // Schrittmotor Drehen stoppen #define SM_SPEED_RANGE
in „Bitte um Hilfe bei der Programmierung von AVR8-Mikrocontrollern in C“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
FastPWM-Mode_15_Pendeln_II.ino
//////////////////////////////////////////////////////////////////////////////// // Ein Schrittmotor wird fortlaufend beschleunigt und abgebremst. // Es wird eine Anzahl von Schritten vorgefahren und sofort zurueck. // Danach bleibt der SM fuer ca. 1,5 Sekunde stehen und das Spiel wiederholt sich. // Im FastPWM-Mode 15 wird eine maximale Frequenz von ca. kHz erreicht. // #include "Define.h" #include "Variablen.h" //////////////////////////////////////////////////////////////////////////////// // Vorwaertsdeklarationen // void sm_rampen( void ); // Schrittmotor Anfahr,- und Bremsrampe void timer3
in „Fragen zu schrittmotor Treiber“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Bosch_Athlet_DIY_v0_1.ino
/* this code is an aternative software for Bosch vaccuumcleaner, tested and working on the BCH6L2560 & BBH7360K model. Other Bosch models may work, but YOU must chek first if your hardware is supported ! We take no responsability at all for this code, use it on your own risk. Here you find basic schematics (uncomplete) and fotos…. https://www.mikrocontroller.net/topic/513088 Many thaks to Daniel F.(per48or) for programming with me Lena S.(lena_s) this piece of code to awaken this vaccuumclears again. */ // SET your Board to MiniCore ATmega328PB @ 8Mhz Internal, BOD=2.7V, no Bootloader #include <Arduino.h
in „Bosch Athlet 25,2 V Akku 7 Stück Tauschen“ · Analoge Elektronik und Schaltungstechnik ·
-
Datei
HIPP_TIMER_V1.08B.ino
/* Test Program to evaluate T1 Capture performance Input configured for falling edge detection Application Requirement Range is 1ms-10s T1 clocked at 16MHz Capture input (coupled with 4n7 and 1K Pullup) Input using D8 (PB0) pin Calibrated TTL Test Generator with 0.1Hz-100kHz Output range 24-01-29 V1.08 Borrowed Code: ------------------------------------------------------------------------------------ Michael suggested to use his Capture Method used in his frequency measureing boards imported from: (FMETER_LED328.c) https://www.mikrocontroller.net/topic/563902#7591430 Am Capture-Wert (ICR1) kann man
in „AVR T1 Capture Problem - Meinung erbeten“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
HIPP_TIMER_V1.08C.ino
/* Test Program to evaluate T1 Capture performance Input configured for falling edge detection Application Requirement Range is 1ms-10s T1 clocked at 16MHz Capture input (coupled with 4n7 and 1K Pullup) Input using D8 (PB0) pin Calibrated TTL Test Generator with 0.1Hz-100kHz Output range 24-01-30 V1.08 C Borrowed Code: ------------------------------------------------------------------------------------ Michael suggested to use his Capture Method used in his frequency measureing boards imported from: (FMETER_LED328.c) https://www.mikrocontroller.net/topic/563902#7591430 Am Capture-Wert (ICR1) kann
in „AVR T1 Capture Problem - Meinung erbeten“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
HIPP_TIMER_V1.08d.ino
/* Test Program to evaluate T1 Capture performance Input configured for falling edge detection Application Requirement Range is 1ms-10s T1 clocked at 16MHz Capture input (coupled with 4n7 and 1K Pullup) Input using D8 (PB0) pin Calibrated TTL Test Generator with 0.1Hz-100kHz Output range 24-01-31 V1.08D History: 24-01-30 V1.08D Added Auto Ranging of sigificant digits Added "GATE" LED Borrowed Code: ------------------------------------------------------------------------------------ Michael Novak suggested to use his Capture Method used in his frequency measureing boards Clara-Zetkin-Straße 6, D -
in „AVR T1 Capture Problem - Meinung erbeten“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DCC_Monitor_V1.4_Stummi.ino
//------------------------------------------------------------------------------------------------------- /* DCC-Monitor zur Ausgabe der DCC-Befehle auf dem seriellen Monitor ================================================================= V 1.4, 17.12.2020 domapi NEU 17.12.2020 - Anpassung der Pufferroutine bei Schaltartikel-Befehlen (Acc), da bei DCC++ teilweise kein "Signal aus"-Befehl gesendet wird. Die Folge war, dass Befehle verschluckt wurden. - Performance optimiert: 3 x break eingebaut in Puffer-Löschroutine. NEU 12.12.2020 - Der ESU-Lokprogrammer sendet offensichtlich zusätzliche DCC-Kommandos
in „DCC Singal auslesen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ESP_R32_REC_V01.ino
/*+++ACAN2515+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++* ACAN2515: Version 2.1.0 vom 16.02.2022 Programmspeicherbedarf: 214442 Byte Board : Wemos D1 R32, ESP32 Boardeinstellung: !!ESP32 DEV Modul!! Shield : Watterott Can-Bus V2 Quarz 16MHz Baudrate[sw] 10kb/s Ub: 3,3V /5,0V Rs: !120 Ohm! Kein Jumper Standart Pinning SPI Bemerkung: ICSP auf Pin Script : V 0.1 inArbeit: x ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ #ifndef ARDUINO_ARCH_ESP32 #error "Select an ESP32 board" #endif //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
Datei
Athlet_V1_4_32_4.ino
#include <Flash.h> #include <board_far.h> #include <hw_boot_sections.h> #include <urboot.h> #include <Arduino_BuiltIn.h> #include <EEPROM.h> #include <AVR_keywords.h> #include <AVR_keywords.h> #include <Arduino_BuiltIn.h> #include <EEPROM.h> /* this code is an aternative software for Bosch vaccuumcleaner, tested and working on the BCH6L2560 & BBH7360K model. Other Bosch models may work, but YOU must chek first if your hardware is supported ! We take no responsability at all for this code, use it on your own risk. Here you find basic schematics (uncomplete) and fotos…. https://www.mikrocontroller.net
in „Bosch Athlet 25,2 V Akku 7 Stück Tauschen“ · Analoge Elektronik und Schaltungstechnik ·
-
Datei
ESP32_32E_Tasten_ok.ino
/* 2.8" ESP32-32E ILI9341 20-Tasten Touch Keyboard 16 normale Tasten + 4 Sondertasten Touch: XPT2046 / TFT_Touch Ausgabe: Display + Serial Basis: funktionierender Hersteller-Demo-Code */ #include <Arduino.h> #include "TFT_eSPI.h" #include <TFT_Touch.h> // ------------------------------------------------------------ // TOUCH-PINS – aus der funktionierenden Hersteller-Demo // ------------------------------------------------------------ #define RTP_DOUT 39 #define RTP_DIN 32 #define RTP_SCK 25 #define RTP_CS 33 #define RTP_IRQ 36 // ------------------------------------------------------------ //
-
Datei
test.txt
/tmp/arduino_build_482746/test.ino.elf: file format elf32-avr Sections: Idx Name Size VMA LMA File off Algn 0 .data 00000004 00800200 000002c8 0000035c 2**0 CONTENTS, ALLOC, LOAD, DATA 1 .text 000002c8 00000000 00000000 00000094 2**1
in „Arduino Compiler Speicherverwaltung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LineIntoLineOutAndDACsDDHwithTermWithScope1.ino
Arduino-serial-UART-scrolling-display-terminal-usi/ // https://github.com/Bodmer/TFT_ILI9341/blob/master/examples/TFT_Terminal/TFT_Terminal.ino #include <Audio.h> #include <Wire.h> #include <SPI.h> #include <SD.h> #include <SerialFlash.h> #include "font_Arial.h" #include <ILI9341_t3.h> #include <si5351.h> double fRX=147300 ; //int led33 = 33
in „Empfänger nach DD4WH mit Fast Convolution“ · Digitale Signalverarbeitung / DSP / Machine Learning ·
-
PDF
45890.pdf
increase the overall gain ofRB + RIN RIN +R B SR amp stage as the amplification from the thestagefromV INoV OUTtovirtuallyany which simplifies to: op amp’s input voltage noise to the out- gain by adding the resistor,BRThe ex- put of the gain stage. Noise gain is also pression for this overall gain is: R
in „Schaltung Spannungsverstärkung in -5 - 5V out -50 - 50V ??“ · Analoge Elektronik und Schaltungstechnik ·
-
PDF
Bootstrapping_your_op_amp_yields_wide_Voltage_Swings.pdf
increase the overall gain ofRB + RIN RIN +R B SR amp stage as the amplification from the thestagefromV INoV OUTtovirtuallyany which simplifies to: op amp’s input voltage noise to the out- gain by adding the resistor,BRThe ex- put of the gain stage. Noise gain is also pression for this overall gain is: R
in „Frequenzgenerator für 200V Vss“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
A501_LA_LR_LY_W5AM.pdf
D)D/C: vi h e /60 % RA Mondu :210 4 (9 000u S re l tr rck aed 0 ˚ OSSemic TCHNO H1 23 )TY:2 O ai T InO R 0 % to i k a of< 3 s (P)BA :123G (Q T c ntNoSU C T d < 9ted ( ea in s or e). H ou u rsrs OTNO 1425 M U ba g SOEN D C anub s ci g ndit 5 ˚C , e cod 72 8 H H o o urs (T)L :1100 C A sThUiM IC 40 b r
in „2 x LED und Lüfterschaltung 12V“ · Analoge Elektronik und Schaltungstechnik ·
-
PDF
op-amp_bootstrapping__high_output_voltage_.pdf
increase the overall gain ofRB + RIN RIN +R B SR amp stage as the amplification from the thestagefromV INoV OUTtovirtuallyany which simplifies to: op amp’s input voltage noise to the out- gain by adding the resistor,BRThe ex- put of the gain stage. Noise gain is also pression for this overall gain is: R
in „Hochspannungs OPV Fehler/Vorschlag?“ · Analoge Elektronik und Schaltungstechnik ·
-
Datei
Zx81_Debugger_MemCsLinsTest.ino
// 2020, programmed by chris_ #include "ZX81_debug_drv.h" /* The ZX81 saves data to tape by sending bursts of pulses, four pulses for a zero, and nine pulses for a one, each pulse being 150µS high and 150µS low, with a 1300µs low space between "bursts". So the ZX81 expects to see a continuous low, with alternating high going pulses. A very simple setup with (variable, as sending zero's takes less time ) low speed, (an average of just 300 bps) but with just 1K to max 16K of RAM slowness doesn't matter much. */ // tbd: check polarity! void tapeSendPulse() { Z80_in(0xFE); delayMicroseconds(150); Z80
-
Datei
TCBn_32Bit_Counter_Pulsweite_with_OVF.ino
/* Arduino IDE 1.8.13 avr-gcc 10.2.0 AVR128DB48 Curiosity Nano Board https://github.com/SpenceKonde/DxCore TCBn 32Bit Counter ohne Kaskadierung, Pulsweitenmessung Takteingang Pin PA4 30.10.2020 */ #include <avr/io.h> #include <avr/interrupt.h> #include <util/atomic.h> #include <AVR128DB_PinLib.h> using namespace AVR128DB::Pin; volatile unsigned long countTimerTCB0; volatile unsigned long countTimerCCMP; volatile unsigned long countTimerTotal; volatile unsigned long overflowCountTCB0; volatile bool finishTCB0 {false}; InterruptPin <48> signalEingang; // PA4 void setup (void) { Serial1.begin(1000000
in „AVR128DB48 - TCB 32Bit Counter“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
I2C_128x64_Beispielcode.ino
/************************************************************************** This is an example for our Monochrome OLEDs based on SSD1306 drivers Pick one up today in the adafruit shop! ------> http://www.adafruit.com/category/63_98 This example is for a 128x32 pixel display using I2C to communicate 3 pins are required to interface (two I2C and one reset). Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit! Written by Limor Fried/Ladyada for Adafruit Industries, with contributions from the open
in „I2C 128x64 Display Displayfehler“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
AC101_I2S_Audiolib-Test.ino
#include "Arduino.h" #include "WiFi.h" #include "Audio.h" #include "SPI.h" #include "SD.h" #include "FS.h" #include "AC101.h" // SPI GPIOs #define SD_CS 13 #define SPI_MOSI 15 #define SPI_MISO 2 #define SPI_SCK 14 // I2S GPIOs die Pinnamen beziehen sich auf den AC101 #define I2S_DSIN 25 #define I2S_BCLK 27 #define I2S_LRC 26 #define I2S_MCLK 0 #define I2S_DOUT 35 // I2C GPIOs #define IIC_CLK 32 #define IIC_DATA 33 // Tasten // #define BUTTON_2_PIN 13 // shared mit SPI_CS #define BUTTON_3_PIN 19 #define BUTTON_4_PIN 23 #define BUTTON_5_PIN 18 // Stop #define BUTTON_6_PIN 5 // Play // Verstärker enable
in „ESP32 A1S Eval“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Wall-E_ESP8266_v1.14.ino
*************************************************** #define PrgVer 1.00 // Vorlage ESP8266_Robi_v2.ino #define PrgVer 1.01 // Refactoring #define PrgVer 1.02 // Web Interface HTML #define PrgVer 1.03 // Predefined commands #define PrgVer 1.04 // Compilable version #define PrgVer 1.05 // Responsive web
in „Automower G3 mit USB Diagnoseport fernsteuern?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Wall-E_ESP8266_v1.15.ino
*************************************************** #define PrgVer 1.00 // Vorlage ESP8266_Robi_v2.ino #define PrgVer 1.01 // Refactoring #define PrgVer 1.02 // Web Interface HTML #define PrgVer 1.03 // Predefined commands #define PrgVer 1.04 // Compilable version #define PrgVer 1.05 // Responsive web
in „Automower G3 mit USB Diagnoseport fernsteuern?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
JSON_MQTT_Markus_Schreibtisch_ESP32_Forum.ino
#include <WiFi.h> #include <PubSubClient.h> #include <ArduinoJson.h> const char* ssid = ""; const char* password = ""; const char* mqttServer = "192.168.0.24"; const int mqttPort = 1883; const char* on_cmd = "ON"; const char* off_cmd = "OFF"; const int BUFFER_SIZE = 300; int count = 0; int firstStart = 0; String topicStr = "NULL"; byte brightness[6] = {255,255,255,255,255,255}; bool stateOn[6] = {false,false, false, false,false, false}; int LED1 = 17; int LED2 = 18; int LED3 = 19; int LED4 = 21; int LED5 = 22; int LED6 = 23; const int freq = 5000; const int ledChannel1 = 0; const int ledChannel2
in „ESP32 WIFI MQTT Verbindungsprobleme“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
_2_0_CNC_Hndrd_NEXTION_Eingang_OK.ino
//Alle Funktionen ausser Start, Halt, Weiter erfüllt!!! // Noch kein Statuslesen im Automatikbetrieb. Gefahr von Fahrten nach Beendingung der Fahrt weil Daten im Puffer (Vorauslesen). //* Definition Eingänge ******************************************* const int pinA = 2; //Drehrad -> const int pinB = 3; // Drehrad <- const int pinX = 4; const int pinY =5; const int pinZ=6; const int pin4= A1; //Vorschubspoti const int pinX1=7; const int pinX10=8; const int pinX100=9; const int pinC=A2; //NOT AUS const int Start = 10; const int Halt = 11 ; const int Weiter = 12; //* Definition Variablen *******
in „Projekt: SerialComCNC Serielles Frontend für CNC GRBL mit ATMega“ · Projekte & Code ·
-
Datei
sketch_nov10a_Test_AccelStepper.ino
/* Controlling two stepper with the AccelStepper library by Dejan, https://howtomechatronics.com */ #include <AccelStepper.h> // Define the stepper motor and the pins that is connected to AccelStepper stepper1(1, 37, 39); // (Typeof driver: with 2 pins, STEP, DIR) AccelStepper stepper2(1, 31, 33); void setup() { stepper1.setMaxSpeed(1000); // Set maximum speed value for the stepper stepper1.setAcceleration(500); // Set acceleration value for the stepper stepper1.setCurrentPosition(0); // Set the current position to 0 steps stepper2.setMaxSpeed(1000); stepper2.setAcceleration(500); stepper2.setCurrentPosition
in „Code Solartracker“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Test_ESP8266_DS18B20.ino
/********* Rui Santos Complete project details at https://RandomNerdTutorials.com https://randomnerdtutorials.com/esp8266-ds18b20-temperature-sensor-web-server-with-arduino-ide/ mit Sensor DS18B20 *********/ #include <Arduino.h> #include <ESP8266WiFi.h> #include <Hash.h> #include <ESPAsyncTCP.h> #include <ESPAsyncWebServer.h> #include <OneWire.h> #include <DallasTemperature.h> #define ONE_WIRE_BUS 4 /* SensorDS18B20 an GPIO 4 = D2 */ static const char compileFILE[] PROGMEM = __FILE__; /* hh:mm:ss */ static const char compileDATE[] PROGMEM = __DATE__; /* Mmm dd yyyy */ /* Setup a oneWire instance to
in „HTML Anzeige - Farbe Meldetext ändern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Test_ESP8266_DS18B20.ino
/********* Rui Santos Complete project details at https://RandomNerdTutorials.com https://randomnerdtutorials.com/esp8266-ds18b20-temperature-sensor-web-server-with-arduino-ide/ mit Sensor DS18B20 *********/ #include <Arduino.h> #include <ESP8266WiFi.h> #include <Hash.h> #include <ESPAsyncTCP.h> #include <ESPAsyncWebServer.h> #include <OneWire.h> #include <DallasTemperature.h> #define ONE_WIRE_BUS 4 /* SensorDS18B20 an GPIO 4 = D2 */ String addres; String FARBE; static const char compileFILE[] PROGMEM = __FILE__; /* hh:mm:ss */ static const char compileDATE[] PROGMEM = __DATE__; /* Mmm dd yyyy */ /
in „HTML Anzeige - Farbe Meldetext ändern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Send_to_R_DS18B20.ino
//-------------------------------------------------------------------------------------- // TempTX-tiny ATtiny84 Based Wireless Temperature Sensor Node // By Nathan Chantrell http://nathan.chantrell.net // Updated by Martin Harizanov (harizanov.com) to work with DS18B20 // To use with DS18B20 instead of TMP36, a 4K7 resistor is needed between the Digital 9 and Digital 10 of the ATTiny (Vdd and DQ) // To get this to compile follow carefully the discussion here: http://arduino.cc/forum/index.php?topic=91491.0 // GNU GPL V3 //------------------------------------------------------------------------
in „DS18B20 Sensoren zeigen immer wieder -127°C an“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
TFT_DHT11_mit_1_8_TFT_LED.ino
#include <Adafruit_NeoPixel.h> #include <SPI.h> #include <TFT.h> /* Arduino TFT text example This example demonstrates how to draw text on the TFT with an Arduino. This example code is in the public domain Created 15 April 2013 by Scott Fitzgerald http://arduino.cc/en/Tutorial/TFTDisplayText Modded by Steve Spence of http://arduinotronics.blogspot.com */ // Pins SCLK and MOSI are fixed in hardware, and pin 10 (or 53) // must be an output #define sclk 13 // for MEGAs use pin 52 #define mosi 11 // for MEGAs use pin 51 #define cs 10 // for MEGAs you probably want this to be pin 53 #define dc 9 #define
in „Sketch für Projekt will nicht so richtig“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
TFT_DHT11_mit_1_8_TFT_LED.ino
#include <Adafruit_NeoPixel.h> #include <SPI.h> #include <TFT.h> /* Arduino TFT text example This example demonstrates how to draw text on the TFT with an Arduino. This example code is in the public domain Created 15 April 2013 by Scott Fitzgerald http://arduino.cc/en/Tutorial/TFTDisplayText Modded by Steve Spence of http://arduinotronics.blogspot.com */ // Pins SCLK and MOSI are fixed in hardware, and pin 10 (or 53) // must be an output #define sclk 13 // for MEGAs use pin 52 #define mosi 11 // for MEGAs use pin 51 #define cs 10 // for MEGAs you probably want this to be pin 53 #define dc 9 #define
in „Sketch für Projekt will nicht so richtig“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Protogen_OS_V3.1_mod__1_.ino
/* Version 3.1 Last update: 11-02-2020 This code will control the Left and right of the protogen helmet matrices. The library for controlling the matrices has to be added to the Arduino IDE before the code can work. The library that comes with this code has been modified so that you can link up to 14 matrices instead of 10. If you ever need help or something doesn't work, send me an e-mail to feronium128@gmail.com or contact me on twitter @Feronium Below are the pieces of code listed to show the icons. A '0' means the LED is turned off, a '1' means the LED will be turned on. I'd recommend using
in „Max7219 an Arduino Nano will nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Final_1_1_1_1_1_null.ino
/* Victron1 MPPT 12 V Victron2 MPPT 24 V Victron3 BMV 24 V D5ED V_MPPT un16 0.01 V D7ED I_MPPT un16 0.1 A BBED VPV_MPPT un16 0.01 V BCED PPV_MPPT un32 0.01 W 0102 CS_MPPT un8 D3ED H20_MPPT un16 0.01 KWH 8DED V_BMV un16 0.01 V 8CED I_BMV un32 0.001 A 8EED P_BMV un16 1 W 1003 H17_BMV un32 0.01 KWH 1103 H18_BMV un32 0.01 KWH 0603 H7_BMV un32 0.01 V 0703 H8_BMV un32 0.01 V FF0F SOC_BMV un16 0.01 % Checksum: :70010003E<LF> -> Command; checksum 0x55 – 0x7 – 0x0 – 0x10 – 0x0 = 0x3E :7001000C80076<LF> -> Response; checksum 0x55 – 0x7 – 0x0 – 0x10 – 0x0 – 0xC8 – 0x0 = 0x76 */ #include <Wire.h> #include
in „Victron MPPT Register 200E setzen.“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
7Temperaturen_DS18B20_ohne_Seriel.ino
// ***************** Start Konfiguration ********************** #define Anzahl_Sensoren_DS18B20 7 // Anzahl der angeschlossenen Sensoren - Mögliche Werte: '0','1','2', ... #define ONE_WIRE_BUS 2 // ***************** Ende Konfiguration ********************** #include <Wire.h> // Wire Bibliothek hochladen #include <DHT.h> // Library für DHT Sensor (Durchfluss Sensor)aufrufen #include <OneWire.h> #include <DallasTemperature.h> // Bibliothek für DS18B20 #include <LiquidCrystal_I2C.h> // Vorher hinzugefügte LiquidCrystal_I2C Bibliothek hochladen int tasterPin = 11; int ledPin = 9; DeviceAddress DS18B20
in „Arduino Programmierung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
7Temperaturen_DS18B20_ohne_Seriel.ino
#define Anzahl_Sensoren_DS18B20 7 // Anzahl der angeschlossenen Sensoren - Mögliche Werte: '0','1','2', ... #define ONE_WIRE_BUS 2 //Bus 2 = Pin D2 #include <Wire.h> // Wire Bibliothek hochladen #include <DHT.h> // Library für DHT Sensor (Durchfluss Sensor)aufrufen #include <OneWire.h> #include <DallasTemperature.h> // Bibliothek für DS18B20 #include <LiquidCrystal_I2C.h> // Vorher hinzugefügte LiquidCrystal_I2C Bibliothek hochladen DeviceAddress DS18B20_Adressen; OneWire oneWire(ONE_WIRE_BUS); DallasTemperature myDS18B20(&oneWire); DallasTemperature sensors(&oneWire); // Übergeben Sie die oneWire-Referenz an
in „Arduino Programmierung“ · Mikrocontroller und Digitale Elektronik ·