Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. boylucky
    3. Best
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by boylucky

    • RE: 4MHz bootloaders

      Looks I succeed. I had to change the LOW fuses to correct value. I modified the APM Optiboot bootloader to accept 4MHz external oscilator. Here is the correct settings which need to be add to the boards.txt file:

      ##############################################################
      
      apm96_4MHz.name=APM Optiboot external 4MHz noBOD 38400baud
      
      apm96_4MHz.upload.tool=avrdude
      apm96_4MHz.upload.protocol=arduino
      apm96_4MHz.upload.maximum_size=32256
      apm96_4MHz.upload.speed=38400
      apm96_4MHz.bootloader.tool=avrdude
      apm96_4MHz.bootloader.low_fuses=0xfd
      apm96_4MHz.bootloader.high_fuses=0xde
      apm96_4MHz.bootloader.extended_fuses=0x07
      apm96_4MHz.bootloader.path=optiboot_v50
      apm96_4MHz.bootloader.file=atmega328_1a_4MHz.hex
      apm96_4MHz.bootloader.unlock_bits=0x3F
      apm96_4MHz.bootloader.lock_bits=0x2F
      apm96_4MHz.build.mcu=atmega328p
      apm96_4MHz.build.f_cpu=4000000L
      apm96_4MHz.build.core=arduino
      apm96_4MHz.build.variant=standard
      
      ##############################################################
      

      I had to change following lines:
      apm96_4MHz.upload.speed=38400
      apm96_4MHz.bootloader.low_fuses=0xfd
      apm96_4MHz.build.f_cpu=4000000L

      I also changed the file name to: apm96_4MHz.bootloader.file=atmega328_1a_4MHz.hex but the file is exactely the same as the original one. I also changed the name in the beginning of each line.

      Currently looks it is working well. I will add more info later if all runs ok after some testing.

      And here is also nice FUSES configurator.

      posted in Development
      boylucky
      boylucky
    • RE: Serial Gateway + NRF24 with sleep mode enabled there

      @gohan - you are right. There is not much sense to have the gateway on the garden. To explain it a bit more. I wanted to create a device which would mix a LPWAN with NRF24. I already have some code for it which do not use mysensors at all. It is still work in progress but it collect data from couple of NRF24 and every 15 minutes it send the data via LPWAN Sigfox module to backend. I was thinking to implement similar solution with mysensors libaries. I understand that it does not give much sense to do so (especially in case that Sigfox LPWAN is very limited by transmited data and lets say no download link at all), but I would like to give it a try. I also need to say that I am new in mysensors and I did first testing of it just today 😊

      Another thing is that if I would be able to access some wifi network on the garden I would use ESP8266 as gateway with NRF24 if possible. Then I can imagine that it would give sense to have such device which would have power down mode enabled for most of the time which I can see like a good solution for smaller systems.

      But like I said, I am new in mysensors project so maybe I do not have enough overview about it yet, then sorry for asking stupid questions here.

      posted in General Discussion
      boylucky
      boylucky
    • RE: Serial Gateway + NRF24 with sleep mode enabled there

      @gohan - I am trying to build a solution for more scenarious. For a small garden with just couple of sensors I can imagine that the LPWAN with NRF24 will be good enough. Then for bigger gardens would be better to use long range radious or some other soulutions. In my case I am about 500m from the garden. There are buildings and trees between my home and garden. I wanted to use some cheap solution. So I wanted to make it with NRF24. I tested the long range NRF24 but it was not reliable for this distance with buildings and trees between. But like I said I would like to make a project where more solutions will be available to fit more scenarious to let people re-use it.

      posted in General Discussion
      boylucky
      boylucky
    • RE: does MySensors use a guaranteed transport protocol or a best effort ?

      @mfalkvidd and @hek - ok, thanks for this info 🙂 I did not know that as I am new in mysensors. Good to know that it is already implemented in mysensors.
      Thanks.

      posted in General Discussion
      boylucky
      boylucky
    • RE: Serial Gateway + NRF24 with sleep mode enabled there

      @wikibear - no problem 🙂

      posted in General Discussion
      boylucky
      boylucky
    • MQTT vs Serial Gateway

      Hi all,
      I am sory for this stupid question but I still do not understand correctly the MQTT. Currently I build my first mysensors network with SerialGateway connected to RPi with Domoticz and it is working ok. I was just wondering what is the MQTT gateway good for and what are the differences and advantages when compared with SerialGateway. Does MQTT gateway affect only the communication between Controller (RPi with Domoticz) and MQTT gateway or it also have impact on the Gateway and nodes communication? Is the whole system more stable with MQTT or what is it good for in comparison with serial gateway.

      Thanks in advance for your explanation.

      posted in General Discussion
      boylucky
      boylucky