MyS not working on solar sensor board



  • the board is @ceech s one, I don't think there is anything wrong with it, but I can't make it work with mysensors. My testing sketch is the one provided with the board, just adding MySensors declerations and radio initialisation.
    First I tought this issue was related, but after swapping to the development version, the problem still occurs:

    0 MCO:BGN:INIT NODE,CP=R-NNA---,VER=2.2.0-beta
    4 TSM:INIT
    4 TSF:WUR:MS=0
    6 RF24:INIT
    8 RF24:INIT:PIN,CE=9,CS=10
    10 RF24:WBR:REG=0,VAL=14
    18 RF24:WBR:REG=3,VAL=3
    20 RF24:WBR:REG=4,VAL=95
    22 RF24:WBR:REG=5,VAL=76
    26 RF24:WBR:REG=6,VAL=37
    28 RF24:WBR:REG=16,VAL=115
    30 RF24:WBR:REG=29,VAL=6
    34 RF24:RBR:REG=6,VAL=0
    36 RF24:RBR:REG=5,VAL=0
    38 !RF24:INIT:SANCHK FAIL
    40 !TSM:INIT:TSP FAIL
    45 TSM:FAIL:CNT=1
    45 TSM:FAIL:DIS
    47 TSF:TDI:TSL
    49 RF24:SLP
    51 RF24:WBR:REG=0,VAL=12
    10055 TSM:FAIL:RE-INIT
    10057 TSM:INIT
    10059 RF24:INIT
    10061 RF24:INIT:PIN,CE=9,CS=10
    10063 RF24:WBR:REG=0,VAL=14
    10072 RF24:WBR:REG=3,VAL=3
    10074 RF24:WBR:REG=4,VAL=95
    10078 RF24:WBR:REG=5,VAL=76
    10080 RF24:WBR:REG=6,VAL=37
    10084 RF24:WBR:REG=16,VAL=115
    10086 RF24:WBR:REG=29,VAL=6
    10090 RF24:RBR:REG=6,VAL=127
    10092 RF24:RBR:REG=5,VAL=255
    10096 !RF24:INIT:SANCHK FAIL
    10098 !TSM:INIT:TSP FAIL
    10102 TSM:FAIL:CNT=2
    10104 TSM:FAIL:DIS
    10106 TSF:TDI:TSL
    10108 RF24:SLP
    10110 RF24:WBR:REG=0,VAL=12
    ....
    

  • Hardware Contributor

    Try basic board's functionality first, over Serial monitor for example and work from there.



  • If you mean, uploading your sample sketch, yes, that worked without problem.
    But MySensors resists to work.



  • Correction, the sample sketch just shows:

    HTU21D-F test
    Couldn't find sensor!
    

    Seems that can be something with the board.


  • Hardware Contributor

    It is the new sensor on your board. The BME280.
    Here is the library for it:
    https://github.com/sparkfun/SparkFun_BME280_Arduino_Library
    Use I2C_ReadAllData example. And the sensor's address is 0x76, not 0x77



  • @ceech said in MyS not working on solar sensor board:

    I2C_ReadAllData

    Well it returns some weird negative altitude data, and temperature and humidity seems to be a little off, but I guess it also may have something to initially adjust altitude.


  • Hardware Contributor

    Initial altitude is calculated based on pressure and needs adjustment.



  • @ceech said in MyS not working on solar sensor board:

    Initial altitude is calculated based on pressure and needs adjustment.

    Do you know how to do it? I can't find nothing on the api


  • Hardware Contributor

    I don't, sorry.



  • What I can't understand is why the board has been working more than one week with the SFE_BMP180 library, to the point that I was doing adjustments and now I must work with sparkfun one's.

    Well, then that sensor will be of no use.

    Temperature: 28.39 degrees C
    Temperature: 83.10 degrees F
    Pressure: 101515.85 Pa
    Altitude: -16.42m
    Altitude: -53.86ft
    %RH: 55.80 %
    

    0_1498755205973_Temp.png
    The temperature and humidity are off more than three points and altitude by 50mts.


  • Hardware Contributor

    Give it a while. It's new. It will calibrate in time. Also you can calibrate it yourself.


  • Hardware Contributor

    The BMP180 sensor is from the same family. Parts of the code probably works on both.



  • Ok, so leaving the sensor aside, this is the correct position for the NRF radio module?
    0_1498815662002_IMG_20170630_113310~01.jpg
    First I'd directly soldered it, but as it wasn't working I desoldered it, resoldered a connector and tested with all my NRF modules, even with the ones on duty. The board always outputs a radio error:

    0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.1
    4 TSM:INIT
    4 TSF:WUR:MS=0
    6 RF24:write register, reg=0, value=14
    14 RF24:write register, reg=3, value=3
    18 RF24:write register, reg=4, value=95
    22 RF24:write register, reg=5, value=76
    26 RF24:write register, reg=6, value=39
    30 RF24:write register, reg=16, value=115
    36 RF24:write register, reg=29, value=6
    40 RF24:read register, reg=6, value=255
    45 RF24:read register, reg=5, value=255
    49 !RF24:INIT:SANCHK FAIL
    51 !TSM:INIT:TSP FAIL
    53 TSM:FAIL:CNT=1
    55 TSM:FAIL:PDT
    57 RF24:write register, reg=0, value=12
    61 RF24:PD
    

    Also with MySensors version 2.0.0:

    Starting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    RF24:write register, reg=0, value=14
    RF24:write register, reg=3, value=3
    RF24:write register, reg=4, value=95
    RF24:write register, reg=5, value=76
    RF24:write register, reg=6, value=39
    RF24:read register, reg=6, value=255
    RF24:read register, reg=5, value=255
    RF24:Sanity check failed: configuration mismatch! Check wiring, replace module or non-P version
    !TSM:RADIO:FAIL
    !TSM:FAILURE
    TSM:PDT
    RF24:write register, reg=0, value=12
    RF24:power down
    

    @ceech Do you have a mysensors working board? Which version?
    Could this be a faulty one or something must be configured for mysensors?


  • Hardware Contributor

    I can't say what's wrong. Can you send it back and I'll take a look at it?



  • I can, just send me your address through MP or to my email.

    Is the following configuration right for the resistor values you modified for my 7.2v batt?

    float R1 = 47000.0; // resistance of R1
    float R2 = 10000.0; // resistance of R2
    

    You can also send me a working sketch and I'll upload and test it for you.


Log in to reply
 

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.