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
  1. Home
  2. Hardware
  3. Suppprt PIC MCU

Suppprt PIC MCU

Scheduled Pinned Locked Moved Hardware
microcontrollermcupic
4 Posts 3 Posters 998 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ramack
    wrote on last edited by
    #1

    Hello,

    I am new here and was redirected to mysensors from openhab. Mysensors seems like a great platform that I was looking for. Thanks for building this up.

    Due to historical reasons and the availability of debugger and MCUs on my side, I'd prefer Microchip PIC MCUs over the AVRs. Is it feasible to investigate into that? - the mysensors core seems to be implemented in C++ which might be compilable to C via clang/llvm and then with the XC8 compiler to small PICs Binary code.

    Did any one try that already? Any one else interested in taht?

    1 Reply Last reply
    0
    • bjacobseB Offline
      bjacobseB Offline
      bjacobse
      wrote on last edited by
      #2

      not to disappoint you, but the workload to port from ATmeag328 to a PIC seems to require much workload compared to purchase ATmeaga328 from China...

      1 Reply Last reply
      0
      • dbemowskD Offline
        dbemowskD Offline
        dbemowsk
        wrote on last edited by
        #3

        Though I can see where it may open up new avenues, I agree with @bjacobse. When you can buy an arduino pro mini for around $1 to $2 US, why would anyone waste the time?

        Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
        Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

        1 Reply Last reply
        0
        • R Offline
          R Offline
          ramack
          wrote on last edited by
          #4

          Thanks for the answers. For sure it is possible to buy an ATmega and even a full-featured debugger would be acceptable compared to the effort of porting. But still, I am very biased towards the PIC without logical or economical arguments.

          I did not yet work with the mysensors libraries and only browsed quickly through the github repo. Maybe someone can give me a few hints to estimate the effort deeper than just claiming it as "much workload"?

          What I see so far is:

          • make the C++ code compile (translate to C with clang/llvm and compile with the XC8 compiler)
          • create a new HAL (in hal/architecture) which seems not too much effort for making it initially working

          Questions:

          • Do I see it right, that there is a linux-port available? -> I would expect much more effort to port from AVR to linux than to port it to a different MCU
          • What about the licensing? It looks like the code is GPLv2, but in the CLA it seem that contributors need to give away their rights on the contributions and that mysensors can even redistribute the code under another license - which seems completely against the principles of the GPL. Can someone explain that in more detail?
          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          11

          Online

          11.7k

          Users

          11.2k

          Topics

          113.1k

          Posts


          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
          • Login

          • Don't have an account? Register

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