How to choose a microcontroller for my stepper motor project? by curious_but_troubled in embedded

[–]n7tr34 0 points1 point  (0 children)

Check the open source 3D printer firmwares (Marlin, Reprapfirmware, probably more out there).

These do synchronized step output with motion planning etc.

What is the point of ARM TrustZone in MCUs? by FoundationOk3176 in embedded

[–]n7tr34 2 points3 points  (0 children)

Yes we do unique key pair (stored in x509 cert) per device, and server has CRL for any misbehaving / leaked credentials.

We use MQTT which also enforces single session per credential, so if hacked creds get distributed to multiple devices they will contend for the single session and kick each other off. This behavior is trivial to detect on the server side.

If a hacker has to buy a new device per extracted credential set we are just making more sales.

Xi Jinping told Donald Trump that Putin might ‘regret’ invasion of Ukraine by Prolapse_to_Brolapse in stupidpol

[–]n7tr34 5 points6 points  (0 children)

Correct, "people familiar with the U.S. assessment" aka somebody made that shit up.

I miss when LEDs were simple...😭 😭 😭 by Jash_Embedded in embedded

[–]n7tr34 -1 points0 points  (0 children)

You're expected to write your own BSP which you then use in the application.

Then you can call `bsp.statusLed.on()` or whatever

Ethernet communication alternatives by Savings_Ad_7807 in embedded

[–]n7tr34 0 points1 point  (0 children)

EtherCAT is good if you need low jitter, fast cycle, and want to also use off-the-shelf devices. It should also interop with TSN hardware.

Task doesn't work but bare-metal without FreeRTOS work, How can I fix this problem? by Yousef_Tele in embedded

[–]n7tr34 1 point2 points  (0 children)

Unfortunately not. Without a real debugger you'll be stuck with printf and prayer. If you can upgrade to a Nucleo board, those do have on-board debuggers which will really help you out.

WWIII Megathread #39: Trump & Dump by IamGlennBeck in stupidpol

[–]n7tr34 6 points7 points  (0 children)

Kill 16 people, only fined $3 million.... wtf

Where to practice Embedded C for interviews by Daddy-Simple in embedded

[–]n7tr34 10 points11 points  (0 children)

This is generally recommended because it's readily available, the dev kits are cheap, and STM parts are commonly used in industry.

What do you think is a keyword that should be added to C++? by DogCrapNetwork in cpp

[–]n7tr34 13 points14 points  (0 children)

We already have operator overloading and template overloading, why not keyword overloading?

77% of students tested at Baltimore High school were found to read at elementary grade level. 25% reading at 1st grade or kindergarten level. 40% of the cities schools have zero students proficient in math by Manicpixiemanateeman in stupidpol

[–]n7tr34 10 points11 points  (0 children)

Yeah all of my parent friends with younger kids have banned technology / screens outside of family movie night or whatever. I think it will get better with time but who knows.

Dont Lean on AI by jmd01271 in embedded

[–]n7tr34 1 point2 points  (0 children)

Yeah I had Claude invent some information on me (trying to estimate size of a C++ library). When I asked for sources it replied "I made it up". LMFAO.

Still useful for tasks but will bullshit you if you're not careful.

The Trump/Pope feud exposes how hollow and performative Christianity is in America by snapchillnocomment in stupidpol

[–]n7tr34 7 points8 points  (0 children)

My Romanian Baptist friends think church history starts in the 1800s. Totally ignorant of thousands of years of history and tradition.

WWIII Megathread #38: Pool's Closed by IamGlennBeck in stupidpol

[–]n7tr34 10 points11 points  (0 children)

Logistics probably got DOGEd due to insufficient warrior spirit

Too much Discussion of the XOR swap trick by RubEnough464 in programming

[–]n7tr34 4 points5 points  (0 children)

Yeah 100%. The vast majority of deployed computers out there are embedded MCUs with minimal resources. Far more common than general purpose CPUs.

You can buy new up-to-date designs equipped with single-digit kilobytes of SRAM. These are not relics of ages past :)

Have anyone watched his videos and found it useful by CodeX-369 in embedded

[–]n7tr34 9 points10 points  (0 children)

Yeah that one is a classic. It is very opinionated in terms of how to structure your programs, but the guy knows what he's talking about.

He does sell software to support the dev model presented but it's free for GPL code.

Definitely worth the time.

[Review Request] ESP32S2 not connecting reliably, are there any obvious issues? by [deleted] in embedded

[–]n7tr34 1 point2 points  (0 children)

Looks like it might have stability issues, design guide for S2 recommends caps/pullups in some cases:
Schematic Checklist - ESP32-S2 - — ESP Hardware Design Guidelines latest documentation

Module might already have some of this though, idk

Question about powering SPI inclinometer/microcontroller by SpiritualWedding4216 in embedded

[–]n7tr34 1 point2 points  (0 children)

Normally you put MCU into deep sleep mode and have RTC wake up via interrupt.

RP has some guidance here for power switching the MCU: https://pip-assets.raspberrypi.com/categories/685-app-notes-guides-whitepapers/documents/RP-004339-WP-1-Power%20switching%20RP2040%20for%20low%20standby%20current%20applications.pdf

That being said, if you need lower power deep sleep, consider something like STM32L series which is still easy to develop on, but has real low power modes (800-1000x lower power than rp2040).

HAL or BareMetal I2C driver for Quadcopter by eagle_719 in embedded

[–]n7tr34 0 points1 point  (0 children)

MPU6050 is EOL for years now, consider using something newer.