I am new in the Toradex and Yocto world.
I have a question to the pin configuration. In University I only worked with an arduino.
Our company has designed an own carrier board for our Colibri iMx6ULL module. I have watched many tutorial videos from Toradex but what i haven’t undersand is, how and where i make the pin configruation so i can “tell” my carrier board where i want to have an input or an output. Afterwards i have to define where and how much voltage i have on the PCB terminal on my carrier board to controll the components I have connected to it (like a fan or an led etc).
Thanks and best regards,
Hi @ortnerFuE !
To deal with pin configuration, you need to work with Device Trees and possibly Device Tree Overlays as well.
Please take a look at our Documentation about Device Trees:
Also, we have some webinars about Device Tree that you might find helpful:
I would like to also recommend you take a look at some of Toradex Partners that provide training so you can have a smoother and faster learning curve:
Each I/O pin on the NXP i.MX 6ULL SoC can be configured to one of up to ten alternate functions. Generally, the direction of the pin is determined by the selected function. For more information, please refer to the links provided by Henrique. Additionally, most of these pins can function as standard GPIOs (General Purpose I/O, also known as Digital I/O). When a pin is configured as a GPIO, its direction can be controlled from the user space. For further details, please refer to this link.
The voltage levels on the PCB terminals are determined by the carrier board’s schematic. Most of the module’s pins operate at 3.3V (refer to the module datasheet for specifics) and do not provide sufficient power to control a significant load, such as a fan. Therefore, you’ll need to utilize some form of power switch, like a transistor, MOSFET, or power IC.