* TinkerDifferent *
Retro Computing Community
Home | Forums | What's New | Search | Settings
Micro chip questions

Forums > The Lab > Hardware

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
>> leone edate said:
Can the previously stated micro controller do that? Click to expand...

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
>> leone edate said:
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 Click to expand...
As YMK says, you wouldn't implement a hub like that.

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) :


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 Electronics

FE1.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 House

The 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.
Attachments:
1731501914313.png [View]
www.aliexpress.com [View]
www.aliexpress.com [View]
www.lcsc.com [View]
terminus-usa.com [View]
terminus-usa.com [View]

Francois
Tinkerer
France
--------
Joined: Aug 9, 2022
Posts: 116
Likes: 51
Nov 13, 2024 - #4
AdaFruit has USB hub breakout boards, in 2 ports and 4 ports variants.

phipli
Tinkerer
--------
Joined: Sep 23, 2021
Posts: 309
Likes: 215
Nov 13, 2024 - #5
>> Francois said:
AdaFruit has USB hub breakout boards, in 2 ports and 4 ports variants. Click to expand...
They're nice!

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
>> phipli said:
As YMK says, you wouldn't implement a hub like that. 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. View attachment 18601 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 502 Smarter Shopping, Better Living! 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 Electronics FE1.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. 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 House The Terminus FE1.1s is an USB 2.0 High Speed 4- port hub controller with special features to support GSMA "Universal Charging Solution", (UCS). terminus-usa.com The chip datasheet is here : https://cdn-shop.adafruit.com/product-files/2991/FE1.1s%20Data%20Sheet%20(Rev.%201.0).pdf 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. Click to expand...
Is there any way to program both chips through one USB c port or even better is there a single chip I can use for both applications
Attachments:
www.aliexpress.com [View]
www.aliexpress.com [View]
www.lcsc.com [View]
terminus-usa.com [View]
terminus-usa.com [View]

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
>> leone edate said:
Is there any way to program both chips through one USB c port or even better is there a single chip I can use for both applications Click to expand...
As YMK says, you don't need to program the USB hub chip - it just does its thing.

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 said:
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. Click to expand...
They could probably just use 74xx165s. All they're doing is checking the status of a matrix. I'd assume they're not planning on running every key to a pin.

YMK
Active Tinkerer
--------
Joined: Nov 8, 2021
Posts: 408
Likes: 343
Nov 15, 2024 - #11
>> phipli said:
I'd assume they're not planning on running every key to a pin. Click to expand...

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
>> phipli said:
As YMK says, you don't need to program the USB hub chip - it just does its thing. 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. Click to expand...
At the moment I'm just kinda prototyping. I'm pretty new to how USB works as well as the coding side of it and I'm definitely going to need a lot of practice to be good at making pcb's. But at some point I hope to sell a polished product

leone edate
New Tinkerer
--------
Joined: Nov 9, 2024
Posts: 13
Likes: 0
Nov 19, 2024 - #13
>> leone edate said:
At the moment I'm just kinda prototyping. I'm pretty new to how USB works as well as the coding side of it and I'm definitely going to need a lot of practice to be good at making pcb's. But at some point I hope to sell a polished product Click to expand...
And I'm not even sure where to post about this but I've been trying to hire someone, preferably in Pennsylvania but not a biggie to do some more in depth PCB work and prototyping. They don't need to be a professional cuz I'm not a professional I'm just looking for someone with skills I can hire to start a business if you know anyone I'm totally interested

Page 1 of 1

Home | Forums | What's New | Search | Bookmarks | RSS | Original | Settings
XenForo Retro Proxy by TinkerDifferent.com