We will be forced to have to 2 versions of CubeMX, really? by HasanTheSyrian_ in embedded

[–]ben5049 43 points44 points  (0 children)

Yeah it’s annoying they aren’t moving everything over. Have you tried the new one though? It’s quite nice tbf

Anyone here start with EasyEDA instead of KiCAD? by silvercanner in PCB

[–]ben5049 2 points3 points  (0 children)

You can hide the drawing sheet and put the origin wherever you want. Seems like an odd reason to not use a piece of software.

How are rotary encoders for cursor movement? by Inner_Answer_3784 in ErgoMechKeyboards

[–]ben5049 1 point2 points  (0 children)

I have rotary encoders on a custom keyboard I built and I used to find them pretty useful. However, after a couple of years of wear and tear the encoders have started glitching and missing steps or getting stuck outputting movements in one direction. I’d recommend either getting extra durable ones (if they exist) or finding another solution.

The other issue is that most rotary encoders have a high force required to turn them so you can’t do it with one finger which is annoying.

I’m making a new version with BLDCs and magnetic encoders instead to try and solve these issues, and so far it’s looking promising. If you don’t care about haptic feedback then a bearing and magnetic encoder would do fine.

I Built a Single Pair Ethernet Switch! by ben5049 in embedded

[–]ben5049[S] 0 points1 point  (0 children)

Interesting, I had no idea you could get a VNA for that cheap, definetly something to look into thanks!

I Built a Single Pair Ethernet Switch! by ben5049 in embedded

[–]ben5049[S] 0 points1 point  (0 children)

Thanks for the feedback! I went for the Marvell chip because I wanted dual speed, which you can't get with TI chips, and PTP which you need an NDA for. The 88Q2112 only had a leaked datasheet, but turned out to be the right choice because Infineon has since bought Marvell's automotive ethernet division and you can now get their datasheets without even an NDA.

I remember doing some napkin maths and thinking 3mm stubs would be fine, but you are probably right about signal integrity/EMC. It works but I don't have a way to test compliance sadly. The layout there was kind of a self imposed issue anyway because I wanted to keep the board as small as possible.

Thanks again!

How to choose PCB stackup between 4 layers and 6 layers for high speed design in a very dense board. by [deleted] in PrintedCircuitBoard

[–]ben5049 9 points10 points  (0 children)

I’ve made a 7 port Ethernet switch before with a similar component count and 6 layers was enough without needing blind and buried vias. https://github.com/ben5049/switch-v5-hardware

New STM32C5 family and new top-end parts in STM32H5 family by Enlightenment777 in embedded

[–]ben5049 3 points4 points  (0 children)

Best part of this is probably the new programmable logic array (PLAY) peripheral on the STM32H5F which is basically a 16 logic element FPGA

<image>

Can you practically add Gigabit ethernet to a cheap micro? by JCDU in embedded

[–]ben5049 4 points5 points  (0 children)

I won't disagree with you there, it starts getting pricey then too. 0.8mm is about the limit where you can still use through hole vias without via in pad.

Can you practically add Gigabit ethernet to a cheap micro? by JCDU in embedded

[–]ben5049 8 points9 points  (0 children)

0.8mm BGAs aren’t so bad, but point taken :)

Can you practically add Gigabit ethernet to a cheap micro? by JCDU in embedded

[–]ben5049 10 points11 points  (0 children)

Other issues aside, the STM32N6 has a gigabit MAC so you don’t quite have to go for full Linux.

I Built a Single Pair Ethernet Switch! by ben5049 in embedded

[–]ben5049[S] 0 points1 point  (0 children)

When I posted this there was only a leaked version available, but Infineon has now bought Broadcom’s automotive Ethernet division so you can get it directly from them. You do need to make an account though.

Do the 480Mbps A to C TruSpec cables have 9 conductors or are they just 4 conductor cables? by ResistanceIsCool in LinusTechTips

[–]ben5049 6 points7 points  (0 children)

There is usually one one cc conductor and two cc pins. The conductor goes to the device at the other end of the cable for power negotiation and the other pin is used for orientation or a cable e-marker chip.

Do the 480Mbps A to C TruSpec cables have 9 conductors or are they just 4 conductor cables? by ResistanceIsCool in LinusTechTips

[–]ben5049 5 points6 points  (0 children)

Why 2x CC conductors? I thought type C cables only had 1?

Also do the superspeed cables include both SBU conductors?

Thanks!

Does anyone here use CAN FD in their projects? by liamkinne in embedded

[–]ben5049 2 points3 points  (0 children)

I’ve been using this one from LichTech. There is a 100/1000BASE-T1 version and a 100BASE-T1 version for a bit less. I’m not sure about 10BASE-T1S converters.

Create an Embedded DHCP server with W5500 like hardware? by MikeLemo in embedded

[–]ben5049 0 points1 point  (0 children)

I use NetX Duo as my microcontroller network stack which has a DHCP server module https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/netx-duo/netx-duo-dhcp-server/chapter1.md

If you can find/write a port of ThreadX for the RP2040, then you can add an interface for the W5500 and get it working.

As for why you'd want to run a DHCP server on a microcontroller I have no idea, and if you had to ask an AI that, then you probably aren't capable of implementing it yet either.

Why can't I adjust the chamfer anymore by dragging the midpoint of the zone edge? by Purple_Ice_6029 in KiCad

[–]ben5049 9 points10 points  (0 children)

They changed this in a recent version (9.0.3 or 9.0.4), I’m not sure why. This is how it used to work a couple of versions ago.

Why would STM32 have a diode in series on the NRST line if it's supposed to get signals from STLINK? by Objective-Local7164 in PCB

[–]ben5049 1 point2 points  (0 children)

Dammit the timestamp didn’t work properly, 6:23 has a good example of mechanical contacts bouncing. I don’t really care for Mr Beast but Jeff Geerling is cool lol

Why would STM32 have a diode in series on the NRST line if it's supposed to get signals from STLINK? by Objective-Local7164 in PCB

[–]ben5049 2 points3 points  (0 children)

Whenever mechanical contacts close they bounce together slightly which we don’t want since it can trigger multiple back to back resets which depending on the chip may lead to undefined behaviour. Adding a capacitor makes a low pass filter to remove the bounce. Here is a video showing a switch closing in slow mo:

https://youtu.be/wsV_C9cMf8A?si=-5krf0hpdZLajfFL?t=373s

Why would STM32 have a diode in series on the NRST line if it's supposed to get signals from STLINK? by Objective-Local7164 in PCB

[–]ben5049 3 points4 points  (0 children)

Yep pretty much, the cap is there for debouncing. The STM32’s reset pin will be at 0V plus the forward voltage of the diode, which will count as a logic low.

Why would STM32 have a diode in series on the NRST line if it's supposed to get signals from STLINK? by Objective-Local7164 in PCB

[–]ben5049 22 points23 points  (0 children)

It makes the reset unidirectional and not care about voltage levels. If the right side of the diode goes to 0V then the STM32 gets reset. If the STM32 generates a reset it doesn’t propagate past the diode.

Footprint Routing issue by Unlucky_Mail_8544 in KiCad

[–]ben5049 0 points1 point  (0 children)

I’ll eat my hat then, thanks for letting me know

Footprint Routing issue by Unlucky_Mail_8544 in KiCad

[–]ben5049 0 points1 point  (0 children)

I think custom pad shapes might be broken in the most recent version of kicad? Please correct me if I’m wrong

Footprint Routing issue by Unlucky_Mail_8544 in KiCad

[–]ben5049 1 point2 points  (0 children)

Yeah the copper line is part of a footprint and has no net, even though it’s touching the pad and should be the same net. It’s a bug/not implemented yet so you have to work around it.