-
Datei
FFT_Projekt.ino
#include "Wire.h" #include "arduinoFFT.h" #include "LiquidCrystal_I2C.h" #include "LedControl.h" #include "binary.h" LiquidCrystal_I2C lcd(0x27, 16, 2); LedControl lc=LedControl(12,11,10,1); const int MIC_PIN = A0; const unsigned short SAMPLES = 128; const double SAMPLING_FREQ = 4096; const unsigned short FREQ_SAMPLE_AMOUNT = 5; double noise_reject_limit = 550; double mic_value = 0; double avg_freq = 0; double vReal[SAMPLES]; double vImag[SAMPLES]; double domin_freq[FREQ_SAMPLE_AMOUNT] = {0}; double sampling_period = 1e6 * (1/SAMPLING_FREQ); unsigned short freq_sample_count = 0; double f = 0;
in „Arduino Frequenzerkennung scheitert an Einbindung einer DOT Matrix“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
pwm_test.ino
#define PWM_CT2_B 3 //OC2B #define Vout A0 #define Vin A1 // 15us = 64khz // 120us = 8 khz #define maxpwm 164 int pwm = maxpwm-1; #define dotrack unsigned long nextmeasTime; unsigned long measInterval = 1000 * 60; // every minute int V_set_out = 200; // 140 = 4V int V_set_in = 300; // 160 = 10V void ct2_init() { pinMode(PWM_CT2_B,OUTPUT); TCCR2A = (1 << COM2B1) | (1 << WGM21) | (1 << WGM20); //fast PWM TCCR2B = (1 << CS20) | (1 << WGM22); // prescaler 0 OCR2A = maxpwm; // 100khz // TOP overflow value (Hz) OCR2B = maxpwm-1; // pwm value } void getactmpp() { int V_meas; OCR2B = maxpwm - 1; // zero
in „Wir basteln einen arduino MPP lader.“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
code_z.ino
#ifndef STASSID #define STASSID "****" #define STAPSK "****" #define PIN 5 // PIN an dem die Datenleitung angeschlossen ist #define NUM_LEDS 114 // Anpassen auf die Anzahl der LEDs, die _Du_ wirklich verwendest #endif #define MY_NTP_SERVER "ch.pool.ntp.org" #define MY_TZ "CET-1CEST,M3.5.0/02,M10.5.0/03" #include <ESP8266WiFi.h> #include <time.h> #include <Adafruit_NeoPixel.h> Adafruit_NeoPixel pixels(NUM_LEDS, PIN, NEO_GRB + NEO_KHZ800); byte alteMinute = 100; // Variabeln zum Speichern der aktuell angezeigten Minute time_t now; tm tm; void showTime() { time(&now); // read the current time localtime_r
in „SK6812 LED leuchten falsch“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
INA226.ino
// #include <Wire.h> const int INA226_ADDR = 0x44; // SCL - GPIO5 - D1 // SDA - GPIO4 - D2 bool isConnected(uint8_t addr) { Wire.beginTransmission(addr); return ( Wire.endTransmission() == 0); } static void writeRegister(byte reg, word value) { Wire.beginTransmission(INA226_ADDR); Wire.write(reg); Wire.write((value >> 8) & 0xFF); Wire.write(value & 0xFF); Wire.endTransmission(); } static word readRegister(byte reg) { word res = 0x0000; Wire.beginTransmission(INA226_ADDR); Wire.write(reg); if (Wire.endTransmission() == 0) { if (Wire.requestFrom(INA226_ADDR, 2) >= 2) { res = Wire.read() * 256; res += Wire.read
in „INA226 an ESP8266 misst falsche spannung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
WebStuff.ino
bool WRison; bool CHison; void handleCmd() { String out; char temp[25]; if (server.args() == 1) { if (server.argName(0) == "WRon") { WRison = true; CHison = false; } else if (server.argName(0) == "WRoff") WRison = false; else if (server.argName(0) == "CHon") { CHison = true; WRison = false; } else if (server.argName(0) == "CHoff") CHison = false; } out += "<center><H1>24V LeadAcid Monitor</H1>"; out += "<H2>"; sprintf(temp," Volt %.2f  ",volt); out += temp; sprintf(temp," Amps %.2f",current); out += temp; out += "</H2>"; out += "<br>\n"; out += "<button onclick=\"window.location.href='/cmd
in „Relais Ein/Aus schalten eines $40 WR. Was zuerst, wie?“ · Haus & Smart Home ·
-
Datei
SlowSwitch.ino
#include <Ticker.h> #define SlowPin 13 //D7 GPIO13 #define FastPin 12 //D6 GPIO15 #define SwitchTime 0.5 Ticker SwitchTicker; //https://github.com/esp8266/Arduino/blob/master/libraries/Ticker/src/Ticker.h enum SwitchState {isoff,isslow,ison}; SwitchState swst = isoff; SwitchState gost = isoff; void changeState() { if (swst != gost) { if (gost == ison) digitalWrite(FastPin, LOW); else digitalWrite(FastPin, HIGH); swst = gost; } else { digitalWrite(SlowPin, HIGH); SwitchTicker.detach(); } } void initSlowSwitch() { digitalWrite(SlowPin, HIGH); pinMode(SlowPin, OUTPUT); digitalWrite(FastPin, HIGH)
in „Relais Ein/Aus schalten eines $40 WR. Was zuerst, wie?“ · Haus & Smart Home ·
-
Datei
pwm_flyback.ino
#define PWM_CT2_A 11 //OC2A #define PWM_CT2_B 3 //OC2B // LGT8F328P has 12 bits. #define maxpwm 255 void ct2_init() { pinMode(PWM_CT2_A,OUTPUT); pinMode(PWM_CT2_B,OUTPUT); TCCR2A = (1 << COM2B1)|(1 << COM2A1)|(1 << WGM21)|(1 << WGM20); //fast PWM INV TCCR2B = (1 << CS20); // prescaler 0 OCR2A = 5; // pwm value OCR2B = 5; // pwm value } void setup() { pinMode(LED_BUILTIN, OUTPUT); Serial.begin(115200); ct2_init(); } uint8_t pwm = 8; char in_ch; void loop() { //OCR2B = (int)pwm; if (Serial.available()) { in_ch = Serial.read(); if (in_ch == '1') pwm = constrain(pwm+8,0,250); if (in_ch == '2') pwm
-
Datei
pwm_varpause.ino
#define PWM_CT1_A 9 //OC1A #define PWM_CT1_B 10 //OC1B #define maxpwm 250 #define minpause 256 uint16_t pwm = 32; uint16_t pause = 256; void ct1_init() { pinMode(PWM_CT1_B,OUTPUT); // 64 khz TCCR1A = (1 << COM1B1)|(1 << WGM11); //fast PWM TCCR1B = (1 << CS10)|(1 << WGM13)|(1 << WGM12); // prescaler 0 OCR1B = pwm; // pwm value ICR1 = pause; // max value } void setup() { pinMode(LED_BUILTIN, OUTPUT); Serial.begin(115200); ct1_init(); } char in_ch; void loop() { if (Serial.available()) { in_ch = Serial.read(); if (in_ch == '1') pwm = constrain(pwm+8,0,maxpwm); if (in_ch == '2') pwm = constrain(pwm
-
Datei
pwm_mpp.ino
#include "WS2812.h" #define numleds 2 uint8_t pixel[numleds*3]; #define PWM_CT1_B 10 //OC1B #define PWM_CT2_B 3 //OC2B #define Vout A1 #define Vin A0 #define maxpwm 4*248 #define minpwm 0 float V_set_in = 17.0; float V_set_out = 14.4; int measct; int calibct; void ct1_init() { pinMode(PWM_CT1_B,OUTPUT); // 64 khz TCCR1A = (1 << COM1B0)|(1 << COM1B1)|(1 << WGM11)|(1 << WGM10); //fast PWM INV 10bit TCCR1B = (1 << CS10)|(1 << WGM12); // prescaler 0 OCR1B = 1; // pwm value } void setup() { pinMode(LED_BUILTIN, OUTPUT); pinMode(Vout, INPUT); pinMode(Vin, INPUT); Serial.begin(115200); ws2812_init(); ct1
in „Hab meinen MPP(T) akkulader probiert :)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ads1115.ino
//############################################################## //######### BOARD DUE ############## #define VERSION "test" const char* MAINFILE = __FILE__; /*############################################################### ######## Funktionen und Board Einstellung ########## ###############################################################*/ #define DEBUG #define MON Serial2.print #define MONln Serial2.println #define ADS1115_AI #define ADS1115_LIB_Adafruit // *********** Predefined *********** #define TESTLED_PIN 13 // *********** Predefined END *********** #if defined(ADS1115_AI) || defined(ADS1115
in „Absturz mit ADS1115 Lib "Adafruit_ADS1X15"“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Shelly_WPcontrol.ino
#include <Arduino.h> #include <ArduinoJson.h> #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> #include <ESP8266WebServer.h> #include <ESP8266HTTPUpdateServer.h> #define has_ntp #if defined has_ntp #define ntptimeoffset 7200 // 2 h in sec #include <NTPClient.h> #include <WiFiUdp.h> WiFiUDP ntpUDP; NTPClient timeClient(ntpUDP); #endif ESP8266WebServer server(80); ESP8266HTTPUpdateServer httpUpdater; const char *ssid = "FSM"; const char *password = "0101010101"; String Shelly_IP = "192.168.178.47"; String WP_IP = "192.168.178.66"; int8_t WPstate = 0; // positive = on #define WPcmdwait 10 // 10
-
Datei
WebStuff.ino
#define num_datasets 720 struct wp { bool isactive; int8_t state; int powhist; int fpowhist; #if defined has_ntp int8_t hour; #endif }; wp wp_arr[num_datasets]; uint16_t datasetpt = 0; #if defined has_ntp void storewp(int inp, int finp, int8_t state, int8_t hour) { wp_arr[datasetpt].hour = hour; #else void storewp(int inp, int finp, int8_t state) { #endif wp_arr[datasetpt].isactive = true; wp_arr[datasetpt].state = state; wp_arr[datasetpt].powhist = inp; wp_arr[datasetpt].fpowhist = finp; datasetpt++; if (datasetpt >= num_datasets) datasetpt = 0; } void handleCmd() { String out; char HItemp[10];
-
Datei
HIPP_TIMER.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 (PB ) pin // Calibrated TTL Test Generator with // 0.1Hz-100kHz Output range // // 24-01-24 V1.00 #define ICP_INPUT 8 void setup() { pinMode(ICP_INPUT, INPUT_PULLUP); delay(100); init_InputCapture(); Serial.begin(115200); } void loop() { InputCapture_out(); delay(1000); } volatile unsigned long ICP_val = 0, T1OVF_Ctr = 0; /*********************************************
in „AVR T1 Capture Problem - Meinung erbeten“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
timer1.ino
// learning timer1 on atmega 328 // pins for timers //const byte poc2B = 3; // pd3 // reserved Tim2 const byte pcin1 = 5; // pd5 Input Count (for wgm 14,15) const byte picp1 = 8; // pb0 Input Capt const byte poc1A = 9; // pb1 const byte poc1B = 10; // pb2 //const byte poc2A = 11; // pb3 // reserved Tim2 // pins for debug const byte povf = 12; //pb4 const byte dovfS = B00010000; // to set/reset pin fast const byte pcap = 13; //pb5 const byte dcapS = B00100000; // counts for ints, just used to see if called byte volatile cntO; // overflow byte volatile cntA; // byte volatile cntB; // byte volatile
in „AVR Timer1 Capture und Overflow gleichzeitig“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
read_modifiziert.ino
/* This sketch shows how to read a PWM signal */ // Each signal must be read with an volatile unsigned int #include <PulseInput.h> volatile unsigned int input; /* each signal requires a variable */ void setup() { Serial.begin(9600); // 2. assign variables to receive signal attachPulseInput(8, input); // pin 8 as INPUT_PULLUP /* Generate pwm signal */ constexpr int PIN = 3; // PWM capable pin constexpr int ON_TIME = 1000; // Pulse width in microseconds constexpr float DUTY_CYCLE = ON_TIME * 255.0 / 2024.0; analogWrite(PIN, DUTY_CYCLE); /* To stop reading an already specified input, use this function
in „Induktiver Positionssensor - Fragen dazu“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Test1.ino
// Simple I2C test for 128x32 oled. // Use smaller faster AvrI2c class in place of Wire. // Edit AVRI2C_FASTMODE in SSD1306Ascii.h to change the default I2C frequency. // #include "SSD1306Ascii.h" #include "SSD1306AsciiAvrI2c.h" // 0X3C+SA0 - 0x3C or 0x3D #define I2C_ADDRESS 0x3C // Define proper RST_PIN if required. #define RST_PIN -1 SSD1306AsciiAvrI2c oled; //------------------------------------------------------------------------------ void setup() { #if RST_PIN >= 0 oled.begin(&Adafruit128x32, I2C_ADDRESS, RST_PIN); #else // RST_PIN >= 0 oled.begin(&Adafruit128x32, I2C_ADDRESS); #endif // RST_PIN
in „Mit Wire.h über I2C auf LCD-Display 1602 zugreifen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LCD_Example.ino
// |———————————————————————————————————————————————————————| // | made by Arduino_uno_guy 11/13/2019 | // | https://create.arduino.cc/projecthub/arduino_uno_guy| // |———————————————————————————————————————————————————————| #include LiquidCrystal_I2C.h #include Wire.h //initialize the liquid crystal library //the first parameter is the I2C address //the second parameter is how many rows are on your screen //the third parameter is how many columns are on your screen LiquidCrystal_I2C lcd(0x27, 16, 2); void setup() { //initialize lcd screen lcd.init(); // turn on the backlight lcd.backlight(); }
in „LCD-Display mit Arduino will nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
trivial_demo.ino
#define PIN 0 #define K1 421.0 #define K2 751.0 uint32_t time_high, time_low, last_time, new_time; float temperature; void setup() { Serial.begin(12345); pinMode(PIN, INPUT); new_time = last_time = micros(); } void loop() { while(digitalRead(PIN)); new_time = micros(); time_high = new_time - last_time; last_time = new_time; while(!digitalRead(PIN)); new_time = micros(); time_low = new_time - last_time; last_time = new_time; temperature = K1 - (K2 * time_high) / (float)time_low; Serial.print(time_low); Serial.print(" "); Serial.print(time_high); Serial.print(" "); Serial.println(temperature); }
in „TMP05 Temperatursensor ohne µC auslesen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
FILTER_median.ino
// Algo from Detlef _. (detlef_a) 19.05.2024 20:53 // https://www.mikrocontroller.net/topic/567716#7668204 //typedef float median_t; //typedef int32_t index_t; typedef int16_t median_t; typedef uint8_t index_t; #define NN (3) median_t median(median_t neu) { index_t k, m; static index_t gross[NN]; static index_t w = 0; static median_t alt[NN]; //Ini if (w == 0) { for (m = 0; m < NN; m++) alt[m] = 0; for (m = 0; m < NN; m++) gross[m] = m; w = 1; } // Den ältesten rausschmeissen k = 0; while (1) { if (gross[k] == NN - 1) break; k++; } while (1) { if (k == 0) break; gross[k] = gross[k - 1]; k--; } //
in „Effizienter Running Median“ · Digitale Signalverarbeitung / DSP / Machine Learning ·
-
Datei
motorSpeed.ino
/* * Speed measurement with optical encoder * On every rising edge the time delta to the last rising edge is printed to the serial port. * Additionaly LED_BUILTIN output shows the trigger point. * * 2024-06-27 Christoph M. */ // pin change interrupt base code: // https://wolles-elektronikkiste.de/en/interrupts-part-2-pin-change-interrupts const int interruptPin = 6; volatile bool event = false; volatile uint32_t TimeDelta = 0; volatile byte changedPin = 0; const byte interruptPinMask = 0b11111100; volatile byte lastInterruptPinsStatus = 0b01010100; volatile bool risingEdge = false; // PCINT2_vect
-
Datei
eforth_328.ino
/******************************************************************************/ /* Arduino eForth.C, 1.0: For Atmega328 on arduino Uno */ /******************************************************************************/ /* Chen-Hanson Ting */ /* Version 2.0, 06nov11cht */ /* Compile new commands in RAM */ /* */ /* Version 1.0, 21sep11cht */ /* Adopted from eForth_11.c */ /* Compiled by Arduino as a sketch */ /* Follow closely the original eForth model */ /* Kernel has 32 primitives */ /* code[] array must be filled with rom.mif produced by cefMETA328 */ /* @, !, C@ and C! access RAM memory */
in „eFORTH as Arduino Sketch“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
eforth_328.ino
/******************************************************************************/ /* Arduino eForth.C, 1.0: For Atmega328 on arduino Uno */ /******************************************************************************/ /* Chen-Hanson Ting */ /* Version 2.0, 06nov11cht */ /* Compile new commands in RAM */ /* */ /* Version 1.0, 21sep11cht */ /* Adopted from eForth_11.c */ /* Compiled by Arduino as a sketch */ /* Follow closely the original eForth model */ /* Kernel has 32 primitives */ /* code[] array must be filled with rom.mif produced by cefMETA328 */ /* @, !, C@ and C! access RAM memory */
in „eFORTH as Arduino Sketch“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
WebServer.ino
void handleRoot(AsyncWebServerRequest *request) { if (getDatafromMemoryAndConnect() == true || WiFi.isConnected()) { // Redirect to setupmanager. requestForWiFiList == true; request->redirect("/setupmanager.html"); } else { // Otherwise, redirect to Auth. requestForWiFiList == true; request->redirect("/setupmanager.html"); } } void serverHandles(){ server.on("/", handleRoot); server.on("/setupmanager", HTTP_POST, [](AsyncWebServerRequest *request) { request->send(SPIFFS,"setupmanager.html", "text/html"); }); server.on("/api/networks", HTTP_GET, [](AsyncWebServerRequest *request) { requestForWiFiList
in „ESP32 Watchdog Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Blink_5000.ino
/* Starts with 15 flashes, then turns on an LED on for five seconds, then off for five seconds, repeatedly. modified 20 July 2024 by Manfred */ int StartCount = 0; void setup() { // initialize all ports pinMode (1, INPUT_PULLUP); pinMode (2, INPUT_PULLUP); pinMode (3, INPUT_PULLUP); pinMode (4, INPUT_PULLUP); pinMode (5, INPUT_PULLUP); pinMode (6, INPUT_PULLUP); pinMode (7, INPUT_PULLUP); pinMode (8, INPUT_PULLUP); pinMode (9, INPUT_PULLUP); pinMode (10, INPUT_PULLUP); pinMode (11, INPUT_PULLUP); pinMode (12, INPUT_PULLUP); pinMode (13, OUTPUT); pinMode (14, INPUT_PULLUP); pinMode (15, INPUT_PULLUP);
in „Schaltungsproblem oder Arduinoproblem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
riscvCpu.ino
// https://github.com/cnlohr/mini-rv32ima/tree/master/mini-rv32ima // Copyright 2022 Charles Lohr, you may use this file or any portions herein under any of the BSD, MIT, or CC0 licenses. // 23.01.15 converted to Arduino by mchris // This Version can run on an Arduino Nano #include "minirv32ima.h" uint32_t ram_amt = MINI_RV32_RAM_SIZE; // online RISCV interpreter // https://www.cs.cornell.edu/courses/cs3410/2019sp/riscv/interpreter/ // online assembler // https://riscvasm.lucasteske.dev/ /* .global _boot .text _boot: andi x1,x1,0 addi x2,x2,1 loop: addi x2,x2,1 jal x3,loop */ uint8_t ram_image[] =
in „RISC/V kommt in Schwung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Arduino_Sketch_.ino
Hier ist ein einfacher und effizienter Arduino-Sketch, der einen digitalen Eingang (Port) abfragt. Sobald dieser Port zum dritten Mal ein HIGH-Signal registriert hat, verzweigt das Programm in einen speziellen Code-Abschnitt.Damit ein einzelner Tastendruck nicht fälschlicherweise als Mehrfachklick gezählt wird, enthält der Code eine einfache Entprellung (Debounce), die darauf wartet, dass das Signal erst wieder LOW wird, bevor der nächste Impuls gezählt wird.cpp// Pin-Definitionen const int eingangsPin = 2; // Der Port, der abgefragt wird const int ledPin = 13; // Beispiel-Ausgang (Interne LED) // Variablen
in „Lichtschranken-Rundenzähler (12V).“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Logo-lesen.ino
/* ============================================================ ESP32-WROOM Siemens LOGO! 8 FS4 ============================================================ LOGO! IP-Adresse: 192.168.0.99 LOGO! Variable: VW0 S7-Adresse: DB1.DBW0 Kommunikation: S7 / ISO-on-TCP TCP Port 102 Rack 0 Slot 2 ESP32: Asynchroner Webserver Automatische LOGO!-Wiederverbindung VW0 wird alle 500 ms gelesen ============================================================ BENÖTIGTE LIBRARIES ============================================================ Settimino AsyncTCP ESPAsyncWebServer =============================================
in „mit ESP32 LOGO 8 VM Block lesen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ArduinoISP.ino
// ArduinoISP // Copyright (c) 2008-2011 Randall Bohn // If you require a license, see // https://opensource.org/licenses/bsd-license.php // // Note that this sketch refers to the SPI bus pins using the legacy MISO/MOSI // names rather than the modern CIPO/COPI names. // For further details, see https://docs.arduino.cc/learn/communication/spi // // This sketch turns the Arduino into a AVRISP using the following Arduino pins: // // Pin 10 is used to reset the target microcontroller. // // By default, the hardware SPI pins MISO, MOSI and SCK are used to communicate // with the target. On all Arduinos
in „Problem beim Hochladen zum Arduino Nano“ · Mikrocontroller und Digitale Elektronik ·
-
Artikel
Logic Analyzer
Diskussion: Arduino Logic Analyzer. Funktioniert auf einem Arduino mit AVR, STM32 und ESP8266. Benutzung: .ino auf den Arduino laden processing.pde in Processing laden und seriellen Port auswählen Links: GitHub.com/aster94/logic-analyzer FPGA / CLPD. <!-- Deditec LAs sind keine Selbstbauprojekte, daher hier
Artikel ·
-
Datei
irsndconfig.h
------------------------------------------------------------------- * ESP8266 (Arduino, see IRSEND.ino) *--------------------------------------------------------------------------------------------------------------------------------------------------- */ #elif defined (__xtensa__) # define IRSND_PIN
in „IRMP - Infrared Multi Protocol Decoder“ · Projekte & Code ·
-
PDF
WS81.pdf
napi´cia) 8. feszültségválasztó kapcsoló (csak átkapc solható verziónál) 1. SieÈov˘ vypínaã 1. OmreÏno stikalo 1. Võrgulüliti 2. Optická kontrola regulácie 2. Vizualna kontrola krmiljenja 2. Optiline reguleerimis- 3. Otoãn˘ potenciometer na 3. Vrtljivi potenciometer za kontroll nastavenie teploty (plynulo
in „Lötstation nachbauen, aber welche“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
positionsregelung.pdf
Diffcrenzbildungziehenundcrhält Umlechnrng aufUn.liehungcn somr ein Siiularionsmodell(Abbildung44), in den dic RcibunC duEh€ino Rc'bslton DiesenReibnron kün man diFkt nessc., inden @ dic Srrske .infrhäurcineb.slimr. vcnü.rtige DEhzlhl eselr undd.n dab.1lch einslellc.d.bstalon&e. Mdoßem nißr. D'cer slarionälc Mormtron enßpncht
in „Kaskaden Regelung Gleichstrommotor“ · Digitale Signalverarbeitung / DSP / Machine Learning ·
-
Datei
Web_IO_Status_Bedienung_Passwort_V3.txt
/* Web_Authentication.ino - Webduino Authentication example */ /* This example assumes that you're familiar with the basics * of the Ethernet library (particularly with setting MAC and * IP addresses) and with the basics of
in „Arduino - Webserver“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Web_IO_Status_Bedienung_Passwort_V3.cpp
/* Web_Authentication.ino - Webduino Authentication example */ /* This example assumes that you're familiar with the basics * of the Ethernet library (particularly with setting MAC and * IP addresses) and with the basics of
in „Arduino - Webserver“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Reset_Toner_Chip_SP150.ino
with Arduino Uno R3 // Sources: // http://www.mikrocontroller.net/topic/369267 // AND // FILE: Reset.ino // AUTHOR: Ludovic Guégan adjusted for SP150 Viktor D. // VERSION: 0.2 // PURPOSE: Reset chip for Ricoh SP150 toner // DATE: 2026-03-016 // // Released to the public domain //Wirings: #include <Wire.h
in „Hack: Ricoh Aficio SP100e Toner Chip“ · Projekte & Code ·
-
Datei
Reset_Toner_Chip_SP100e.ino
with Arduino Uno R3 // Sources: // http://www.mikrocontroller.net/topic/369267 // AND // FILE: Reset.ino // AUTHOR: Ludovic Guégan // VERSION: 0.1 // PURPOSE: Reset chip for Ricoh SP112 toner // DATE: 2016-03-03 // URL: https://github.com/lugu/reset_sp112 // // Released to the public domain // Last modified
in „Hack: Ricoh Aficio SP100e Toner Chip“ · Projekte & Code ·
-
Datei
MAX7219_8.ino
########################################################################### # File Name: MAX7219_5.ino # Board: Arduino UNO # Programming Language: Wiring / C /Processing /Fritzing / Arduino IDE # # Objective: Scrolling LED dot Matrix # # Operation: Scrolls a message over a 64x8 LED dot matrix ######
in „LED Matrix MAX7219 8x8 an Arduino will nicht.“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
SPI_Interrupt_UDP_SoftwareSerial_v3.ino
software) und gibt die Werte vom Arduino aus * Derzeitiger Master softwareSerial_HX711_Arduino_final.ino * * ATTENTION: * THE RX/TX-pins are not allowed to beo connected if the code * is uploades to the board * * MÖGLICHE PINBELEGUNGEN * * Variante 1 * --------------------------------------------------
in „ADXL345 und ESP8266: Echtzeitdatenergassung mit konstanter Abtastrate und Interrupts“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
MAX4508-MAX4509.pdf
10V,NO_ = 0.2mA C, E 20 Ω Channels (Note 5) M 25 +25°C 0.5 +0.5 NO_ Off-Leakage Current – (Note 6) INO_(OFF) V NO_= ±10V, VCOM_ = +10V C, E -5 +5 nA M -50 +50 +25°C -2 +2 MAX4508 C, E -20 +75 M -200 +200 COM_ Off-Leakage Current ICOM_(OFF)V COM_ – ±10V, nA (Note 6) V NO_= +10V +25°C -1 +1 MAX4509 C,
in „Messsystem mit PhotoMOS“ · Analoge Elektronik und Schaltungstechnik ·
-
Datei
countdown_timer_4x7_seg_26082016.ino.ino
//Library #include <SevenSeg.h> //Seven Seg 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 const int dotPoint3=A2; //right_mittel digit const int dotPoint4=A3; //right const int BrakeBT=2; //Interrupt PAUSE/Frage Taster //Variables
in „Countdown_with 4x7seg.Anzeigen“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
74HC299_74HCT299_PHI.pdf
0, Q7 24 40 50 60 4.5 19 34 43 51 6.0 PHL/ PLH propagation delay 66 200 250 300 ns 2.0 Fig.6 CP to InO 24 40 50 60 4.5 19 34 43 51 6.0 PHL/ propagation delay 66 200 250 300 ns 2.0 Fig.7 MR to Q , Q or I/O 24 40 50 60 4.5 0 7 n 19 34 43 51 6.0 t 3-state output enable time 50 155 195 235 ns 2.0 Fig.9 PZH
in „74HC299 ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
s65_display.ino
int rst = 4; int cs = 5; int clk = 6; int dat = 7; #define S65_WIDTH 176 #define S65_HEIGHT 132 void s65_writeReg(uint8_t reg) { digitalWrite(cs, LOW); s65_writeSPI(0x74); //index register s65_writeSPI(0x00); s65_writeSPI(reg); digitalWrite(cs, HIGH); return; } void s65_writeData(uint16_t data) { digitalWrite(cs, LOW); s65_writeSPI(0x76); //instruction or RAM data s65_writeSPI(data>>8); s65_writeSPI(data); digitalWrite(cs, HIGH); return; } void s65_writeCmd(uint8_t reg, uint16_t param) { s65_writeReg(reg); s65_writeData(param); return; } void s65_writeSPI(uint8_t data) { int mask; for(mask = 0x80; mask
in „PIC24FJ + S65 Display ohne Funktion“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
BlinkDemoForum.ino
/* Arduino-Sketch "Blinken und Warnblinken" Input: Zwei Taster (normal offen und LOW, bei Betätigung HIGH) Output: Zwei LEDs Programmlogik: Linker Taster: Schaltet blinken links an/aus Rechter Taster: Schaltet blinken rechts an/aus Beide Taster gleichzeitig: Warnblinken Das Warnblinken wird in ein blinken rechts oder links umgeschaltet, sobald während des Warnblinkens der linke oder rechte Taster betätigt wird */ // Anfang des Benutzerdefinierbaren Variablenbereichs #define BLINKPINLEFT 12 // digitaler Ausgang linke LED #define BLINKPINRIGHT 13 // digitaler Ausgang rechte LED #define BUTTONLEFT 2 //
in „programmierung arduino schalter“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
i2c.ino
#include "i2c.h" #include <util/twi.h> #include <util/delay.h> void init_i2c() { PORTC &= ~(1 << 4); PORTC &= ~(1 << 5); TWSR = 0;//(1 << TWPS0); TWBR = ((F_CPU/SCL_CLOCK)-16)/2;//I2C_PRESCALER; TWCR = (1 << TWEN); } void start_i2c() { TWCR = (1 << TWINT) | (1 << TWSTA) | (1 << TWEN); while(!(TWCR & (1 << TWINT))); if ((TWSR & 0xF8) != TW_START){ Serial.print(" |Error: Start -> "); Serial.print(TWSR & 0xF8); } } void send_i2c_address(uint8_t adr, uint8_t w) { send_i2c((adr<<1) | w); //send_i2c(0xD0); if ((TWSR & 0xF8) != TW_MT_SLA_ACK){ Serial.print(" |Error: ADRESS -> "); Serial.print(TWSR &
in „Atmega328P I2C - kein Ack vom Slave“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd_wertbed_sprintf.ino
#include <LiquidCrystal.h> //Variablendeklaration ANFANG LiquidCrystal lcd(12,11,5,4,3,2); long potPin1 = A1; long potPin2 = A2; //Variablendeklaration ENDE void setup() { lcd.begin(16,2); lcd.clear(); lcd.setCursor(0,1); lcd.print("LADEDRUCK: "); lcd.setCursor(0,0); lcd.print("LADELUFT: "); //lcd.home(); im void loop-> set cursor0,0 pinMode(potPin1,INPUT); pinMode(potPin2,INPUT); } void loop() { char s[18]; lcd.setCursor(10,0); sprintf(s,"%4d", (analogRead(potPin1))); lcd.print(s); lcd.setCursor(10, 1); sprintf(s,"%4d", (analogRead(potPin2))); lcd.print(s); // Aber: Wenn du jetzt zügig von 0 bis
in „LCD und wertbedingter Text“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
AnalogInOutSerial.ino
/* Analog input, analog output, serial output Reads an analog input pin, maps the result to a range from 0 to 255 and uses the result to set the pulsewidth modulation (PWM) of an output pin. Also prints the results to the serial monitor and to 2 Virtual Instruments of program Serialcominstruments.exe. The circuit: * potentiometer connected to analog pin 0. Center pin of the potentiometer goes to the analog pin. side pins of the potentiometer go to +5V and ground * LED connected from digital pin 9 to ground created 29 Okt. 2013 by Dipl.Ing. gatsby This example code is in the public domain. */ //
in „Projekt: Virtuelle Instrumente an serielle Schnittstelle“ · Projekte & Code ·
-
Datei
Fertiger_Programtext_2.ino
#include <MenuItem.h> #include <Menu.h> #include <LiquidCrystal.h> #define lichtschranke1 A14 #define lichtschranke2 A15 LiquidCrystal lcd (8,9,4,5,6,7); Menu myMenu; float i=0; unsigned long start_Zeitmessung; unsigned long ende_Zeitmessung; float Geschwindigkeit = 0; float Bestenliste_1 = 0; float Bestenliste_2 = 0; int Grenze1 = 0; int Grenze2 = 0; int startSeen = 0; int endeSeen = 0; MenuItem item001 ("Messung", 001, 011, 001, 002, 002); MenuItem item002 ("Einstellung", 002, 012, 002, 001, 001); MenuItem item011 ("Start", 011, 011, 001, 021, 021); MenuItem item021 ("Bestenliste", 021, 021,
in „Lichtschranke Hilfe“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ComInstruments1.ino
/****************************************************************************** Beispiel Funktion für SerialComInstruments mit dem Arduino Duemilanove avr.device = atmega328p avr.clock = 16000000 uart.baud = 38400 Datum : 06.11.2013 Autor : Dipl.Ing. gatsby *******************************************************************************/ // Senden eines Telegramms an den PC void SendString(byte InstrNr, int MWert) { Serial.print('#'); Serial.print(InstrNr); Serial.print('M'); Serial.print(MWert); Serial.print('<'); } // Die setup Routine wird nur einmal nach dem Reset durchlaufen: void setup()
in „Projekt: Virtuelle Instrumente an serielle Schnittstelle“ · Projekte & Code ·
-
Datei
ComInstruments2.ino
/****************************************************************************** Beispiel Funktion für SerialComInstruments mit dem Arduino Duemilanove Das Programm erzeugt künstliche Daten, die mit dem PC-Programm SerialComInstruments V0.33 Copyright Ulrich Albert Maassen Mönchengladbach angezeigt werden können. Damit kann das PC-Programm getestet werden und die Darstellungsmöglichkeiten des PC-Programms aufgezeigt werden. Eine Sinus-und Cosinuskurve wird erzeugt und an die Instrumente #90 und #51, #52 gesendet. Istwerte von 0..100 werden erzeugt und an die Instrumente #1, #40 und #60 gesendet. Die
in „Projekt: Virtuelle Instrumente an serielle Schnittstelle“ · Projekte & Code ·
-
Datei
ComInstruments2.ino
/****************************************************************************** Beispiel Funktion für SerialComInstruments mit dem Arduino Duemilanove Das Programm erzeugt künstliche Daten, die mit dem PC-Programm SerialComInstruments V0.33 Copyright Ulrich Albert Maassen Mönchengladbach angezeigt werden können. Damit kann das PC-Programm getestet werden und die Darstellungsmöglichkeiten des PC-Programms aufgezeigt werden. Eine Sinus-und Cosinuskurve wird erzeugt und an die Instrumente #90 und #51, #52 gesendet. Istwerte von 0..100 werden erzeugt und an die Instrumente #1, #40, #41 und #60 gesendet
in „Projekt: Virtuelle Instrumente an serielle Schnittstelle“ · Projekte & Code ·