r/embedded • • 5h ago

a way to automate port/i/o testing off a board?

0 Upvotes

I can't find much about how to automate/testing stuff like pcie, m2, sata, and random i/o pins.

there are some passmark tools but they're too much expensive. random AliExpress stuff seems to use some led checkers, which is just bad. I honestly, don't know how any of those protocols do work, one time I tried some pcie stuff, but I dropped it off, due to their complexity.


r/embedded • • 12h ago

Generating 10mv 100khz signal using ESP32

0 Upvotes

Hi friends, I built an analog filter and I wanted to generate a 10mv 100khz signal to test my amplification and attenuation, is this possible with an ESP32, I dont have a testbench. Thanks!


r/embedded • • 1h ago

Arduino MEGA as a JTAG probe??

0 Upvotes

I'm not sure how many details to include, tried all possible googling for how to debug a MEGA and all I found was I had to buy an AVR ICE ?

took me a few weeks to figure this out, all vibe coded so YMMV, you can turn your spare MEGA in a JTAG probe to help debugging another MEGA .

pretty much all that you need is in the repo README

stars, sponsors, forks, comments, issues, feedbacks appreciated

https://github.com/lsdlsd88/mega-jtag-killer


r/embedded • • 23h ago

Unable to get a clear waveform from an INA219 shunt resistor using an oscilloscope

0 Upvotes

I'm trying to observe the current waveform across an INA219 current sensor's shunt resistor using a Siglent SDS1102CML+ oscilloscope.

My test setup is around 10 Ω with approximately 20 mA of current. I tried both 1X and 10X probe settings and adjusted the oscilloscope settings, including increasing the sensitivity, but I still cannot get a clear waveform.

The interesting thing is that I can display the test waveform properly on the same oscilloscope, so I don't think the oscilloscope itself has a problem.

What would be the correct way to measure and display this small shunt voltage waveform?

Should I use a different probing technique or an amplifier?

Any suggestions would be appreciated. Thanks!


r/embedded • • 10h ago

Riemann Hypothesis solved — what happens to embedded engineers?

0 Upvotes

If even the Riemann Hypothesis can be solved, what's to become of embedded software engineers?


r/embedded • • 21h ago

I made RAID storage using STM32 and 4 NOR flashes

Post image
65 Upvotes

For those who don't know what RAID is , its basically a redundancy system in which a parity is created so the data can be rebuilt if a storage device suffers a failure , In my project 1 out of 4 flashes can fail and still have the full data available .

The way it works is that three blocks in each stripe store actual data, while the fourth stores XOR parity.

the parity is calculated using a simple formula P = A ^ B ^ C ( all 3 data blocks will be XOR'ed together)

so in case the A block fails , the data on A block can be rebuilt using the other data blocks and the parity block

A = P ^ B ^ C.

The parity location rotates between all 4 flashes, so data can be recovered regardless of which flash becomes unavailable.

But if more than one flash fails then the data cannot be rebuilt due to insufficient parity.

if a failure is detected write command is disabled and it goes into degraded mode with only read command available

The current version does not rebuild the data on the flash instead its rebuilt only in the stm32 RAM when requested and it can only accept data entered through the UART interface .

The MCU used is STM32F401RE

The flash used is W25Q64FV by winbond

It was a fun challenge making this project , learnt a lot and coded most of the stuff like read, write clear block drivers for the flashes by using SPI commands myself , I struggled a bit when it came to linking all 4 flashes using logical memory address and implementing the parity rebuild . So i did end up utilizing AI for that part as I wanted to complete this project to put it on my resume.

Here is my github repository if u want to have a better look at it will all the explanation : GITHUB Repo

If any memory or storage firmware engineers are reading this, I'd really appreciate any feedback or advice on the project. I'm trying to get into companies like Micron, Western Digital and SanDisk, so any suggestions on what I should improve or learn next would be helpful.

Thank You.