How compatible are the "compatible" Arduino boards and peripherals

falexandru:
I worked hard to code my LCD 1602. Only to find out at the time of making of another device that the LCD I procured for the new device is of a different type, although marketed under the same name and characteristics.

And this is just an example.

The main strength - open source - looks like rising the problem of compatibility, from my (of course) limited experience.

Question is: is there any way to make sure the boards (compatible ones or even clones) are really similar? Could the licence include the obligation to publish certain characteristics in order to make sure compatibility is ensured?

There are no "licenses". You cannot even rely on what is stamped on what you buy. The ratings of the little blue relays are perfect example.

There is certainly a way to be sure what you order is what you want. That is to only buy from a stocking distributor.

Paul