r/embedded • • 9h ago

WAP Browser on a Microcontroller

5 Upvotes

https://github.com/jabezwinston/MicroWAP-Browser/

Memory usage

Flash : 103 kB (Includes fonts, small T9 dictionary, HTTP stack without TLS)
RAM : 26 kB
Worst case stack usage : 2.5 kB

VSCode extension for WML and WMLScript

https://marketplace.visualstudio.com/items?itemName=jabezwinston.wap-toolkit

Examples from old (2002) Nokia Mobile Internet Toolkit
https://github.com/jabezwinston/NMIT-examples

No support for WAP 2.0

NOTE : AI was heavily used in development but it still took me 9 months to make it production ready.


r/embedded • • 21h ago

Decompiling ebike motor firmware with AI

0 Upvotes

Did anyone tried using AI tools to decompile and modify the ebike firmware or CAN bus data? 

What motor did you work on?

What was your process?

Any success? if yes what did you modify?


r/embedded • • 14h ago

Help with HIL and Unit Testing

2 Upvotes

Basically the heading.I dont know how to write test scripts .how do you guys do it?I want to learn but alot of tutorials online kind of just assume i know stuff. can anyone help me?


r/embedded • • 19h ago

How do you see the SCADA Engineering market right now?

2 Upvotes

How do you see the SCADA Engineering market right now compared to CS traditional roles? Do you think we have a shortage of good engineers in that space?


r/embedded • • 18h ago

When did you start altering Linux drivers?

40 Upvotes

I am around 5 years into my career as an embedded linux developer, but I program entirely in user space. The drivers for the boards are long standing and haven't been altered in years but any time I'm talking to recruiters they want to know if I've altered the bsp and worked essentially in kernel space for really entry level kind of jobs that are looking for someone who has 3+ years of experience or 5+ years of experience. Am I being stunted at my current job? When I joined the next newest guy on the team was around 10 years just at this company.


r/embedded • • 4h ago

Same Arduino firmware, two targets: an ESP32 robot and a host simulator with 49 regression tests

Post image
0 Upvotes

My ESP32 maze robot's firmware builds two ways: for the board with arduino-cli, and for the host with g++ against stand-in Arduino headers. The host build runs the whole firmware, unchanged, on a model of the robot. Looking for critique of the setup.

How it's split

  • test/stub/ has host versions of Arduino.h, Wire.h, WiFi.h, WebServer.h, Preferences.h and esp_system.h. Compiled with -include Arduino.h, so the firmware sources need no #ifdef SIM.
  • Pure logic (path.* for the turn list and dead-end removal, captive_dns.*) has no Arduino dependency and gets plain unit tests.
  • robot_sim_test.cpp links every .cpp and drives a physics model: two skid-steered sides with a dead band, the L298N EN/IN pins, 5 IR sensors over tape, an HC-SR04, the servo read back from its pulse, and an SSD1306 model where every I2C message takes its real time.
  • Each scenario runs in its own process with fork(), so one crash doesn't take the rest down.

What the 49 scenarios check

  • Random mazes in every mode, mazes laid across table seams, a power dip and restart
  • Battery current per side from applied voltage minus back-EMF: the soft start must keep it near half the stall current
  • The servo's 50 Hz PWM never shares an LEDC timer with the motors
  • Pushing a face frame over I2C never starves steering: max ~7 ms between line reads against a 4 ms control step
  • The https server's task runs as a separate thread, like core 0 on the real chip

CI: GitHub Actions builds the host tests with -Wall -Wextra -Werror -fsanitize=address,undefined, runs everything, then compiles for real ESP32 cores with arduino-cli.

What it doesn't catch: tuning. PD gains and timings for a given floor are still set on the robot from the phone.

Demo of a simulated run attached. Code: https://github.com/akeanti/nuri (sim runs in Codespaces: https://codespaces.new/akeanti/nuri?quickstart=1)

Questions for people who do this professionally: is stubbing at the Arduino header level reasonable, or would you put a HAL interface in the firmware itself? And how do you model timing (I2C, ISRs) in host tests without it becoming a second firmware?

If you like it, a star on the repo helps a first-year student a lot.


r/embedded • • 12h ago

Staying engaged with modern paradigms

9 Upvotes

I searched but didn't see anything involving this, sorry if it's kind of a repeat.

I wrote code before AI, even as a hobby growing up. I always enjoyed problem solving and coding, especially FW/embedded stuff. Doing this my days went by so fast.

I worked in FW for a few years before AI and I loved it. But I eventually went to do something else and realized I really had a passion for embedded. I return to FW not that long ago and integrated AI into my workflow. Initially it was pretty cool, I'd break features into chunks and discuss design/implementation, and then review changes and have claude implement them until I finished the feature.

But now it seems like there is pressure to move away from this because it's considered "slow". Instead I'm being told to get Claude to do it all at once then review it after. But this is resulting in a ton of changes that I have no context for. In one case we had 20+ files changed and 5 new files, with a bunch of refactoring because the code base is shit from a bunch of previous AI commits.

I keep being told FW engineering needs to review because they "own the code" but I don't even understand what this means at this point. I'm at the point I'm finding this incredibly boring and as a waste of time. Everyone always says coding wasn't the hard part, but it seems like most of the coding is bug fixes or small features that are just expected to be clauded. I'm not really solving any problems..only typing in a chat box. Days go by so slowly and it's always a drag.

I got into this field because I had a strong passion for electronics and programming but at this point, I think it's dead. I'm considering leaving embedded for good and getting out of tech altogether.

Before I make any decisions, I just am curious: has anyone actually figured out how to enjoy this or at least stay engaged with the job?


r/embedded • • 14m ago

Made a little 3D motion tracker for my FRDM-K64F

4 Upvotes

I had a FRDM-K64F lying around and wanted to see if I could make it move a 3D copy of itself in the browser. So I wrote some firmware to stream the onboard sensor data over USB, then made a small web dashboard that reads it with Web Serial.

The fun part was getting the axes right. I’d tilt the real board one way and watch the 3D one go the other way lol. I also spent a bit of time making the model look like the actual board, down to the USB ports and pin headers.

Rotation is the part I’m happy with so far. I’m still messing with XY displacement, it drifts pretty quick and sometimes barely moves when I slide the board across the desk.

Anyone here tried tracking short movements with this board? Curious what kinda results you got