Skip to content

Instantly share code, notes, and snippets.

View michaelsarduino's full-sized avatar

michaelsarduino

View GitHub Profile
/*
* IRremote: IRrecvDump - dump details of IR codes with IRrecv
* An IR detector/demodulator must be connected to the input RECV_PIN.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/
#include <IRremote.h>
#include <IRremote.h> // IRremote Bibliothek nachladen
IRsend irsend;
// RAW Signal zum an/ausschalten des Fernsehers
unsigned int powerOn[68] = {4500, 4450, 600, 1600, 600, 1650, 550, 1650, 600, 500, 600, 550, 550, 550, 600, 500, 600, 500, 600, 1650, 550, 1650, 600, 1650, 550, 550, 550, 550, 600, 500, 600, 500, 600, 550, 550, 550, 550, 1650, 600, 500, 600, 550, 550, 550, 550, 550, 600, 500, 600, 500, 600, 1600, 600, 550, 600, 1600, 600, 1650, 550, 1650, 600, 1650, 550, 1650, 600, 1650, 550};
void setup()
{
Serial.begin(9600);
//
// FILE: dht11_test1.pde
// PURPOSE: DHT11 library test sketch for Arduino
//
//Celsius to Fahrenheit conversion
double Fahrenheit(double celsius)
{
return 1.8 * celsius + 32;
}
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.print("X: ");
Serial.print(analogRead(A0));
Serial.print(" Y: ");
Serial.print(analogRead(A1));
void setup ()
{
pinMode (13, OUTPUT) ;
pinMode (3, INPUT) ;
}
int val;
void loop ()
{
void setup() {
pinMode(3, INPUT);
Serial.begin(9600);
}
void loop() {
if(digitalRead(3) == HIGH)
{
Serial.println("Feuer!");
int sensor_pin = 8;
int shockVal = HIGH;
unsigned long letzter_schock; // millis bei letztem schock
int shockTime = 250;
void setup ()
{
void setup() {
Serial.begin(9600);
}
void loop() {
if(analogRead(A5) >= 100)
{
Serial.println("Hell!");
}
#define NOTE_B0 31
#define NOTE_C1 33
#define NOTE_CS1 35
#define NOTE_D1 37
#define NOTE_DS1 39
#define NOTE_E1 41
#define NOTE_F1 44
#define NOTE_FS1 46
#define NOTE_G1 49