Script https://github.com/DFRobot/DFRobotDFPlayerMini/blob/master/examples/GetStarted/getStarted.ino Habe da noch printDetail(myDFPlayer.readType(), myDFPlayer.read()); hinzugefügt, um den Fehler auslesen zu können. Ich habe bereits 3 SD Karten ausprobiert, andere Pins benutzt, mit und ohne den
github.com/nkolban/esp32-snippets/blob/master/cpp_utils/tests/BLETests/Arduino/BLE_client/BLE_client.ino ( Diskussion hier: https://github.com/nkolban/esp32-snippets/issues/45 ) Deren dev-board lässt sich aber auch über UART verbinden, so dass die Stärken der Alpha- und Beta-Wellen digital ausgelesen
/* SD card test Hardware: Nano This example shows how use the utility libraries on which the' SD library is based in order to get info about your SD card. Very useful for testing a card when you're not sure whether its working or not. ** MOSI - pin 11 ** MISO - pin 12 ** CLK - pin 13 ** CS - pin 2 created 28 Mar 2011 by Limor Fried modified 9 Apr 2012 by Tom Igoe */ // include the SD library: #include <SPI.h> #include <SD.h> String Version = "V 2018-02-10"; // set up variables using the SD utility library functions: Sd2Card card; SdVolume volume; SdFile root; const int chipSelect = 2; // 31.12.2015
ich laden habe ich es genauso gemacht und das funktioniert wunderbar. Wo ist mein Denkfehler. im Ino File #include <ArialRoundedMtBold_14.h> font file const uint8_t ArialRoundedMTBold_14Bitmaps[] PROGMEM = { // Bitmap Data: 0x00, // ' ' 0xFF,0xF8,0xF0, // '!' 0xDE,0xF6, // '"' 0x12,0x32,0x36,0xFF
Code habe ich von @Nicki verwendet: https://www.mikrocontroller.net/attachment/371951/sip_klingel_ND.ino Funktioniert prima :-)
Wlan-Passwort ja frei sichtbar ist.Ich habe nach dem Beispiel „HTTP Advanced Auth“ den code in der webserver.ino geändert ich komme aber nur bis zur Eingabe Benutzer / Passwort danach passiert nix mehr. Für einen Tip wäre ich dankbar. Gruß Ronald "webserver.ino" [c] const char* www_username = "admin"
/* ==================================================================== * * Copyright (c) 2018 Juerge Liegner All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided
versucht meinen ESP32 an die Klingel zu hängen. Leider ohne Erfolg :( Die Variante sketch_jan16a.ino war mein erster Versuch. Dabei sollte der ESP in einen DeepSleep fallen und nur beim Klingeln aufwachen. Diese Variante würde mir am besten gefallen. Problem ist, dass er nach dem Einschlafen "sofort
vermutlich auch, dass es eine Weile dauert bis die WLAN Verbindung da ist. Die Variante sketch_feb13a.ino habe ich dann gestern als zweites versucht. ESP immer an und bei einem HIGH Signal an einem der drei Ports eine mqtt-Nachricht schicken. Problem ist ein ähnlich wie oben: Es wird ohne Betätigen der
ich seine Dateien in einen Ordner OV7670_Kamera im Sketchbook anlege und die main.c in OV7670_Kamera.ino umbenenne, kümmert sich das Arduino Framework ganz brauchbar um das, was es da findet. Sinnigerweise mault er dann über bool weil in älteren AVR-Studio (4.xx) und GCC-Versionen die noch mit #include
Hallo, so, mühsam ernährt sich das Eichhörnchen... Ich habe das ino mal angehängt, am Ende den Arduino-Block auskommentieren und den AVR-Studio Block aktivieren, dann geht es auch als Studio Projekt zu compilieren. Änderungen: Gamma-Werte auf die defaults aus dem
/********************************************************************************** * Home Automation with Alexa and NodeMCU * WeMos smart devices emulation using FAUXMOESP Library * * Code based on the great open source lib & example code at: * http://tinkerman.cat/emulate-wemo-device-esp8266/ * which is based off of the Python example code by: * https://github.com/makermusings/fauxmo * * Also, thanks to Sid for Sid's E Classroom * https://www.youtube.com/c/SidsEClassroom * * fauxmoESP is a library for ESP8266-based devices that emulates a Belkin WeMo device * and thus allows you to control them
/* Basic usage example Demonstrated some of the basic functionality of the library. Initialize the display, set the backlight brightness, print some text, count from 0 to 100 and print on display and blink some text. Note: make sure to set your serial monitor to line end: NEW LINE! The circuit: * connect TM1637 pin CLK to Arduino pin D4 * connect TM1637 pin DIO to Arduino pin D5 * connect TM1637 pin Vcc to Arduino pin 5V * connect TM1637 pin GND to Arduino pin GND Created 25 September 2015 By Bram Harmsen https://github.com/bremme/arduino-tm1637 */ // include the SevenSegmentTM1637 library #include
#include <Wire.h> void setup() { Wire.begin(); // join i2c bus (address optional for master) Serial.begin(9600); // start serial for output Wire.beginTransmission(0x62); // transmit to device #8 Wire.write(0x10); Wire.endTransmission(); // stop transmitting Wire.requestFrom(0x62,12); // request 6 bytes from slave device #8 while (Wire.available()) { // slave may send less than requested byte c = Wire.read(); // receive a byte as character Serial.println(c,BIN); // print the character } Serial.println("-----------"); } void loop() { delay(500); }
#include <Encoder.h> #include <Adafruit_NeoPixel.h> const int NUM_LEDS = 25; // number of leds in strip const int LED_PIN = 5; // pin for led strip const int BRIGHTNESS = 255; // brightness of all leds const int WHEEL_SIZE = 256; // how many entries in the color wheel const boolean MOVE_LIGHT = false; // move one light around or keep all lights on const int ENCODER_PIN_1 = 2; const int ENCODER_PIN_2 = 3; const int ENCODER_BUTTON = 4; Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, LED_PIN, NEO_RGB + NEO_KHZ800); Encoder encoder(ENCODER_PIN_1, ENCODER_PIN_2); int mode = 0; long lastPush =
float PIDRegler(float T1,float T2) // PID-Regler { // Diese Werte müssen gespeichert werden static float En=0.0,en1=0.0,en2=0.0; static float Yn=0.0,yn1=0.0; static int Yna; // Empfindlichkeit des PID-Reglers float Tn = 1.0; // wär auch sinnvoll wenn man diesen Wert an der Funktion übergibt float Tv = 1.0; // wär auch sinnvoll wenn man diesen Wert an der Funktion übergibt float Kp = 1.0; // wär auch sinnvoll wenn man diesen Wert an der Funktion übergibt // Variablen für P,I,D float P,I,D; // Zeitkostente float delta_t=0.1; float delta_y; En = T1 - T2; // "Regelgröße" Temperatur_2 wird an Temperatur
/* * * 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
// Original Code Copyright 2017 James Tate <thejamestate@gmail.com> // Modified Code Copyright 2017 Michael Niewöhner <foss@mniewoehner.de> // // Flash Chip Reader // 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
#include <Adafruit_NeoPixel.h> #ifdef __AVR__ #include <avr/power.h> #endif //Variablendeklaration int Melder_unten = 22; // Input Bewegungsmelder unten int Melder_oben = 23; // Input Bewegungsmelder oben int Nanopixel = 6; // Output für NanoPixel LEDs int VZ = 15; // Verzögung Ansteuerung der Stufen int Dauer = 30000; // Leuchtdauer wenn alle Stufen angesteuert sind int Sperrzeit = 120000; // Sperrzeit bevor die Scheife beendet wird und die anderen Laufen kann #define NUMPIXELS 394 // Anzahl der Nanopixel-LEDs Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, Nanopixel, NEO_GRB + NEO_KHZ800
schrieb im Beitrag #5271149: > Oder liegt der Fehler wo ganz anderes? Zeile 42 in der Datei "unknown.ino". Jetzt wird meine Kristallkugel unklar: Du beschreibst das Display in einer Schleife und löscht es vor jedem Schreiben.
#include <Adafruit_NeoPixel.h> #include <Wire.h> #ifdef __AVR__ #include <avr/power.h> #endif /*******************************Variablendeklaration***********************************/ int Melder_unten = 22; // Input Bewegungsmelder unten int Melder_oben = 23; // Input Bewegungsmelder oben int Nanopixel = 6; // Output für NanoPixel LEDs int VZ = 15; // Verzögung Ansteuerung der Stufen int Dauer = 30000; // Leuchtdauer wenn alle Stufen angesteuert sind int Sperrzeit = 60000; // Sperrzeit bevor die Scheife beendet wird und die anderen Laufen kann bool BWU,BWO; float PIXEL; #define NUMPIXELS 394 // Anzahl
#include <Adafruit_NeoPixel.h> #ifdef __AVR__ #include <avr/power.h> #endif //Variablendeklaration int Melder_unten = 22; // Input Bewegungsmelder unten int Melder_oben = 23; // Input Bewegungsmelder oben int Nanopixel = 6; // Output für NanoPixel LEDs int VZ = 15; // Verzögung Ansteuerung der Stufen int Dauer = 30000; // Leuchtdauer wenn alle Stufen angesteuert sind int Sperrzeit = 120000; // Sperrzeit bevor die Scheife beendet wird und die anderen Laufen kann #define NUMPIXELS 394 // Anzahl der Nanopixel-LEDs Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, Nanopixel, NEO_GRB + NEO_KHZ800
das schon mal weniger weh. Und die Kollegen schauen dann erstmal verblüfft. Klar kann man die .ino auch in Notepad++ oder Visual Studio Code laden, mit dem Plugin kann man den Code aber auch unter Atmel-Studio bauen und flashen.
avrdude.conf -v -patmega328p -cusbasp-clone -B0.2 -V -Uflash:w:/tmp/arduino_build_695044/AnalogReadSerial.ino.hex:i [/code] Das kannst Du einfach in eine Batch-Datei kopieren und die Dateipfade anpassen, speziell den Schwanz nach -Uflash auf die entsprechende Hex-Datei.
#include <ESP8266WiFi.h> #include "oled.h" #define SSID "Muschikatze" #define PASSWORD "Geheim" #define SERVER "ptb.de" // There are 2 different versions of the board // OLED display=OLED(2,14,4); OLED display=OLED(4,5,16); char buffer[200]; volatile int bla=0; void setup() { display.init(); display.set_contrast(16); display.draw_string_P(0,0,PSTR("Connecting to the AP")); display.display(); // Configure WIFI WiFi.mode(WIFI_STA); WiFi.begin(SSID, PASSWORD); // Wait for connection to the AP while (WiFi.status() != WL_CONNECTED) { delay(1); } // Show the own IP address display.draw_string(0,8,"IP="); display.draw_string
steige ich zu STM32 um weil der Speicher von Arduino mit 32k schnell an die Grenze kommt, und ein *.ino File mit ca, 20 A4 Seiten halt nicht mehr so geil zum Editieren und bearbeiten ist.
5 (let’s just ignore REfor contribution from Q , wh1ch rises with ing C f0.5 pF overcomes C , and ino- now).TransistorQ faithfullytransmitsits frequency; it is much more benign than duces a 1.1 MHz 3 dB bandwidth overall. 1 emittercurrenttoitscollector,whilekeep- the e Namp problem with transimpedance
ArduinoCDT-Plugin. Für die ArduinoIDE sollte kompilieren aber auch gehen, wenn man LEDLamp.cpp in SmartLEDLamp.ino (oder wie auch immer passend zum enthaltenen Ordner) umbenennt. Dein Compile-Fehler liegt an der "falschen" Lib; s. Doku: IRemoteESP8266 - https://github.com/sebastienwarin/IRremoteESP8266 Hatte
dann in Atom die "Build-Konsole" öffne bekomme ich genau eine Warnung: [code] src/Treppenlicht.ino:13:17: warning: overflow in implicit constant conversion [-Woverflow] int Sperrzeit = 120000; // Sperrzeit bevor die Scheife beendet wird und die anderen Laufen kann [/code] So Compilerwarnungen
/* ShiftDisplay example by MiguelPynto Race countdown: 3.. 2.. 1.. GO! https://miguelpynto.github.io/ShiftDisplay/ */ #include <ShiftDisplay.h> ShiftDisplay display(COMMON_CATHODE, 3); void setup() { for (int i = 3; i > 0; i--) { // store number and show it for 400ms display.set(i, ALIGN_CENTER); display.show(400); // add dot to stored number and show it for 400ms display.setDot(1); display.show(400); } display.set("GO"); // store "GO" } void loop() { display.update(); // show stored "GO" while in loop }
#include <CharacterEncoding.h> #include <ShiftDisplay.h> #include <Adafruit_NeoPixel.h> #include <RTClib.h> #include <Wire.h> #include <boarddefs.h> #include <IRremote.h> #include <IRremoteInt.h> #include <ir_Lego_PF_BitStreamEncoder.h> #define PIXEL_PIN 9 // Digital IO pin connected to the NeoPixels. #define PIXEL_COUNT 60 // Parameter 1 = number of pixels in strip, neopixel stick has 8 // Parameter 2 = pin number (most are valid) // Parameter 3 = pixel type flags, add together as needed: // NEO_RGB Pixels are wired for RGB bitstream // NEO_GRB Pixels are wired for GRB bitstream, correct for neopixel
/* Drehgeberauswertung per Interrupt auf einem AVR: spezielle Version fuer Arduino UNO R3! http://www.mino-elektronik.de Alle Angaben wie immer ohne Gewaehr ! 2014-03-17 modifiziert: 2017-12-13 */ #define BIT(x) (1<<x) #define DEF_BAUDRATE 19200 #define PHASE_A 2 // an PORTD.2 (PCINT18) #define PHASE_B 3 // an PORTD.3 #define MASKE (BIT(PHASE_A)+BIT(PHASE_B)) // vereinfachte Schreibweise volatile int32_t count; // Zaehler per Interrupt int32_t zaehler, alter_zaehler; // Vergleichszaehler fuer neue Ausgabewerte // nur Interrupt PCINT18 (PCINT2-Gruppe) wird zur Auswertung verwendet ISR(PCINT2_vect)
0 Downloads) Warum hast du nicht einfach den originalen Dateinamen mit der originalen Endung .ino gelassen? Dann könnte man den Quelltext mit Syntaxhighlighting anschauen. >so zu programmieren, dass alle LED Lichter in einer Farbe auf Befehl >(z.B. Wenn man Enter drückt) aufleuchten. Auf Arduino
Beitrag #5241743: > Warum hast du nicht einfach den originalen Dateinamen mit der originalen > Endung .ino gelassen? Dann könnte man den Quelltext mit > Syntaxhighlighting anschauen. Der steht doch bei Github (mit Syntaxhighlighting anguckbar) ;-) https://github.com/adafruit/Adafruit_DotStar/tree/master
#include <stdio.h> #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #define LED 2 #define REDPIN 6 #define GREENPIN 5 #define BLUEPIN 2 int RVal = 0; int GVal = 0; int BVal = 0; char valInfo[16]; const char *ssid = "LEDStrip"; const int Port = 5555; const String ID = "TV"; String wifipassword, wifissid; IPAddress ip; ESP8266WebServer webserver(80); bool webserverStopped = false; /* Just a little test message. Go to http://192.168.4.1 in a web browser * connected to this access point to see it. */ void handleRoot() { if( webserver.args() > 0 ){ wifipassword = webserver.arg
#include <stdio.h> #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #define LED 2 #define REDPIN 6 #define GREENPIN 5 #define BLUEPIN 2 int RVal = 0; int GVal = 0; int BVal = 0; char valInfo[16]; const char *ssid = "LEDStrip"; const int Port = 5555; const String ID = "TV"; String wifipassword, wifissid; IPAddress ip; ESP8266WebServer webserver(80); bool webserverStopped = false; /* Just a little test message. Go to http://192.168.4.1 in a web browser * connected to this access point to see it. */ void handleRoot() { if( webserver.args() > 0 ){ wifipassword = webserver.arg
github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/WiFiAccessPoint/WiFiAccessPoint.ino aber statt das sich das Ding mit "ESPap" meldet, taucht "FarryLink_3DEEB1" mit voller Signalstärke und offen auf. Wie muss ich das interpretieren?
Ja. Anstatt der Dateiendung .c erwartet die Arduino-IDE .ino.
Arduino IDE kann man auch in reinem C programmieren. main ist weak bei Arduino. Also nackte ino-Datei und dann einfach ein void main() in einer c-Datei. Fertig. DigitalWrite und der ganze Klimbim geht dann natürlich nicht mehr.