Serial.println("Content-Type: application/json"); usw.usf. [/c] Edit: hab jetzt sim5360test.ino angeschaut: Da ist das leider nicht so einfach umzusetzen... Quickfix: "char buffer[384];" vergrößern, bis es klappt, und noch kein OOM-Fehler passiert.
// Ließt beim Tastenfeld erste Zahl ein if(eingabe_zaehler==0){ int eingabe=check_tastenfeld(); if( eingabe <= 15){ single_blink_blau(); // feedback das man weiß das die gedrückte taste angenommen wurde eingabe[eingabe_zaehler]=eingabe; eingabe_zaehler++; // <---- dieser Wert würde bei dir dann in der ISR erhöht werden delay(50); } } // Ließt beim Tastenfeld zweite Zahl ein if(eingabe_zaehler==1){ int eingabe=check_tastenfeld(); if( eingabe <= 15){ single_blink_blau(); eingabe[eingabe_zaehler]=eingabe; eingabe_zaehler++; // <---- dieser Wert würde bei dir dann in der ISR erhöht werden delay(50);
Hallo anbei ein Tongenerator für den Arduino. Die ino-Datei ist nur ein Anwendungsbeispiel mit zwei Musikbeispielen und einem Rechteckgenerator, die .h-Datei ist die eigentlich interessante. Das ganze benutzt keinen Timer des Arduino wie in einem Beispiel
gfl schrieb im Beitrag #6121189: > Hallo > anbei ein Tongenerator für den Arduino. Die ino-Datei ist nur ein > Anwendungsbeispiel mit zwei Musikbeispielen und einem Rechteckgenerator, > die .h-Datei ist die eigentlich interessante. Das ganze benutzt keinen > Timer des Arduino wie in einem
/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