You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -362,6 +362,7 @@ Modify them by enabling / disabling them, or change the values if applicable.
362
362
| `IR_INPUT_IS_ACTIVE_HIGH` | disabled | Enable it if you use a RF receiver, which has an active HIGH output signal. |
363
363
| `IR_SEND_DUTY_CYCLE_PERCENT` | 30 | Duty cycle of IR send signal. |
364
364
| `MICROS_PER_TICK` | 50 | Resolution of the raw input buffer data. Corresponds to 2 pulses of each 26.3 µs at 38 kHz. |
365
+
| `TOLERANCE_FOR_DECODERS_MARK_OR_SPACE_MATCHING` | 25 | Relative tolerance (in percent) for matchTicks(), matchMark() and matchSpace() functions used for protocol decoding. |
| `IR_USE_AVR_TIMER*` | | Selection of timer to be used for generating IR receiving sample interval. |
367
368
@@ -499,7 +500,7 @@ The reason is, that it is not the pure energy of the fundamental which is respon
499
500
Due to automatic gain control and other bias effects, high intensity of the 38 kHz pulse counts more than medium intensity (e.g. 50% duty cycle) at the same total energy.
500
501
501
502
## Increase sending power
502
-
**The best way to increase the IR power** is to use 2 or 3 IR diodes in series. One diode requires 1.1 to 1.5 volt so you can supply 3 diodes with a 5 volt output.<br/>
503
+
**The best way to increase the IR power for free** is to use 2 or 3 IR diodes in series. One diode requires 1.1 to 1.5 volt so you can supply 3 diodes with a 5 volt output.<br/>
503
504
To keep the current for 2 diodes with 1.3 volt and 25 mA and a 5 volt supply, you must reduce the resistor by factor: (5V - 1.3V) / (5V - 2.6V) = 1.5 e.g. from 150 ohm to 100 ohm.<br/>
504
505
For 3 diodes it requires factor 2.5 e.g. from 150 ohm to 60 ohm.<br/>
505
506
Or compute it directly with the **U = R * I formula**. Here U is (5V - <number_of_diodes> * 1.3V) at moderate current, at higher currents you must choose more than 1.3 volt. If you want to be exact, you must check the datasheet of your diode for the appropriate **forward voltage fo a given current**.
#defineTOLERANCE_FOR_DECODERS_MARK_OR_SPACE_MATCHING25// Relative tolerance (in percent) for matchTicks(), matchMark() and matchSpace() functions used for protocol decoding.
365
+
#endif
365
366
366
367
/** Lower tolerance for comparison of measured data */
Copy file name to clipboardExpand all lines: src/TinyIRReceiver.hpp
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,6 @@
50
50
#include<Arduino.h>
51
51
52
52
#include"TinyIRReceiver.h"// If not defined, it defines IR_INPUT_PIN, IR_FEEDBACK_LED_PIN and TINY_RECEIVER_USE_ARDUINO_ATTACH_INTERRUPT
53
-
//#define NO_LED_FEEDBACK_CODE // Activate this if you want to suppress LED feedback or if you do not have a LED. This saves 2 bytes code and 2 clock cycles per interrupt.
54
53
55
54
#include"digitalWriteFast.h"
56
55
/** \addtogroup TinyReceiver Minimal receiver for NEC protocol
0 commit comments