#include <Tle5012b.h> /*! * \name ReadAngleTest * \author Infineon Technologies AG * \copyright 2019 Infineon Technologies AG * \version 2.0.1 * \brief * This example reads all main Sensor registers (angle,revolution,speed,range and temperature) * for a simple first test of the sensor and comunication. * * \Attention * We use default very low spee 9600 baud, but the sensor can much more, see the other examples */ Tle5012b Tle5012MagneticAngleSensor; errorTypes checkError = NO_ERROR; void setup() { delay(2000); Serial.begin(9600); checkError = Tle5012MagneticAngleSensor.begin(); Serial.print("checkError
allerdings mittels einer sicheren Verbindung (HTTPS). Wenn ich in dem Code zum BasicHTTPSClient.ino-Beispiel aus der Arduino IDE nur den WLAN-Namen und das WLAN-Passwort in WiFi.begin() ändere und anschließend hochlade (ich hänge den Code nachher noch an, also siehe unten), sieht mein Output auf dem
Vollständigkeit halber hier noch der Code, den ich versucht habe, auszuführen: [c]/** BasicHTTPSClient.ino Created on: 14.10.2018 */ #include <Arduino.h> #include <WiFi.h> #include <HTTPClient.h> #include <WiFiClientSecure.h> // This is GandiStandardSSLCA2.pem, the root Certificate Authority
https://github.com/wemos/D1_mini_Examples/blob/master/examples/02.Special/Wire/I2C_Scanner/I2C_Scanner.ino) kompiliert. Dieser fragt sekündlich den I2C-Bus ab und listet im Serial-Monitor erkannte Geräte auf. Dabei fällt auf, dass der MCP die ersten Sekunden problemlos gefunden wird ("I2C device found at
// Wir laden die uns schon bekannte WiFi Bibliothek //ver 0.1 #include <ESP8266WiFi.h> #include <ESP8266WebServer.h> // Hier geben wir den WLAN Namen (SSID) und den Zugansschlüssel ein const char* ssid = "ssid"; const char* password = "pasword"; // Wir setzen den Webserver auf Port 80 WiFiServer server(80); // Eine Variable um den HTTP Request zu speichern String header; int value=9; // Hier wird der aktuelle Status des Relais festgehalten // Die verwendeted GPIO Pins // D1 = GPIO5 und D2 = GPIO4 - einfach bei Google nach "Amica Pinout" suchen void setup() { Serial.begin(9600); // orig Serial.begin
adding an Qin Q +tr + Qdr I r Gτ (1) additional term to become: Q rs assumed to be proportional to Q ;ino be exact, slope –m(Q VGC t) t exp. t 1 dQ tr exp t t1 (7) Q r Q (in− exp − /1) (2) tr Rs t1 T dT where I G gate current, Physically, not only does Q dtrrease with temperature τ = pulse width of gate
ständig bestromen. Und auch das ist weiter oben schon verlinkt worden. Ganz übersichtlich in "PT1000.ino" https://www.mikrocontroller.net/topic/353666?goto=new#3947850
m.n. schrieb im Beitrag #6469306: > Ganz übersichtlich in "PT1000.ino" Die "Lösung" war vor 5 Jahren schon Scheisse und es ist nur bedauetlich, dass du bis heute nichts hinzugelernt hast. Dass im Datenblatt des Pt1000 ein Messstrom von 0.1mA oder 0.3mA empfohlen
int VP = 34; // pin der gemessen werden soll int min_alt = 4000; int max_alt = 0; int min_neu = 4000; int max_neu = 0; long ntime = 0; void setup() { Serial.begin(115200); analogReadResolution(12); // Sets the sample bits and read resolution, default is 12-bit (0 - 4095), range is 9 - 12 bits analogSetWidth(12); // Sets the sample bits and read resolution, default is 12-bit (0 - 4095), range is 9 - 12 bits // 9-bit gives an ADC range of 0-511 // 10-bit gives an ADC range of 0-1023 // 11-bit gives an ADC range of 0-2047 // 12-bit gives an ADC range of 0-4095 analogSetCycles(8); // Set number of cycles
: > Dachte den hier als TXT Datei hochzuladen wäre gut. Welches Format ist > denn üblich? Als *.ino Datei, dann tuts auch der Syntaxerheller ordentlich.
> Dachte den hier als TXT Datei hochzuladen wäre gut. Welches Format ist >> denn üblich? > Als *.ino Datei, dann tuts auch der Syntaxerheller ordentlich. Alles klar, vielen Dank! ich werde mir das mal durchlesen und hoffe, dass meine Fragen danach geklärt sind. Nächstes mal wird eine .ino datei
Leuten, die die erste Uno R3 + TM1638 + 4x4 Keypad Version nachbauen wollen. Dazu muss ich sagen - die INO Datei ist inzwischen fast 5 Jahre alt, und ich weiß nicht, ob das mit dem aktuellen Arduino IDE noch compiliert... ich würde also empfehlen, lieber die neueren Varianten als Basis für eigene Aufbauten
Diskussion: Arduino Logic Analyzer. Funktioniert auf einem Arduino mit AVR, STM32 und ESP8266. Benutzung: .ino auf den Arduino laden processing.pde in Processing laden und seriellen Port auswählen Links: GitHub.com/aster94/logic-analyzer FPGA / CLPD. <!-- Deditec LAs sind keine Selbstbauprojekte, daher hier
/* Spannung messen mit ADS1115 Werte auf I2C-OLED ausgeben Werte auf SD-Karte speichern Arduino-IDE 1.8.9 / Hardware: ProMini Optiboot Die Pins 0 bis 13 und die Analogen Pins A0 bis A5, die als Digitale Ein/Ausgaenge verwendet werden koennen. Wenn ein analoger Eingang mit pinMode als digitaler Ein/Ausgang definiert wurde, werden aus A0 bis A5 die Pins 14 bis 19. A6 und A7 kann man nicht digital nutzen. PWM: 3, 5, 6, 9, 10, 11 D2 - Power On D3 - Schalter 01 D4 - Schalter 02 D5 - Schalter 03 D6 - Schalter 04 D7 - D8 - D9 - Schalter 05 D10 - CS - nicht anderweitig nutzbar D11 - SD-MOSI - fuer SD-Reader
// 2020 September, programmed by chris_ // // mcurses library for Arduino needed ( github ) // // you need a VT100 compatible terminal like minicom // // minicom -c on -b 115200 -D /dev/ttyACM0 #include "ZX81_debug_drv.h" // mcurses VT100 editor #include "hexedit.h" void Arduino_putchar(uint8_t c) { Serial.write(c); } char Arduino_getchar() { while (!Serial.available()); return Serial.read(); } /* 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
// Author windundsternne V0.9 // Das Programm liest Control und Sense Daten vom Bus // eines KWB Easyfire mit und sendet diese per MQTT an // fhem. Updates können OTA durchgeführt werden. // Ist bestimmt nicht fehlerfrei läuft aber seit einer Weile stabil // Hardware // Webmos d1 mini Pro + HER MAX485 module // Stromversorgung über Kessel 24V-> 7800 Spannungsregler // Neben den Kesselwerten werden noch Brennerlaufzeit Gesamtenergie // berechnet mit der der Pelletverbrauch bestimmt werden kann (ca. 4.3kg/kwh bei einem EF2) // Dank an Dirk Abel und seine Doku zu, KWB RS-485 Interface // Individualisierungen
avrdude: verifying flash memory against C:\Users\leon_\AppData\Local\Temp\arduino_build_227525/Blink.ino.hex: avrdude: load data flash data from input file C:\Users\leon_\AppData\Local\Temp\arduino_build_227525/Blink.ino.hex: avrdude: input file C:\Users\leon_\AppData\Local\Temp\arduino_build_227525/
avrdude: verifying flash memory against C:\Users\leon_\AppData\Local\Temp\arduino_build_942124/Blink.ino.hex: avrdude: load data flash data from input file C:\Users\leon_\AppData\Local\Temp\arduino_build_942124/Blink.ino.hex: avrdude: input file C:\Users\leon_\AppData\Local\Temp\arduino_build_942124
// 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
// Master #include <Streaming.h> #include <Wire.h> constexpr byte slaveAdr {12}; void setup() { Wire.begin(); Serial.begin(9600); Serial << "Start: "<< __FILE__ << endl; } byte data; void loop() { Serial << "Sende: " << data << " "; Wire.beginTransmission(slaveAdr); Wire.write(data); byte error = Wire.endTransmission(); switch(error) { case 0: Serial << "success" << endl; data++; break; case 1: Serial << "data too long to fit in transmit buffer" << endl; break; case 2: Serial << "received NACK on transmit of address" << endl; break; case 3: Serial << "received NACK on transmit of data" << endl; break; case 4: Serial
// 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
#include "ZX81_debug_drv.h" void setup() { pinMode(LED_BUILTIN, OUTPUT); setDebugBusActive(); } #define VERZ 1 void loop() { /* > Die Frage ist: kann man die auch aktiv zurück setzen? OUT 0FEh startet VSync und setzt CAS low. IN 0FEh auch, aber dabei liest man auch noch die Tastatur ein. OUT 0FFh beendet VSync und setzt CAS high. */ Z80_out(0xFE,0);// data lines are not used delay(VERZ); Z80_out(0xFF,0);// data lines are not used delay(VERZ); }
/* * Welcome to MultiWii. * * If you see this message, chances are you are using the Arduino IDE. That is ok. * To get the MultiWii program configured for your robot, you must switch to the tab named 'config.h'. * Maybe that tab is not visible in the list at the top, then you must use the drop down list at the right * to access that tab. In that tab you must enable your board or sensors and optionally various features. * For more info go to http://www.multiwii.com/wiki/index.php?title=Main_Page * * Have fun, and do not forget MultiWii is made possible and brought to you under the GPL License.
Encoder" "C:\\Users\\Micki\\AppData\\Local\\Temp\\arduino_build_937643\\sketch\\Encoder_Stoffregen.ino.cpp" -o "C:\\Users\\Micki\\AppData\\Local\\Temp\\arduino_build_937643\\sketch\\Encoder_Stoffregen.ino.cpp.o" In file included from G:\Einplatinen Computer\Arduino Teensy\Encoder_Stoffregen\Encoder_Stoffregen.ino
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 '
Kompilieren die Fehlermeldung: "'u8g' was not declared in this scope" Code in Datei: "HelloWorld.ino" Dort ist vermerkt, dass die Kommentare in Konstruktor entfernt werden sollen. Ich habe alle Kommentare in Code gelöscht und bekomme das gleiche Ergebnis. Die Libery Dateien habe ich nicht verändert. Bei der 'SparkFun' Bibliothek habe ich den Code: 'Example1_DisplayText.ino' verwendet. Dort gab es beim Kompilieren keine Fehler. In Zeile 50 habe ich den Wert von 0 auf 1 verändert --> #define USE_SPI 1 Die von mir verwendete Pinbelegung hierbei ist: Display zu
/* HelloWorld.pde "Hello World!" example code. >>> Before compiling: Please remove comment from the constructor of the >>> connected graphics display (see below). Universal 8bit Graphics Library, https://github.com/olikraus/u8glib/ Copyright (c) 2012, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce
/* Verify that your Qwiic Transparent Grahical OLED is connected correctly and working. By: Owen Lyke SparkFun Electronics Date: February 26, 2019 License: MIT. See license file for more information but you can basically do whatever you want with this code. Feel like supporting open source hardware? Buy a board from SparkFun! https://www.sparkfun.com/products/15173 The graphics library is like a 3-layer cake. Here they are from top-down https://github.com/sparkfun/SparkFun_HyperDisplay https://github.com/sparkfun/HyperDisplay_SSD1309_ArduinoLibrary https://github.com/sparkfun/HyperDisplay_UG2856KLBAG01
als Äquivalent zum Blinkbeispiel der > Arduino-IDE. Gutes Beispiel. Das kannst du in eine *.ino Datei stopfen, dann wird es von der Arduino IDE als C++ kompiliert, oder in einer *.c ooder *.cpp Datei, neben einer leeren *.ino. Oder eben auf ASM umgemogelt in einer *.S Das tuts, sofort, ohne
- das bleibt alles versteckt. Dem kannst Du mit [code]avr-objdump -d /tmp/arduino_build_*/blink.ino.elf[/code] auf den Grund gehen: [code] /tmp/arduino_build_804693/blink.ino.elf: file format elf32-avr Disassembly of section .text: 00000000 <__vectors>: 0: 0c 94 34 00 jmp
/* * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * <joerg@FreeBSD.ORG> wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you can buy me a beer in return. Joerg Wunsch * ---------------------------------------------------------------------------- */ // Simple Arduino sketch, switching a pair of pins as active outputs around // to drive a LED. LEDs can be connected to D2/D6, D3/D7, D4/D8, D5/D9. #include <EveryTimer.h