jakkik / DieselHeaterRF

Simple library for Arduino (ESP32) to control a Chinese diesel heater through 433 MHz RF
81 stars 17 forks source link

Issue Compiling #1

Open MikeDWheeler opened 2 years ago

MikeDWheeler commented 2 years ago

I am working with the black controller (dont know if this is going to work or not but worth poking around with ).

Black controller with basic RF remote.

Can not compile with current release on MEGA or D1 mini. SPI.begin() will not accept arguments.

++++++++++++++++++++++++++++++++++++++++++++++ DieselHeaterRF.ccp

  1. //SPI.begin(_pinSck, _pinMiso, _pinMosi, _pinSs);
  2. SPI.begin(); ++++++++++++++++++++++++++++++++++++++++++++++

commented out current SPI added SPI.begin(). compiles. However run in to a connection issue. Wonder if you can help me decode this.


--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Soft WDT reset

stack>>>

ctx: cont sp: 3ffffdf0 end: 3fffffc0 offset: 01a0 3fffff90: 3fffdad0 3ffee5bc 3ffee5fc 402010a9
3fffffa0: 3fffdad0 00000000 3ffee650 4020265c
3fffffb0: feefeffe feefeffe 3ffe85d8 40100c01
<<<stack<<<

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 3460, room 16 tail 4 chksum 0xcc load 0x3fff20b8, len 40, room 4 tail 4 chksum 0xc9 csum 0xc9 v00042d10 ~ld Started pairing, press and hold the pairing button on the heater's LCD panel... Failed to find a heater

--------------- CUT HERE FOR EXCEPTION DECODER ---------------


sixtycyclehum commented 2 years ago

Same exact issue here. Did you ever resolve it?

bakermanus commented 2 years ago

You have to modify the spi pin setting in the DiselHeaterRF.h file.

define HEATER_SCK_PIN 18

define HEATER_MISO_PIN 19

define HEATER_MOSI_PIN 23

define HEATER_SS_PIN 5

define HEATER_GDO2_PIN 4

these are for esp32.