π¬ MysXLedDimmer
-
@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).
-
@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).
-
@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.
-
@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.
@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.
-
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!
-
@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.
@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.
-
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.
-
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. -
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.@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! -
@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!@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. :)