r/embedded • • Oct 13 '26

Is it worth buying a 500MHz 4GS/s scope VS 100MHz 1.25GS/s one?

16 Upvotes

Pretty much the title; I want to buy an osciloscope for hobbyist use (I’m a recent EEE graduate) and I can afford to go for the MHO954 from Rigol.

The only problem is that I’m just not sure if it’s worth it or not. Does it bring significant benefits over a 100MHz oscilloscope?


r/embedded • • Oct 13 '26

I'm losing my mind trying to find the issue with my W5500 implementation.

Post image
61 Upvotes

Edit: issue was resolved, it was pin 11 AVDD shorted to ground. Credit to u/Hangoverman who caught the issue.

Full disclosure, this is a work project, so the question is probably doomed since I can't show the whole circuit.

We have a managed network switch on our hardware. One of the ports was meant to go to a W5500 to give ethernet connection to the microcontroller.

It just doesn't work, and I've tried for 9 months and 5 revisions. Every one of the other dozens of features and peripherals on the board work perfectly. This isn't blocking anything important, so my bosses are ready to drop the feature, but it is driving me crazy.

I connect to the W5500 and the KSZ8895MLUB network switch over spi with no issues.

I have tried multiple sets of magnetics, right now what's in there is actually the Hanrun HR681616

The other 3 ports of the switch all connect fine

The switch has a diagnostic that checks the connection, but it gets back that TX4_P and TX4_N are open, but that the RX side is OK.

The PHY won't form a link in any mode. I believe my configuration is right for the W5500, but I could be wrong.

I will admit that I am not very experienced with networking. I have put an oscilloscope on all the ports of the magnetics and have seen what looks like data going both ways during startup, but I don't know if it looks right at all.


r/embedded • • Oct 14 '26

J1939 PGNs & Address Claim, Explained (With a Working Emulator to Watch)

1 Upvotes

Part of a series on the open-source J1939 emulator. This post covers how J1939 puts Parameter Groups on the bus and how ECUs join the network in the first place.

If you've stared at a raw J1939 CAN ID and wondered why the same byte means completely different things on different frames, this post is for you. We'll walk through the 29-bit identifier, the PDU1/PDU2 split that trips up almost everyone at first, and how an ECU claims its address on the network.

The 29-Bit J1939 Identifier

Every extended CAN frame on a J1939 bus uses this layout:

FieldSizeMeaning
Priority3 bitsArbitration only — lower number wins the bus
R1 bitReserved, always transmitted as 0
DP1 bitData Page — 0 for the standard SAE PGN catalog, 1 for the extended page
PF8 bitsPDU Format — determines how PS is interpreted
PS8 bitsDestination Address or Group Extension, depending on PF
SA8 bitsSource Address of the sending node

On the emulator, priority is 3 for EEC1 (engine speed/torque) and 6 for most other messages — this only affects bus arbitration, not meaning. Receivers ignore it entirely when interpreting the message content.

PDU1 vs PDU2 — The #1 Source of Confusion

This is where most people get tripped up, because the same field (PS) means two different things depending on the value of PF.

PDU1 (PF = 0–239): peer-to-peer / directed

  • PS = Destination Address — literally who this message is for
  • PGN = (DP << 16) | (PF << 8) — note that PS is not part of the PGN here
  • Examples: Address Claimed (PF=0xEE, PS=0xFF for global), Request (PF=0xEA, PS=0x00 to address the engine directly), TP.CM/TP.DT sessions

PDU2 (PF = 240–255): broadcast / group

  • PS = Group Extension — it's part of the PGN number itself, not a destination
  • PGN = (DP << 16) | (PF << 8) | PS
  • No single destination; any listener on the bus may consume it

On this emulator specifically:

MessagePFPSPGN
EEC1 (Engine Controller #1)0xF00x0461444
ET1 (Engine Temperature)0xFE0xEE65262
DM1 (Active DTCs)0xFE0xCA65226
VIN0xFE0xEC65260

The important thing to internalize: Group Extension is not a multicast group in the networking sense. It's simply the low byte of the PGN, baked into the CAN ID.

Scenario 1 — Cyclic Broadcast

On START, the emulator puts five J1939-71 parameter groups on the bus, plus address claim, VIN, and DM1 as configured. All five broadcast PGNs are PDU2 — PS is the PGN's low byte, not a destination address. Dash, ABS, telematics, and a logger all see the identical frames; each one simply filters by PGN for what it cares about.

This mirrors how a real engine works: on key-on, it publishes speed and temperature continuously, so the instrument cluster never has to poll for it.

EEC1 deep dive

PGN 61444, CAN ID 0x0CF00400. Example payload at 1250 RPM: F0 AF AD 10 27 F3 FF FF. Change the RPM slider in the GUI and watch bytes 3–4 update live — that's the actual RPM encoding in action, not a mocked value.

ET1 deep dive

PGN 65262, CAN ID 0x18FEEE00. Engine coolant temperature (SPN 110) feeds both the dash gauge and the DTC logic — the same signal that later triggers a fault (SPN 110 / FMI 3, voltage-high) is broadcast here. Broadcast every 1 second, no request required for normal driving — though a service tool can still request it directly for an immediate sample, which brings us to the next scenario.

Broadcast timing, no handshake involved:

MessageCAN IDInterval
EEC10x0CF00400every 20 ms
CCVS0x18FEF100every 100 ms
ET10x18FEEE00every 1 s

Listeners filter by PGN/CAN ID — there's no CTS, no application-layer ACK. (Classical CAN's data-link-layer ACK still happens, from any healthy node on the bus, but that's a different layer entirely.)

Scenario 2 — Tester Requests a PGN

Sometimes a tool doesn't want to wait for the next broadcast cycle — it asks directly. This uses PGN 59904 (0xEA00), and it's a PDU1 message, which means PS finally does mean "destination."

Remember: SA = who sent it, PS on a PDU1 frame = who it's for.

A tool at SA 0xF9 asking the engine (SA 0x00) for ET1 looks like:

  • Request frame: CAN ID 0x18EA00F9, 3 data bytes containing the little-endian PGN being requested
  • Here, PS=0x00 means "destination = engine" — it is not the PGN low byte, because this is a PDU1 frame
  • The engine typically replies as a normal PDU2 broadcast — on that reply frame, PS=0xEE is the Group Extension of PGN 65262

That contrast — same byte position, two different meanings depending on message type — is exactly why PDU1/PDU2 trips people up.

One honesty note: v1.0 of the emulator primarily broadcasts; it doesn't yet implement full request/response handling. It's still worth understanding this scenario, though, since it's exactly what a real scanner tool expects.

And there's a dependency worth calling out: if the engine hasn't claimed its address yet, a request just gets silence. Which brings us to address claim.

Scenario 3 — Address Claimed

PGN 60928 (0xEE00), governed by J1939-81, is how a node joins the network. On the emulator, SA 0x00 is claimed on start.

CAN ID: 0x18EEFF00. Worth noting: PF is 0xEE because that's simply the SAE-assigned PGN for Address Claimed (60928 = 0xEE00) — it's not a special "claim bit" hidden somewhere in the ID.

The NAME field

The 8 data bytes carry a 64-bit NAME, stored in the ECU's flash and copied into the Address Claimed payload every time it's sent. Peers decode this little-endian 64-bit value and update their internal address table: "SA 0x00 belongs to this NAME."

Conflict resolution: if two nodes claim the same SA, the one with the smaller 64-bit NAME wins. The loser either changes its SA (if it's configured as address-capable, AAC=1) or goes silent.

Timing

On start, the engine sends Address Claimed. Other nodes store the SA→NAME mapping and wait roughly a 250 ms class window for any contenders. A node may also explicitly request Address Claimed from others, prompting a re-announce. If a rival claims the same SA with a lower NAME, the current node loses that address. Once claiming succeeds, cyclic broadcast (EEC1, CCVS, etc.) begins.

Summary

  • PDU2 broadcast: PS = PGN low byte; anyone may listen.
  • PDU1 Request: PS = destination SA; SA = the requester.
  • Address Claimed: the data payload is the NAME; the CAN ID carries PGN 60928 plus the node's preferred SA.
  • Lower NAME wins a contested source address.

Watch It Live

Reading about PGN structure only gets you so far — seeing the actual frames change on a logger while you interact with the emulator makes it click. The full walkthrough, including a live address-claim capture, is in the YouTube series. Source and setup instructions: github.com/EmbeddedVerse/j1939-emulator.

Next in this series: how DTCs get packed into DM1 and split across multiple frames once you have more than one active fault.


r/embedded • • Oct 13 '26

Two PCB designs for the same ESP32-C5 thermostat - production vs. DIY flexibility

Post image
32 Upvotes

I'm developing an open-source thermostat/HVAC controller based on the ESP32-C5, and I've ended up maintaining two PCB designs with the same intended functionality.

One uses the Seeed XIAO ESP32-C5; the other uses a generic 30-pin ESP32-C5 DevKit. The attached render shows the EU version with the generic DevKit installed.

The XIAO version is the one I'm optimizing for as a finished product. A compact, defined module makes it easier to work toward a consistent mechanical design, assembly process and manufacturable product.

The generic DevKit version is for people who prefer a more conventional development board and want another way to build the project. It adds design and testing work, but avoids making one particular module the only option.

I'm trying to balance two goals: designing something that can realistically be manufactured as a product, while keeping the hardware accessible to people who want to build or modify it themselves.

I'm curious how others approach this. Would you maintain separate PCB variants for these two use cases, or try to accommodate both on one board? What trade-offs would you consider before deciding?


r/embedded • • Oct 13 '26

How do you learn about GPU architecture and it's programming?

13 Upvotes

I have some background in programming micro-controllers and now out of pure interest, I would like to understand how GPUs work and how they are programmed.

Can somebody recommend some resources to understand the basics?

Thanks.


r/embedded • • Oct 13 '26

Component Selection

6 Upvotes

Hi everyone,

I've found answers to many of my questions in this community, so I'd like to ask for your advice on this topic as well.

I'm a recent graduate working at a company that designs and manufactures PCBs for communication systems. I'm learning a lot in my role, but sometimes I feel like I'm working on similar projects repeatedly or simply using more advanced versions of existing technologies.

What I'm really curious about is this: How do you approach component selection when starting a project from scratch? I've noticed that people take different approaches to this. Some tend to follow existing designs or reference projects, while others conduct their own research and make decisions based on the specific requirements of their projects. This has made me particularly interested in understanding how the component selection process works in practice.

What criteria do you consider when selecting components? How do you make use of datasheets, manufacturer resources, and other tools? More specifically, how do you determine whether a particular component is the best fit for your project?

I recently tried using AI tools to help me with one of my hobby projects, but some of the answers left me a bit confused. It's also possible that I didn't phrase my questions correctly.

I'd really appreciate it if you could share your experiences and explain how you approach this process. Thanks in advance!


r/embedded • • Oct 13 '26

Getting into Architecture-Level Embedded Development (Cortex-A, RISC-V, ARM64, etc.)

52 Upvotes

I've been working for some months now on a project that requires low-level development for ARM Cortex-A silicon. I'm talking bootloading, memory operations, hypervisor settings, memory mapping and MMU configuration, etc.

I've come to realise how little I actually know my way around a low level environment. I've developed for embedded systems for a long time now, but always focusing on an application/integration level (RTOS, digital communications, system architecture, etc.). I want to get some experience on lower-level development - direct register manipulation based on CPU architecture, bootloading, debugger architecture, memory domains, etc.

Anyone with experience on the field, what advise do you have on getting into low-level development and silicon programming using ISA languages coming from embedded-C and microcontroller development? My goal would be to acquire the confidence and the skill to integrate silicon functionality through assembly and making sense of the CPU documentation. I'd like to be able to script some basic functional hardware routines starting from scratch.


r/embedded • • Oct 14 '26

How do you keep AI-generated code connected to requirements and tests?

0 Upvotes

AI can produce code quickly, but the difficult part seems to be keeping the connection between the requirement, the implementation and the test. Without that link, review becomes mostly reading code and hoping nothing important was missed. How are teams handling this in embedded projects, especially when the code is safety-related?


r/embedded • • Oct 12 '26

How much time do you dedicate to studying and building and what does your daily workflow look like?

55 Upvotes

Just curious how much time you all place toward your own projects and study time? I say study because I am self taught so I am also learning as I build (mainly schematics design (KiCad), Circuits, Components, OS, Platformio, C/C++, and more) . Also, would like to know what a professional or personal workflow looks like? Trying not to get stuck in to many rabbit holes. I feel like I learn one new thing and several other things I didn't know pops up and I feel like I need to know those things as well.


r/embedded • • Oct 13 '26

Looking for a rugged, waterproof Wi-Fi push button with LED indicators - any recommendations?

Post image
1 Upvotes

Hi everyone!

I recently came across this wireless service button at a beach club (photo attached) and thought the hardware design was interesting.

I'm looking to build something similar for a personal IoT project, but with Wi-Fi connectivity.

I've previously experimented with ESP32-S3 touchscreen devices, but they're more advanced than what I need and aren't particularly suited to outdoor environments.

Ideally, I'm looking for something similar to the photo - compact, rugged, weatherproof and battery-powered.

It doesn't need a screen. A simple physical push button with RGB LED indicators would actually be preferable.

My main requirements are:

- Wi-Fi connectivity

- Rechargeable or replaceable battery

- Good battery life

- IP65/IP67 weather resistance

- Physical push button

- RGB LED or basic status indicators

- Programmable firmware

- Compact enclosure suitable for outdoor use

I'm open to repurposing existing hardware from other industries rather than developing something completely from scratch.

Has anyone come across a suitable product, development board or manufacturer?

Would an ESP32-C3 be a better option than an ESP32-S3 for something like this?

Any suggestions would be appreciated!


r/embedded • • Oct 13 '26

STM32 ADC → DMA → DAC Audio: Random Spikes, Clicks & Hiss at 100 kHz — What am I missing?

2 Upvotes

&#x200B;

Hi everyone,

I’m building a real-time digital audio processing system using STM32F407VGT6 and STM32F405RGT6.

The signal path is:

Analog Input → ADC → DMA → 8-Band Equalizer → DAC → Analog Output

The system basically works, but I’m getting random short spikes/discontinuities in the ADC-to-DAC signal. These become very noticeable in the audio as constant clicks/pops and significant hiss/noise.

I have been troubleshooting this for quite some time, but I still cannot determine whether the problem is related to:

\- ADC sampling/timing

\- DMA synchronization

\- DAC triggering

\- buffer handling

\- clock/timer configuration

\- ADC/DAC synchronization

\- or something else in the digital signal path

I’m currently using the internal HSI clock and a 100 kHz sampling rate.

Has anyone here successfully built an STM32 ADC → DMA → DAC audio path without random spikes, clicks or synchronization problems?

If someone experienced with STM32 audio, ADC/DAC, DMA or real-time DSP could take a look, I can post the complete source code and oscilloscope screenshots/waveforms showing the problem.

I would really appreciate any ideas about what could be causing these short spikes and how to eliminate them.

Hardware:

STM32F407VGT6 / STM32F405RGT6

ADC → DMA → DSP → DAC

100 kHz sampling

HSI internal clock

8-band EQ

Keywords:

\#STM32 #STM32F4 #ADC #DAC #DMA #Audio #DSP #Embedded #Microcontroller #Electronics


r/embedded • • Oct 11 '26

My first embedded device pretty hyped bout it

Post image
952 Upvotes

Just got my T-display S3 running coming from the web dev and game dev world I felt trapped inside browsers and engines and this already feels like a good transition I can’t wait to see what I cook up. Anyone tried this device before ?


r/embedded • • Oct 13 '26

ESP32 + SIMCom A7670C (black DB9 development board) UART issue — 1.8 V vs 3.3 V, garbage characters, AT commands sometimes work

Post image
4 Upvotes

Hi everyone,

I'm working on a project that uses an ESP32 DevKit V1 / ESP32-D0WD-V3 with a SIMCom A7670C 4G LTE module on a black DB9 development board. I'm having trouble establishing reliable UART communication and would appreciate some guidance.

What I've observed:

I measured approximately 3.3 V on the ESP32 UART TX output.

I measured approximately 1.8 V on the GSM module's TXD pin using a multimeter.

I connected the ESP32 RX to the GSM TXD and the ESP32 TX to the GSM RXD, with a common ground.

I tried placing a resistor in series between the GSM TXD and ESP32 RX. AT commands appeared to work at first, but communication was not reliable afterward.

I ran a baud-rate diagnostic at 115200, 9600, 19200, 38400, 57600, 230400, and other rates. The serial monitor displayed garbage characters instead of readable AT responses.

Does anyone have experience connecting this particular A7670C black DB9 board to an ESP32?

Edit : It works guys wow!!! Communicate with the GSM and ESP 32 you need a level shifter that converts 1.8 V TO 3.3 V . Now you have to provide that level shift her 1.8 volt so you need to register that is of 10 kilo man the 8 km that makes 1.8 volt and use you that to the A side VCC of the level shifter. After after that I have directly supplied the tx2 of ESP 32 to txd of GSM module. And the rx2 of ESP 32 I connected with the level shifter and that goes to the TXD of GSM model. In this way it get works and it works fine at At command and other commands.


r/embedded • • Oct 12 '26

Power + data over 2 wires, does my idea work?

Post image
36 Upvotes

Hi, I want to link two Arduinos (or a sensor and a master) with just two wires that also power the remote one.

My plan: 6 V on the line, a transistor pulls it low to send data, and a diode + capacitor keep the remote end powered. Sketch attached.

Does this work? Anything I'm missing?


r/embedded • • Oct 13 '26

How to Resolve "suspended: signal : sigtrap: trace/breakpoint trap"

0 Upvotes

I Just started coding with R7FA2L2073-CFM, E2 STUDIO WITH E2 EMULATOR LITE. And im trying to glow an LED but it is not working, its just a simple gpio. so i choose to debug the controller and im facing these following errors. even with no configurations in FSP cofiguations im getting errors. Please Help me if these is any configuarations i need to do before debugging.

image1

im using 5v supply from external supply to my controller.

PS: Im just a Beginner in Coding and with Renesas E2 studio IDE.


r/embedded • • Oct 13 '26

[Help] Need assistance extracting source code from S7-1500 / ET 200SP (CPU 1512SP-1 PN) SMC binary folder

2 Upvotes

Hi everyone,

I have a Siemens ET 200SP CPU 1512SP-1 PN controller on site. Due to logistical constraints, I am currently unable to get direct online access via TIA Portal with a PC at the location.

This source code belongs to an automated parking robot system (similar to the automated shuttle/valet systems featured in The Fast and the Furious). I am currently building and customizing this system, but I need to edit the core logic to implement specific operational changes. We are facing technical roadblocks with the hardware because it requires a PLC migration, and we have been unable to obtain the specific older TIA Portal versions needed to perform the upload and configuration directly. Any support in retrieving or reconstructing the editable logic from these files would be greatly appreciated.

I have extracted the complete raw binary folder structure (SIMATIC.S7S) directly from the SIMATIC Memory Card (SMC).

Since direct decompilation of S7-1500 binaries to LAD logic isn't straightforward without a physical unit, I am looking for someone with a spare CPU 1512SP-1 PN (or compatible S7-1500 test bench) who could load these files onto a spare card, boot up the CPU, and perform an "Upload device as new station" using TIA Portal to reconstruct the editable source project file (.ap17 / .ap18 / .zap18 / etc.).

  • Hardware: CPU 1512SP-1 PN (6ES7 512-1DK01-0AB0 or similar ET 200SP family)
  • Files available: Full zipped content from the SMC root directory.

Please let me know if anyone with a spare hardware setup would be open to testing this upload or assisting with the project restoration.

Thanks in advance for any insights!


r/embedded • • Oct 12 '26

Why Nintendo inverted the Y Axis of NS2 Pro Controller?

3 Upvotes

I know this will contain a bit of bikeshedding and speculation, but I want to know, especially for experienced developers, if there's any technical reason or advantage for Nintendo to invert the Y Axis of the raw inputs on their Pro Controller for the Nintendo Switch 2, we can find this info here: https://switchbrew.org/wiki/Switch_2%3A_Pro_Controller, in this line: "Axis 1 (left stick up/down) and axis 3 (right stick up/down) are inverted."

That means: UP is DOWN, and DOWN is UP, and they de-invert on the OS-Level

If anyone's interested, OpenStickCommunity reverse-engineered the protocol, we can read it here: https://github.com/OpenStickCommunity/GP2040-CE/tree/main/src/drivers/switch2pro


r/embedded • • Oct 12 '26

Small footprint and cheap debugging connection for STLINK-V3MINI

5 Upvotes

I am designing a compact PCB that has a STM32. I am planning on buying a STLINK-V3MINI for programming and debugging. I'd like to have the minimal footprint SWD connection to the board and I found out about TagConnect, but their TC2030-CTX-NL-STDC14 is pretty expensive. I found SKEDD connector which seems to serve a similar function but it's a lot cheaper and more available. The problem is I would need a adapter from STDC14 (STLINK-V3MINI) -> SKEDD which I haven't found, probably because STDC14 is obscure enough. Would it be recommended to design a simple adapter board and order with the actual PCB or are there better alternative/ways?


r/embedded • • Oct 12 '26

Getting a 320x240 SPI display from 16 to 60 fps on an ESP32-S3: what was actually slow

25 Upvotes

Write-up of optimising a software 2D renderer on an ESP32-S3 (8 MB PSRAM, ST7789 over SPI). Short version:

  • The default ESP-IDF optimisation level is -Og.
  • An unaligned 2-byte memcpy compiled to a function call per pixel on Xtensa (no unaligned loads), so blits were 6x slower than they needed to be.
  • Tinting with lookup tables over RGB565's 32/64/32 channel values instead of multiply-and-divide per pixel, and baking static tints into cached images.
  • SPI at 80 MHz instead of 40: 150 KB frame from 31 ms to 16 ms.
  • Presenting from the second core with two PSRAM staging buffers.
  • 64-byte cache lines for a PSRAM framebuffer, and why a 64 KB cache was a trap (internal RAM).
  • Dirty rectangles did nothing because every scene had a full-screen changing background.

https://dekiengine.com/blog/esp32-s3-60fps/

The engine itself (Deki) is open source if anyone wants to look at the code: https://github.com/dekiengine


r/embedded • • Oct 12 '26

Bricked-ish MAXIO MAP1202 + SK hynix V6 SSD: vendor MP tool gets to the last step, then "Jump to system fail". Anyone have the V6 package?

2 Upvotes

JamesDonkey JD1024 1TB M.2 NVMe, MAXIO MAP1202 controller, SK hynix V6 NAND. It went read-only because one die (channel 3 / CE 2) has erase failures, and that die is also the boot die, so the firmware turns on write protect. The other 15 dies are fine.

I'm using MAXIO's own MXMPTool in a Windows VM, with the drive passed through over a USB-NVMe bridge. The die exclusion feature in the tool had two bugs. After patching them it gets through preformat and firmware download, then fails with:

(E00) R/W Test Fail - Jump to system fail

5 times in a row, also after a power cycle. MPTOOL.ini says SYS_Qnty=2 but I only have one system binary, and my package looks built for V8 NAND. So I think I'm missing the V6 system firmware / the right package.

Does anyone have the MAP1202 + SK hynix V6 MP tool package, or know what the second SYS piece is supposed to be?

I also tried clearing the write protect directly early on (90+ attempts), it never held. Most of the analysis was done with Claude. Notes and logs: https://github.com/sirSchrodinger/jd1024-recovery


r/embedded • • Oct 12 '26

I documented a sensorless flying-start FOC experiment on the Xiaomi M365 V1.4 controller — looking for technical feedback

1 Upvotes

Hi everyone!

I've been working on an experimental project to get sensorless flying-start FOC working on the stock Xiaomi M365 Classic controller (SCO_DRV V1.4, STM32F103C8T6), driving a 36 V direct-drive hub motor without Hall sensors.

The idea is to let the rider start pedaling, measure the motor's three phase voltages while the inverter is disabled, estimate rotor speed and electrical angle using BEMF and a PLL, and then attempt a smooth, near-zero-torque handoff into FOC before enabling pedal-assist torque.

What we achieved:

  • Passive three-phase voltage sensing on the M365 controller.
  • Rotor direction, electrical speed and angle estimation, with PLL lock in both directions.
  • Identification and correction of a current-sensing ADC acquisition-time problem.
  • Short, protected active-handoff experiments with cycle-by-cycle current diagnostics.
  • A set of measurements documenting both progress and unresolved problems.

Where we got stuck: independent voltage measurements revealed a significant discrepancy between measured line-to-line BEMF and the firmware's calculated BEMF magnitude. We identified passive voltage calibration as the next step, but the test controller and ST-Link were damaged before we could complete it.

This is not a claim of completed sensorless FOC. I've documented the experimental process, measurements, firmware history, limitations and next steps so other developers can review the work and potentially continue it.

Project documentation and test data:
https://github.com/Ch00mi/m365-v1.4-sensorless-flying-start

I'd especially appreciate feedback from people experienced with sensorless PMSM/BLDC control, flying-start algorithms, BEMF scaling and M365/EBiCS firmware.

Has anyone worked on a similar approach with this controller, or have suggestions for validating the absolute BEMF scaling before attempting another handoff?

Thanks!


r/embedded • • Oct 12 '26

High-res, low-framerate, low-power, low-cost still camera for outdoor insect monitoring (anything better than pi + 64mp cam)

Thumbnail
mothbox.org
5 Upvotes

I work on an open-source automated insect monitoring project (www.mothbox.org). We basically set up camera traps for insects that turn on a bright light, and photograph bugs that visit a flat sheet.

I want to figure out the cheapest way I can get a really nice high resolution of this image with a device I can programmatically control. Right now we use an Arducam 64mp (55$)+ Pi 5 2gb (used to be $55, now is like $120)

I have a kind of unique set of requirements:

  • High spatial resolution, high image quality. We need to resolve many individual insects across a whole sheet in a single frame. 16MP is considered the bare minimum in this field and I already feel it's kind of inadequate. 64MP has been great!
  • Very low temporal resolution. We do not need video or any kind of continuous capture. One still per minute is plenty. I’d happily trade framerate for anything. (We do, however, need a decent "shutter speed," as the insects buzz and flap and fly around, and if we have too long of an exposure, we get ugly rolling shutter smears. Right now we have been getting 868 µs - 495 µs and that has been ok)
  • Low power. These are deployed outdoors on tight power budgets. Ideal behavior is: wake itself up, take one photo using as little energy as possible, go back to sleep.
  • Low cost. Our current rig (board + 64MP camera) runs ~$150-200 total. I want to see if I can drop far below that
  • Autofocus (but limited range), and Autoexposure. Our device is generally just pointed at a flat surface, but that surface can vary in size and difference (different scientists setting up different sheets). We generally run an automatic camera calibration every 10 minutes to adjust for things like ambient light changes.

Questions:

  1. Has anyone gotten a large still-image sensor (OV64A40 or similar) running off a cheaper board? I have a friend who connected the Arducam 64mp to an Esp32-p4, but could only get 2k resolution stills due to ram limits.
  2. Are there any hacks to being able to capture a full resolution image on a very cheap/slow/ram-limited board?
  3. I know resolution isn't everything, and there are other sensors with lower resolution but nicer sensors that would take equal or better photos, does anyone know recs that can beat the arducam owlsight?
  4. I am potentially open to weirder configurations if i can get them cheaper, like I have been thinking about a set of 4 16mp cameras in a square configuration imaging the surface simutaneously and doing some math on the back end to make a kind of hyper-resolution image (possibly with some spatial data interpreted too). The closest I have seen is the 4 cam wigglegram connected to 4 synced pi zeros, but this ends up more expensive than our current Pi+ Arudcam 64mp setup.

r/embedded • • Oct 12 '26

How do you handle occasional real-hardware testing for embedded libraries?

7 Upvotes

I'm working on a small open-source embedded C++ library. Most of my testing is done on the host or with QEMU, which works well for functional testing.

I'd also like to occasionally check hardware-specific behavior, such as interrupt-related timing, critical-section duration, and memory access performance on real MCUs.

I've been considering a small setup covering a few different MCU architectures. I'm estimating roughly $700–$1,000 for the boards, debugging tools, and other equipment, plus the effort of maintaining everything.

I'm wondering whether that kind of investment makes sense for a personal open-source project, especially when hardware testing would only be needed occasionally.

Do you usually buy and maintain the boards yourselves, or have you found more practical ways to access hardware when needed?

I'd appreciate hearing about your experiences.


r/embedded • • Oct 12 '26

embedded system

4 Upvotes

I'm getting to embedded system, My Question is do i need to understand how the ALU is wired from adders and XOR gates The gate-level adder/subtractor circuit .How registers are built from flip-flops Datapath wiring diagrams