Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
pihomeP

pihome

@pihome
About
Posts
108
Topics
15
Shares
0
Groups
0
Followers
0
Following
1

Posts

Recent Best Controversial

  • 2021 EU customs regulatory changes — where should I buy now?
    pihomeP pihome

    my experience is different, aliexpress is collected vat on purchase and item was shipped from Netherlands
    Price: 11.29€
    VAT (collected by Aliexpress): 2.59€
    my post office sent me email asking for pay 6.09€ (2.59vat and 3.50 fee) and there is no way of contacting them or sending pre-paid vat just a reference number to pay vat online.

    General Discussion

  • LoRa Gpio serial gateway
    pihomeP pihome

    i havent tested lora on serial gateway but i had issues using 3.3v arduino, for me fix was 5v arduino with logic converter.

    General Discussion

  • What did you build today (Pictures) ?
    pihomeP pihome

    very first working Ethernet gateway :)

    2020-01-31 18.56.26.jpg 2020-01-31 18.56.37.jpg 2020-01-31 18.56.53.jpg

    General Discussion

  • Making WiFiManager compatible with MySensors 2.3.2
    pihomeP pihome

    Its not bug but a workaround just in case if any one is searching for solution. I was using WiFiManager with MySensors 2.3.1 for WiFi gateway and it was working fine and now i upgraded MySensors from 2.3.1 to 2.3.2 and my WiFi gateway sketch refuse to compile. for the time being workaround: You need to comment out two location in core/MyGatewayTransportEthernet.cpp
    may be there is better way but this is quick fix.

    Line 49 to 55

    /*
    #if defined(MY_GATEWAY_ESP8266) || defined(MY_GATEWAY_ESP32)
    #if !defined(MY_WIFI_SSID)
    #error ESP8266/ESP32 gateway: MY_WIFI_SSID not defined!
    #endif
    #endif
    */
    

    Line 184 to 189

    /*	(void)WiFi.begin(MY_WIFI_SSID, MY_WIFI_PASSWORD, 0, MY_WIFI_BSSID);
    	while (WiFi.status() != WL_CONNECTED) {
    		delay(1000);
    		GATEWAY_DEBUG(PSTR("GWT:TIN:CONNECTING...\n"));
    	}
    	GATEWAY_DEBUG(PSTR("GWT:TIN:IP: %s\n"), WiFi.localIP().toString().c_str());*/
    
    Bug Reports

  • NRF24L01 +PA+LNA right seller from Aliexpress
    pihomeP pihome

    @hira
    No, dimensions are different

    General Discussion nrf24l01

  • OTA:FWP:UPDATE SKIPPED :(
    pihomeP pihome

    just tired with different fuse settings bootloader.low_fuses=0xE2 but no success

    2088 TSM:FPAR:OK
    2088 TSM:ID
    2091 TSM:ID:OK
    2093 TSM:UPL
    2097 2193 TSF:MSG:READ,0-0-1⸮2209 TSF:MSG:SEND,1-1-0-0,s=255,c=4,t=0,pt=6,l=10,sg=0,ft.Wz-⸮0100
    2410 TSF:MSG:READ,0-0-1,s=255,c=3,t=15,pt=6,l=2,sg=0:012428 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
    >TSF:MSG:READ,0-0-1,s=0,c=4,t=1,pt=6,l=8,sg=0:20000100D00374A3
    2674 OTA:FWP:UPDATE
    26⸮2791 TSF:MSG:READ,0-0-1,s=255,c=3,t=6,pt=0,⸮⸮⸮Blank Over The Air Node
    2811 TSF:MSG:SEND,1-1-0-0,s=255⸮MMi⸮3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
    3088 MCO:BGN:STP
    3090 MCO:BGN:INIT OK,TSP=1
    24172 TSF:MSG:READ,0-0-1,s=0,c=4,t=1,pt=6,l=8,sg=0:20000100D00374A3
    24178 OTA:FWP:UPDATE 
    
    Troubleshooting

  • OTA:FWP:UPDATE SKIPPED :(
    pihomeP pihome

    Hi All,
    i had some spare time and thought to play with OTA, i have burned bootloader with right channel and then upload blank sketch with, i have swapped the arduino just in case.

    MySensors version 2.3.1
    ESP8266 Gateway.
    hex file size is 43KB
    can any one see what i m doing wrong?

    Blank sketch:

    // Enable debug prints to serial monitor
    #define MY_DEBUG
    
    //Set MY_SPLASH_SCREEN_DISABLED to disable MySensors splash screen. (This saves 120 bytes of flash)
    #define MY_SPLASH_SCREEN_DISABLED
    
    //Define Sketch Name 
    #define SKETCH_NAME "Blank Over The Air Node"
    //Define Sketch Version 
    #define SKETCH_VERSION "0.001"
    
    // Enable and select radio type attached
    #define MY_RADIO_RF24
    
    
    //Define this to use the IRQ pin of the RF24 module (optional). 
    #define MY_RF24_IRQ_PIN 2
    #define MY_RX_MESSAGE_BUFFER_FEATURE
    #define MY_RX_MESSAGE_BUFFER_SIZE 5
    
    
    #define MY_RF24_PA_LEVEL RF24_PA_MIN
    
    //Default RF channel Default is 76
    #define MY_RF24_CHANNEL	91
    
    //PiHome Zone Controller Node ID
    #define MY_NODE_ID 1
    
    //RF24_250KBPS for 250kbs, RF24_1MBPS for 1Mbps, or RF24_2MBPS for 2Mbps
    #define MY_RF24_DATARATE RF24_250KBPS
    
    //If Following LED Blink does not work then modify C:\Program Files (x86)\Arduino\libraries\MySensors_2_1_1\MyConfig.h 
    #define MY_DEFAULT_ERR_LED_PIN 16 //A0 previous version 8 
    #define MY_DEFAULT_TX_LED_PIN 14
    #define MY_DEFAULT_RX_LED_PIN 15
    #define MY_WITH_LEDS_BLINKING_INVERSE
    
    #define MY_DEFAULT_LED_BLINK_PERIOD 400
    
    #define MY_OTA_FIRMWARE_FEATURE
    
    #include <MySensors.h>
    
    void setup()
    {
    
    }
    
    void presentation()
    {
    	//Send the sensor node sketch version information to the gateway
    	sendSketchInfo(SKETCH_NAME, SKETCH_VERSION);
    }
    
    void loop()
    {
    
    }
    

    Here is my boards.txt file just incase if i m missing something

    ###########################################
    MYS.name=OTA nRF Ch91 8MHz RF24_PA_MIN BOD-1.8v
    MYS.upload.tool=avrdude
    MYS.upload.protocol=arduino
    MYS.upload.maximum_size=30720
    MYS.upload.speed=57600
    MYS.bootloader.tool=avrdude
    MYS.bootloader.low_fuses=0xFF
    MYS.bootloader.high_fuses=0xDA
    
    # all the possible values:
    #MYS.extended_fuses=0x04 -> BOD at 4.3V
    #MYS.extended_fuses=0x05 -> BOD at 2.7V
    #MYS.extended_fuses=0x06 -> BOD at 1.8V
    #MYS.extended_fuses=0x07 -> BOD disabled
    
    MYS.bootloader.extended_fuses=0x06
    MYS.bootloader.path=MYSBootloader
    MYS.bootloader.file=MYSBootloader.ch91.8000000L.RF24_PA_MIN.hex
    MYS.bootloader.unlock_bits=0x3F
    MYS.bootloader.lock_bits=0x0F
    MYS.build.mcu=atmega328p
    MYS.build.f_cpu=8000000L
    MYS.build.core=arduino
    MYS.build.variant=standard
    

    serial console logs for node.

    ⸮Q)6 TSF:WUR:MS=0
    12 TSM:INIT⸮2064 !TSM:FPAR:NO REPLY
    2066 TSM:FPAR
    2103 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    K,ID=0,D=1
    4110`⸮⸮⸮255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
    TSF:MSG:READ,0-0-1,s=255,c=3,t=25,pt=1,l=1,sg=0:1
    4225 TSF:MSG:PONG RECV,HP=1
    4229 TSM:UPL:⸮⸮⸮⸮⸮b⸮⸮⸮0,ft=0,st=OK:FFFFFFFFB803CFD40300
    4247 TSF:MSG:S4442 TSF:MSG:READ,0-0-1,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    4460 TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
    4706 TSF:MSG:READ,0-0-1,s=2⸮<sg=0,ft=0,st=OK:Blank Over The Air Node
    4726 TSF:MSG:SE⸮SEND,1-1-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
    5001 TSF:MSG:READ,0-0-1,s=255,c=3,t=27,pt=1,l=1,sg=0:1
    5007 MCO:PIM:NODE⸮60993 TSF:MS⸮609826 TSF:MSG:READ,0-0-255,s=255,c=3,t=20,p⸮702⸮702980 TSF:MSG:SEND,1-1-0-0,s=255,c=4⸮SG:SEND,1-1-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    703197 TSF:MSG:SEND,1-1-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.3.1
    ⸮P&⸮703457 OTA:FWP:UPDATE SKIPPED
    703578 TSF:MSG:READ,0-0-1,s=255,c=3,t=6,pt=0,l=1,sg=0:M
    ⸮END,1-1-0-0,s=255,c=3,t=11,pt=0,l=23,sg=0,ft=0,st=OK:Blank Over The Air ⸮⸮⸮i⸮710047 OTA:FWP:UPDATE SKIPPED
    

    screenshot of MYSController
    MYSController img.PNG

    Troubleshooting

  • RFM69HCW with ESP8266 Gateway and relay module
    pihomeP pihome

    @zboblamont
    i was expecting bit more range with 2dbi antenna, you are right i have to put better antenna gateway.
    are you referring to
    MY_RFM69_TX_POWER_DBM in sketch? on same note
    what would be different between MY_RFM69_MAX_POWER_LEVEL_DBM and TX_POWER, i have tried MY_RFM69_MAX_POWER_LEVEL_DBM to 100u but made no difference in range.

    Troubleshooting

  • RFM69HCW with ESP8266 Gateway and relay module
    pihomeP pihome

    @zboblamont, @mfalkvidd
    Thank you both.

    Relay Node:
    Powered by 5v and using MIC5205-3.3v voltage regulator. 10uf & 100nf cap on radio
    Arduino 8Mhz with RFM69CHW at 433Mhz

    DS18B20 Sensors:
    Powered by 3xAAA battery and using MIC5205-3.3v voltage regulator. 10uf & 100nf cap on radio
    Arduino 8Mhz with RFM69HW at 433Mhz

    Gateway:
    Powered by 5v via micro USB to ESP.
    ESP8266 with RFM69CHW at 433Mhz

    First Test:
    Gain:2dBi-3dBi
    Wire diameter:0.6MM
    Spring outer diameter:5MM
    Total Length include soldering part: 34MM
    Coil Turns: 28
    Range around 20 to 30m while gateway was inside house.
    0_1577486723577_2019-12-27 22.32.18.jpg

    Second Test
    Gain:2dBi
    Wire diameter:0.5MM
    Spring outer diameter:5.5MM
    Total Length include soldering part: unknown
    Coil Turns: 17
    Range around 20ish meter while gateway was inside house.
    0_1577488748610_2019-12-27 22.31.27.jpg

    are there any customisations i can try in sketches to improve range? i.e max power level in sketch?

    #define MY_RFM69_MAX_POWER_LEVEL_DBM 100u
    
    Troubleshooting

  • RFM69HCW with ESP8266 Gateway and relay module
    pihomeP pihome

    adding following line to sketch fixed the reboot issues for me, but signal problem is still here :(

    #define MY_RFM69_NEW_DRIVER```
    Troubleshooting

  • RFM69HCW with ESP8266 Gateway and relay module
    pihomeP pihome

    @mfalkvidd thank you for quick reply. any chance of no signal after 20ish meeter (just outside the house) related to same issue?

    Troubleshooting

  • RFM69HCW with ESP8266 Gateway and relay module
    pihomeP pihome

    Hi all,
    i have built very first RFM gateway, sensors and relay module, ds18b20 sensor module works ok, but when i turn on relay module (without relay connected) my gateway reboot itself see below serial output form esp, nothing special in sketch its all standard.

    0_1576786864730_RFM69HCW with ESP8266.jpg

    7915 TSF:MSG:READ,102-102-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    7977 TSF:MSG:BC
    7993 TSF:MSG:FPAR REQ,ID=102
    8024 TSF:CKU:OK,FCTRL
    8047 TSF:MSG:GWL OK
    
    Soft WDT reset
    
    >>>stack>>>
    
    ctx: cont
    sp: 3ffffc40 end: 3fffffd0 offset: 01b0
    3ffffdf0:  00000024 3ffef19c 3ffeee0c 40202c95  
    3ffffe00:  3ffeec9d 00000066 3ffeee0c 402030d4  
    3ffffe10:  0000003d 00000066 3ffeee0c 40203134  
    3ffffe20:  3ffeec9d 00000066 3ffeee0c 4020335c  
    3ffffe30:  00002887 00000008 00000001 402027a4  
    3ffffe40:  002881cc 3ffef2e0 40244010 000027bf  
    3ffffe50:  00000066 3ffeee0c 00000002 40202be0  
    3ffffe60:  3ffeec9d 00000008 00000005 000000c8  
    3ffffe70:  3a465354 3a47534d 00000000 00000008  
    3ffffe80:  00000066 3ffeedf0 3ffeec9d 40203485  
    3ffffe90:  742c333d 702c373d 3ffeec9d 40204617  
    3ffffea0:  303d6773 00000a3a 4bc6a7f0 00000000  
    3ffffeb0:  00000000 4bc6a7f0 55810624 00000000  
    3ffffec0:  00000000 4bc6a7f0 5a1cac08 00000000  
    3ffffed0:  00000000 00000000 4bc6a7f0 00000000  
    3ffffee0:  40105460 002aa322 3ffef1d4 00000000  
    3ffffef0:  3ffee630 3ffef1d4 3ffe8524 3ffef1d4  
    3fffff00:  3ffeedf4 3ffeedf0 40203d7c 3ffeedf0  
    3fffff10:  3ffeedf4 3ffeec9d 00000066 40204760  
    3fffff20:  3ffeedf4 00000066 3ffeecbe 40204e05  
    3fffff30:  00000007 00000000 00000000 00000000  
    3fffff40:  3ffeec68 3ffef19c 3ffeee0c 3ffeec44  
    3fffff50:  00000003 000000ff 00000066 00000000  
    3fffff60:  000000ff 00000000 3ffeedf4 00000007  
    3fffff70:  3fffdad0 00000000 3ffeece0 3ffeec44  
    3fffff80:  3fffdad0 00000000 00000005 40204e70  
    3fffff90:  3fffdad0 00000000 3ffeec28 40204e8c  
    3fffffa0:  00000000 00000000 3ffeec28 40205773  
    3fffffb0:  3fffdad0 00000000 3ffeec28 40205a8c  
    3fffffc0:  feefeffe feefeffe 3ffe8524 4010010d  
    <<<stack<<<
    ⸮⸮⸮⸮z9⸮⸮59 MCO:BGN:INIT GW,CP=RRNGE---,REL=255,VER=2.3.1
    110 TSF:LRT:OK
    126 TSM:INIT
    140 TSF:WUR:MS=0
    160 TSM:INIT:TSP OK
    scandone
    state: 0 -> 2 (b0)
    state: 2 -> 3 (0)
    state: 3 -> 5 (10)
    add 0
    aid 3
    cnt 
    
    connected with myfi, channel 7
    dhcp client start...
    ip:192.168.1.12,mask:255.255.255.0,gw:192.168.1.1
    376 TSM:INIT:GW MODE
    398 TSM:READY:ID=0,PAR=0,DIS=0
    430 MCO:REG:NOT NEEDED
    456 MCO:BGN:STP
    *WM: 
    *WM: AutoConnect
    *WM: Connecting as wifi client...
    *WM: Already coWebServer started...
    *WM: freeing allocated params!
    551 MCO:BGN:INIT OK,TSP=1
    635 TSM:READY:NWD REQ
    3159 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
    4234 TSF:MSG:READ,102-102-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    4295 TSF:MSG:BC
    4312 TSF:MSG:FPAR REQ,ID=102
    4342 TSF:CKU:OK,FCTRL
    4365 TSF:MSG:GWL OK
    
    Soft WDT reset
    
    >>>stack>>>
    
    ctx: cont
    sp: 3ffffc80 end: 3fffffd0 offset: 01b0
    3ffffe30:  001d2768 00000008 00000066 402027a4  
    3ffffe40:  00151fda 3ffef2e0 40244010 0000188d  
    3ffffe50:  00000066 3ffeee0c 00000005 40202bfe  
    3ffffe60:  3ffeec9d 00000008 00000005 000000c8  
    3ffffe70:  3a465354 3a47534d 00000000 00000008  
    3ffffe80:  00000066 3ffeedf0 3ffeec9d 40203485  
    3ffffe90:  742c333d 702c373d 3ffeec9d 40204617  
    3ffffea0:  303d6773 00000a3a 4bc6a7f0 00000000  
    3ffffeb0:  00000000 4bc6a7f0 e8b43958 00000000  
    3ffffec0:  00000000 4bc6a7f0 f0a3d70a 00000000  
    3ffffed0:  00000000 00000000 4bc6a7f0 00000000  
    3ffffee0:  40105460 00162c97 3ffef1d4 00000000  
    3ffffef0:  3ffee630 3ffef1d4 3ffe8524 3ffef1d4  
    3fffff00:  3ffeedf4 3ffeedf0 40203d7c 3ffeedf0  
    3fffff10:  3ffeedf4 3ffeec9d 00000066 40204760  
    3fffff20:  3ffeedf4 00000066 3ffeecbe 40204e05  
    3fffff30:  00000007 00000000 00000000 00000000  
    3fffff40:  3ffeec68 3ffef19c 3ffeee0c 3ffeec44  
    3fffff50:  00000003 000000ff 00000066 00000000  
    3fffff60:  000000ff 00000000 3ffeedf4 00000007  
    3fffff70:  3fffdad0 00000000 3ffeece0 3ffeec44  
    3fffff80:  3fffdad0 00000000 00000005 40204e70  
    3fffff90:  3fffdad0 00000000 3ffeec28 40204e8c  
    3fffffa0:  00000000 00000000 3ffeec28 40205773  
    3fffffb0:  3fffdad0 00000000 3ffeec28 40205a8c  
    3fffffc0:  feefeffe feefeffe 3ffe8524 4010010d  
    <<<stack<<<
    ⸮⸮⸮⸮z9⸮⸮60 MCO:BGN:INIT GW,CP=RRNGE---,REL=255,VER=2.3.1
    112 TSF:LRT:OK
    128 TSM:INIT
    141 TSF:WUR:MS=0
    161 TSM:INIT:TSP OK
    scandone
    state: 0 -> 2 (b0)
    state: 2 -> 3 (0)
    state: 3 -> 5 (10)
    add 0
    aid 3
    cnt 
    
    connected with myfi, channel 7
    dhcp client start...
    ip:192.168.1.12,mask:255.255.255.0,gw:192.168.1.1
    377 TSM:INIT:GW MODE
    399 TSM:READY:ID=0,PAR=0,DIS=0
    432 MCO:REG:NOT NEEDED
    457 MCO:BGN:STP
    *WM: 
    *WM: AutoConnect
    *WM: Connecting as wifi client...
    *WM: Already coWebServer started...
    *WM: freeing allocated params!
    552 MCO:BGN:INIT OK,TSP=1
    636 TSM:READY:NWD REQ
    1878 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
    
    
    Troubleshooting

  • What did you build today (Pictures) ?
    pihomeP pihome

    @pihome just realized one big blunder, The NSS, MOSI and SCK are not 5V tolerant on RFM69. hence need level converter :(
    i was wondering is there any one ic can can do instead i have to used BSS138 per pin.

    General Discussion

  • What did you build today (Pictures) ?
    pihomeP pihome

    working on GPIO MySensors Gateway

    1_1575232762237_PiHome GPIO Gateway_v001.png 0_1575232762236_PiHome GPIO Gateway_v001 v3.png

    General Discussion

  • Arduino with voltage regulator
    pihomeP pihome

    thank you guys for explaining this, some times asking question is easy then googling around and finding contradicting answers.
    :+1:

    Hardware

  • Arduino with voltage regulator
    pihomeP pihome

    @bgunnarb thank you for explaining

    Hardware

  • Arduino with voltage regulator
    pihomeP pihome

    Hi All,
    first of all sorry if its way basic question but i need bit of advise before i go crazy over voltage regulator and how people are using it.
    if you look at typical applications for the mic5219 regulator it has no capacitor on input and on output it 2.2uf tantalum and 470pf but when i look at all arduino board design and schematics i see 10uf on input, and on output 10uf, 0.1uf capacitor. Can someone with better hardware understanding shed some light on this for me

    sparkfun schematic
    https://cdn.sparkfun.com/datasheets/Dev/Arduino/Boards/Arduino-Pro-Mini-v14.pdf

    voltage regulator data-sheet
    https://cdn-shop.adafruit.com/product-files/3081/mic5219.pdf

    Hardware

  • What did you build today (Pictures) ?
    pihomeP pihome

    Very first attempt to solder smd components on pcb with hot air soldering station. lots of mistakes but i m learning...

    0_1571951970783_pihome_smd_temperature_sensors_02.jpg

    0_1571951948255_pihome_smd_temperature_sensors_01.jpg

    General Discussion

  • Raspberry Pi3 alternative?
    pihomeP pihome

    @alowhum
    All of them from Amazon sold by Amazon, i m out of ideas how and where to get genuine sd cards

    Controllers

  • Raspberry Pi3 alternative?
    pihomeP pihome

    may be its time for Raspberry pi foundation to put some storage on the board, these fake cards are very unreliable and i think small pc is better option then Raspberry pi at this stage.

    Controllers
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular