|
* TinkerDifferent *
Retro Computing Community |
| Home | Forums | What's New | Search | Settings |
| Micro chip questions |
|
leone edate New Tinkerer -------- Joined: Nov 9, 2024 Posts: 13 Likes: 0 |
Nov 13, 2024 - #1
I'm trying to develop a custom keyboard using the atmega32u4 micro chip like so many other people but I want my keyboard to have 2 or 3 more USB ports for a mouse and or some flash drives. Can the previously stated micro controller do that? I'm still pretty new when it comes to development so it's hard to put into words so I can even find what I'm looking for in the data sheet
|
|
YMK Active Tinkerer -------- Joined: Nov 8, 2021 Posts: 408 Likes: 343 |
Nov 13, 2024 - #2
No. You would need an MCU with multiple USB host ports for that. If you want to integrate a hub into your keyboard, there are specialized ICs for that purpose. No need to reinvent that wheel. Your 32U4 would then occupy one of the ports of the hub IC. The MCU functionality you're describing is "USB host" or "OTG". Having a Total Phase Beagle for USB development is a great help. Liked by JDW |
|
phipli Tinkerer -------- Joined: Sep 23, 2021 Posts: 309 Likes: 215 |
Nov 13, 2024 - #3
If I was doing it on a budget, I'd perhaps buy a pre-existing board, remove the connectors or use extension cables internally and call it a day. Something like this might do as a USB 2.0 hub. Just search for CJMCU-204 on eBay or AliExpress. They're pretty cheap. If you want to integrate that onto your own design, the chip it uses is... the FE1.1S and is available from a few places, if you enjoy buying from AliExpress, there are a number of sellers including this one (not a recommendation, just a random listing) : (5-10piece)100% New FE1.1S SSOP-28 USB 2.0 HUB SSOP28 FE11S SSOP FE1.1 SMD chip In Stock - AliExpress 502Smarter Shopping, Better Living! Aliexpress.com
[Image: www.aliexpress.com]
www.aliexpress.com
I haven't been able to find the specific part available from western electronics providers, although I think LCSC stock it here : FE1.1S-BSOP28BCN | TERMINUS | Price | In Stock | LCSC ElectronicsFE1.1S-BSOP28BCN by TERMINUS - In-stock components at LCSC. Price from $0.3237. Free access FE1.1S-BSOP28BCN datasheet, Package, pinout diagrams, and BOM tools.
[Image: www.lcsc.com]
www.lcsc.com
That's good, because if you get your board made and then assembled by JLCPCB, they'll be likely able to fit the part at the factory. Webpage for the part is here : FE1.1S USB 2.0 High Speed 4-Port Hub Controller | Terminus USA | Fabless IC Design HouseThe Terminus FE1.1s is an USB 2.0 High Speed 4- port hub controller with special features to support GSMA "Universal Charging Solution", (UCS).
[Image: terminus-usa.com]
terminus-usa.com
The chip datasheet is here : If you do your own design, you'll have to work out the circuit. If you're lazy and willing to accept any design decisions or errors they made without understanding... you could... cough... buy one of the other boards and measure the parts and beep out the circuit... Or you could read and understand the linked datasheet (a quick look, it doesn't include a reference design). This post isn't telling you how to do what you're trying to do - this is just a board that I had seen before and never used, and the chip that was on it when I squinted at the photos. Good luck.
|
|
Francois Tinkerer France -------- Joined: Aug 9, 2022 Posts: 116 Likes: 51 |
Nov 13, 2024 - #4
|
|
phipli Tinkerer -------- Joined: Sep 23, 2021 Posts: 309 Likes: 215 |
Nov 13, 2024 - #5
The AdaFruit documentation actually includes a schematic, so you could integrate the design, although it might be nice to ask them if it isn't just a straight up reference design from the datasheet (also below, and includes reference designs) |
|
leone edate New Tinkerer -------- Joined: Nov 9, 2024 Posts: 13 Likes: 0 |
Nov 15, 2024 - #6
|
|
YMK Active Tinkerer -------- Joined: Nov 8, 2021 Posts: 408 Likes: 343 |
Nov 15, 2024 - #7
The USB hub chips need no programming.
The 32U4 is programmed through its ISP interface using an adapter like the AVRISP. It may have a bootloader that can pull in firmware over USB, but that's usually only for evaluation purposes and not for production. |
|
phipli Tinkerer -------- Joined: Sep 23, 2021 Posts: 309 Likes: 215 |
Nov 15, 2024 - #8
If you're doing this as a hobby thing and not a commercial enterprise, there isn't really any issue in programming the 32U4 over USB. Even for small volume sales it could be a feature for the homebrew community - flash your own firmware etc. On that subject, are you making something for yourself? Yourself and friends? Or to sell? If you're just making something for yourself I'd just put sockets on your board for an Arduino Pro Micro (uses your chip) and use the Adafruit 4 way hub chip @Francois linked. |
|
YMK Active Tinkerer -------- Joined: Nov 8, 2021 Posts: 408 Likes: 343 |
Nov 15, 2024 - #9
Also, make sure the 32U4 has enough pins for your application.
ATXMega parts are more powerful and have more pins, but use an entirely different USB controller. |
|
phipli Tinkerer -------- Joined: Sep 23, 2021 Posts: 309 Likes: 215 |
Nov 15, 2024 - #10
|
|
YMK Active Tinkerer -------- Joined: Nov 8, 2021 Posts: 408 Likes: 343 |
Nov 15, 2024 - #11
I'd assume that as well, but I don't know what else he plans to do (RGB lighting, etc). |
|
leone edate New Tinkerer -------- Joined: Nov 9, 2024 Posts: 13 Likes: 0 |
Nov 16, 2024 - #12
|
|
leone edate New Tinkerer -------- Joined: Nov 9, 2024 Posts: 13 Likes: 0 |
Nov 19, 2024 - #13
|
| Page 1 of 1 |
| Home | Forums | What's New | Search | Bookmarks | RSS | Original | Settings |
| XenForo Retro Proxy by TinkerDifferent.com |