Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 6 of 6

Thread: Add support for Teensy to MySensors library

  1. #1
    Junior Member
    Join Date
    Dec 2016
    Location
    Rio de Janeiro - Brazil
    Posts
    4

    Add support for Teensy to MySensors library

    Hi Paul,

    Always thanks for the fantastic work.

    I am using an old and trysty Teensy 3.1 as a home energy monitor using eMonLib as a basis. It monitors 3 mains phases (Voltage and Current) and 6 output circuits (Current), using Pedvide's ADC to speed things up.

    Now I need to integrate it with my Domoticz installation which runs on a MySensors mesh network which does not support Teensy at all. Can you take a look at this library to see how difficult it would be to add Teensy support for it ? It runs mainly on Arduinos so I feel that the extended capabilities of the Teensy architecture would enable the development of more capable sensors such as the one I am building right now. There were calls in the past in the library forum for other platforms, Teensy included (https://forum.mysensors.org/topic/52...e-due-teensy-3) but did not go further.

    Perhaps you would prefer to assemble a team of other interested Teensy and MySensors users to do the conversion job with your support. I would like to be part of it.

    The information on the library:

    Github link ==> https://github.com/mysensors

    Home Page ==> https://www.mysensors.org/

    Best regards,

    Luiz Roberto Rocha
    Rio de Janeiro
    Brazil

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,089
    I'm looking at this library now. Seems it needs a special hardware config file for each board.

    I'll try to cobble one together soon. But I don't have the hardware (or time) for much testing. Can you tell me which sensors and which examples you're interested in using? This lib has *many* examples! I'll test with that example first.....

  3. #3
    Junior Member
    Join Date
    Dec 2016
    Location
    Rio de Janeiro - Brazil
    Posts
    4
    Thanks Paul.

    Yes, you're more than right. MySensors is an ecosystem on its own.

    There are several features I don't expect to have ported to Teensy soon such as OTA updates, a specific low-power bootloader, a communications gateway, support for several other radios besides NRF24L01+, etc. I believe this could come in time later, as soon as basic Teensy-as-a-node support is achieved.

    You could start with the MotionSensor example and simulate the input with just a switch.

    And I would be happy to try to compile and test everything else as soon as you have a beta of the library :-)
    Last edited by luizrrocha; 03-14-2017 at 08:29 PM.

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,089
    Ok, here's a first attempt.

    https://github.com/PaulStoffregen/My...0762fb92aa492a

    Please let me know how this works for you? Should I submit it as a pull request back to the official MySensors?

  5. #5
    Junior Member
    Join Date
    Dec 2016
    Location
    Rio de Janeiro - Brazil
    Posts
    4
    Great, works right out of the box.

    Please go ahead and ask for a pull request. We can even try to work on the other parts (I'd love to see the Arduino OTA which is part of the Bootloader ported to Teensy :-)

    GREAT WORK !!!

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,089
    I've submitted a pull request to MySensors.

    https://github.com/mysensors/MySensors/pull/791

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •