This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
//starten der seriellen Kommunikation | |
Serial.begin(9600); | |
} | |
void loop() { | |
//auslesen des Wertes von Pin A0 und senden an PC | |
Serial.println(analogRead(A0)); | |
//kurz warten | |
delay(2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.serial.*; | |
Serial arduino; | |
int xPos = 1; | |
void setup () { | |
size(500, 300); | |
arduino = new Serial(this, Serial.list()[0], 9600); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import serial | |
import smtplib | |
TO = 'EMPFAENGER HIER EINGEBEN' | |
GMAIL_USERNAME = 'ABSENDER HIER EINGEBEN' | |
GMAIL_PASSWORD = 'PASSWORT ABSENDER HIER EINGEBEN' | |
BETREFF = 'Arduino' | |
TEXT = 'Hier den Email Text eingeben' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SoftPWM.h> | |
#include <SoftPWM_timer.h> | |
int status_pin = 1; | |
int richtung = 1; | |
boolean bewegung = false; | |
int counter = 0; | |
void setup() { | |
pinMode(2, INPUT); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <MemoryFree.h> | |
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
Serial.println(freeMemory()); | |
delay(100); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
pinMode(13, OUTPUT); | |
unsigned long zeit_bei_beginn = millis(); | |
unsigned long zeit_aktualisiert = millis(); | |
while((zeit_bei_beginn + 10000) > zeit_aktualisiert) | |
{ | |
digitalWrite(13, HIGH); | |
delay(100); | |
digitalWrite(13, LOW); | |
delay(100); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.serial.*; | |
Serial arduino; | |
String auto = "33"; | |
void setup() { | |
arduino = new Serial(this, "COM15", 9600); | |
size(1200, 900); | |
fill(0); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SoftwareSerial.h> | |
SoftwareSerial bluetooth(8, 9); | |
int motor1_A = 4; | |
int motor1_B = 2; | |
int motor1_speed = 3; | |
int motor2_A = 5; | |
int motor2_B = 7; |