/github.com/espressif/arduino-esp32/blob/master/libraries/ESP32/examples/I2S/HiFreq_ADC/HiFreq_ADC.ino Ist man damit sehr viel schneller und kostengünstiger unterwegs als ein verknöcherter alter Dummbeutel.
hängen. Mit diesem Skript: https://github.com/bekspace/lolin_d1_mini-mpu6050/blob/master/d1_mini_mpu.ino kann ich mit die beiden Winkel ausgeben lassen, in denen das Pendel schwingt. Theoretisch schwingt es ja nur in einer Richtung, aber eben nur theoretisch. Außerdem hängt es an einem Seil und dreht
https://github.com/jrowberg/i2cdevlib/blob/master/Arduino/MPU6050/examples/MPU6050_raw/MPU6050_raw.ino Zusammen mit dem Steckbrett über einem 1,5kg schweren Waffeleisen (fürs Lagerfeuer) an einem 130cm langen USB Kabel frei an der Zimmerdecke schwingend, gibt doch ganz ordentliche Werte. Anbei
für Temperaturmessungen: https://sourceforge.net/p/iot-leaf/code/ci/master/tree/BleDHT22/BleDHT22.ino ) Jetzt möchte ich aber mit einem ESP32 auf ein BLE-Gerät verbinden und von dort Werte empfangen (um bei dem Beispiel oben zu bleiben, das sind z.B. nur Temperaturwerte, ich weiß also immer genau
https://github.com/espressif/arduino-esp32/blob/master/libraries/BLE/examples/BLE_client/BLE_client.ino ? Da kommt zumindest ein scan() vor, mit dem nach vorhandenen Bluetooth-Geräten gesucht wird. allerdings ist mir noch vollkommen schleierhaft, wie dann ein spezielles Bluetooth-Gerät ausgewählt wird
and DAC856x devices is straight binary, so the ideal output voltage is given by Equation 1: V = æD INö ´ V ´ Gain OUT ç n ÷ REF è 2 ø (1) where: n = resolution in bits; either 12 (DAC756x), 14 (DAC816x) or 16 (DAC856x) D IN= decimal equivalent of the binary code that is loaded to the DAC register. D
korrekt compiliert ird das nicht: C:\Users\Dieter\Documents\Arduino\sketch_jan12a\sketch_jan12a.ino: In function 'void loop()': sketch_jan12a:17:7: error: expected primary-expression before 'else' else ^~~~ sketch_jan12a:25:18: error: assignment of function 'void delay(long
Hugo H. schrieb im Beitrag #6104006: > C:\Users\Dieter\Documents\Arduino\sketch_jan12a\sketch_jan12a.ino: In > function 'void loop()': > > sketch_jan12a:17:7: error: expected primary-expression before 'else' > > else > > ^~~~ Hugo H. schrieb im Beitrag #6104072: > Nicht hier
vom Forum nicht als "C"-artig erkannt und kommt deshalb als Text zum Leser. Gab es früher auch bei .ino und wurde damals unbürokratisch eingebaut. Alternativ beim Hochladen bei .c oder .cpp oder einfach .C bleiben.
Das ist seltener als ein Fünfer im Lotto. Zu erwarten wäre ungefähr: "Isch hab Hier ein Ardu ino da wo durch glüh Lampe ein strom Flisst wie kan ich die amper Mesen die meine Batter ie liefern muss bitte dring end helfen?"
/* SPI Master Demo written by Robert Mollik, 2016 * * This demo uses the SPI protocol on a Arduino Uno R3 / ATmega8 controller * * The demo sends out a request ID depending, whether a temperature or humidity signal shall be obtained from the slave. Both signals * are datatype float, however get received as 4 bytes and need to be re-assembled. */ #include <SPI.h> void setup (void) { Serial.begin(115200); // Serial transmission for demonstration puroses SPI.begin(); // SPI.beginTransaction(SPISettings(00000,MSBFIRST,SPI_MODE0)); SPI.setDataMode(SPI_MODE0); SPI.setBitOrder(MSBFIRST); SPI.setClockDivider
#define CLOCK 2 #define DATA 4 void setup() { // put your setup code here, to run once: pinMode(CLOCK, OUTPUT); pinMode(DATA, OUTPUT); shiftOut(DATA, CLOCK, MSBFIRST, 16777215); } void loop() { // put your main code here, to run repeatedly: }
/* This is an example of how to use the OLED 128x64 I2C with SSD1306 driver using the Adafruit library. It also applies to the 128x32 version, but not all components would fit the smaller screen. Pins: GND = GND VCC = 5V SCL = A5 SDA = A4 You can connect VCC to 3.3V to reduce the amount of high pitched noise that the display produces. It's a good idea to put a resistor between A4-5V and A5-5V to help stabilize the connection. What that does is pull-up the I2C pins to make it more reliable and prevents lock-ups. Libraries needed: https://github.com/adafruit/Adafruit_SSD1306 https://github.com/adafruit
/* This is an example of how to use the OLED 128x64 I2C with SSD1306 driver using the Adafruit library. It also applies to the 128x32 version, but not all components would fit the smaller screen. Pins: * GND = GND * VCC = 5V * SCL = A5 * SDA = A4 You can connect VCC to 3.3V to reduce the amount of high pitched noise that the display produces. It's a good idea to put a resistor between A4-5V and A5-5V to help stabilize the connection. What that does is pull-up the I2C pins to make it more reliable and prevents lock-ups. Libraries needed: https://github.com/adafruit/Adafruit_SSD1306 https://github.com
/* This is an example of how to use the OLED 128x64 I2C with SSD1306 driver using the Adafruit library. It also applies to the 128x32 version, but not all components would fit the smaller screen. Pins: * GND = GND * VCC = 5V * SCL = A5 * SDA = A4 You can connect VCC to 3.3V to reduce the amount of high pitched noise that the display produces. It's a good idea to put a resistor between A4-5V and A5-5V to help stabilize the connection. What that does is pull-up the I2C pins to make it more reliable and prevents lock-ups. Libraries needed: https://github.com/adafruit/Adafruit_SSD1306 https://github.com
/* This is an example of how to use the OLED 128x64 I2C with SSD1306 driver using the Adafruit library. It also applies to the 128x32 version, but not all components would fit the smaller screen. Pins: * GND = GND * VCC = 5V * SCL = A5 * SDA = A4 You can connect VCC to 3.3V to reduce the amount of high pitched noise that the display produces. It's a good idea to put a resistor between A4-5V and A5-5V to help stabilize the connection. What that does is pull-up the I2C pins to make it more reliable and prevents lock-ups. Libraries needed: https://github.com/adafruit/Adafruit_SSD1306 https://github.com
UNO programmieren will, muß ich ja zuerst den Bootloader brennen und dann mein Programm (z.B Blink.ino kompilieren und dann drauf flashen). Wenn ich den Bootloader drauf brennen will - welchen Programmer muss ich auswählen - bei mir ist "ArduinoISP" ausgewählt. Kann diese Voreinstellung genommen werden
https://github.com/opendata-stuttgart/sensors-software/blob/master/airrohr-firmware/airrohr-firmware.ino: [code] // Paginate page after ~ 1500 Bytes server.sendContent(page_content); [/code] Es haben immer wieder Teile der WebPage gefehlt. An den exakten Grund kann ich micht nicht erinnern,
://github.com/zhouhan0126/WebServer-esp32/blob/master/examples/AdvancedWebServer/AdvancedWebServer.ino Gruß aus Berlin Michael
://github.com/zhouhan0126/WebServer-esp32/blob/master/examples/AdvancedWebServer/AdvancedWebServer.ino Das sieht ja schon mal sehr gut aus! Damit bräuchte ich ja noch nicht mal Speicher- und Rechenzeitintensive Grafikoperationen. Prima, Danke!
#include "WiFi.h" #include "AsyncUDP.h" AsyncUDP udp; #define MODE_AP #ifdef MODE_AP // For AP mode: const char *ssid = "LK8000"; // You will connect your phone to this Access Point const char *pw = "Flightcomputer"; // and this is the password IPAddress ip(192, 168, 4, 1); // From RoboRemo app, connect to this IP IPAddress netmask(255, 255, 255, 0); #endif #define SERIAL0_UDP_PORT 8880 // Wifi Port UART0 void setup() { Serial.begin(115200); //WiFi.mode(WIFI_STA); #ifdef MODE_AP Serial.println("Open ESP Access Point mode"); //AP mode (phone connects directly to ESP) (no router) WiFi.mode(WIFI_AP);
/*########################################################################################## ##################### Plugin 168: OLED SSD1306 display for Thermostat #################### ########################################################################################## This is a modification to Plugin_036 with graphics library provided from squix78 github https://github.com/squix78/esp8266-oled-ssd1306 Features : - Displays and use current temperature from specified Device/Value (can be a Dummy for example) - Displays and maintains setpoint value - on power down/up this plugin maintains and
/* UDP syntax: signals: DS18B20 1wire sensor packet: rail1 1w2 2864fc3008082 temp 25.44 DS2438 1wire sensor packet: rail1 1w2 2612c3102004f 25.44 1.23 0.12 Sensor detected (after start): rail1 1w2 2864fc3008082 detected Sensor error: rail1 1w2 2864fc3008082 error digital input state: rail1 di1 1 analog input state: rail1 ai1 250 commands: relay on command: rail1 do12 on relay off command: rail1 do5 off high side switch on command: rail1 ho2 on high side switch off command: rail1 ho4 off low side switch on command: rail1 lo1 on low side switch off command: rail1 lo2 off analog output command: rail1
* UDP syntax: signals: DS18B20 1wire sensor packet: rail1 1w 2864fc3008082 25.44 DS2438 1wire sensor packet: rail1 1w 2612c3102004f 25.44 1.23 0.12 digital input state: rail1 di1 1 analog input state: rail1 ai1 250 commands: relay on command: rail1 do12 on relay off command: rail1 do5 off high side switch on command: rail1 ho2 on high side switch off command: rail1 ho4 off low side switch on command: rail1 lo1 on low side switch off command: rail1 lo2 off analog output command: rail1 ao1 180 status command: rail1 stat10 reset command: rail1 rst default scan cycles: 1wire cycle: 30000 ms analog
/* Copyright (C) 2019 Ing. Pavel Sedlacek This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If
Doch. Guckst du hier: https://github.com/arendst/Tasmota/blob/development/tasmota/support_button.ino
Doch. Guckst du hier: > https://github.com/arendst/Tasmota/blob/development/tasmota/support_button.ino Puh, knapp 300 Zeilen, das ist ja riesig. Auf den ersten Blick kann ich nicht erkennen, wo da entprellt werden soll.
Example //https://github.com/coryjfowler/MCP_CAN_lib/blob/master/examples/CAN_receive/CAN_receive.ino #include <mcp_can.h> #include <SPI.h> long unsigned int rxId; unsigned char len = 0; unsigned char rxBuf[8]; char msgString[128]; // Array to store serial string
/* ***************************************** * ****************BilloEyes**************** * * for 2x 0.96 OLED with IIC * /* ***************************************** /** * The MIT License (MIT) * * Copyright (c) 2018 by ThingPulse, Daniel Eichhorn * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit
und am PIN 39 [c] OneWire ds[] {38,39}; [/c] PS: Bitte keine txt Dateien. Nimm die Endung ino. Dann tuts auch der Code Präsentierer incl Syntax Erheller
Arduino Fanboy D. schrieb im Beitrag #6071694: > PS: > Bitte keine txt Dateien. > Nimm die Endung ino. > Dann tuts auch der Code Präsentierer incl Syntax Erheller Hallo Fanboy, hier ist mal die Ino Datei ohne die Änderungen von Chris. Ich habe dein [c]OneWire ds[] {38,39};[/c] mal eingefügt
schrieb im Beitrag #6063167: > C++ Klassen kann ich ja offensichtlich nicht mal in eine andere INO verschieben, ich hänge immer noch bei LIB Nutzung Nokia von nano zu esp32 Einzeln funktioniert ja alles, beim Nano schön sauber in verschiedene Ino, beim ESP nur wenn alles in einer ino steckt! WTH
Joachim B. schrieb im Beitrag #6063199: > kann ich ja offensichtlich nicht mal in eine andere INO verschieben, > ich hänge immer noch bei LIB Nutzung Nokia von nano zu esp32 > Einzeln funktioniert ja alles, beim Nano schön sauber in verschiedene > Ino, beim ESP nur wenn alles in einer ino steckt
Hallo, Ich bin zu blöd dieses Problem in Test-Exponent.ino in Code zu fassen. Es kommt immer 0 heraus. Wo steckt mein Fehler?? Danke schon mal für Euere Hilfe!
Was soll denn rauskommen? Ich erhalte 0,52. Edit: die Rubrik hier ist PC Programmierung. .ino ist Arduino und damit Rubrik µC. Vielleicht verschiebt es der Mod sobald er es sieht?
/************************************************************************** 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
exit status 1 'AD9833' does not name a type; did you mean 'ADC3D'? In das Verzeichnis liegt die .ino-Datei (und die von mir dorthin kopierten Datein AD9833.c und AD9833.h) Fehlt da noch etwas? Schöne Grüße Karl
Danke! Folgendes setup: FNC ist D4 CLK ist D13 DATA ist D11 Im Ordner sind jetzt die .ino-Datei und die AD9833.h-Datei. Fehlermeldung, wie oben: exit status 1 'AD9833' does not name a type; did you mean 'ADC3D'?
https://github.com/ChuckBell/MySQL_Connector_Arduino/blob/master/examples/basic_select/basic_select.ino) über eine Sekunde dauert. Das Errorlog des Servers ist leer, es wird nicht einmal ein slow_query protkolliert. Gibt es ähnliche Erfahrungen/Lösungen/Alternativen?
https://github.com/ChuckBell/MySQL_Connector_Arduino/blob/master/examples/basic_select/basic_select.ino) Wie lange dauert es denn ? Naja, in Zeile 55 wird nachdem Connect schonmal 1 sek. gewartet. Im loop zeile 66 wieder 1 sek., und nochmal 0,5 sek (Zeile 90) für die 2te Abfrage. evtl. können
Entwicklungsprogramm via USB Bootloader geladen werden kann. Da mußt Du nur die .c-Dateien in .ino umbenennen und in einer Arduino IDE compilieren. Die erzeugte .hex-Datei läuft auf einem Arduino ob mit oder ohne Bootloader.
Nur weil die main durch setup/loop ersetzt wurde und die Dateien nicht die Endungen .c/.h, sondern .ino/.h haben? C und der avr-gcc bleibt es ja dennoch.