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. OpenHardware.io
  3. 💬 MysXLedDimmer

💬 MysXLedDimmer

Scheduled Pinned Locked Moved OpenHardware.io
17 Posts 6 Posters 3.1k Views 5 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.
  • openhardware.ioO openhardware.io

    https://www.openhardware.io/view/52/MysXLedDimmer

    scalzS Offline
    scalzS Offline
    scalz
    Hardware Contributor
    wrote on last edited by
    #2

    roooh...that's cool :)

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TimO
      Hero Member
      wrote on last edited by
      #3

      @tbowmo I really like this (and your other) designs, because for a beginner like me, they are easy to modify and to extend.

      I'm currently designing a 3 channel Version with MYSX, but I'm not sure the IRLML2502 is suited for my task.

      The maximum continous load needed is 2 A at 12 V (~24 Watts LED). The voltage at the gate (from the atmega) is 3.3 V.

      According to the datasheet the maximum current for this part is 4 A (pulsed, with a given duty circle).

      I feel that this tiny little MOSFET is not capable to drive 12V and 2 A continous, but I'm not yet smart enough to calculate it.

      I'm currently using IRLIZ44N which work fine with ~5 V at the gate but for my new layout I will omit the 5V line and will use 3.3 V and therefore need to switch the MOSFET.

      So my questions:

      1. Have you thought (calculated) the current your design is capable to handle?

      2. Does someone has a link for me where the calculation for my "feelings" are described in an easy way? I know the difference between I, U & R (most of the times) but I'm no expert and still try to learn. ;-)

      AWIA 1 Reply Last reply
      0
      • tbowmoT Offline
        tbowmoT Offline
        tbowmo
        Admin
        wrote on last edited by
        #4

        @TimO

        I haven't done any calculations on the transistor, just looked at some existing designs, where it was used..

        I haven't even come to the point where I build it yet.. (even though it has been on openhardware for quite some time now). currently I'm waiting for a first batch of prototype pcbs with the sensebender micro mk2, where this board also is incorporated on the same panel.

        Also, components are on their way from china.. :)

        btw. MysX only specifies 2 PWM channels, so where do you fit in the extra for a 3 channel dimmer board?

        1 Reply Last reply
        0
        • T TimO

          @tbowmo I really like this (and your other) designs, because for a beginner like me, they are easy to modify and to extend.

          I'm currently designing a 3 channel Version with MYSX, but I'm not sure the IRLML2502 is suited for my task.

          The maximum continous load needed is 2 A at 12 V (~24 Watts LED). The voltage at the gate (from the atmega) is 3.3 V.

          According to the datasheet the maximum current for this part is 4 A (pulsed, with a given duty circle).

          I feel that this tiny little MOSFET is not capable to drive 12V and 2 A continous, but I'm not yet smart enough to calculate it.

          I'm currently using IRLIZ44N which work fine with ~5 V at the gate but for my new layout I will omit the 5V line and will use 3.3 V and therefore need to switch the MOSFET.

          So my questions:

          1. Have you thought (calculated) the current your design is capable to handle?

          2. Does someone has a link for me where the calculation for my "feelings" are described in an easy way? I know the difference between I, U & R (most of the times) but I'm no expert and still try to learn. ;-)

          AWIA Offline
          AWIA Offline
          AWI
          Hero Member
          wrote on last edited by AWI
          #5

          @TimO I think you are safe ;-) To translate this to I, U, & R, look at these pictures taken from the datasheet
          0_1489588981104_upload-06a955aa-a5df-4d95-a763-b3ca87ad4efc
          At 3V gate source -voltage Rds is less than 0.04 Ohm. With a current of 2A the dissipation in the FET will be I^2 * R = 2^2 * 0.04 = 160mW

          T 1 Reply Last reply
          0
          • AWIA AWI

            @TimO I think you are safe ;-) To translate this to I, U, & R, look at these pictures taken from the datasheet
            0_1489588981104_upload-06a955aa-a5df-4d95-a763-b3ca87ad4efc
            At 3V gate source -voltage Rds is less than 0.04 Ohm. With a current of 2A the dissipation in the FET will be I^2 * R = 2^2 * 0.04 = 160mW

            T Offline
            T Offline
            TimO
            Hero Member
            wrote on last edited by
            #6

            @AWI Thank you! With a maximum rating of 1.25W for this tiny FET I'm indeed safe.

            @tbowmo I'm using MYSX_D4_INT for the third FET. I've looked at @Anticimex MySensors node where it is connected to Arduino Pin 3.

            AnticimexA 1 Reply Last reply
            0
            • T TimO

              @AWI Thank you! With a maximum rating of 1.25W for this tiny FET I'm indeed safe.

              @tbowmo I'm using MYSX_D4_INT for the third FET. I've looked at @Anticimex MySensors node where it is connected to Arduino Pin 3.

              AnticimexA Offline
              AnticimexA Offline
              Anticimex
              Contest Winner
              wrote on last edited by
              #7

              @TimO I am pretty sure I don't have a board using MYSX 2.x

              Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

              T 1 Reply Last reply
              0
              • AnticimexA Anticimex

                @TimO I am pretty sure I don't have a board using MYSX 2.x

                T Offline
                T Offline
                TimO
                Hero Member
                wrote on last edited by
                #8

                @Anticimex correct, but you have a board with MYSX 1.5 which I've studied. Sadly there is no other MYSX Atmega328p based board (yet).

                AnticimexA 1 Reply Last reply
                0
                • T TimO

                  @Anticimex correct, but you have a board with MYSX 1.5 which I've studied. Sadly there is no other MYSX Atmega328p based board (yet).

                  AnticimexA Offline
                  AnticimexA Offline
                  Anticimex
                  Contest Winner
                  wrote on last edited by
                  #9

                  @TimO this is true. I am also the one that the main culprit of the MYSX pinout. I agree with @tbowmo and don't recall three pwm pins though. And I know for sure I have no pwm peripherals on my board, but perhaps I misunderstood your reference as a reply to @tbowmo's remark.

                  Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                  T 1 Reply Last reply
                  0
                  • AnticimexA Anticimex

                    @TimO this is true. I am also the one that the main culprit of the MYSX pinout. I agree with @tbowmo and don't recall three pwm pins though. And I know for sure I have no pwm peripherals on my board, but perhaps I misunderstood your reference as a reply to @tbowmo's remark.

                    T Offline
                    T Offline
                    TimO
                    Hero Member
                    wrote on last edited by
                    #10

                    @Anticimex I'm sorry for the confusion! I've not found any mapping from the MYSX pins to the arduino pins, so I've looked into your board mentioned above and there I found out, that D4_INT is connected to PD3/D3 on the Atmega328p/Arduino Pro Mini. D3 is also capable of PWM. I know, this won't mean that D4_INT on other boards will be capable of PWM.

                    AnticimexA 2 Replies Last reply
                    0
                    • T TimO

                      @Anticimex I'm sorry for the confusion! I've not found any mapping from the MYSX pins to the arduino pins, so I've looked into your board mentioned above and there I found out, that D4_INT is connected to PD3/D3 on the Atmega328p/Arduino Pro Mini. D3 is also capable of PWM. I know, this won't mean that D4_INT on other boards will be capable of PWM.

                      AnticimexA Offline
                      AnticimexA Offline
                      Anticimex
                      Contest Winner
                      wrote on last edited by
                      #11

                      @TimO I see. But the pin on MYSX you connected it to is not marked as pwm capable so if you have a daughter board that expect pwm on that pin it would not be "MYSX compatible" as in that it would not work on other MYSX motherboards.

                      Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                      1 Reply Last reply
                      0
                      • tbowmoT Offline
                        tbowmoT Offline
                        tbowmo
                        Admin
                        wrote on last edited by
                        #12

                        @TimO

                        It's purely up to the person who is creating a board, how to map pins for the MysX connector! What is done on the board by @Anticimex is probably not what I would do, if I made a board.

                        What MysX states, is the capabilities the different pins should have, not how they are mapped to an atmega328, atsamd21, esp8266 or stm32 micro processor!

                        1 Reply Last reply
                        0
                        • T TimO

                          @Anticimex I'm sorry for the confusion! I've not found any mapping from the MYSX pins to the arduino pins, so I've looked into your board mentioned above and there I found out, that D4_INT is connected to PD3/D3 on the Atmega328p/Arduino Pro Mini. D3 is also capable of PWM. I know, this won't mean that D4_INT on other boards will be capable of PWM.

                          AnticimexA Offline
                          AnticimexA Offline
                          Anticimex
                          Contest Winner
                          wrote on last edited by
                          #13

                          @TimO my board maps the pin functions described by MYSX to corresponding pins on the atmega. That does not mean you have to map it just like that, but the principle of MYSX is that a daughter board can be designed based on the MYSX pin functions and therefore expect a motherboard to be able to provide the logic functions described by each pin.

                          Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                          1 Reply Last reply
                          0
                          • T Offline
                            T Offline
                            TimO
                            Hero Member
                            wrote on last edited by
                            #14

                            I do understand that! :D For a Atmega328 the possibility is high that D4_INT is mapped to D3.
                            The atsamd21 is capable of PWM on every pin?! (I've no experience with atsam).

                            I will only need two dimmer and one switch port. So, if I wanted my board to be "MYSX compatible" which digital output pin on the MYSX do you suggest to use? As it is a mother-/daughter board design I'm working on the complete 2.6 MYSX is available.

                            I'm tinkering on a LED dimmer daughter board that will be able to get stacked on top of a atmega328p motherboard. The atmega328p motherboard is based on the layout (size, position of MYSX ..) of the sensebender gateway. The idea is, that the daughterboard may be used on top of the sensebender gateway if a mcu with more horse power is needed, for example for a combination of gateway & sensors. The atmega328p based board is suited for simpler tasks.

                            1 Reply Last reply
                            0
                            • AnticimexA Offline
                              AnticimexA Offline
                              Anticimex
                              Contest Winner
                              wrote on last edited by
                              #15

                              Well, my board is fully compatible, but mind that it uses MYSX 1.x so you need to have a close look at the pinout of MYSX 2.x.
                              I am not sure what you mean with "which digital output pin on the MYSX". All pins marked 'D' are digital in nature. You can use anyone you want on your daughterboard.
                              Your mainboard is expected to connect for example, D4_INT to a pin that is capable of interrupts and digital IO. Which one, is up to you as motherboard designer.

                              Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                              T 1 Reply Last reply
                              0
                              • AnticimexA Anticimex

                                Well, my board is fully compatible, but mind that it uses MYSX 1.x so you need to have a close look at the pinout of MYSX 2.x.
                                I am not sure what you mean with "which digital output pin on the MYSX". All pins marked 'D' are digital in nature. You can use anyone you want on your daughterboard.
                                Your mainboard is expected to connect for example, D4_INT to a pin that is capable of interrupts and digital IO. Which one, is up to you as motherboard designer.

                                T Offline
                                T Offline
                                TimO
                                Hero Member
                                wrote on last edited by
                                #16

                                @Anticimex okay! So I will stick to D4_INT for the third channel and it will be MYSX compatible as long as my daughter board uses it as digital io. In some combinations, like your MySensors node, the sensebender gateway and the board I'm working on it is also capable of PWM on this pin, but that is not how it is specified by the specification. That's okay for me!
                                I really like the idea of the MYSX and hope more boards will support it in the future!

                                AnticimexA 1 Reply Last reply
                                0
                                • T TimO

                                  @Anticimex okay! So I will stick to D4_INT for the third channel and it will be MYSX compatible as long as my daughter board uses it as digital io. In some combinations, like your MySensors node, the sensebender gateway and the board I'm working on it is also capable of PWM on this pin, but that is not how it is specified by the specification. That's okay for me!
                                  I really like the idea of the MYSX and hope more boards will support it in the future!

                                  AnticimexA Offline
                                  AnticimexA Offline
                                  Anticimex
                                  Contest Winner
                                  wrote on last edited by
                                  #17

                                  @TimO Yep, that sounds right. It will probably be quite common that the micro will have more capabilities on the various MYSX pins than the MYSX spec states the pin in question can handle, but I tried to spec MYSX to be as compatible as possible with a range of micros so it is quite "stupid" in it's pin featureset.
                                  It is basically the same reasoning for the connector. It is large and bulky and hard to use in really small boards, but I wanted it to be easy to use, and easy to source. And it provide a nice debug interface when left unconnected. Tradeoffs, tradeoffs. :)

                                  Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                                  1 Reply Last reply
                                  0
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  20

                                  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