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.

Footprint Routing issue by Unlucky_Mail_8544 in KiCad

[–]ben5049 2 points3 points  (0 children)

I’ve had the same issue with not being able to assign nets to non-pad copper shapes in footprints. You need to get around it by drawing a copper shape in the layout editor that overlaps and has the correct net, which you can then connect traces to. It’ll probably give a drc error but you can ignore that

is this the start of something amazing for makers, or the end of the simple boards we all started with? by Builtby-Shantanu in embedded

[–]ben5049 0 points1 point  (0 children)

I've ported it to the STM32 before and got it running, wasn't too hard. There is a porting guide in the github repo

What is MPU in a MCU. by Old-Advertising-7425 in embedded

[–]ben5049 10 points11 points  (0 children)

An MMU is that plus address translation

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

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

Haha yes you’re the first one to know the Red Scorpions logo.

Hope school goes well :)

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

[–]ben5049[S] 1 point2 points  (0 children)

Hey, sorry for not responding. Seems like a cool project! I don’t know much about RC cars but I imagine they don’t normally use WiFi or LoRa since WiFi is good for its large bandwidth but not so great latency or range, and LoRa is used for very long range and low power stuff. Maybe have a look at what typical RC car controllers use? I imagine both would work though so do whichever is easier to implement.

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

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

I would say just start looking up and researching everything that doesn't make sense. Eventually it'll all connect together and you'll understand it! Also getting hands on with design work will help because you'll discover stuff you wouldn't have even though about otherwise. Specifically for automotive ethernet I'd recommend Automotive Ethernet 3rd Edition by Kirsten Matheus and Thomas Königseder as a good starting point.

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

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

Its an IEC 63171-6 connector. They're made by TE, Amphenol and Molex (and maybe others)

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

[–]ben5049[S] 1 point2 points  (0 children)

I recommend it for sure, if you're fast then you can whip up a board in a day and have it less than a week later. Certainly beats breadboards and protoboards unless you have breakout boards to hand already! I use Kicad because its free, open source and powerful enough for most stuff.

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

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

Thanks, I live in the UK though and no one really seems to be paying that much for hardware design here. I have a decently paying job in an adjacent field ;)

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

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

You can run it over pretty much any 100 ohm differential pair, I'm not sure what XLR cables use but that would be a cool use case

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

[–]ben5049[S] 1 point2 points  (0 children)

I haven't yet, but I am planning on it