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 <LiquidCrystal.h> | |
LiquidCrystal lcd1(8,7,4,0,12,13); | |
int motor1_A=11; | |
int motor1_B=10; | |
int motor1_Speed=9; | |
int motor2_A=6; | |
int motor2_B=5; | |
int motor2_Speed=3; |
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 <LiquidCrystal.h> | |
LiquidCrystal lcd1(8,7,4,0,12,13); | |
int motor1_A=11; | |
int motor1_B=10; | |
int motor1_Speed=9; | |
int motor2_A=6; | |
int motor2_B=5; | |
int motor2_Speed=3; |
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.*; | |
import processing.net.*; | |
String HTTP_GET_REQUEST = "GET /"; | |
String HTTP_HEADER = "HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n"; //speichern des Headers. | |
Serial arduino; //erstellen von arduino als Objekt vom Typ Serial | |
String datenpuffer; //Variable zum Abspeichern der Daten der seriellen Verbindung | |
String website; //aktueller Wortlaut der Website | |
String neu; //Speicherort fuer neue Bewegungsmeldung mit Uhrzeit |
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
<html> | |
<h1>Hier kannst du die LED des Arduino steuern.</h1> | |
<form action="arduino_webpage.php" method="POST"> | |
<input type="radio" id="an" name="status" value="an" />an <br /> | |
<input type="radio" id="aus" name="status" value="aus" />aus <br /> | |
<input type="submit" value="schalten" /> | |
</form> | |
<?php | |
if($_POST['status'] != "") | |
{ |
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
<?php | |
while (1<2) | |
{ | |
$_url = "http://www.wetter.com/wetter_aktuell/aktuelles_wetter/deutschland/EURESTADT.html"; //Link zur Wetter.com Unterseite eurer Stadt | |
$_buffer = implode('', file($_url)); //laden der website und speichern in $_buffer | |
$wetter = strstr($_buffer, '<div class="degree-in" >'); | |
$wetterb = strstr($wetter, '°C', TRUE); //isolieren der Temperatur | |
$temperatur = $wetterb[45] . $wetterb[46]; //speichern der beiden Ziffern in Variable Temperatur |
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 <LiquidCrystal.h> //nachladen der LCD Bibliothek | |
LiquidCrystal lcd(5,4,3,2,1,0); //festlegen der Pins fuer das Display | |
unsigned long last; | |
unsigned long akt; | |
unsigned long dif; | |
char* pressed[5]; | |
String last_letter; | |
String letter; | |
int number = 0; | |
int position_1 = 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 <avr/sleep.h> | |
#include <avr/power.h> //nachladen der benoetigen Bibliotheken | |
void setup() { | |
pinMode(13, OUTPUT); //definieren von Pin 13 als OUTPUT | |
attachInterrupt(0, interrupt, RISING); //festlegen des Interrupts an Pin 2 | |
} | |
void loop() { | |
digitalWrite(13, HIGH); |
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 <avr/sleep.h> | |
#include <avr/power.h> | |
#include <avr/wdt.h> | |
#include <EEPROM.h> //nachladen der Bibliotheken | |
int status_led = 0; | |
void setup() { | |
wdt_enable(WDTO_8S); //starten des Watchdoginterrupts | |
pinMode(13, OUTPUT); //definieren von Pin 13 als OUTPUT | |
} |
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 ddf.minim.*; //nachladen der Audiobibliotehk | |
import processing.serial.*; //nachladen der serial Bibliothek | |
Serial arduino; //erstellen des Objekts arduino vom Typ Serial | |
Minim minim; | |
AudioPlayer player; | |
void setup () { | |
String port = Serial.list()[0]; //speichern der Verbindungsdaten | |
arduino = new Serial(this, port, 9600); //starten der seriellen Verbindung |
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() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
if(Serial.available() > 0) | |
{ | |
delay(5); | |
int kraft = Serial.parseInt(); | |
leds_schalten(kraft); |
OlderNewer