Sorry if this question is hard to understand but I’m trying my best. It’s hard to explain.
Okay so I’m making a project box for a raspberry pi. I’ve successfully used these types of things in the past but for this project I want to fix the cord to the box.
So I need a cable like this but with a little rubber grommet at the end so it looks like how a power cable should.
Here’s a picture of what I’m talking about. Forget that it’s attached to a power supply. That part is completely irrelevant. Power supplies are just the one device I can think of that have them.
It’s called a strain relief. Electronics distributors like digikey, mouser, Newark, Allied Electronics, and others will have cords with them. You could probably find them on Amazon too.
There are also cord panel compression pass throughs called cable glands. You can find them on amazon. The AC cord you can get also get from Amazon or any hardware store.