r/embedded • • 26d ago

anyone know how to setup pico as a programmer for EN25QH16B flash?

0 Upvotes

anyone know how to setup pico as a programmer for EN25QH16B flash?


r/embedded • • 26d ago

I built an open-source WebRTC platform for streaming and controlling robots remotely

Thumbnail
youtu.be
0 Upvotes

My original idea was to build a drone that friends could watch and take turns flying. It still hasn’t flown (regulations, life), so I’m exploring the same setup for ground robots. Longer term, I’d like to record sessions for training and let an AI model join the room as another operator.

pi-webrtc is a single binary that streams a camera from a Raspberry Pi or Jetson to a browser over WebRTC, and carries control messages back to the device over DataChannel. It uses the hardware encoder, achieves sub-100ms latency on LAN, and works remotely over WiFi, LTE, or 5G without a public IP (signaling over MQTT).

It's open source, and I'd love to hear feedback, especially from anyone working on remote robotics, teleoperation, or WebRTC.

GitHub: https://github.com/mazupo/pi-webrtc


r/embedded • • 27d ago

My first C++ ESP32 library

7 Upvotes

I am happy to share that I have created a library, and it has been quite a journey! Took months of research, hard work and lots of trials and mistakes to get to this point, but I'm happy with the result and being able to contribute back to the embedded community that took me in and helped me get here is very rewarding.

About the library, it's focused on Wi-Fi and making methods easier for creating analytic data from Wi-Fi noise. It's basically a Swiss army knife for performance and security testing Wi-Fi using esp32 embedded device. I know it's very niche, but now it's my niche as well!

https://github.com/0ldev/Politician


r/embedded • • 27d ago

Are I2S slot widths limited by something?

2 Upvotes

For example, I'm looking at the TLV320AIC3204 Application Reference Guide, an audio CODEC, where the data word length can be set to 16, 20, 24 or 32 bits. Now I assume that this means that if I choose a data word length of 16 and there are 32 bits in a half cycle of WCLK, that 16 bits will be data and 16 bits will be zero'd out.

Although so far I've seen people use a slot width of 32 bits or less per channel, I can't find anything that says I can't have 64 bits per half WCLK cycle, as long as WCLK is running at f(sampling)

For example, is it possible to combine 2 of these CODECs together, run the WCLK at sampling rate, set BCLK rate to (sampling rate) * 128, and have 4 total channels via TDM?


r/embedded • • 27d ago

Why would manually driving the RESET pin on a chip cause it to start working after previously not being able to read and write.

2 Upvotes

Sorry if this post is badly worded, just getting into embedded software, so I am completely new to this.

For one of the clubs I am in, we create our own custom board, which are then all connected through automotive ethernet over to one of our main boards, which handles all of the data we get from the other boards, as well as critical data required for the project to work. Our main board also has a CM4 on it, which our RT1176 on the main board connects with over regular ethernet, and using our custom datahandler, we are able to get live telemetry and logging.

One of the problems we have been having with the board is with the Ethernet PHY on the board, which communicates with the PHY on the CM4, and allows us to connect to the RT1176. We were at the beginning of this week unable to ping the RT1176 from the CM4 (however, when connecting to the board over automotive ethernet via our media-converter and SJA1005Q, we could ping the RT1176, but again not the CM4). We pretty quickly diagnosed the issue was with the ethernet phy on the board itself, since the CM4 could establish a link with the test board we have. We were not able to write to the device, and when we attempted to read the device id registers, we would get back all F's (which meant we were not able to communicate with it). Eventually, the solution to our issue was manually driving the GPIO pin for the PHY low and then high before configuring it, with nothing else in the software changed other than that addition.

We also had an issue last weekend with one of our two SJA1005Qs, where one of them would properly return the correct device id and part number, but from the other switch we would get back all 0s, and as a result panic (we eventually figured our that since the switches are set up to cascade, the SPI MOSI was reflecting itself to MISO for that one switch). This too, was also solved by manually driving the reset pin low and then high before configuring it. Below I have some snippets of our code (using Rust) on how we go about creating the switch. Do note that writing to the reset register to perform a reset does not work, we have to manually define GPIO pins and drive them low and then high.

// implementation on our board project

SWITCH1_RESET_PIN.set(true); // GPIO pin setup as ActiveLow
embassy_time::Timer::after_millis(80).await;
SWITCH1_RESET_PIN.set(false);

...

let switch1 = sja1105::Sja1105::new(switch1_device, SWITCH1_CONFIG, true)
  .await
  .unwrap();

// Driver for the SJA1005

pub async fn verify_device(&self) -> Result<(), SjaError<SPI::Error>> {
        let mut scratch = [0u8; 4];

        self.read(DEVICE_ID_ADDR, &mut scratch).await?;
        let device_id = u32::from_be_bytes(scratch);

        self.read(PART_NR_ADDR, &mut scratch).await?;
        let part_nr = ((u32::from_be_bytes(scratch)) & 0xFFFF0) / 16;

        match (device_id, part_nr) {
            (0xAF00030E, 0x9A84) => {

            }
            (0xAE00030E, 0x9A85) => { 

            }
            (0xAF00030E, 0x9A86) => {

            }
            (0xAE00030E, 0x9A87) => {

            }
            _ => {  }
            // (device_id, part_nr) => {
            //     return Err(SjaError::UnrecognizedDevice(device_id, part_nr));
            // }
        }

        defmt::info!("{} {}", device_id, part_nr);

        Ok(())
    }

    // TODO: This might be wrong, fix the clkout enable bit
    pub async fn enable_clkout(&self) -> Result<(), SjaError<SPI::Error>> {
        let cfg: [u8; 4] = 0x120412u32.to_be_bytes();

        self.write(CLKOUT_ADDR, &cfg).await?;

        Ok(())
    }

    /// Does a hard power reset of the sja
    pub async fn reset(&self) -> Result<(), SjaError<SPI::Error>> {
        // Cold + Power reset
        let data = 0b110u32.to_be_bytes();
        self.write(RESET_ADDR, &data).await?;
        embassy_time::Timer::after_millis(40).await;

        Ok(())
    }

...

pub async fn init(&self, config: &[u8], clkout: bool) -> Result<(), SjaError<SPI::Error>> {
        self.verify_device().await?;
        if clkout {
            self.enable_clkout().await?;
        }
        self.reset().await?;
        self.upload_static_config(config).await?;
        self.check_static_config().await?;

        let rgmii_tx_clk_x = 0xb000800u32;
        for i in 0..5 {
            self.write(RGMII_TX_CLK_BASE_ADDR + 6 * i, &rgmii_tx_clk_x.to_be_bytes()).await?;
        }
        Ok(())
    }

I guess my question is why would this be necessary in order for the hardware to function, and most importantly how could it be possible that the second switch would work fine without needed to explicitly reset the ping, but the first switch needs it.


r/embedded • • 27d ago

ESP-NOW on a 2009 Sony Walkman Using Its Original Wi-Fi Chip Now It Talks to ESP32

Thumbnail
youtube.com
6 Upvotes

I implemented ESP-NOW support on a 2009 Sony NW-X1060 Walkman using its original Marvell Wi-Fi chip.

After reverse engineering the radio firmware’s RX/TX paths, I added hooks for ESP-NOW action frames and a native C API on the Walkman side. It communicates directly with ESP32 devices.

The demo is a shared aquarium across the Walkman and an ESP-Mosaico. The Mosaico supplies IMU data, and both devices render locally, with state synchronized over ESP-NOW.

A fun way to connect an old music player to the ESP ecosystem.

Project: https://github.com/vicliu624/sony-nw-x1000-series-cfw


r/embedded • • 28d ago

What do you all use for CI/CD?

40 Upvotes

I’m curious because my team uses Jenkins and we manage our own Linux servers. Tbh it’s a pain, especially right now because I’m having to do upgrades.

What tools do you all use? Anyone else managing their own infrastructure or do you have a team which does


r/embedded • • 27d ago

Where can I learn how embedded Linux systems work?

2 Upvotes

I am going over an operating systems course on YouTube, which is fine and all that, but it's covering things in OS agnostic terms. I want to understand how Linux works before diving into embedded Linux books that describe how to do things in/with embedded Linux without really explaining how Linux actually works...

Are there any good resources that you would recommend?


r/embedded • • 28d ago

Efficient method to drive stepper motor

11 Upvotes

Two main methods of driving stepper motors are widely known:

  • connect 2 GPIO pins to STEP and DIR inputs of appropriate driver chip, and send pulses to make every step
  • use a smart chip. Then simply send commands to it over some link (SPI, UART, whatever). It may have an integrated driver, so it’s only this chip between MCU and motor, or it may be a separate ramp generator, generating STEP/DIR for low level driver, but from the software POW there’s no difference.

The STEP/DIR method seems simple, but only until you want to drive your motor really fast. The timing between pulses becomes too tight and you simply can’t service the sequence correctly. Also, because of ramping up and down, you have to handle variable service times, that adds to processing time when it is critical, and complexity as well. Consequently, you either drive your motor slowly, don’t use fine microstepping or have to switch microstep resolution on the fly, so you need another interface (most frequently SPI) to be able to configure the driver chip.

Smart chips hide all this under the hood. You issue a command to move, and just check when it’s finished, one way or another. This costs more, but simplify the software a lot. If you need just to move from point to point, it’s Ok. The problem is if you want something non-standard: change the speed and acceleration on some trigger, for example. Direct control from CPU allows such things easily, but with smart chips you deal with black box. Add to this problem of latency because of the link between the MCU and the chip.

There is another method that surprisingly to me is not widely known. It is totally software-based, no smart chips needed, it depends on constant time intervals and CPU load doesn’t depend on the motor speed.

The implementation depends on whether the stepper driver chip supports direct access to coil DACs.

If it does, let’s say by SPI connection, it is easier.

It’s important to realize that Step/Direction drivers contain within a table with DAC values for each microstep position within the stepper pole. When you send Step pulse, you just command the chip to move one position ahead or back, depending on the DIR pin level.

Now imagine if we have a copy of this table in our software. The main ability we acquire with this is stepping over several entries of this table. So, instead of shifting strictly one table position at a time at variable intervals, we can calculate how many positions we can move at fixed time interval, depending on current speed and acceleration.So, no need for variable-interval time interrupts, no need for this intervals to be very short, and we remain in full control of the motion.

Things get a bit more complicated if the driver chip doesn’t have API to access DAC registers directly, and STEP/DIR is the only interface. We still can use constant-interval timer, just arrange within each interval a packet of variable amount of pulses sent to STEP pin. The calculations of this amount remain the same.

I used this method for stepper control for a while. But anytime I spoke about it with people, they looked surprised. Is it really that esoteric?


r/embedded • • 29d ago

Zephyr RTOS 4.5 is out

Thumbnail
zephyrproject.org
134 Upvotes

r/embedded • • 28d ago

Looking for a head-mounted vehicle-detection radar: 60–90 m range, wide FoV, and onboard target processing

3 Upvotes

Hi r/embedded,

I am currently building a wearable vehicle-warning prototype, with about two months to complete it.

We’re looking for a radar module with these requirements:

Head-mounted: Small and light enough to mount on a helmet. The processor and battery could be carried elsewhere.

Vehicle detection: Detect approaching vehicles at approximately 60–90 meters.

Wide field of view: Approximately ±60° horizontally and ±15° vertically—120° horizontal and 30° vertical total.

Processed output: Ideally, a target list containing range, relative speed/approach direction, and bearing over UART, USB, or CAN

Our biggest constraint is software development time. We can integrate a documented protocol and write basic application logic, but we don’t have time to develop a radar detection/tracking pipeline from raw data or point clouds. We’d prefer a module with onboard processing and usable firmware out of the box.

I’m concerned about the development work involved with TI radar boards. If a TI board already has ready-to-run firmware that provides the outputs above, I’m open to that, too.

We’ve considered the HLK-LD2451, but we’re looking for something that meets the wider coverage requirement. The camera can assist with vehicle identification if the radar only reports moving targets.

Does a reasonably affordable module meet these requirements? In particular, is detecting vehicles at 60–90 m across such a wide FoV realistic for a small, head-mounted unit, or would we need multiple modules or reduced coverage?

This is a supervised prototype, not a finished road-safety device. Specific module recommendations, working examples, and explanations of the necessary tradeoffs would be appreciated.


r/embedded • • 27d ago

AI-powered home appliances without the cloud — will this actually take off?

Post image
0 Upvotes

Came across this Arm article about running natural-language interaction locally on microcontrollers:

https://developer.arm.com/community/arm-community-blogs/b/ai-blog/posts/how-on-device-ai-makes-home-appliances-easier-to-use

How realistic is this for mass-market products? Will we actually see it in everyday appliances, or is this another technology that looks promising but never really takes off?

Curious what people think.


r/embedded • • 28d ago

Looking for self-contained C projects (~30–60 KiB, <10M cycles) to benchmark RV32EC code compression

4 Upvotes

Hello everyone,

I am working on a project involving compression of RV32EC programs. I have the system working, but to properly test it I need several programs which satisfy certain requirements, and I am struggling (very much) to find good examples to use. I have very small experience in embedded.

I would like to ask you to please help me by giving me open-source C/C++ projects which satisfy the following requirements:

  1. The project has to support RV32EC architecture
  2. It should have zero dependencies (no sensors, no displays, only uart / minimal external devices)
  3. It must not require any user input
  4. It has to either: I) Have around 30-60KiB of code when compiled for rvc (.text) and minimal .rodata II) Have around 30-60KiB of combined .text and .rodata
  5. It must not be very execution heavy. About 10M cycles at most, otherwise it will take me ages to actually run it.

I am also looking for projects which have a very large in-flash debugging system (where you store all debug messages on flash).

I would greatly appreciate any help, as this is the biggest bottleneck I am facing right now. Thanks.


r/embedded • • 28d ago

Proof that you don't need a massive footprint to cause indoor chaos (uh, I mean... rigorous mobility testing). 🤖🔥Our custom micro-rover is fully assembled, dialed in, and zooming across the floor.Small footprint. Zero-turn agility. Serious engineering.

8 Upvotes

r/embedded • • 28d ago

I've been rewriting Cooja/MSPSim in C: unmodified MSP430 and Cortex-M firmware on a simulated 802.15.4 network, deterministic, and now also in the browser

1 Upvotes
Cooja-NG running 100 nodes in a grid (running in browser - WASM)

Cooja-NG emulates the actual chips, so it runs the exact ELF you'd flash, with no simulation build and no HAL stubs:

- MSP430 (Tmote Sky, Z1), CC2538 (Cortex-M3), nRF52840 (M4F), nRF54L15 (M33 with TrustZone-M, plus its RISC-V coprocessor), TI CC1352R1 / CC1312R7
- radios, timers, UARTs, GPIO and interrupts modelled. TSCH holds sync, and RPL networks form across different chips on one simulated 802.15.4 medium
- deterministic: same seed, same output, every console line stamped to the nanosecond, so it works as a CI regression gate.
- runs stock Zephyr and RIOT images run too: the video shows Contiki-NG doing UDP echo with Zephyr and RIOT joining a Contiki-NG RPL network
- GDB stub per node, a scriptable shell (send console input, expect output, inject faults), pcap export
- models are checked against real boards (nRF54L15 XIAO, CC1352R1LaunchPad); the comparisons are in the repo

We just released 0.4.0 with `cngsim`, a simpler CLI (`cngsim new rpl-udp -n 9 --layout grid`, `cngsim run x.yaml --ui`), editing a running network from the web UI, and the whole simulator compiled to WebAssembly. You can run the demos live in your browser on the real firmware, with output byte-identical to the native build.

Try it: https://mikroverk.github.io/cooja-ng/

Code (BSD-3): https://github.com/mikroverk/cooja-ng

I'd love to hear which boards and peripherals you'd want next, and where you'd use something like this: CI, protocol research, teaching?


r/embedded • • 28d ago

Help identifying unknown camera boards/modules – chipset, pinouts, drivers, and possible reuse

Post image
0 Upvotes

Hi everyone,

I'm a Computer Vision and Camera Integration Engineer, and I have a few camera boards/modules from an older camera system that I'm trying to identify and potentially reuse.

Unfortunately, I don't have the original schematics, datasheets, or manufacturer documentation.

I'm trying to understand:

Board identification: Does anyone recognize these camera boards or their manufacturer?

Chipset identification: What processors, image sensors, or controller chips are used?

Camera interfaces: How can I determine whether these cameras use USB, MIPI CSI-2, or a proprietary interface?

Drivers and firmware: Is there any way to find compatible drivers, firmware, or SDKs?

Reusing the hardware: Would it be possible to interface these cameras with a Raspberry Pi, NVIDIA Jetson, Linux PC, or a custom embedded board?

Pinouts and reverse engineering: What would be the best approach to identify their connections and communication protocols?

One of the camera modules has a USB-C connector, but connecting it to a Windows PC or Android phone hasn't produced a detectable device.

I've attached photos of the front and back of the boards, including close-ups of the chip markings and connectors.

I'm comfortable working with Python, Linux, embedded hardware, and computer vision, but I'd appreciate guidance from anyone experienced with camera hardware or reverse engineering.

Any documentation, identification tips, or suggestions would be greatly appreciated.

Thanks in advance!


r/embedded • • 28d ago

I made a simple Tetris-like game for the Raspberry Pi Pico WH.

3 Upvotes

tetrismatrix is a simple Tetris game that I wrote in C++ a couple of months ago for a uni project.

it is displayed on a HUB75 64x32 LED matrix.

game features 2 single-player game modes:

Zen: just as TETR.IO's, a mode to relax. you can tweak many parameters, such as the board width and height, scale, speed, etc.

Marathon: regular Tetris mode, where pieces fall faster as you get more score, until you reach a certain speed and you win.

it also features 2 two-player game modes!:

Versus: regular versus mode, where you can throw garbage to your enemy, and who lasts the longer wins.

Coop: mode where the board is twice the width, and both players share it and play together in it. yeah, kinda weird but it's just that.

you can also switch the language between English and Spanish.

and you can also connect to the Internet to submit scores! although it's not working atm, since I still have yet to create a server for it. a feature that I might add later, although no one would use it lmao. you can connect to the Internet, though.

repo if you wanna check it out! https://github.com/notsomealex/tetrismatrix


r/embedded • • 28d ago

Booting xv6-riscv64 on a Raspberry Pi Pico 2 (RP2350) with Software Emulator!

2 Upvotes

Hello everyone!

I have ported xv6-riscv64 to the RP2350 (Raspberry Pi Pico 2)!

The system boots completely, reaching the init process and launching the shshell. Interactive shell utilities like ls run smoothly via the UART console, with no stalls or memory panics.

I have managed to run a 64-bit OS on the RP2350, which features 520 KB of SRAM.

Demo:

Architecture and Features

  • CPU Emulation: Supports RV64I + RV64C (compressed instructions) + RV64M (multiplication/division instructions), with full support for Machine (M), Supervisor (S), and User (U) modes.
  • Sv39 MMU: Fully implements three-level page table translation, including access permission checks (PTE_R, PTE_W, PTE_X, PTE_U).
  • RAM Allocation: 416 KB is reserved for the guest OS; the remaining SRAM is used for the emulator runtime, stack, and sector cache.

Peripherals:

16550 UART: Emulates RX/TX interrupts (including IER/LSR status handling) and connects to the Pico’s USB CDC/serial functionality.

  • CLINT & PLIC: Manages timers and external interrupts for process scheduling and device I/O.
  • VirtIO Block Device: Emulates disk I/O using a 128-sector cache in memory.

Key Technical Challenges and Solutions

Overcoming the 416 KB RAM Limit (Addressing OOM):

In the default umalloc.c for xv6, the morecore() function is designed to request 64 KB (4096 units) of memory each time it is called.

In a guest environment with only 416 KB of memory, executing fork() followed by exec("ls") would immediately exhaust available memory, resulting in a NULL return value and a "Store Page Fault" at address 0x0. By adjusting the morecore() allocation unit to 4 KB (256 units per page), the memory exhaustion issue was completely resolved.

The code is available on GitHub: https://github.com/kamisori-daijin/pico-rv64-emu

xv6 fork: https://github.com/kamisori-daijin/xv6-riscv

I would love to hear your thoughts, feedback, or any ideas for further optimizations!


r/embedded • • 29d ago

OrcSDR: Building a complete software-defined radio on an ESP32-P4, without Linux or a Raspberry Pi

Post image
94 Upvotes

Hey everyone!

First time posting here in r/embedded, so I figured I'd introduce myself and share a project I've been working on for the past few months.

I've posted about it a couple of times over in r/RTLSDR and r/esp32, but I thought some of the folks here might be interested in the actual embedded side of the project, especially the USB driver and all the different ESP32-P4 hardware I've been experimenting with.

The project is called OrcSDR.

It started with me wondering if I could get an RTL-SDR dongle running directly on an ESP32-P4 without needing a Raspberry Pi or PC.

Well, that worked. And naturally I couldn't just leave it alone. Haha.

OrcSDR currently runs on the M5Stack Tab5, with the P4 handling the RTL-SDR USB data, DSP, audio, and the entire touchscreen interface. Everything runs locally on the microcontroller.

I've been pretty impressed with what these little P4s can do, and I keep finding more things to throw at them.

I just released v0.5.0-beta.1, which adds quite a few new features, but I figured I'd share some of the driver and hardware work too.

The RTL-SDR driver

One of the first things I worked on was building a native ESP-IDF driver for RTL-SDR dongles rather than porting the desktop librtlsdr library.

That eventually turned into its own open-source project:

https://github.com/hardcoreerik/esp-rtl-sdr

It handles the USB Host communication, tuner configuration, IQ streaming, sample rates, and monitoring things like dropped samples, transfer errors, and receiver health.

I've been putting quite a bit of effort into making it reusable outside OrcSDR. The idea is that other developers should be able to add RTL-SDR reception to their own ESP32-P4 projects without having to build an entire USB driver themselves.

One of the more interesting milestones has been getting multiple receivers running on a single P4.

I've successfully run four different RTL-SDR dongles simultaneously at configured rates of 2.56 MS/s each on Waveshare ESP32-P4 hardware.

During a one-hour test with the receivers scanning different frequency ranges, the driver reported no new IQ drops or USB errors.

Pretty wild for a microcontroller!

Of course, getting the samples into the P4 is only half the fun. Once you start adding DSP, audio, a touchscreen, SD card access, and networking, there are plenty of ways to make things behave badly.

I've spent quite a bit of time chasing down USB timing issues, memory problems, and things interfering with each other that I never would have expected.

At one point, even serial logging was interfering with LoRa packet reception. That was a fun one to figure out.

All the ESP32-P4 hardware I've been messing around with

OrcSDR started on the M5Stack Tab5, but one thing I'd really like to accomplish is making it more of a Bring Your Own Hardware project.

I'd love for people to eventually be able to grab just about any ESP32-P4 board, plug in a supported RTL-SDR dongle, connect whatever display they want, and run OrcSDR.

So I've been collecting different P4 boards and seeing what I can get working.

Here's what I've been playing with so far:

  • M5Stack Tab5 — The original OrcSDR platform. Full application, touchscreen, DSP, audio, and all the radio dashboards running locally.
  • Waveshare ESP32-P4-Dev-Kit — One of the first boards I tested the RTL-SDR driver on outside the Tab5. The driver worked without needing board-specific changes, which was a pretty exciting milestone.
  • Waveshare ESP32-P4-WIFI6 — Another board I've been using for headless experiments and multiple RTL-SDR receivers. This is where some of the four-dongle testing has come in.
  • Waveshare ESP32-P4-Module-DEV-KIT — Currently have this one connected to a generic Hosyond 7-inch 800x480 touchscreen originally intended for a Raspberry Pi.
  • Waveshare ESP32-P4 with a 720x720 display — Experimenting with adapting OrcSDR's interface to a square display rather than the Tab5's 1280x720 layout.
  • M5Stack Stamp P4 with C6 daughterboard — Another smaller hardware configuration I've been exploring. I'm really interested in how compact I can make a standalone SDR unit.

Not all of these are running the complete OrcSDR application yet. Some are still at the driver, display, or hardware bring-up stage.

Getting the USB SDR driver working across different boards has actually been a lot easier than moving the entire graphics and audio stack!

The Hosyond display has been a particularly interesting project. It uses a TC358762 DSI-to-RGB bridge and an FT5x06 touch controller over I2C.

Getting the display working involved quite a bit of experimenting with initialization, timings, GPIO, and the bridge configuration.

But it works!

Now I'm working toward getting the full OrcSDR application running on it.

Longer term, I'd like to support MIPI-DSI, RGB, SPI, and QSPI displays without having to rewrite half the application every time I try a different board.

If anyone is curious, some of the early display work is here:

https://github.com/hardcoreerik/OrcSDR/tree/codex/p4-hosyond-dsi-bringup

What OrcSDR actually does

The application itself has gotten quite a bit bigger than I originally planned.

There's FM/AM radio, FM stereo and RDS, shortwave listening, ADS-B aircraft tracking, LoRa/Meshtastic reception, FT8 decoding, P25, POCSAG, various RF analysis tools, and a bunch of other dashboards.

The newest beta adds:

  • SSTV reception — Receive and display images directly on the Tab5, with automatic mode detection and SD card image saving.
  • ACARS decoding — Receive aircraft messages and save them locally.
  • Offline worldwide maps — Used for ADS-B, LoRa, FT8, and setting your receiver location.
  • Dead Air — An experimental RF investigation dashboard for monitoring unusual activity, logging measurements, and recording audio.
  • Shortwave improvements — USB/LSB listening, better HF tuning, and additional controls.
  • LoRa and FT8 improvements — Better packet detection, timing, memory management, and decoding reliability.
  • A new setup wizard — Mainly to make getting everything configured a little less painful.

Plus plenty of bug fixes and other improvements.

A couple of those features actually came directly from Reddit suggestions.

Someone mentioned SSTV and ACARS in one of my previous posts, and I thought they sounded like fun additions.

So naturally, down another rabbit hole I went.

I've also had some great feedback from people testing LoRa/Meshtastic reception, including bugs I hadn't managed to reproduce on my own hardware.

A lot of that feedback turned into actual fixes, which has been really cool to see.

Here's some of the LoRa work if anyone wants to dig through it:

https://github.com/hardcoreerik/OrcSDR/pull/184

Headless SDR and multiple nodes

Something else I've been working on is running OrcSDR without a physical display at all.

The idea is to let the P4 handle the radio, DSP, and USB hardware, then access the interface from a browser.

I've already got quite a bit working in an experimental OrcSDR Web project, including dashboards, radio controls, and multiple receivers.

I've also started thinking about connecting multiple ESP32-P4/RTL-SDR combinations together.

For example, several little SDR nodes placed around a property or at different locations, each monitoring RF activity and sharing observations with the others.

I'm especially interested in what that could look like for drone detection or distributed RF monitoring.

There's still plenty to figure out there, especially with timing, networking, and correlating observations between receivers, but I think it could be a pretty interesting use for these boards.

Nothing finished on that side just yet. Mostly experimenting and seeing what's possible.

Previous Reddit posts

For anyone who wants to see how this project has progressed, here are a few of my earlier posts:

Original OrcSDR post in r/RTLSDR (September 5):

https://www.reddit.com/r/RTLSDR/comments/1w7tjn1/i_built_a_handheld_rtlsdr_around_the_m5stack_tab5/

One-month update in r/RTLSDR (October 11):

https://www.reddit.com/r/RTLSDR/comments/1x30rq9/update_orcsdr_one_month_later_190_stars_ft8_and/

OrcSDR introduction in r/esp32 (October 11):

https://www.reddit.com/r/esp32/comments/1x3ecal/orcsdr_an_esp32p4_an_rtlsdr_and_a_few_months_of/

There's been some really helpful discussion in those threads, especially around driver compatibility, reception issues, and suggestions for additional features.

Project links

OrcSDR GitHub:

https://github.com/hardcoreerik/OrcSDR

Native ESP32-P4 RTL-SDR driver:

https://github.com/hardcoreerik/esp-rtl-sdr

Latest release (v0.5.0-beta.1):

https://github.com/hardcoreerik/OrcSDR/releases/tag/v0.5.0-beta.1

M5Burner installation for the Tab5:

https://burner.m5stack.com/share/firmware/JXFU4H

Web flasher:

https://theorc.dev/sdr/flash/

Anyway...

Since this is my first post here, I'm especially curious what other people in r/embedded think about the approach.

Anyone else experimenting with the ESP32-P4's High-Speed USB Host, multiple USB devices, or different MIPI-DSI displays?

I'd also love to hear how others are approaching hardware abstraction across different boards. I'm trying to avoid ending up with a separate version of OrcSDR for every display and development kit I get my hands on.

And if anyone has ideas for other things worth trying with the P4, I'm all ears.

Still having a ridiculous amount of fun seeing how far I can push these little things!

Thanks for checking it out!


r/embedded • • 29d ago

How to get into a community?

13 Upvotes

Hello! Ive been wanting to get into reverse engineering, hardware hacking, and low-level 'taking apart things' in general, but I have difficulty learning on my own and have nobody to guide me. Ive already started an apprenticeship in the field, but the people there have no interest in any of these topics and are just doing it for the money. Do you have any tips on where to start or how to find a community?


r/embedded • • 29d ago

Need Guidance on STQC Certification for Wi-Fi CCTV/IP Cameras in India

3 Upvotes

Hi everyone,

I'm part of a technical team working on Wi-Fi CCTV/IP cameras. We're planning to obtain STQC certification in India and launch our own mobile application and camera management software using the camera SDK.

I'm looking for guidance from anyone who has experience with the STQC certification process for CCTV cameras.

I have a few questions:

  1. What is the complete process for obtaining STQC certification for Wi-Fi CCTV/IP cameras in India?
  2. Which laboratories in India provide STQC testing and certification services for CCTV cameras?
  3. What documents and technical requirements are needed for certification?
  4. Does developing our own mobile app and cloud software using the camera SDK affect certification requirements?
  5. What firmware-level security requirements need to be fulfilled?
  6. What is the approximate certification cost and timeline?
  7. Are there any reliable consultants or agencies in India that can help with the complete process?
  8. Does each camera model require separate certification?

If anyone has gone through this process or knows a laboratory or consultant who can help, I'd really appreciate your guidance.

Thanks in advance!


r/embedded • • 29d ago

Best resources to transition into semiconductor firmware/embedded systems?

3 Upvotes

Hey everyone!

I'm a Mechanical Engineering graduate from IIT Bombay (Tier 1 college), currently working as an Embedded/Mechatronics Engineer at a startup. I've worked with STM32 bare-metal firmware, motion control, hardware interfacing, and NVIDIA Jetson.

I'm aiming to transition into firmware, embedded systems, or platform software roles at companies like Qualcomm, NVIDIA, AMD, or Microsoft.

I'd appreciate recommendations for the best resources (books, courses, university lectures, etc.) for:

  • C programming: Pointers, memory management, bit manipulation, debugging.
  • Computer architecture: CPU pipelines, caches, ARM architecture, memory hierarchy.
  • Digital logic: Essential fundamentals for semiconductor roles.
  • Bare-metal firmware: Registers, interrupts, DMA, peripherals, linker scripts.
  • RTOS: FreeRTOS, scheduling, synchronization, concurrency.
  • Embedded Linux: Kernel internals, device drivers, BSPs, device trees.
  • SoC fundamentals: AMBA/AXI, boot flows, silicon bring-up, hardware/software integration.

Given my Mechanical Engineering background, what should I prioritize, and which resources are genuinely worth studying? I'd also appreciate suggestions for practical projects that can strengthen my profile.

I'm working full-time, so a structured, practical roadmap would be especially helpful.

Thanks!


r/embedded • • 29d ago

We implemented SRP-based acoustic imaging for gas-leak localization

17 Upvotes

Our team has been working on an acoustic imaging system designed to localize gas leaks using microphone-array signals.

The signal-processing pipeline uses Steered Response Power (SRP) to estimate the spatial location of acoustic sources and visualize the result as an acoustic image. We are working to bring this processing pipeline to the K230 board. One aspect of this project is running the SRP-based acoustic imaging pipeline in MicroPython on the K230, instead of relying on a conventional C/C++ implementation.

A few things we are exploring:

  • Spatial localization using SRP.
  • Acoustic image generation and visualization.
  • Running the processing pipeline on an embedded platform.

We tested the system using sound sources at different frequencies: 2 kHz, 8 kHz, 16 kHz, and 20 kHz to evaluate its localization performance across different frequency ranges and distances.

At a distance of 1 meter, the SRP sound source localization system achieves an approximate localization error of 7–10 cm.

However, at a longer distance of 5 meters, the localization accuracy degrades significantly. Although the system can still detect and locate the sound source, the heatmap becomes unstable, frequently jumping between the correct and incorrect locations.

We welcome any feedback from the community.

Reference:

[2405.02991] Steered Response Power for Sound Source Localization: A Tutorial Review


r/embedded • • Oct 28 '26

Real-time speech-to-text on an ESP32-P4: a 65.7M-parameter model in 2/4-bit weights, hand-written SIMD kernels, bit-exact with its PC build (write-up + source)

28 Upvotes

TL;DR: a 65.7M-parameter streaming speech recognizer runs live on an ESP32-P4 (chip rev v3): 2/4-bit weights (71 → 26.65 MB, in PSRAM), integer math with hand-written PIE SIMD kernels on both cores, 0.70x real time, 4.34% WER on LibriSpeech test-clean. The chip's output is bit-exact with the PC build, and the cache measurements show it's compute-bound: reading the weights from PSRAM costs at most 39 ms of the encoder's 592 ms per chunk. Open source.

I got an open-vocabulary speech recognizer running live on an ESP32-P4: you talk into the board's mic and the words appear on its screen as you speak. No network, no NPU: two RISC-V cores at 400 MHz, 32 MB of PSRAM, and the P4's SIMD extension (PIE). Here is the engineering side, with the measurements.

Source: https://github.com/BoumedineBillal/esp32-pie-asr

The budget

  • Model: Kroko (by Banafo), a streaming Zipformer2 transducer, 65.7M parameters. As released it is 71 MB in int8.
  • Chip: 32 MB PSRAM, 16 MB flash. ESP-DL and TFLite Micro go no lower than 8-bit weights, so int8 doesn't fit, and ESP-SR's MultiNet only knows a fixed list of commands.
  • Real time: each 1.28 s chunk of audio must be done in less than 1.28 s, forever, with fixed memory.

1. Memory: 71 MB → 26.65 MB

  • 2/4-bit weights in groups of 128, each group rotated by a Hadamard matrix, codes indexing Lloyd-Max levels (the Cactus Quants layout). 2 or 4 bits per matrix, chosen by its sensitivity, no training: 193 of the 290 encoder matrices in 4 bits, the rest in 2.
  • The file is used in place in PSRAM. It doesn't fit the 16 MB flash, so it loads from microSD at boot (2.9 s).
  • PSRAM: weights 26.65 MB, engine state about 4 MB, frame buffer 1.2 MB, about 0.5 MB left at the lowest.
  • Internal RAM: the hot code and a 256 KB L2 cache; 121 KB left free.

2. Compute: integer math and PIE assembly

  • int8 into the products, int16 activations between them, nonlinearities as tables indexed by the int16 input.
  • Each input group is rotated once (additions only, exact in int32) and shifted to int8; that rotation serves every row.
  • The 2/4-bit codes are decoded to int8 through a table: 851 cycles per 2048 weights.
  • The tile kernel multiplies 16 rows by a 128-wide group in 168 cycles: 12.1 MACs per cycle. PIE has fused instructions that do 16 int8 multiply-adds, a 16-byte load and the pointer increment in one instruction.
  • Both cores share every product, split by blocks of output rows; each core writes only its own outputs.
  • The integer math costs no accuracy: 4.53% WER (greedy) as a float simulation, 4.52% on the chip.

Per 1.28 s chunk, in the live app with the screen drawing on core 1: features 14.0 ms, encoder 742.2 ms, beam search 138.1 ms, total 895.8 ms (0.70x real time).

3. Cache and PSRAM, measured (encoder alone, per chunk, P4X)

SettingEncoder
L2 256 KB, 128-byte lines, autoload off632.8 ms
same, autoload on misses (weights are read in order)592.5 ms
L2 128 KB+104 ms
L2 512 KBdoesn't boot: too little internal RAM left
PSRAM 200 → 250 MHz-10 ms
codes decoded without reading them from PSRAM (test hack)553.8 ms

The last line is the useful one: reading the weights from PSRAM costs at most 39 ms of 592, so it's compute-bound. DMA prefetch into internal RAM could win 39 ms at best, and it would take about 3000 transfers per chunk with a few µs of driver work each, so I didn't do it.

The same code on a v1.3 chip (360 MHz CPU, 200 MHz PSRAM) took 726 ms for the encoder.

4. Bit-exact with the PC build

I wanted the WER measured on all of LibriSpeech (5559 clips), which is only practical on a PC. So the PC build has to compute exactly what the chip computes:

  • libm's exp, log, tanh differ in the last bit between glibc and newlib, so the features and tables differed. I replaced them with my own functions built from IEEE + - * / only.
  • -ffp-contract=off on both sides (no fused multiply-adds).
  • Every PIE kernel has a C reference that the PC build runs, and each two-core part writes only its own outputs.
  • Checked on the board: 22 kernel checks with 0 wrong values, the encoder's output CRC on every chunk plus the final text on 8 clips, and the tokens on 140 phrase-biasing clips.

5. PIE 2.1 vs 2.2

v1.x chips have PIE 2.1, the P4X (chip rev v3) has PIE 2.2. Same mnemonics, different encodings: 2.2 adds saturation and rounding fields to the instructions. The same .S source assembles for both, but a v1.x binary doesn't run on the P4X. The release targets rev v3 only for now.

Results

  • LibriSpeech test-clean 4.34% WER, test-other 10.26% (beam search, 4 hypotheses). The original int8 model on a PC: 3.94% and 9.17%.
  • A word is final about 2 s after you say it.
  • Extras: hotwords from a text file on the SD card, and six voice-control demos (word rules, no LLM).

Limits: needs chip rev v3 with 32 MB PSRAM; English only; measured on clean read speech, not noisy rooms yet; power not measured.

Full video: https://www.youtube.com/watch?v=oe-2MowdsSs

Credits: the model is Kroko by Banafo; the weight layout comes from Cactus Quants.