-
Datei
soser.ino
#include <SoftwareSerial.h> SoftwareSerial mySerial(4, 5); // RX, TX void check(long speed) { Serial.print("Speed "); Serial.print(speed); Serial.print(", _tx_delay "); mySerial.begin(speed); } void setup() { const char info[] = "soser TX 5 " __DATE__ " " __TIME__; Serial.print(info); Serial.begin(38400); Serial.println(info); } void loop() { check(9600); check(38400); check(115200); check(250000); check(256000); check(460800); check(38400); check(230400); mySerial.println("Alle meine Entchen jump over the lazy dog"); delay(2000); }
in „Arduino: High Speed Soft Serial (nur RX benötigt)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
sample.ino
#include "Arduino.h" #include "DFRobotDFPlayerMini.h" #include <SoftwareSerial.h> SoftwareSerial softSerial(/*rx =*/4, /*tx =*/5); #define FPSerial softSerial DFRobotDFPlayerMini myDFPlayer; void printDetail(uint8_t type, int value); void setup() { FPSerial.begin(9600); Serial.begin(115200); Serial.println(); Serial.println(F("DFRobot DFPlayer Mini Demo")); Serial.println(F("Initializing DFPlayer ... (May take 3~5 seconds)")); if (!myDFPlayer.begin(FPSerial, /*isACK = */true, /*doReset = */true)) { //Use serial to communicate with mp3. Serial.println(F("Unable to begin:")); Serial.println(F("1.Please
in „arduino und dfplayer spielt einfach nichts ab“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Inputs.ino
#define HAT_CENTER 8 #define HAT_N 0 #define HAT_NE 1 #define HAT_E 2 #define HAT_SE 3 #define HAT_S 4 #define HAT_SW 5 #define HAT_W 6 #define HAT_NW 7 #define PIN_RESERVED 3 Encoder encoders[4]; // input pins autofilled based on which mpu #if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) int inputPins[] = {A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53}; Input inputs[66
in „Dauerkontakt vom Schalter in Impuls umwandeln“ · Analoge Elektronik und Schaltungstechnik ·
-
Datei
main.ino
// Solar Warmwasserboiler Regent 1500W Stufen 240W / 360W / 480W #include <Arduino.h> #include <Wire.h> #include <LiquidCrystal_I2C.h> // A4=SDA, A5=SCL https://arduinogetstarted.com/tutorials/arduino-lcd-i2c // Messeingänge - Aanalog #define phasedpin A0 #define phaseapin A1 #define phasebpin A2 #define phasecpin A3 #define phaselpin A6 #define phaseipin A7 // Digitalpins #define relxpin 2 #define relypin 3 #define relzpin 4 #define resetoutpin 7 #define netzpin 8 #define inselpin 9 #define testpinniedrig 10 #define testpinmittel 11 #define testpinhoch 12 // Testausgang #define boardledpin 13 // Display
in „Arduino nano arbeitet ohne Display nicht.“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
empfangstest.ino
// Empfänger const byte numChars = 32; char receivedChars[numChars]; char tempChars[numChars]; // temporary array for use when parsing // variables to hold the parsed data char messageFromPC[numChars] = {0}; float integerFromPC = 0.0; float wert1 = 0.0; float wert2 = 0.0; float wert3 = 0.0; float wert4 = 0.0; float wert5 = 0.0; boolean newData = false; //============ void setup() { Serial.begin(19200); Serial.println("bereit"); Serial.println(); } //============ void loop() { recvWithStartEndMarkers(); if (newData == true) { strcpy(tempChars, receivedChars); // this temporary copy is necessary to
in „Mehrere Werte über RS485 versenden“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
inverter.ino
/* */ #define PWM_CT2A 11 //OC2A #define PWM_CT2B 3 //OC2B #define maxpwm 127 void ct2_init() { pinMode(PWM_CT2A, OUTPUT); pinMode(PWM_CT2B, OUTPUT); TCCR2A = (1 << COM2B1) |(1 << COM2B0) | (1 << COM2A1) | (1 << WGM20); //fast PWM TCCR2B = (1 << CS20); // prescaler 0 OCR2A = 0; OCR2B = 255; // pwm value } void setup() { pinMode(LED_BUILTIN, OUTPUT); Serial.begin(115200); ct2_init(); } void setct(uint8_t data) { uint8_t ld = constrain(data,0,maxpwm); OCR2A = ld; // TOP overflow value (Hz) OCR2B = 255-ld; // pwm value } uint8_t ct,i; uint8_t power = 1; uint8_t sintab[10] ={0,10,30,40,45,40,30,10,0};
-
Datei
inverter.ino
/* */ #define PWM_CT2A 11 //OC2A #define PWM_CT2B 3 //OC2B #define maxpwm 120 void ct2_init() { pinMode(PWM_CT2A, OUTPUT); pinMode(PWM_CT2B, OUTPUT); TCCR2A = (1 << COM2B1) |(1 << COM2B0) | (1 << COM2A1) | (1 << WGM20); TCCR2B = (1 << CS20); // prescaler 0 OCR2A = 0; OCR2B = 255; // pwm value } void setup() { pinMode(LED_BUILTIN, OUTPUT); Serial.begin(115200); ct2_init(); } void setct(uint8_t data) { uint8_t ld = constrain(data,0,maxpwm); OCR2A = ld; OCR2B = 255-ld; // pwm value } uint8_t ct,i; uint8_t sintab10[11] ={0,39,75,103,121,127,121,103,75,39,0}; // 50ns resonance = 20mhz. void loop()
-
Datei
intsync.ino
/* */ #define EXTINT0 2 #define EXTINT1 3 void setup() { pinMode(LED_BUILTIN, OUTPUT); pinMode(EXTINT0,INPUT); attachInterrupt(digitalPinToInterrupt(EXTINT0), EXTINT0_ISR, FALLING); Serial.begin(115200); Serial.println("Start"); } volatile bool nulldurchgang; void EXTINT0_ISR() { nulldurchgang = true; } unsigned long nulltime,oldtime; void loop() { if (nulldurchgang) { nulldurchgang = false; oldtime = nulltime; nulltime = millis(); Serial.println(nulltime - oldtime); /* while (millis() < nulltime) do_nothing; --> hier code der messdalay_ms nach nulldurchgang ausgeführt wird digitalWrite(ledpin,
-
Datei
sigmadeltatest.ino
#include <Arduino.h> #include <sigma_delta.h> const int led = LED_BUILTIN; #define pin 10 void setup() { pinMode(led, OUTPUT); digitalWrite(led, LOW); Serial.begin(115200); sigmaDeltaEnable(); sigmaDeltaSetup(0, 8*1220); sigmaDeltaAttachPin(pin, 0); digitalWrite(led, HIGH); } uint8_t val = 0; void loop() { delay(10000); sigmaDeltaWrite(0, val); val += 8; }
in „Batterieladen mit solarüberschuss. Einspeisen bei verbrauch.“ · Haus & Smart Home ·
-
Datei
test.ino
#include <SPI.h> #include <SD.h> #include <Wire.h> #include "RTClib.h" #define pinCS 10 // Pin 10 auf Arduino Uno char input = ""; char theChar = ""; char CharNeu = ""; const char *inputFile = "inputfile.txt"; //<<<<<<<<<<<<<<<<<<<<< const char *outputFile = "outputfile.txt"; //<<<<<<<<<<<<<<<<<<<<< File dataFile_IN; File dataFile_OUT; bool pleaseCarryOn = false; RTC_DS1307 rtc; DateTime now, last; TimeSpan ts; int temperatur = 20; void setup() { Serial.begin(9600); Serial.print("Initializing SD card..."); if (!SD.begin(10)) { Serial.println("initialization failed!"); while (1); } Serial.println
in „Uhrzeitrechner“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
tools.ino
/* Liest die Kippschalter aus */ void GetKippSchalter() { static int old_kipp1 = 0x11; static int old_kipp2 = 0x22; static int old_kipp3 = 0x33; int temp; pinMode(KIPP_NETZBETRIEB, INPUT_PULLUP); pinMode(KIPP_AUTOMATIC, INPUT_PULLUP); pinMode(KIPP_MICRO_ONLY_NETZ, INPUT_PULLUP); /* Kippschalter aus lesen */ temp = digitalRead(KIPP_NETZBETRIEB); if (temp != old_kipp1) { Flags.Kipp_BatterieON = !temp; Flags.Kipp_Switched_BatterieON = true; old_kipp1 = temp; } temp = digitalRead(KIPP_MICRO_ONLY_NETZ); if (temp != old_kipp2) { Flags.Kipp_Inverter = !temp; Flags.Kipp_Switched_Inverter = true; old_kipp2
in „C Programmierung: Wie komplexe Schaltwerke realisieren`?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
messwerte.ino
#define VOLTBATT_FAKTOR 10.8904 #define WERTE_AVG 60 // Sekunden #define AVPOWER 5 // Minuten void GetSensorData() { /* Array für Mittelwertbildung über 60s */ float summe; static int oldhour = 0x55; static int head_ubatt = 0; // Index für Mittelwert Arrays static int head_solar = 0; static int head_last = 0; static int head_pow5Min = 0; static float AvSolar[WERTE_AVG + 1]; static float AvLast[WERTE_AVG + 1]; static float AvUBatt[WERTE_AVG + 1]; static int AvPow5Min[AVPOWER * WERTE_AVG]; // 5 Minuten Mittelwert für Watt static bool init = true; if (init) { /* UBatt füllen */ adc.setCompareChannels(
in „C Programmierung: Wie komplexe Schaltwerke realisieren`?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
tools.ino
/* Liest die Kippschalter aus */ void GetKippSchalter() { static int old_kipp1 = 0x11; static int old_kipp2 = 0x22; static int old_kipp3 = 0x33; int temp; pinMode(KIPP_NETZBETRIEB, INPUT_PULLUP); pinMode(KIPP_AUTOMATIC, INPUT_PULLUP); pinMode(KIPP_MICRO_ONLY_NETZ, INPUT_PULLUP); /* Kippschalter aus lesen */ temp = digitalRead(KIPP_NETZBETRIEB); if (temp != old_kipp1) { Flags.Kipp_BatterieON = !temp; Flags.Kipp_Switched_BatterieON = true; old_kipp1 = temp; } temp = digitalRead(KIPP_MICRO_ONLY_NETZ); if (temp != old_kipp2) { Flags.Kipp_Inverter = !temp; Flags.Kipp_Switched_Inverter = true; old_kipp2
in „C Programmierung: Wie komplexe Schaltwerke realisieren`?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
grafik.ino
/* bool begin(uint8_t switchvcc = SSD1306_SWITCHCAPVCC, uint8_t i2caddr = 0, bool reset = true, bool periphBegin = true); void display(void); void clearDisplay(void); void invertDisplay(bool i); void dim(bool dim); void drawPixel(int16_t x, int16_t y, uint16_t color); virtual void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color); virtual void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color); void startscrollright(uint8_t start, uint8_t stop); void startscrollleft(uint8_t start, uint8_t stop); void startscrolldiagright(uint8_t start, uint8_t stop); void startscrolldiagleft
in „Adafruit SSD1306 Objekt lässt keine Zeiger zu“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
setup.ino
void setup() { Serial.begin(115200); debugln(F("---------------------")); debugln(F(" SYSTEM RESET")); debugln(F("---------------------")); /* Watchdog auf 5 Sekunden */ esp_task_wdt_init(WDT_TIMEOUT, true); //enable panic so ESP32 restarts esp_task_wdt_add(NULL); //add current thread to WDT watch esp_task_wdt_reset(); pinMode(LATCH_PIN, OUTPUT); pinMode(LED_ORANGE, OUTPUT); pinMode(LED_GRN, OUTPUT); pinMode(LED_ROT, OUTPUT); /* SPI einstellen */ SPI.begin(MYSCK, MYMISO, MYMOSI, LATCH_PIN); SPI.setBitOrder(MSBFIRST); SPI.setDataMode(SPI_MODE0); SPI.setClockDivider(SPI_CLOCK_DIV4); /* 4 Mhz */ EEPROM.begin(0x1000
in „Adafruit SSD1306 Objekt lässt keine Zeiger zu“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mysketch.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 „Adafruit SSD1306 Objekt lässt keine Zeiger zu“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DABLCD.ino
//////////////////////////////////////////////////////////// // DAB/LCD Shield Example App // AVIT Research Ltd // // Library Dependencies: // * DABShiled // * Adafruit_RGBLCDShiled // * FlashStorage (SAMD devices e.g. M0, Zero etc) // * DueFlashStorage (Ardino Due) // // Version Info: // v0.1 22/02/2018 - initial release // v0.2 05/07/2018 - added faster tune // v0.3 19/09/2018 - array safeguards // v0.4 18/10/2018 - non volatile memory storeage // v0.5 29/03/2019 - add FM functionality and Menu // v0.6 05/09/2019 - enhanced FM functionality (seek) // v0.7 20/12/2019 - Ralf's no dab station additions
in „DAB Shield Frage zu Arduino Code“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DABLCD.ino
//////////////////////////////////////////////////////////// // DAB/LCD Shield Example App // AVIT Research Ltd // // Library Dependencies: // * DABShiled // * Adafruit_RGBLCDShiled // * FlashStorage (SAMD devices e.g. M0, Zero etc) // * DueFlashStorage (Ardino Due) // // Version Info: // v0.1 22/02/2018 - initial release // v0.2 05/07/2018 - added faster tune // v0.3 19/09/2018 - array safeguards // v0.4 18/10/2018 - non volatile memory storeage // v0.5 29/03/2019 - add FM functionality and Menu // v0.6 05/09/2019 - enhanced FM functionality (seek) // v0.7 20/12/2019 - Ralf's no dab station additions
in „DAB Shield Frage zu Arduino Code“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
GPIO.ino
/* * a simpel UART to GPIO converter * outputs only * example written for Arduino Nano */ void setup() { pinMode(2, OUTPUT); pinMode(3, OUTPUT); pinMode(4, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT); pinMode(7, OUTPUT); pinMode(8, OUTPUT); pinMode(9, OUTPUT); Serial.begin(115200); } void loop() { uint8_t tmp; if (Serial.available()) { tmp = Serial.read(); digitalWrite(2, (tmp & 1<<0)); digitalWrite(3, (tmp & 1<<1)); digitalWrite(4, (tmp & 1<<2)); digitalWrite(5, (tmp & 1<<3)); digitalWrite(6, (tmp & 1<<4)); digitalWrite(7, (tmp & 1<<5)); digitalWrite(8, (tmp & 1<<6)); digitalWrite(9, (tmp
in „Anfängerfrage AD Umwandlung RS323“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
SPIFFS.ino
// Read File from SPIFFS String readFile(fs::FS &fs, const char * path){ Serial.printf("Reading file: %s\r\n", path); File file = fs.open(path); if(!file || file.isDirectory()){ Serial.println("- failed to open file for reading"); return String(); } String fileContent; while(file.available()){ fileContent = file.readStringUntil('\n'); break; } return fileContent; } // Write file to SPIFFS void writeFile(fs::FS &fs, const char * path, const char * message){ Serial.printf("Writing file: %s\r\n", path); File file = fs.open(path, FILE_WRITE); if(!file){ Serial.println("- failed to open file for writing"
in „ESP32 Watchdog Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
new_1.c
Und hier die Fehlermeldungen: Arduino: 1.6.5 (Windows 8.1), Platine: "Arduino Nano, ATmega328" Test.ino: In function 'void loop()': Test:63: error: expected primary-expression before 'if' Test:63: error: expected ';' before 'if' Test:156: error: expected '}' at end of input Test:156: error: expected '
in „Unerklärliche Fehlermeldung in einem Arduino-Programm“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
MultiSpeedI2CScanner.ino
// // FILE: MultiSpeedI2CScanner.ino // AUTHOR: Rob Tillaart // VERSION: 0.1.06 // PURPOSE: I2C scanner @different speeds // DATE: 2013-11-05 // URL: http://forum.arduino.cc/index.php?topic=197360 // // Released to the public domain //
in „Probleme mit meinem LCD-Display“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
MultiSpeedI2CScanner.ino
// // FILE: MultiSpeedI2CScanner.ino // AUTHOR: Rob Tillaart // VERSION: 0.1.06 // PURPOSE: I2C scanner @different speeds // DATE: 2013-11-05 // URL: http://forum.arduino.cc/index.php?topic=197360 // // Released to the public domain //
in „i2c & LCD stellt sich quer :/“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
codecIntegerSineWave.ino
github.com/mubase/STM32F4-Arduino-core/blob/master/cores/maple/libmaple/stm32f4codec/CODECSINE/CODECSINE.ino #include <HardWire.h> #include <Wire.h> #include <WireBase.h> #include "codec.h" int sine[] = {0x800, 0x832, 0x864, 0x896, 0x8c8, 0x8fa, 0x92c, 0x95e, 0x98f, 0x9c0, 0x9f1, 0xa22, 0xa52, 0xa82, 0xab1
in „STM32F4 Discovery Arduino“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
MultiSpeedI2CScanner.ino
// // FILE: MultiSpeedI2CScanner.ino // AUTHOR: Rob Tillaart // VERSION: 0.1.06 // PURPOSE: I2C scanner @different speeds // DATE: 2013-11-05 // URL: http://forum.arduino.cc/index.php?topic=197360 // // Released to the public domain //
in „ADS1115 lässt Arduino Uno einfrieren“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
log.txt
-o "C:\\Windows\\Temp\\arduino\\sketches\\1C11064D691FC2C2BC70229604B6955B/Rtos5.ino.bin" "C:\\Windows\\Temp\\arduino\\sketches\\1C11064D691FC2C2BC70229604B6955B/Rtos5.ino.elf" esptool.py v4.6 Creating esp32 image... Merged 27 ELF sections Successfully created esp32 image. "C:\\Users
in „ESP32 LittleFS Arduino“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
IRQ.c
HAUPT_SCREEN][RTC_T_LINE-1][0]=' '; #else // #ifdef RTC_T_LINE #pragma message "NO RTC_T_LINE -> hier in isr.ino Line 144 wirds nicht eingebunden\n" #endif // #ifdef RTC_T_LINE #ifdef _SERIELL_UPDATE if(seriellupdate) seriellupdate--; #endif // #ifdef _SERIELL_UPDATE #ifdef LED_ARDUINO_OFF #pragma message "LED_ARDUINO_OFF
in „Entprellen Flankenerkennung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
rfid_lcd.ino
/* * read/write MIFARE classic cards, based on Example sketch * requires functions.ino * This sketch uses the MFRC522 Library to use ARDUINO RFID MODULE KIT 13.56 MHZ WITH TAGS SPI W AND R BY COOQROBOT. * The library file MFRC522.h has a wealth of useful info. Please read it. * The functions
in „Arduino RFID RC522 Meldung senden wenn KEINE Karte vorhanden ist“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Waschzeit_3R_LOW_OLED_10-02.ino
) { Serial.println("Washtimer mit Arduino, Ersatz f. mech Timer. Arduino IDE: Waschzeit_3R_HIGH_01.ino"); potiWert = analogRead(potiPin); Einschaltdauer = map(potiWert, 0, 1023, 60 , 900); //Dieser Teil bestimmt die Waschzeit. Die Werte des Potis werden gemappt auf die Range Minutendauer = (Einschaltdauer
in „Arduino Timer für Campingwaschmaschine“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
arduino-grid-tie-inverter-schema-20221024.pdf
D29 D30 1N4743 1N4743 56K C35 C36 56K R63 R64 Gehäuse 1n 1n Schaltung zu Sketch 20221024a-Einspeise.ino H H -E Sheet: / File: Einspeise-WR-20221024.sch radio-darius@web.de Title: 12V Batterie Einspeisewechselrichter Size: A2 Date: 20221024 de dd3et Rev: KiCad E.D.A. eeschema (5.1.5)-3 Id: 1/1 1 2 3 4
-
PDF
BTS555_20030925.pdf
limited by the connected load (as it is done with all polarity symmetric loads). Note that under offINo=IIS=0) the power transistor is not activated. This results in raised power dissipation due to the higher voltage drop across the intrinsic drain-source diode. The temperature protection is not active
in „Elektronische Sicherung für Akku“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Anleitung-Wort-Uhr.pdf
der Sketch kompiliert und im angegebenen Verzeichnis unter anderem eine .bin-Datei angelegt (Uhr_Neu.ino.bin). Diese kann nun über die Adresse http://<IP-Adresse der Uhr>:81/update auf die Uhr übertragen werden. 16/02/2019 S e i t e | 3 Quelle: https://github.com/Eisbaeeer/Ulrich-Radig_Wort_Uhr_Version
in „Wortuhr Dioden Multiplex entstören“ · Analoge Elektronik und Schaltungstechnik ·
-
Thread
Webserver ESP8266 soll mehrere KB an Daten an Browser senden
Javascript. Oder er war betrunken, auf Crack, LSD und Kokain, alles gleichzeitig. Also: in deinem INO-File: Alles mit der Event-Source muss raus. Arduino-JSON kann raus. und wir ändern den "/readings" endpunkt so, dass er auch gleich die Readings zurückgibt: [c] // Request for the latest sensor
Mikrocontroller und Digitale Elektronik ·Stephan D. · ·34 Antworten
-
Datei
MP3_Shield_RealtimeMIDI_demo.ino
/* * * File: MP3_Shield_RealtimeMIDI.ino * Author: Matthias Neeracher * * This code is in the public domain, with the exception of the contents of sVS1053b_Realtime_MIDI_Plugin. * * The code is based on Nathan Seidle's Sparkfun Electronics
in „VS1003/VS1053 Midi-Synth“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
MCNF_-_Getting_Started_-_Version_1.0.0.pdf
Arduino\MCNF_Arduino_HEW_GW and launch the Arduino IDE by double-clicking onto MCNF_Arduino_HEW_GW.ino. - select Arduino UNO in Tools-Board and COM20 in Tools-Serial Port - In tab MCNF_Arduino_HEW_GW in section COMMUNICATION CONFIGURATION, set the #defines DEVICE_DIMM and UART_INPUT to 1, all others
in „MCNF - Micro-Controller Networking Framework for Measurement and Automation“ · Projekte & Code ·
-
Datei
U2f_pw_org_ino.ino
/* Spannungs-Frequenz und Spanungs-Pulsweiten-Wandler mit ATmega48/88 Am Ausgang OC1B wird ein Impuls von 1-30 µs Dauer in Abhängigkeit der Eingangsspannung am ADC-Eingang3 erzeugt. Die Pulswiederholfrequenz wird mit der Eingangsspannung am ADC-Eingang2 eingestellt und liegt im Bereich 10Hz - 5kHz. Die Grenzwerte werden durch die entsprechenden #define-Anweisungen eingestellt. http://www.mino-elektronik.de Alle Angaben ohne Gewaehr ! 2013-10-15 */ #include <avr/io.h> #include <avr/interrupt.h> #include <stdlib.h> #define BIT(x) (1<<x) #define F_CPU 16000000 // 16MHz ggf. an eff.Frequenz anpassen
in „spannungsgesteuerter Pulsgenerator 5-30 µs / 0-5kHz“ · Analoge Elektronik und Schaltungstechnik ·
-
PDF
USB_Safety_Tester.pdf
ne. 2 )' 0m od e:i calld inteli entch ar ig m ode w hih isau tm a tcaly po wer offaftr f lch argig ino r erto prot ctthe cel phone. To clearthe val eo ftm er pow erand cap aciy bef r long pressing te b uton to charge. rexam pl ,i thi m ode,the detectorw ila ut ma tcall cUto fthe Fo to voltage whe nthe
in „Erfahrung elektronische Last aus China?“ · Analoge Elektronik und Schaltungstechnik ·
-
Datei
irsndconfig.h
------------------------------------------------------------------- * ESP8266 (Arduino, see IRSEND.ino) *--------------------------------------------------------------------------------------------------------------------------------------------------- */ #elif defined (__xtensa__) # define IRSND_PIN
in „IRSND Daten für Roomba“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
irsndconfig.h
------------------------------------------------------------------- * ESP8266 (Arduino, see IRSEND.ino) *--------------------------------------------------------------------------------------------------------------------------------------------------- */ #elif defined (__xtensa__) # define IRSND_PIN
in „IR Fernbedienung mit IRSND“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
FrequencyCounterUno5.ino
github.com/gavinlyonsrepo/TM1638plus/blob/master/examples/TM1638plus_ADC_Model2/TM1638plus_ADC_Model2.ino#L48 21.12.2020 chris_ my code part: Free Beer Lizence ( or to be more precise: red wine ) */ #include <FreqCount.h>//https://github.com/PaulStoffregen/FreqCount/archive/master.zip // Arduino UNO PIN5
-
PDF
USB_Safety_Meter_Manual.pdf
ne. 2 )' 0m od e:i calld inteli entch ar ig m ode w hih isau tm a tcaly po wer offaftr f lch argig ino r erto prot ctthe cel phone. To clearthe val eo ftm er pow erand cap aciy bef r long pressing te b uton to charge. rexam pl ,i thi m ode,the detectorw ila ut ma tcall cUto fthe Fo to voltage whe nthe
in „Smartphone Akku-Kapazität prüfen“ · Analoge Elektronik und Schaltungstechnik ·
-
PDF
displayinterface_arduino.pdf
ausschließlich dem Zweck dient, dieses Interface bereitzustellen. Die Firmwaredatei ist: stxlcdrecv_uart.ino Innerhalb dieser Datei ist eine Anpassung bezüglich der Anschlussbelegung Mikrocontroller und Display zu machen, damit ein fehlerfreier Betrieb möglich ist. // Anschluesse Textdisplay an Arduino static
in „Arduino: serielles Ansprechen eines HD44780 Displays über SoftSerial“ · Projekte & Code ·
-
Datei
CodeschalterFunktion.ino
/******************Funktion Codeschalter**************************** Die Funktion Codeschalter liest den Codeschalter 0-9 (kann auch auf Hex-Schalter erweitert werden, dann 0-15) und stellt abhängig von der Schalterstellung die lokale Variable DZ (hier für Drehzahl)ein. In der Hauptschleife (void loop()) wird der Wert von DZ einer neuen Variable AB übergeben. Die Variable AB wird in void loop() deklariert. DZ hat nur zur besseren Sichtbarkeit (ich verwende hier eine Led zum testen) diese deutlich wechselnden und immer gleichen Werte. /******************Funktion Codeschalter**********************
in „Kodierschalter 0-9 oder Hex-Schalter Arduino Funktion“ · Projekte & Code ·
-
Datei
ardu_code.ino
// Diese Definitionen mu¨ssen denen des Senders entsprechen: // Tags/Header für serielle Kommunkation const char HEADER = 'H'; // signalisiert Beginn eines Datenpaketes // gefolgt von Tag --> Zuordnung der Daten const char SLIDER_TAG = 'S'; const char MOUSE_TAG = 'M'; const char SENSOR_TAG1 = 'V'; const char SENSOR_TAG2 = 'W'; const char TIME_TAG = 'T'; const int DEBUG = 'D'; const int TOTAL_BYTES = 6 ; // Gesamtgroeße der Nachricht ( Header, Tag, (8 Bit+8 Bit)= Byte 1,(8 Bit+8 Bit) = Byte2 ) // Voreingestellte Werte für Slidervariable(1024 um unkontrolliertes Verhalten zu unterdrücken) //int schwelle
in „Arduino + Analog Sensoren = Verzögerung bei Datenausgabe“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
nokia_display.ino
/* --------------------------------------------------------------------------- NOKIA_DISPLAY_DEMO Ein Nokia 3310 oder 3410 Display mittels ARDUINO betreiben --------------------------------------------------------------------------- */ // Originalpindefinitionen aus PLAYGROUND.ARDUINO.CC /* #define PIN_SCE 7 #define PIN_RESET 6 #define PIN_DC 5 #define PIN_SDIN 4 #define PIN_SCLK 3 */ #define PIN_SCE 10 #define PIN_RESET 8 #define PIN_DC 9 #define PIN_SDIN 11 #define PIN_SCLK 13 #define LCD_C LOW #define LCD_D HIGH #define nokia3410 #ifdef nokia3410 /* -----------------------------------------
in „Nokia 3310 Display; Arduino; 74HC4050“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ArduinoCDC.ino
#include <avr/wdt.h> //#include <util/delay.h> #define B2 (0x04) #define B3 (0x08) #define B5 (0x20) #define pSS B2 #define pDATA B3 #define pCLK B5 void send_byte(uint8_t c) { SPDR = c; loop_until_bit_is_set(SPSR, SPIF); //wait for transmission complete delayMicroseconds(700); return; } void send_package(uint8_t c0, uint8_t c1, uint8_t c2, uint8_t c3, uint8_t c4, uint8_t c5, uint8_t c6, uint8_t c7) { send_byte(c0); send_byte(c1); send_byte(c2); send_byte(c3); send_byte(c4); send_byte(c5); send_byte(c6); send_byte(c7); return; } void setup() { Serial.print("Main"); attachInterrupt(0, stateChange, RISING
in „Arduino friert ein: SPI und PinChange Interrupt“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd_wertbedingt.ino
#include <LiquidCrystal.h> //Variablendeklaration ANFANG LiquidCrystal lcd(12,11,5,4,3,2); int potPin1 = A1; int potPin2 = A2; int Luft = 0; //Variablendeklaration ENDE void setup() { lcd.begin(16,2); lcd.clear(); //lcd.home(); im void loop-> set cursor0,0 pinMode(potPin1,INPUT); pinMode(potPin2,INPUT); } void loop() { lcd.clear(); lcd.setCursor(0,0); lcd.print("LADELUFT: "); lcd.print(analogRead(potPin1)); lcd.setCursor(0,1); lcd.print("LADEDRUCK: "); lcd.print(analogRead(potPin2)); if(potPin1 >= 100) { lcd.setCursor(14,0); lcd.print("!!"); } else { lcd.setCursor(14,0); lcd.print("OK"); } delay
in „LCD und wertbedingter Text“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
postloggertinyfin6.ino
#include <JeeLib.h> #include <avr/sleep.h> #include <avr/interrupt.h> #define myNodeID 8 #define DIO1 10 // d10 #define DIO2 14 // d10 #define LOGGERNUM 104 #define Serial 1 // set to 1 to also report readings on the // Serial port #define DEBUG 1 // set to 1 to display each loop() run and PIR trigger #define TEST_LIMIT 10 #define RETRY_PERIOD 10 // how soon to retry if ACK didn't come in #define RETRY_LIMIT 5 // maximum number of times to retry #define ACK_TIME 80 // number of milliseconds to wait for an ack // set the sync mode to 2 if the fuses are still the Arduino default // mode 3 (full powerdown
in „Entprellen von Schalter mit Interrupt und PinChange“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
device_log.ino
#include <SPI.h> // needed for Ethernet library communication with the W5100 (Arduino ver>0018) #include <Ethernet.h> #include <EthernetUdp.h> #include <SD.h> #include <utility/w5100.h> #include "eth_headers.h" #define DEBUG #define SET_SD digitalWrite(10, HIGH);digitalWrite(4, LOW); #define SET_ETHERNET digitalWrite(4, HIGH);digitalWrite(10, LOW); #define LED_ON digitalWrite(13, HIGH); #define LED_OFF digitalWrite(13, LOW); SOCKET s; // our socket that will be opened in RAW mode byte mac[] = {0x90, 0xA2, 0xDA, 0x00, 0x8A, 0x6C}; IPAddress ip(192, 168, 178, 88); IPAddress ntp_server(132, 163, 4, 101
in „Arduino bleibt nach einer gewissen Zeit einfach hängen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ArduinoISP.ino
// ArduinoISP version 04m3 // Copyright (c) 2008-2011 Randall Bohn // If you require a license, see // http://www.opensource.org/licenses/bsd-license.php // // This sketch turns the Arduino into a AVRISP // using the following arduino pins: // // pin name: not-mega: mega(1280 and 2560) // slave reset: 10: 53 // MOSI: 11: 51 // MISO: 12: 50 // SCK: 13: 52 // // Put an LED (with resistor) on the following pins: // 9: Heartbeat - shows the programmer is running // 8: Error - Lights up if something goes wrong (use red if that makes sense) // 7: Programming - In communication with the slave // // 23
in „AVR-Programmierung - letzter Schritt“ · Mikrocontroller und Digitale Elektronik ·