LGT8F328P and MySensors



  • I bought some of the LGT8F328P arduino "clones", since they have some improvements over the normal nanos.
    Unfortunately they did not work with mysensors. The serial output was nonsense.
    Is it possible to use them for mysensors? how is that possible?
    Greets patrick



  • @paede said in LGT8F328P and MySensors:

    LGT8F328P

    There are some instructions on this page? Here's another link that might be helpful.

    I know nothing about this device other than the google search I just did on. Some red flags went up for me. The use of software for the third party board, and a newbie extoling its virtues. (astroturfing)

    Even if you get it running, it may not work with MySensors. I bought three official Nano Every's with your same hopes and expectations. It claimed to be a direct replacement/upgrade. First, the MySensors nRF24 software did not work. Then I was unable to find a reliable way to put the Every into deep sleep.

    I've had pretty good luck with the Nano clones on AliExpress. I'd recommend getting the RF Nano because the radio is built in. Before I put one into production, I spray it with electrical lacquer to prevent corrosion. That said, as with everything else you get on AliExpress, caveat emptor.

    It will be appreciated if you get it working and present the details here as to how you did it.

    -OSD



  • I use a lot of arduino nanos with mysensors in my home. I am not a newbie in mysensors. I could't find my old mysensors forum account šŸ˜ž

    LGT8F328P works fine on other arduino programms. There must be something with mysensors that isn't compatible. I guess it has to do with the timing and the greater frequency of 32mhz.



  • It seems to be the same problem as in this thread: https://forum.mysensors.org/topic/11935/problem-with-lgt-rf-nano/8

    I'll try the KooLru Library and will report my results.

    PS: I found my original mysensors account šŸ™‚ and deleted the new one.



  • The KooLru Library (https://github.com/KooLru/MySensors/tree/LGT8F) worked. It would be nice to have it included in the normal MySensors Library



  • Hello

    I still didn't figure it out exactly, what is the issue with LGT8F328P and arduino, but for start, it can work, if you define 4x faster baud rate. So I define MY_BAUD_RATE 76800 and connect terminal with 19200, and it works. LGT is started in 8 MHz by default, and it looks like this is not corrected with mysensors. But this only helped for serial port, because later I had issues with DHT library timings.

    If I later change speed to 16 MHz and start serial port again, it works as expected:

    noInterrupts();
    CLKPR = 0x80;
    CLKPR = 0x01;
    interrupts();
    Serial.begin(19200);


Log in to reply
 

Suggested Topics

  • 87
  • 2
  • 2
  • 6
  • 2
  • 3

20
Online

11.6k
Users

11.2k
Topics

113.0k
Posts