Project

General

Profile

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

Added by jm_wsb over 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 martynj over 6 years ago

Without reducing the capacitor value, the filter delay is too great to see the relatively fast on/off changes. If you are nervous about changing the SMD component, remove the capacitor completely and use an external ‘normal size’ cap to ground.

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

Hi Martynj.

I also replaces the SMD cap by a ceramic n15 (150 pF).
Bit it still does not work (tried fe. with standard RFM12B_OOK or OOKrelay2).

Any other suggestions ?

Thanks again.

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

The KAKU units you mention are only 433MHz as far as I know.
The RFM12B can be tuned to any of the three ISM bands (433,868,915MHz) with the RF12config command but there are component differences in the aerial matching circuit to correspond to the particular band supported by the module.

A module operating away from its “native” band is rather insensitive due to this mismatch. As a quick guide, for modules supplied by the JeeLabs shop - on the black epoxy blob: yellow spot is 868Hz, green spot is 433MHz. It is also marked on the module silk screen, but on the side that is unreadable once soldered in place !

This is a useful tool for the module set up command bytes.

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

Hi again,

as mentioned in the catalog : Kits include the ISM-band 868 MHz radio module as used in Europe. (I’m from Belgium).

  1. Does this mean that have a 868 MHz for sure ? Or should I desolder it and look for the spot to be 100% sure ?

  2. If I have a 868, I can just order a 433 RFM12B unit and than it should work ?

Maybe this should be added to the wiki ?

Thanks in advance.

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

Sorry - my statement was not very clear. The paint mark is put on the black epoxy because the other markings are hidden once the module is soldered in place.

  1. Yes, it is an 868MHz unit - verify with the paint spot
  2. Yes, 433MHz modules are available, but please be aware it really needs a hot-air station to remove a module without damaging the PCB pads underneath.

Depending on the range you need, try selecting the 433MHz band at initialisation time on the 868MHz module. The sensitivity is lower, but usually enough to at least debug the sensor data stream when close by.

DSC_4316_large.jpg (39.1 KB) DSC_4316_large.jpg RRM12B module on JNMicro board
665

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

Hi,

no colored spot on the black epoxy.

As you suggested, I did a rf12_initialize(0, RF12_433MHZ);
But still does not receive anything. Tried this also before with the rf12demo sketch.

I’ve ordered a 433 MHz RFM12B receiver. Hopefully I get it to work thereafter.
And yes, I will be very precautious when unsoldering the rfm module :-)

Is it a special kind of capacitor ?

I’ll keep you posted whether it succeeded or not.

Thanks again.

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

I also tried:
rf12_control(0x8017); // due to your calculating tool, the correct value for 433MHz
rf12_control(0xA640); // due to your calculating tool, the correct value for 433MHz

Did you succeed yourself in modding this for receiving/sending fe. KAKU (OOK) or ELRO devices ?

Can you exactly tell me what to change in the RFM12B_OOK sktech ?
I changed:
the 2 control registers + rf12_initialize(0, RF12_433MHZ);

I find it still odd that I can’t receive any of these signals.
The normal jeenode signals (due to my jeenode network for temp, enegry and water management) are allways received.

Thanks again.

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

The ook_Relay2 uses the RFM12B to receive OOK on 868 MHz pin 14
and uses an extra receiver to receive OOK on 433 MHz pin 17

You can do the trick like martynj suggested ,but because
pin 17 for 433 Mhz OOK is used you’ll need to change this to 14

// #define PIN_868 14 // AIO1
#define PIN_433 14 // AIO4 #define PIN_433 17

in short (using ook_Relay2)

1 change capacitor
2 place resistor
3 rf12_control(0x8017); //433band change in ook_Relay2 file
rf12_control(0xA640); //433band Mhz change in ook_Relay2 file
4 #define PIN_433 14 ; //change in ook_Relay2file

this will work within a distance of 3 meters

If you double your antenne length it wil work within 8 metres.
Receiver is a 868 RFM12B module initialized as a 433 module.

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

Hi joop,

I did exactly what you told. But I can’t receive anything.

I attached the sketch, can you please take a look at it.
I need to get this working to go a step further in home automation world :-)

Thanks in advance,
jeroen

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

Jeroen ,I still got my test files from
about a year ago maybe you can try them.

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

Joop, I get a compile error: no referece for setup or main loop.
Is it possible that there is missing a piece of code ?

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

No I don’t think so I used then ,an older arduino to compile it and an older jeelib.

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

indeed, before Arduino 1.0 :-) The old days…

I’ve checked the values and set them the same (as you told) and compared the RFM config in the 2 programs (but found no solution).

Can you tell me what kind of capacitor is needed exactle 150pf-220pF, but which type condensator ?
Thanks.

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

Jeroen ,I am using a 150 pf capacitor,a ceramic type .

and both pins have to defined with 14 (maybe this was wrong)

#define PIN_868 14 // AIO1 = 868 MHz receiver both needed to be defined with 14
#define PIN_433 14 // AIO4 = 433 MHz receiver both needed to be defined with 14

Tried it with arduino 1.0 with the latest jeelib from github,see the attached files
with changed pins and intialisation RFM12B. (the second file)

output:

[ookRelay2]
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 76 205 204 0 106 170 0
HEZ 84 205 76 205 204 0
HEZ 212 84 205 76 205 204 0
HEZ 84 205 76 205 204 0
HEZ 205 76 205 204 0 106 0

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

Hi Joop, thanks for the clear feedback.

Still does not receive anything.
To recapitulate:
I have an jeenode v6 868 MHz RFM12B
soldered a resistor of 100 ohm from FSK/DATA (3th contact above to the christal)
took the SMD capacitor (farest from the christal) and replaced by a 180 pF ceramic

Looded the lastest jeelib library
took the example from ookrelay2 and changed the things you changed (I’ve compared them):
port 14 for both 868 + 433
2 control registers for rfm module

uploaded the sqetch, tried with KAKU devive + Elro
but can’t receive anything.

Any other suggestion ?

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

Here are some pictures with the hardware modifications of the jnode
You can use a led and a resistor to check if an OOK-pulsstream is
detected by the RFM12B, the led will blink when a OOK-puls
is received (any protocol), if not the initialisation off the RFM12B is not right.

Can you upload your test-file ?.

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

Hi Joop,

first of all, thanks for the excellent, quick help.

I’ve tested as you asked and the led burns.

I’ve attached:
- sketch+ decoder.h for the sketch folder
- pictures of the mod of the jeenode + led

Thanks again.

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

Just to be sure:

The led only blinks when you press your ELRO device ?

The long wire from the led (anode) needs to be connected to the resistor .
(AI0 > resistor> led long wire )

The short wire from led goes to gnd
(GND -> led short wire ).

The led will not burn if there is no data.

Are these things right ?

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

The connections are as you described.

When I put on the USB for the jeenode (power on), the LED does NOT burn for 7 seconds
The jeenode is booting I think.

Then, the LED stays on forever. Not depending on KAKU or ELRO remote control presses.

SO the LED stays always on (after boot time).

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

The files you use are ok. (checked with my jeenode)
The hardware modification seems ok.

It takes about 0.3 sec for the jeenode to boot so there
is something else wrong… and LED must be off all the time
when no OOK-data …. puzzling problem.

Do you get [ookRelay2] as output on the serial monitor after 0.3 sec?
it’s the first thing that is printed on screen.

The solder on the back-side ,can you check this with a magnifier glass.?

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

Hi,

I already checked the solder with a mag glass, and it was ok.
The thing in serial is indeed the [ookRelay2] text (after a second). Also the LED goes down as I start the serial and when the text becomes on serial, the led burns (it don’t take 7 sec, I must done something wrong I think)

And fe. if I upload the roomnode sketch, I keep on receiving my other jeenode data (868 Mhz), so the receiver is working.)

But still no result :-(

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

Hi Jeroen,

If you have a multimeter available you can check the resistance from
the modification-points of your jeenode with mine resistance values.

situation:

no debug-led connected
no usb-bub connected
no power connected
connect negative wire from multimeter to gnd

connect positive wire on :
resistance on left-wire arssi-cap = 0 ohm
resistance on right-wire arssi-cap = 56k
resistance FSK/DATA from RF12MB high ohmic = 5Mohm
resistance AI0 connector Port1 high ohmic = 5Mohm

connect negative wire from multimeter to FSK/DATA from RF12MB and
connect positive wire from multimeter to AI0 connector Port1
resistance = 100 ohm.

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

Good idea - but make sure the multimeter is connected in a ‘good’ sense. Meaning that the small voltage coming from the meter when on Ohms range is putting a positive voltage at the various test points. Many multimeters reverse the sense of the RED/BLACK leads when on Ohms.
A quick check is to measure the resistance of a spare diode - when you get a low reading, the testlead on the end of the diode with the bar mark is negative w.r.t. the other testlead.

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

ok, my multimeter tests:

no USB FTDI device/USB cable detected (or anything else on the jeenode)

  • neg wire multimeter to ground:
    * left wire changed cap: 0.6 ohm
    * right wire changed cap: 55 kohm
    * fsk/data: no value (more than 2 Mohm (multimeter limit is 2 mohm)
    * AI0 : no value (more than 2 Mohm (multimeter limit is 2 mohm)

  • resistance between FSK/data rfm12b and AI0=101 ohm

(1-25/77)