55ed6c7daa060eb25a38554527cc7ebeb2da541a
Board-dat/NWL/NWL1089-dat/NWL1089-dat.md
| ... | ... | @@ -11,6 +11,9 @@ https://w.electrodragon.com/w/EDRF1 |
| 11 | 11 | |
| 12 | 12 | Compatible with most learning codes and fixed (welded code) code chips in the market, including EV1527, PT2262, HX2262, SC2260, SC5211, HS2240, etc. |
| 13 | 13 | |
| 14 | +output high TTL when signal received |
|
| 15 | + |
|
| 16 | + |
|
| 14 | 17 | ## dimension |
| 15 | 18 | |
| 16 | 19 |  |
Chip-dat/AVR-dat/attiny-dat/attiny-app-dat/attiny-app-dat.md
| ... | ... | @@ -0,0 +1,4 @@ |
| 1 | + |
|
| 2 | +# attiny-app-dat.md |
|
| 3 | + |
|
| 4 | +- [[arduino-app-dat]] - [[arduino-dat]] |
|
| ... | ... | \ No newline at end of file |
Chip-dat/AVR-dat/attiny-dat/attiny-app-dat/rf-motor.ino
| ... | ... | @@ -0,0 +1,38 @@ |
| 1 | +// Motor control for DRV8871 using ATtiny |
|
| 2 | +// PB0: CW input (HIGH = CW) |
|
| 3 | +// PB1: CCW input (HIGH = CCW) |
|
| 4 | +// PB3, PB4: Outputs to DRV8871 |
|
| 5 | + |
|
| 6 | +#define CW_INPUT 0 // PB0 |
|
| 7 | +#define CCW_INPUT 1 // PB1 |
|
| 8 | +#define OUT1 3 // PB3 |
|
| 9 | +#define OUT2 4 // PB4 |
|
| 10 | + |
|
| 11 | +void setup() { |
|
| 12 | + pinMode(CW_INPUT, INPUT); |
|
| 13 | + pinMode(CCW_INPUT, INPUT); |
|
| 14 | + pinMode(OUT1, OUTPUT); |
|
| 15 | + pinMode(OUT2, OUTPUT); |
|
| 16 | + |
|
| 17 | + digitalWrite(OUT1, LOW); |
|
| 18 | + digitalWrite(OUT2, LOW); |
|
| 19 | +} |
|
| 20 | + |
|
| 21 | +void loop() { |
|
| 22 | + bool cw = digitalRead(CW_INPUT); |
|
| 23 | + bool ccw = digitalRead(CCW_INPUT); |
|
| 24 | + |
|
| 25 | + if (cw && !ccw) { |
|
| 26 | + // Clockwise: OUT1 HIGH, OUT2 LOW |
|
| 27 | + digitalWrite(OUT1, HIGH); |
|
| 28 | + digitalWrite(OUT2, LOW); |
|
| 29 | + } else if (!cw && ccw) { |
|
| 30 | + // Counterclockwise: OUT1 LOW, OUT2 HIGH |
|
| 31 | + digitalWrite(OUT1, LOW); |
|
| 32 | + digitalWrite(OUT2, HIGH); |
|
| 33 | + } else { |
|
| 34 | + // Stop: both LOW |
|
| 35 | + digitalWrite(OUT1, LOW); |
|
| 36 | + digitalWrite(OUT2, LOW); |
|
| 37 | + } |
|
| 38 | +} |
|
| ... | ... | \ No newline at end of file |
SDK-dat/arduino-dat/arduino-app-dat/arduino-app-dat.md
| ... | ... | @@ -0,0 +1,4 @@ |
| 1 | + |
|
| 2 | +# arduino-app-dat |
|
| 3 | + |
|
| 4 | +- [[attiny-app-dat]] |
|
| ... | ... | \ No newline at end of file |
SDK-dat/arduino-dat/arduino-dat.md
| ... | ... | @@ -9,6 +9,10 @@ |
| 9 | 9 | |
| 10 | 10 | - [[avr-dat]] |
| 11 | 11 | |
| 12 | +- [[arduino-app-dat]] |
|
| 13 | + |
|
| 14 | + |
|
| 15 | + |
|
| 12 | 16 | ## arduino DEV Boards |
| 13 | 17 | |
| 14 | 18 | - [[DAR1053-dat]] == [EDarduino Nano Dev. Board, Arduino Compatible](https://www.electrodragon.com/product/ed-nano-dev-board-arduino-compatible/) |
Tech-dat/Network-dat/RF-dat/RF-LINK-dat/RF-LINK-dat.md
| ... | ... | @@ -77,7 +77,9 @@ When a valid signal is present, VT outputs a high level; when the valid signal d |
| 77 | 77 | |
| 78 | 78 | Pairing Method: |
| 79 | 79 | |
| 80 | -Press the button on the receiver board and release it when the indicator light turns on; this means it has entered learning mode. Then, press any button on the remote control to transmit. If the indicator light on the receiver board flashes, pairing is successful, and the output pins are matched accordingly. Exit learning mode. |
|
| 80 | +Press the button on the receiver board and release it when the indicator light turns on; this means it has entered learning mode. |
|
| 81 | + |
|
| 82 | +Then, press any button on the remote control to transmit. If the indicator light on the receiver board flashes, pairing is successful, and the output pins are matched accordingly. Exit learning mode. |
|
| 81 | 83 | |
| 82 | 84 | Note: |
| 83 | 85 |