/** * WLAN Monitor mit ESP-01 Modul. * * Kontrolliert die Erreichbarkeit eines Internet Servers * und zeigt den Status mit einer bunten LED an. * * Grün = Alles Ok * Blau = Verbindung ist langsam * Rot = Verbindung ist ausgefallen * Aus = Keine Verbindung zum AP * * Ein leichtes Flackern der LED bestätigt, dass das Modul arbeitet. * * Die Schaltung ist ganz einfach: * Das ESP-01 Modul wird mit einem Steckernetzteil und LF33CV versorgt. * Die RGB-LED ist so angeschlossen: * * LED 3x 220 Ohm * VCC o---+---|>|---[===]-------o GPIO2 blau (=TxD) * | * +---|>|---[===]-------o GPIO1 rot * | * +---|>|---[==
Modellbauforen sind da oft gute Quellen z.B. Stummi Forum). Lade den vorgefundenen Arduino Scetch (*.ino Datei) auf deinen Pro Mini Clone, führe die Verdrahtung korrekt (Pins beachten, Spannungsversorgung unbedingt korrekt ausführen) durch und es sollte funktionieren. Wahrscheinlich sind Anpassungen
muss sonst nix gemacht werden. • nRF24L01RootingNode.ATMega8.hex (Node Firmware) • nRF24L01_Seriel.ino.ATMega8.hex (Serialadapter Firmware) Oder selbst in Arduino erstellen und z.B. auf einen Arduino Nano Progen. • nRF24L01RootingNode.ino (Node Firmware) • nRF24L01_Seriel.ino (Serialadapter Firmware)
Fahrzeugsteuerung, interessiert erst mal nicht. Wenn du Sources postest, dann immer als *.c, *.cpp oder als *.ino, keine Screenshots (--> Längeren Sourcecode nicht im Text einfügen, sondern als Dateianhang). Wenn ich Aufbau sage dann meine ich auch Aufbau (der Verbindung zum NRF24), denn an der Physik scheitern
, interessiert > erst mal nicht. Wenn du Sources postest, dann immer als *.c, *.cpp > oder als *.ino, keine Screenshots (--> Längeren Sourcecode nicht im > Text einfügen, sondern als Dateianhang). > > Wenn ich Aufbau sage dann meine ich auch Aufbau (der Verbindung > zum NRF24), denn an der Physik
Firefox, für Chrome muss man die https Sperre aufhebeln. Die Dateien sind im Anhang. Die PWMAUDIO.ino ist jetzt 2 mal da warum auch immer. VG, Denny K.
//We always have to include the library #include "LedControl.h" /* Now we need a LedControl to work with. ***** These pin numbers will probably not work with your hardware ***** pin 12 is connected to the DataIn pin 11 is connected to the CLK pin 10 is connected to LOAD We have only a single MAX72XX. */ LedControl lc=LedControl(12,11,10,1); /* we always wait a bit between updates of the display */ unsigned long delaytime=250; void setup() { /* The MAX72XX is in power-saving mode on startup, we have to do a wakeup call */ lc.shutdown(0,false); /* Set the brightness to a medium values */ lc.setIntensity
strandtest Code (https://github.com/adafruit/Adafruit_NeoPixel/blob/master/examples/strandtest/strandtest.ino), PIN ist korrekt auf 6 eingestellt, Anzahl der LEDs habe ich auf 10 gesetzt: #define PIN 6 Adafruit_NeoPixel strip = Adafruit_NeoPixel(10, PIN, NEO_GRB + NEO_KHZ800); Der Rest des Codes wurde
muss sonst nix gemacht werden. • nRF24L01RootingNode.ATMega8.hex (Node Firware) • nRF24L01_Seriel.ino.ATMega8.hex (Serialadapter Firmware) Oder selbst in Arduino erstellen und z.B. auf einen Arduino Nano Progen. • nRF24L01RootingNode.ino (Node Firware) • nRF24L01_Seriel.ino (Serialadapter Firmware)
muss sonst nix gemacht werden. • nRF24L01RootingNode.ATMega8.hex (Node Firware) • nRF24L01_Seriel.ino.ATMega8.hex (Serialadapter Firmware) Oder selbst in Arduino erstellen und z.B. auf einen Arduino Nano Progen. • nRF24L01RootingNode.ino (Node Firware) • nRF24L01_Seriel.ino (Serialadapter Firmware)
Beispielen ist doch genug dabei: arduino-1.8.0\examples\01.Basics\AnalogReadSerial\AnalogReadSerial.ino oder arduino-1.8.0\examples\03.Analog\AnalogInOutSerial\AnalogInOutSerial.ino dort wird die Spannung zusätzlich noch auf 8 Bit "reduziert" skaliert und auf dem Analogausgang aka PWM ausgegeben.
Deine Fragestellung nur noch sehr wenig mit "Arduino" zu tun, denn die Arduino-Umgebung (mit ihren *.ino-Dateien) nutzt C++.
oder es einfach als nicht wahrscheinlich erachtet? Die Arduino IDE macht aus deinem Sketch, also der .ino Datei erstmal normale .cpp Dateien. Siehe https://grahamwideman.wikispaces.com/Arduino+--+Project+structure+and+build+process unter "Sketch file transformation". Meine Vermutung ist, dass dein Compiler
euch mehr: [...] > "C:\Users\Belo\AppData\Local\Temp\arduino_build_284205\sketch\sketch_may05a.ino.cpp" -o > "C:\Users\Belo\AppData\Local\Temp\arduino_build_284205\preproc\ctags_target_for_gcc_minus_e.cpp" > exec: "F:\\Belo\\\arduino-1.8.2\\hardware\\tools\\avr/bin/avr-g++": file > does not
// read accelaration sensor and print serial // TX pin is PD8 // STM32F4 Discovery // accelerometer: LIS203DL ( included in STM32F4, some boards may have the LIS3DSH ) // example from http://stm32duino.com/viewtopic.php?t=282 /* // serial interfaces // the serial interface numbers seem to be somehow mixed up #define BOARD_NR_USARTS 5 #define BOARD_USART1_TX_PIN Port2Pin('A', 9) #define BOARD_USART1_RX_PIN Port2Pin('A',10) #define BOARD_USART2_TX_PIN Port2Pin('A', 2) #define BOARD_USART2_RX_PIN Port2Pin('A', 3) #define BOARD_USART3_TX_PIN Port2Pin('D', 8) // Serial2 ?? #define BOARD_USART3_RX_PIN
/* 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
/Button.ino: * Note: on most Arduinos there is already an LED on the board 02.Digital/Debounce/Debounce.ino: * LED attached from pin 13 to ground 02.Digital/Debounce/Debounce.ino: * pushbutton attached from pin
.ArduinoISP/ArduinoISP/ArduinoISP.ino: int start = here * 2; 11.ArduinoISP/ArduinoISP/ArduinoISP.ino: int length = 256 * getch(); 11.ArduinoISP/ArduinoISP/ArduinoISP.ino: here += 256 * getch();
R H Opctor 0219 D)D/ vi h e /0 % RA ondu :210 4 ( 000 lat arceaegd 0 ˚C OS e i CHNO H123 T:2 Ni s InO RS % r ik0 a f<3 S P)BA 23G ()Q IO ntaS IC T <9 d poea n so r ). ou r r ( NO: 25 U Tg c SE ND U a d jcin ( d ign ˚ ,o co de 2 H Houou rrs TLOT 0014 M A s baR I OE ˚C su ess con ± 5 ate e 7 48 4 HH ou
//Set to 0, when println are delivering good results #define DEBUG 1 //ADC Values when joystick is not pressed #define DIRECTION_ZERO 518 #define HEADING_ZERO 526 //ADC Threshold to exceed before Joystick is turned into motor movement #define DEADZONE_DIRECTION 20 #define DEADZONE_HEADING 20 //Max speed the motors can run #define MAX_PWM_DIRECTION 255 #define MAX_PWM_HEADING 255 //Enumeration for easier reading typedef enum { STOP = 0, LEFT = 1, RIGHT = 2, FORWARD = 3, BACKWARD = 4 } MotorMovement; //Pin definition int Motor_Left_Pin = 0; //OUTPUT int Motor_Right_Pin = 0; //OUTPUT int Motor_Direction_Speed_Pin
/* * Kinderwagen mit E-Antrieb * Version 1.0 * * 17.03.2017 * * Treibt zwei DC-12V-Motoren mittels PWM an eine H-Brücke an. * Das Ganze wird über einen Joystick (ADC) gesteuert oder * mittels Bluetooth-Modul und Schalter ("Remote-Control ON/OFF") * via Handy-App gesteuert. * Details siehe Schaltplan... * */ #define BAUDRATE 9600 #define BRAKEVCC 0 #define CLOCKWISE 1 // Clockwise (im Uhrzeigersinn) #define COUNTERCLOCKWISE 2 // Counterclockwise (gegen den Uhrzeigersinn) #define BRAKEGND 3 #define CS_THRESHOLD 15 // Safety current #define CLOCKWISE_MOTOR_0 9 // Pin am Arduino, der die Drehrichtung
#include <Adafruit_GFX.h> // Core graphics library #include <MCUFRIEND_kbv.h> MCUFRIEND_kbv tft; // hard-wired for UNO shields anyway. #include <TouchScreen.h> #if defined(__SAM3X8E__) #undef __FlashStringHelper::F(string_literal) #define F(string_literal) string_literal #endif uint8_t YP = A1; // must be an analog pin, use "An" notation! uint8_t XM = A2; // must be an analog pin, use "An" notation! uint8_t YM = 7; // can be a digital pin uint8_t XP = 6; // can be a digital pin uint8_t SwapXY = 0; uint16_t TS_LEFT = 920; uint16_t TS_RT = 150; uint16_t TS_TOP = 960; uint16_t TS_BOT = 120; char *name
/* * Kinderwagen mit E-Antrieb * Version 1.0 * * 17.03.2017 * * Treibt zwei DC-12V-Motoren mittels PWM an. * Das Ganze wird über einen Joystick (ADC) gesteuert oder * mittels Bluetooth-Modul und Schalter ("Remote-Control ON/OFF") * via Handy-App gesteuert. * Details siehe Schaltplan... * */ #define BAUDRATE 9600 #define BRAKEVCC 0 #define CLOCKWISE 1 // Clockwise (im Uhrzeigersinn) #define COUNTERCLOCKWISE 2 // Counterclockwise (gegen den Uhrzeigersinn) #define BRAKEGND 3 #define CS_THRESHOLD 15 // Safety current #define CLOCKWISE_MOTOR_0 9 // Pin am Arduino, der die Drehrichtung von Motor_0 im
/* * Kinderwagen mit E-Antrieb * Version 1.0 * * 17.03.2017 * * Treibt zwei DC-12V-Motoren mittels PWM an. * Das Ganze wird über einen Joystick (ADC) gesteuert oder * mittels Bluetooth-Modul und Schalter ("Remote-Control ON/OFF") * via Handy-App gesteuert. * Details siehe Schaltplan... * */ #define BAUDRATE 9600 #define BRAKEVCC 0 #define CLOCKWISE 1 // Clockwise (im Uhrzeigersinn) #define COUNTERCLOCKWISE 2 // Counterclockwise (gegen den Uhrzeigersinn) #define BRAKEGND 3 #define CS_THRESHOLD 15 // Safety current #define CLOCKWISE_MOTOR_0 9 // Pin am Arduino, der die Drehrichtung von Motor_0 im
/* * Kinderwagen mit E-Antrieb * Version 1.0 * * 17.03.2017 * * Treibt zwei DC-12V-Motoren mittels PWM an. * Das Ganze wird über einen Joystick (ADC) gesteuert oder * mittels Bluetooth-Modul und Schalter ("Remote-Control ON/OFF") * via Handy-App gesteuert. * Details siehe Schaltplan... * */ #define BAUDRATE 9600 #define BRAKEVCC 0 #define CLOCKWISE 1 // Clockwise (im Uhrzeigersinn) #define COUNTERCLOCKWISE 2 // Counterclockwise (gegen den Uhrzeigersinn) #define BRAKEGND 3 #define CS_THRESHOLD 15 // Safety current #define CLOCKWISE_MOTOR_0 9 // Pin am Arduino, der die Drehrichtung von Motor_0 im
/*Smoke Sensor MQ7 mit LCD Display connect the MQ2 sensor as follows : VCC >>> 5V AD0 >>> A0 GND >>> GND Contribution: epierre Based on http://sandboxelectronics.com/?p=165 License: Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) */ #include <LiquidCrystal.h> //Sample using LiquidCrystal library LiquidCrystal lcd(12, 11, 10, 7, 6, 5, 4); // select the pins used on the LCD panel #define CHILD_ID_MQ 0 /************************Hardware Related Macros************************************/ #define MQ_SENSOR_ANALOG_PIN (0) //define which analog input channel you are going to use #define RL_VALUE
/*Smoke Sensor MQ7 mit LCD Display connect the MQ2 sensor as follows : VCC >>> 5V AD0 >>> A0 GND >>> GND Contribution: epierre Based on http://sandboxelectronics.com/?p=165 License: Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) */ #include <LiquidCrystal.h> //Sample using LiquidCrystal library LiquidCrystal lcd(12, 11, 10, 7, 6, 5, 4); // select the pins used on the LCD panel #define CHILD_ID_MQ 0 /************************Hardware Related Macros************************************/ #define MQ_SENSOR_ANALOG_PIN (0) //define which analog input channel you are going to use #define RL_VALUE
// Touch screen library with X Y and Z (pressure) readings as well // as oversampling to avoid 'bouncing' // This demo code returns raw readings, public domain #include <stdint.h> #include "TouchScreen.h" // These are the pins for the shield! #define YP A1 // must be an analog pin, use "An" notation! #define XM A2 // must be an analog pin, use "An" notation! #define YM 7 // can be a digital pin #define XP 6 // can be a digital pin #define MINPRESSURE 10 #define MAXPRESSURE 1000 // For better pressure precision, we need to know the resistance // between X+ and X- Use any multimeter to read it /
/* The code was made by Tamás Imets for an Arduino UNO project This code controls the BB-8 Droid from the Star Wars: The Force Awakens, and works with Bluetooth RC Car application, using a HC-06 seriaé bluetooth module See more details at instructables.com/member/Imetomi Friday, December 25, 2015 */ #include <Servo.h> #include <SoftwareSerial.h> #include "DualVNH5019MotorShield.h" DualVNH5019MotorShield md; int command = 0; //incoming serial data int led = 3; SoftwareSerial bluetooth(A2, A3); int cmd; Servo head; void setup() { bluetooth.begin(9600); Serial.begin(9600); // set up Serial library