From 34d33d05f06a24b3273655831eb28fcb1399cee4 Mon Sep 17 00:00:00 2001 From: Stefan Ostermann Date: Sun, 4 Apr 2021 15:06:19 +0200 Subject: [PATCH] Kommentare --- sensor433-arduino/sensor433-arduino.ino | 53 +++---------------------- 1 file changed, 5 insertions(+), 48 deletions(-) diff --git a/sensor433-arduino/sensor433-arduino.ino b/sensor433-arduino/sensor433-arduino.ino index 2e57cff..c77cce8 100644 --- a/sensor433-arduino/sensor433-arduino.ino +++ b/sensor433-arduino/sensor433-arduino.ino @@ -1,50 +1,12 @@ /* - RadioHead DHT22 Weather Station + RadioHead attiny85 DHT22 Weather Station - Copyright (c) 2017 Peter Müller (https://crycode.de) - Source: https://git.cryhost.de/crycode/attiny85-radiohead-dht22-weather-sensor/-/tree/master + 2021 Stefan Ostermann based on several source from the internetz. + + Sources: + https://git.cryhost.de/crycode/attiny85-radiohead-dht22-weather-sensor/-/tree/master */ -/************** - config - **************/ - -/// RH_ASK works with ATTiny85, using Arduino 1.0.5 and tinycore from -/// https://code.google.com/p/arduino-tiny/downloads/detail?name=arduino-tiny-0100-0018.zip -/// Tested with the examples ask_transmitter and ask_receiver on ATTiny85. -/// Caution: The RAM memory requirements on an ATTiny85 are *very* tight. Even the bare bones -/// ask_transmitter sketch barely fits in eh RAM available on the ATTiny85. Its unlikely to work on -/// smaller ATTinys such as the ATTiny45 etc. If you have wierd behaviour, consider -/// reducing the size of RH_ASK_MAX_PAYLOAD_LEN to the minimum you can work with. -/// Caution: the default internal clock speed on an ATTiny85 is 1MHz. You MUST set the internal clock speed -/// to 8MHz. You can do this with Arduino IDE, tineycore and ArduinoISP by setting the board type to "ATtiny85@8MHz', -/// setting theProgrammer to 'Arduino as ISP' and selecting Tools->Burn Bootloader. This does not actually burn a -/// bootloader into the tiny, it just changes the fuses so the chip runs at 8MHz. -/// If you run the chip at 1MHz, you will get RK_ASK speeds 1/8th of the expected. -/// -/// Initialise RH_ASK for ATTiny85 like this: -/// // #include // comment this out, not needed -/// RH_ASK driver(2000, 4, 3); // 200bps, TX on D3 (pin 2), RX on D4 (pin 3) -/// then: -/// Connect D3 (pin 2) as the output to the transmitter -/// Connect D4 (pin 3) as the input from the receiver. -/// -/// -/// For testing purposes you can connect 2 Arduino RH_ASK instances directly, by -/// connecting pin 12 of one to 11 of the other and vice versa, like this for a duplex connection: -/// -/// \code -/// Arduino 1 wires Arduino 1 -/// D11-----------------------------D12 -/// D12-----------------------------D11 -/// GND-----------------------------GND -/// \endcode -/// -/// You can also connect 2 RH_ASK instances over a suitable analog -/// transmitter/receiver, such as the audio channel of an A/V transmitter/receiver. You may need -/// buffers at each end of the connection to convert the 0-5V digital output to a suitable analog voltage. -/// -/// Measured power output from RFM85 at 5V was 18dBm. // pin with the LED connected #define LED_PIN 4 @@ -69,11 +31,6 @@ #define RH_TX_PIN 3 #define RH_PTT_PIN 5 // not used, set to a non-existent pin - -/************** - end config - **************/ - #include #include #include