Project

General

Profile

OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-)

Added by jm_wsb about 6 years ago

Hi,

I’ve followed the guide: http://jeelabs.net/projects/cafe/wiki/Receiving\_OOKASK\_with\_a\_modified\_RFM12B to modify a standard 868MHz jeenode to receive OOK messages.

I’ve did:
- 100 ohm resister between P1 Analog and FSK/DATA from RF12MB receiver
- load the sketch RFM12B_OOK, also tried OOK_reley2 and demo_kaku (also RF12demo)

But I never succeed in receiving any message from a KAKU type A transmitter (remote control) or an ELRO one.

The only thing I did not change was the capacitor.
I tried it from different ranges, but without success.

Anyone an idea what I am missing.

Thanks in advance,
jeroen


Replies (77)

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by joop about 6 years ago

Your multimeter test are ok.

When I put power on the led goes weak on (1 sec ) ,and then the
led stays off. (except when OOK data is received)

When you put power on the led goes weak on (1 sec) and
then the led stays on bright ?.

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by jm_wsb about 6 years ago

When I put the USB power on (plug in) (jeenode attached to computer with FTDI USB)
The led comes one after +/- 1 sec.
Then the led stays ON forever (it does nothing if I push KAKU or ELRO remote control buttons). I’ve also tried different rages between the remote controls and the jeenodes.
Always same result.

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by JohnO about 6 years ago

I wonder what happens to your LED when JeeNode P1 is connected, via its 100 ohm resistor to GND. Then what happens to your LED when JeeNode P1 is connected via its 100 ohm resistor to 3v3.

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by joop about 6 years ago

Maybe there’s something wrong with P1 analog 1 because it gets a high level.

Lets use P1 Digital 1 .

  • connect 100 ohm resister from P1 Analog to P1 Digital it’s 3 pins down.

these pins are now defined

#define PIN_868 14 // AIO1 = 868 MHz RFM12B receiver
#define PIN_433 4 // DIO1 = 433 MHz RFM12B receiver

is tested ok on jeenode .

output

[ookRelay2]
KAKU 114 15
HEZ 84 205 76 205 204 0
KAKU 114 15
HEZ 84 205 76 205 204 0
HEZ 212 84 205 76 205 204 0
HEZ 84 205 76 205 204 0
HEZ 212 84 205 76 205 204 0
HEZ 84 205 76 205 204 0

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by jm_wsb about 6 years ago

answer to johnO:
1. P1 to ground via resistor 180Ohm: nothing: led keeps burning
2. P1 to 3.3V (+ pin) via resistor 180Ohm: nothing: led keeps burning

answer to joop
1. I’ve deconnected the led and resistor
2. I’ve connected on port 1 the A and the D pin with a 100 Ohm resistor
3. I’ve changed the sketch:
#define PIN_868 14 // AIO1 = 868 MHz receiver
#define PIN_433 4 // AIO4 = 433 MHz receiver
and uploaded it again
Still nothing on Serial after the [ookRelay2] output.

Thanks again for yout time investigating in this.
The only thing I did a couple of weeks ago was loading the optiboot bootloader because my WDT didn’t work, but I suppose this can’t be the cause.

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by joop about 6 years ago

Jeroen ,You don’t have to connect the Analog port 1,only connect the Digital port 1.
100 ohm resister between P1 Digital and FSK/DATA from RF12MB receiver
see the attached image. (left)

with this defines.

#define PIN_868 14 // AIO1 = 868 MHz RFM12B receiver
#define PIN_433 4 // DIO1 = 433 MHz RFM12B receiver

The resistor value for the debug-led you use is to low.
I think you can safely use 1 kohm or higher

see the attached image. (right)

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by jm_wsb about 6 years ago

Hi joop,

I’ve resoldered (and remeasured the 100 ohm resistor from FSK/data RFM12B module to port 1 D (igital)

port 1 Digital —> resistor 1.2 Kohm —> long leg led (positive) and short leg LED led to ground

Some result. After powering the jeenode via USB, (after 1 sec), LED is burning and keep burning.

The sketch is the same ad previous;
changes from ookrelay2:
#define PIN_868 14 // AIO1 = 868 MHz receiver
#define PIN_433 4 // AIO4 = 433 MHz receiver

rf12_control(0x8017); // 8027 868 Mhz;disabel tx register; disable RX
// fifo buffer; xtal cap 12pf, same as xmitter
rf12_control(0xA618); // A68A 868.2500 MHz

Any other idea ?

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by JohnO about 6 years ago

I see that you flash the debug LED once during the setup procedure.
Could you flash it three times, say once a second to make sure the
hardware is operating correctly?

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by jm_wsb about 6 years ago

The flashing of the led during setup is commented out (as in the standard OokRelay axample).

I uncommented and put :
#define DEBUG_LED 7
and changed
pinMode(DEBUG_LED, 1);
// brief LED flash on startup to make sure it works
digitalWrite(DEBUG_LED, 1);
delay(1000);
digitalWrite(DEBUG_LED, 0);
delay(1000);
digitalWrite(DEBUG_LED, 1);
delay(1000);
digitalWrite(DEBUG_LED, 0);

and put a led on Port 4 D

It blinks a couple of times.
So hardware works
I’ve also loaded the jeenode a couple of times with the roomnode sketch , and hereby I receive my 868MHz signals from other jeenodes, but not from KAKu ELRO devices.

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by JohnO about 6 years ago

Is the debug LED the same one we have referred to earlier - that was
bright all the time? When it should have dimmed?

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by joop about 6 years ago

Jeroen if you remove the 100 ohm resistor from Port1 digital , then
the led is off ? when you load the ookrelay2 scetch.?

Just to check where this high level is coming from, from the RFM12B or
Atmel or something else.

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by jm_wsb about 6 years ago

When it’s compiling: led burns
when it’s uploading: led is out
when output on serial [Ookrelay2]: LED start burning and keeps on

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by jm_wsb about 6 years ago

Ok, I removed the 100 Ohm resistor from the LED,
I realize I had to remove the FSK 100 Ohm resistor to port 1 Digital ?

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by joop about 6 years ago

Keep the debugging led with 1k2 resistor on port1 digital

just remove the 100 ohm from the port1 digital ,so no
connection anymore to the RFM12B

connect power and run the ookrelay2 scetch

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by jm_wsb about 6 years ago

ok, I disconected the 100ohm resistor between FSK/data and port1 D

exact same behavior:
when it’s uploading: led is out
when output on serial [Ookrelay2]: LED start burning and keeps on

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by jm_wsb about 6 years ago

maybe not exactely correct,
The LED is burning a little bit, not full.
When I connect the led to the power, it burns a lot harder.
When I reconnect the 100 ohm resitor from rfm, it burns a little harder, but also not fully.

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by jm_wsb about 6 years ago

Ok, I’ve changed the led by a larger one.

Now it is the following behaviour:

It never burns.

Whe I connect it to GND and power: full led.
When I connect it to port1 D: (with or without the 100 ohm resistor to FSK/DATA) and ground:
it never burns

Sory for the strange led. Apparantly it had no 0.7V needed to slighly burn.
But now it’s a good one :-)

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by joop about 6 years ago

Ok jeroen I think also the RFM12b doesn’t likes long wires
so kan you put the led in the connector ? with ofcourse the
1k2 solderd on the long leg led anode.

Do you have this situation again:

soldered the 100 ohm resistor from FSK/data RFM12B module to port 1 D (igital)

port 1 Digital —> resistor 1.2 Kohm —> long leg led (positive) and short leg LED led to ground

The sketch is the same ad previous;
changes from ookrelay2:
#define PIN_868 14 // AIO1 = 868 MHz receiver
#define PIN_433 4 // AIO4 = 433 MHz receiver

rf12_control(0x8017); // 8027 868 Mhz;disabel tx register; disable RX
// fifo buffer; xtal cap 12pf, same as xmitter
rf12_control(0xA618); // A68A 868.2500 MHz

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by jm_wsb about 6 years ago

hi, I can confirm, this is the situation.

Can’t I test the same (with the led) for 868 MHz signals (I have a lot min once every min) ?
So we can be sure out checking mechanisme works ?

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by joop about 6 years ago

I never, used it for FSK signals it’s very fast
maybe you won’t see it blink with FSK.
but you can try it ,I think , but no long wires.

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by jm_wsb about 6 years ago

As FSK is very fast, I probabely never see the led burning ?
So there must be another test possible ?
I’va also ordered a 433 MHz RFM12B. Maybe I should wait for that ?

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by joop about 6 years ago

I think you can’t use it for FSK
FSK works different.

RE: OOK receiver based on modified Jeenode voor OOK, ELRO devices (pulling my hair out :-) - Added by joop about 6 years ago

Does your led blinks now ,when you press your kaku elro device. ?

(26-50/77)