How I use multiple Teensy 4.1 devices and platformIO in visual studio

23 views
Skip to first unread message

Michael Wimble

unread,
Jan 5, 2026, 3:25:58 PM (6 days ago) Jan 5
to hbrob...@googlegroups.com
I currently have 3 custom boards I made, each having a Teensy 4.1 device
plugged into them. In Visual Studio, I compile and download to the
boards. The boards are called board1, board2 and elevator. I have
aliases for, e.g., compileBoard1 and buildBoard1.

Here is a document I wrote that describes how I set up platformIO, how I
create udev rules to make symbolic names for the devices so I'm not
dependent on changing /dev/ttyAMC* names, and how I create aliases in
.bashrc to make this all work. There is a lot more stuff I do in
platformIO that is specific to my hardware and software, but this should
help you get going if you need to do something similar.

PLATFORMIO_SETUP.pdf

Alan Timm

unread,
Jan 5, 2026, 3:33:14 PM (6 days ago) Jan 5
to HomeBrew Robotics Club
That section on UDEV rules is gold!  I've been wondering how that's done.

Before that I always have to make sure that everything's plugged in the exact same order and nothing gets in the way of enumerating them, otherwise you have no idea which peripheral is at which serial port.

Alfie has 3 microros boards that communicate over serial-over-usb.

With UDEV rules you never have to wonder if you're connecting to the correct board.

Thanks!

Alan

Sergei Grichine

unread,
Jan 5, 2026, 7:51:12 PM (6 days ago) Jan 5
to hbrob...@googlegroups.com
Just in case you need a bit more info on UDEV rules, here is the doc and some links:


Best Regards,
-- Sergei


--
You received this message because you are subscribed to the Google Groups "HomeBrew Robotics Club" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hbrobotics+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/hbrobotics/aefeb3b0-811c-427f-8cc7-8c2effe4de69n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages