-
Datei
wi2--0-1-led2.ino
#include <SoftwareSerial.h> #define AP_SSID "Router SSID" #define AP_PASSWORT "Router Passwort" #define xPORT 80 #define LED 13 SoftwareSerial ESPSerial(10, 11); // RX, TX boolean ESP_Aktiv; boolean ESP_Verbunden; boolean SERVER_Aktiv; //int wifi_id; int wifi_packetlaenge; char wifi_Host[24]; int verbindungsversuche = 3; void setup() { pinMode(LED, OUTPUT); Serial.begin(9600); ESPSerial.begin(9600); ESPSerial.setTimeout(5000); debug("\nDebug Serial OK"); if(ESP_Test()) { for(int i=1; i<=verbindungsversuche; i++) { debug("Verbindungsversuch "+String(i)+" von "+String(verbindungsversuche)); ESP_Verbunden = ESP_Verbinden
in „Arduino+ESP8266 über Webinterface ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Dallas_WaitForConversion_Bsp_002.ino
/* Test of Arduino Mega 2560 Arduino IDE v1.6.5 Temperaturmessung ohne Blockierung der loop */ #include <OneWire.h> #include <DallasTemperature.h> // https://github.com/milesburton/Arduino-Temperature-Control-Library // Data wire is plugged into port 2 on the Arduino #define ONE_WIRE_BUS 7 // Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs) OneWire oneWire(ONE_WIRE_BUS); // Pass our oneWire reference to Dallas Temperature. DallasTemperature sensors(&oneWire); // change of your sensors adress or use "getTempCByIndex" and see below DeviceAddress
in „AVR Frequenzmessung, DS18S20“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Protogen_OS_V3.1_mod.ino
Protogen_OS_V3.1_mod.ino
in „Max7219 an Arduino Nano will nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
PinKlasse_klassisch_toggle.ino.elf.txt
C:\Users\Worker\AppData\Local\Temp\arduino_build_9702\PinKlasse_klassisch_toggle_Forum.ino.elf: file format elf32-avr Disassembly of section .text: 00000000 <__vectors>: 0: 0c 94 51 00 jmp 0xa2 ; 0xa2 <__ctors_end> 4: 0c 94 79 00 jmp 0xf2 ; 0xf2 <__bad_interrupt> 8: 0c 94 79 00 jmp 0xf2 ;
in „Buchempfehlung C++ und MCUs“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Cisco_WS-CAC_3000W_INT.ino
//Eingang für Strommessung an Pin A1 int strom; //Ausgang für Lüfter an D3 int lufterpwm; //Widerstand Shunt in mOhm int shunt = 1; //maximaler Strom in mA int Imax = 66000; int spannung_shunt_max = Imax*shunt; int spannung_shunt; int lufterdisplay; #include <U8g2lib.h> #include <Wire.h> U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, U8X8_PIN_NONE); void u8g2_prepare() { u8g2.setFont(u8g2_font_t0_11_tf); u8g2.setFontRefHeightExtendedText(); u8g2.setDrawColor(1); u8g2.setFontPosTop(); u8g2.setFontDirection(0); } void setup(void) { pinMode(3, OUTPUT); u8g2.begin(); Serial.begin(9600); u8g2_prepare
in „Stimmt mit meinem OLED Display etwas nicht?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
sketch_Jan07_TIMER2_OVF.ino
/********************************************************************************************** 10kHz to 120MHz VFO / RF Generator with Si5351 and Arduino Nano, with Zwischenfrquenz (ZF) offset + . See the schematics for wiring details. By J. CesarSound - ver 1.0 - Dec/2020. Originallösung verwendet PINCHANGE Interrupt etwas geändert auf Timer2 Interrupt Timer0 wird in Arduino für millis() verwendet Funktionen Wobbeln, Calibration via DCF-Frequenzabgleich mit Oszi, ev mit Lissajoufigur. und aus hist. Gründen 9 MHz an clk0 und clk2 90° phasenverschoben etwas FM-Modulation mit 2,5kHz Jan 2022 adapted
in „USB to TTL mit CH340“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
TX_433Mhz_Robot_new_button.ino
#include <SoftwareSerial.h> SoftwareSerial BTserial(2, 3); // RX | TX char *controller; int x; int y; int led; int buttonPin = 8; int buttonState = 0; void setup() { pinMode(buttonPin, INPUT); Serial.begin(9600); BTserial.begin(9600); controller = "0"; } void loop() { x = analogRead(A0); y = analogRead(A1); led = analogRead(A2); buttonState = digitalRead(buttonPin); if (x > 0 && x < 250) { BTserial.write("A"); } else if (x > 250 && x < 400) { BTserial.write("B"); } else if (x > 500 && x < 520 && y > 500 && y < 520) { BTserial.write("C"); } else if (x > 600 && x < 750) { BTserial.write("D"); } else
in „Problem mit momentaner Button-Funktion“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
STM32F4_Discovery_Blink.ino
/* Blink Turns on an LED on for one second, then off for one second, repeatedly. Most Arduinos have an on-board LED you can control. On the Uno and Leonardo, it is attached to digital pin 13. If you're unsure what pin the on-board LED is connected to on your Arduino model, check the documentation at http://www.arduino.cc This example code is in the public domain. modified 8 May 2014 by Scott Fitzgerald */ #define REDLED PD12 // the setup function runs once when you press reset or power the board void setup() { // initialize digital pin 13 as an output. pinMode(REDLED, OUTPUT); } // the loop function
in „STM32F4 Discovery Arduino“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
MK_ESP_WIFI_Serial_Client_Server.ino
/*-------------------------------------------------- https://blog.thesen.eu/telnet2serial-telnet-zu-rs232seriell-bruecke-mit-dem-esp8266-microcontroller/#comment-2437 Serial to Serial AccessPoint for ESP8266 for ESP8266 adapted Arduino IDE - stellte eine 1 zu n (n max. 5???) her - 1 = Server = Accesspoint der Daten seiner Uart RX per Broadcast an alle Clients schick und Daten die er von den Clients erhält an die Uart TX weiterleitet - n = Clients die sich an einem AP anmelden, Daten vom Server erhalten und an ihre Uart TX weiterleiten oder Daten der Uart RX an den Server weiterleiten - Synchronisierung
in „ESP82266 UART-WIFI-UART Brücke“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
MYSENSORS_GatewayClient_WORK_V3.ino
/** * The MySensors Arduino library handles the wireless radio link and protocol * between your home built sensors/actuators and HA controller of choice. * The sensors forms a self healing radio network with optional repeaters. Each * repeater and gateway builds a routing tables in EEPROM which keeps track of the * network topology allowing messages to be routed to nodes. * * Created by Henrik Ekblad <henrik.ekblad@mysensors.org> * Copyright (C) 2013-2015 Sensnology AB * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors * * Documentation: http://www.mysensors.org *
in „String Array verarbeiten / Arduino“ · Mikrocontroller und Digitale Elektronik ·
-
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
sketch_sep10a_neu1.ino
#include <SD.h> #include <Wire.h> #include <Adafruit_Sensor.h> #include <Adafruit_BME280.h> #include <TinyGPS++.h> // Pins definieren const int GPS_PPS_PIN = 2; // PPS-Signal vom GPS für Sekundentakt const int LICHTSCHRANKE_PIN = 3; // Signal von der Lichtschranke const int SD_CS_PIN = 10; // Chip Select für SD-Kartenleser // Speicher-Intervall für die Lichtschranke (jeder 1800. Impuls) const unsigned long SPEICHER_INTERVALL_IMPULSE = 1; // Instanzen TinyGPSPlus gps; Adafruit_BME280 bme; // Volatile Variablen für die Interrupts volatile unsigned long ppsMicrosRef = 0; // Systemzeit der letzten GPS-Sekunde
in „Datenlogger Pendeluhr“ · Mikrocontroller und Digitale Elektronik ·
-
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 ·
-
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 ·