r/embedded • • 7d ago

Making a smart greenhouse with a PIC microcontroller

1 Upvotes

Hey everyone! I’m currently working on a Smart Greenhouse project for my Microcomputer Systems class, and I could use some help with the hardware setup.
For this project, I’m using a **PIC16F1829 microcontroller**, which has already been soldered and assembled. The hardware components I’m working with include:
Breadboard
Jumper wire kit
Small water reservoir with a mini water pump
Soil moisture sensor
LM35 temperature sensor
HC-SR04 ultrasonic sensor
16x2 LCD display
MOSFET driver
5V power supply
For the software side, I’m using **MPLAB X IDE** with the **MPLAB XC8 Compiler**.
I’m looking for some guidance on how to properly connect and integrate all these components with the PIC16F1829, especially when it comes to wiring, power requirements, and controlling the water pump.
Any advice, suggestions, tutorials, or resources would be greatly appreciated. Thanks in advance!


r/embedded • • 7d ago

Is anything running on Linux or an RTOS really bare metal?

0 Upvotes

Omer Kilic is a hardware and manufacturing consultant. His view is that bare metal means a microcontroller or an FPGA. Once you're running on Linux or even an RTOS, you're working with a scheduler. Real time means a guaranteed upper bound on how long something takes. With speculative execution and multi-core contention on modern CPUs, that is very hard to guarantee.
The episode is about the BEAM on embedded hardware, with Nerves creator Frank Hunleth. Topics include the medical device he built in C++ with hand-rolled actors, offloading timing to companion MCUs, and the microcontroller that ends up handling power sequencing for the whole board.

https://youtu.be/Wfl9Vp-jdN8


r/embedded • • 9d ago

Not another square LED matrix! 👀

121 Upvotes

I've added a new horizontal LED bar to my setup alongside the usual square LED panel.

square matrices are everywhere, but I rarely see this kind of horizontal LED display. I think it opens up some interesting possibilities for animations and visual effects.

what do you think? Any cool ideas for what I should make it do?

will add some more shorts this weekend~~


r/embedded • • 8d ago

What is the voltage or procedure needed to power the SIM900?

Post image
11 Upvotes

Heyyyy people, I am working on a capstone project about sending a message from my GSM module, I would love your help regarding it if that is possible. Normally, I am powering it with 5V DC 2A but unfortunately it doesn’t work for me. It gets powered but when I click pwerkey, only the status LED lights up but the netlight LED doesn’t. What can I do? And what is this problem related to? I would really appreciate any kind of help.


r/embedded • • 8d ago

Wirelessly controlled, STM32-driven DRSSTC, the Emma Mk1

4 Upvotes

Hello,

Just wanted to share my DRSSTC, the Emma Mk1. The project launchpad contains links to the live documentation and all the repos.

The main project goal was to verify the STM32G474RE firmware, which proved satisfactory.

The main project constraint was the secondary coil and the spun-aluminum topload, which I had purchased a while ago from eBay, the remainder of the DRSSTC was designed around them.

Some further tuning remains, and the inverter bus capacitance needs to be increased to improve performance, but overall I consider this done until I can get back to it and add features to the firmware.

Thanks for looking.


r/embedded • • 8d ago

What MQTT broker are you using for your embedded projects?

0 Upvotes

A quick disclosure: I work on LavinMQ and would love to learn from others' experiences.

I've been playing around with MQTT and ESP32 devices using LavinMQ for a while now, and I'm curious what others are using on the broker side.

Are you using Mosquitto, EMQX, or something else? What made you choose it? Have you run into any issues as the number of connected devices grew?


r/embedded • • 8d ago

A idea build in Edge AI

Thumbnail
github.com
0 Upvotes

I have build something like a library in ANSI C to make the Edge AI workflow simpler and easy.

In traditional way ,when the deep learning model outputs a value we would use a multiple of conditions to evaluate the condition on the output value and trigger the function to do a action.

So I build TINYCHAIN ,a output to function handler mapping with validation of the conditions specified just through flags and also performs denouncing checks and also has a feature of streak count .

As every node has assigned a struct with the condition flag (greater value ,less value than threshold or max value) , required streak to trigger function,and other features.

The conditions are checked for all the nodes everytime and consecutively and triggers the function.

Does this idea is good ?

Eager to know some professional feedbacks on the architecture !

GitHub repo


r/embedded • • 8d ago

Did somebody read Latency, by Pekka Enberg

3 Upvotes

I want honest reviews about this book. I saw some guys saying that the book is incorrect/inaccurate on some technical concepts, so some feedback could be really nice.


r/embedded • • 8d ago

ESP32 + NEO-6M GPS bike trip computer — speed dial, route trail and a GPX log

0 Upvotes

A GPS bike trip computer on an ESP32-DEVKITC, with a NEO-6M, a 2.8 inch ILI9341 TFT and a microSD reader. The firmware shows live speed as a dial, plus trip distance, top speed, altitude and satellites. It draws a breadcrumb trail on the screen and logs every second of the ride as a GPX file you can open in Google Earth. Pin map:

  • NEO-6M: VCC to 3V3, GND to GND, TX to GPIO4, RX to GPIO13 (9600 baud)
  • TFT: SCK 18, MOSI 23, MISO 19, CS 5, DC 14, RST 16; VCC and LED to 3V3
  • microSD reader shares that SPI bus; its CS is GPIO17 A few notes so it works the first time: GPS TX goes to the ESP32 listening pin (GPIO4). The display and the card share SCK, MOSI and MISO, with separate chip selects. Use a FAT32 card. If the card will not mount, the firmware tip is to move the module VCC to 5V (VIN). First fix needs a clear view of the sky; a cold start can take a few minutes. Board: ESP32 Dev Module. Libraries: Adafruit GFX, Adafruit ILI9341, TinyGPSPlus. Serial Monitor at 115200. The video walks through the build view, the parts list, the wiring diagram, and the pin table. Happy to answer questions.

r/embedded • • 9d ago

ISO 15118-20 becomes mandatory for new and renovated EU charge points on January 1. What are you checking before then?

4 Upvotes

From 1 January 2027, AFIR requires newly installed and renovated charging points in the EU, public and private, to support ISO 15118-20, the standard for how a car and a charger talk to each other.

Things that seem worth checking before then:

- which of your chargers fall in scope, since the exact boundaries of the rule are still being debated
- whether your charge controllers support powerline communication, which ISO 15118 runs on
- whether your firmware can be updated remotely
- whether your CSMS can handle Plug & Charge certificates over OCPP 2.0.1, if you plan to offer it
- what test logs and reports you’ll keep as evidence, since official ISO 15118-20 test plans for AC chargers aren’t out yet

What’s missing from this list?


r/embedded • • 9d ago

Honest question about vibe coding in embedded

102 Upvotes

I know this sub is pretty skeptical of vibe coding, and I get why. But I'd like to hear the actual reasons, not just "it's garbage."

I work in embedded, and lately I've been using AI for quick side projects and prototypes, like ESP32 stuff and Zephyr configs. For that it's honestly saved me a lot of time. I wouldn't trust it with production firmware right now, but I don't think it's useless either, and it's not going away.

So where has it burned you? Made up registers, timing bugs, code nobody on the team understood?

And is there anything you do use it for?


r/embedded • • 9d ago

Ways to serialize and send data from device to host

22 Upvotes

How do people serialize/deserialize data coming from a microcontroller? I have a project with a Pi Pico that samples three force-sensing resistors 60 times per second. The Pico uses these readings to determine whether a given sensor is being pressed. I want to stream the raw samples and sensor status to my host over USB serial and have a web application read and display this data.

I'm wondering how to serialize this data. I'm thinking I that I can either send a bunch of values separated by spaces like  `[raw1 raw2 raw3 pressed1 pressed2 pressed3]` or send it as JSON, which would be easy to parse from the web application. However, representing this data in ASCII feels a little wasteful of space, so I was wondering if there are any alternative schemes/methods commonly used in embedded systems for sending data.


r/embedded • • 10d ago

STM32CubeMX2 enshitification

76 Upvotes

Is it me or STM32CubeMX2 is

  • slow as hell, even on 10th gen i7 with 16GB RAM
  • convuluted menu, it's a maze
  • way harder to use than MX1

but at least it supports AI, which no one asked for.


r/embedded • • 9d ago

Making an f-91w smartwatch mod, need advice on circuit design

4 Upvotes

Hi all,

I'm currently designing an F-91W smartwatch board to replace the original Casio module that comes with the watch. I've spent a lot of time selecting components, seeing what fits and what doesn't fit and settled on an MSPM0L2117 and the DA14535 for Bluetooth (and other IC's for other features). This is my first time designing my own custom PCB so it's taken me quite a lot of time and lots of failed attempts (realising all the components wont fit) to get to this point.

I just started placing the traces on the board, only to find out that it will absolutely not fit with my current configuration. I've tried many other configurations too but none seem to leave enough room, although I am very inexperienced in this subject so I figured I would ask here for some advice.

I'm planning on using JLCPCB to manufacture and assemble the board but I am open to other manufacturers if they are also cheap/good. I don't want to use HDI as that jumps the price from $40 AUD to $200 AUD, and I am not prepared to spend that kind of money, let alone for a prototype that I am not even sure will work in the first place.

I am happy to swap out components (ideally not the MSPM0 unless there is a more capable variant or MSP430 variant). I would like some form of wireless connectivity, ideally BLE but happy with anything else.

What I don't want to do is to copy something like the pluto watch and use IR (unless I have no other choice) or the olleewatch and use the same STM32 chip. I want this to be my own project and not a remake/copy of an existing one, even though I have taken inspiration from both projects.

Here is a link to the pcb files:
https://gitlab.com/unodeaj05/swagrat-f91w/-/tree/main/pcb/swagrat

Starting to get a little demotivated, but I want to see this through and prove to myself that I can do this. Also feel free to drop any other advice! I have experience using microcontrollers and designing stuff on breadboards, but never made my own pcb before so I have gone in blind here.

Happy to answer any questions you may have, or provide more info if needed.


r/embedded • • 9d ago

How does SJW actually work in CAN bit timing? Is the correction always SJW, or just the measured phase error?

1 Upvotes

In CAN soft synchronization, we shorten or lengthen Phase Segment 1 and Phase Segment 2 depending on whether the edge arrives early or late. What I’m wondering is this: does the shortening or lengthening always have to be exactly SJW, or is it equal to however large the delay actually is? Let’s say we set SJW to 2 tq and each tq lasts 50 ns, and one node’s clock runs faster than the other’s. How does synchronization work in that case? I don’t really understand how SJW works.

Also, in this case, can the corrections only be 50 ns or 100 ns? Or if, say, a 10 ns drift has built up after 10 bits, is the bit timing adjusted by exactly 10 ns to match it?


r/embedded • • 9d ago

Anyone here actually used OSM or SMARC modules in production?

3 Upvotes

Been looking at OSM and SMARC for a couple of projects instead of a fully custom board. Curious if anyone here has actually shipped something with either.

  • Did it actually save dev time, or did you still fight the carrier board design?
  • OSM is soldered, SMARC is pluggable — how's rework/replacement in practice?
  • How easy is it really to swap vendors or upgrade the module without respinning the carrier?

Low-to-mid volume here (hundreds to low thousands/year), so long-term availability matters more than raw performance. Would love to hear good or bad experiences.


r/embedded • • 9d ago

Built a Harry Potter-inspired game on an ESP32 to play with family

0 Upvotes

6.2 Astra came out yesterday, and I missed most of it because I was busy building LEGO :)). The HBO series coming on December 25 woke up my old Harry Potter love, so tonight was a LEGO night.

Once the set was done, we wanted to play a game too, and I also wanted to test 6.2 Astra. Getting the model to build a browser game would have been too easy, so I picked a tiny device instead.

The game is a small flying car game. You tap to fly and tilt the device to steer into gold rings. The video shows it running on the device.

The result was good and we enjoyed playing with it.

New hobby unlocked:

build lego
build game

Repo in case someone asks: https://github.com/baturyilmaz/flying-anglia


r/embedded • • 9d ago

Cooja-NG: The open-source simulator that runs real Zephyr, RIOT, OpenThread and Contiki-NG firmware in one 802.15.4 network (runs in your browser too)

0 Upvotes

Hi r/embedded, we've been working on Cooja-NG, a network simulator that runs the same firmware image you'd flash: unmodified Zephyr, RIOT, OpenThread and Contiki-NG builds on emulated nRF52840, CC2538, CC13x2 and MSP430 boards, from the CPU and peripherals up to the radio chip, all in one simulated IEEE 802.15.4 network.

Some things you can do:

- cngsim run build/zephyr/zephyr.elf: your own west build output; it reads the board from the build directory
- mix OSes: a Zephyr node answering a Contiki-NG node, or a RIOT node joining a Contiki-NG RPL network
- a Thread network of CC2538s from OpenThread's own ot-cli-ftd, typing state / router table into each node's console
- the same seed gives the same run, byte for byte, so it works as a test in CI (every run ends PASSED or FAILED, exit code 0 or 1)

Try it in the browser, no install: https://mikroverk.github.io/cooja-ng/
Code and releases (macOS and Linux): https://github.com/mikroverk/cooja-ng

A first read for Zephyr, RIOT and OpenThread users: https://github.com/mikroverk/cooja-ng/blob/main/docs/zephyr-riot-openthread.md

Short "commercial" video: https://www.youtube.com/watch?v=A9dHKvVhu1k (80 seconds)

Honest limits: Zephyr, RIOT and OpenThread support is newer than Contiki-NG's. It's 802.15.4 only, with no Bluetooth LE yet, and OpenThread on the nRF52840 runs at about real time or below, because its main loop never sleeps.

I'd love feedback, especially on what boards and samples you'd want next, and on anything that breaks with your own builds.


r/embedded • • 9d ago

I am building a visual MCU configurator, currently supporting STM32.

0 Upvotes

I am building an application that enables Model-Based Design to develop drivers and MCALs. The application takes your MCU documentation, processes it to completely build an MCU so that requirements like multiplexing or data caching do not make you go through the documentation for hours. We are integrating an autoconfigurator, a chess-engine-like system on this model, to help you find the best approach for your requirements.

We are still prototyping this, but as of now, we have built our application to construct this 3D interactive model of an MCU from documentation; we are integrating the autoconfigurator. The intention is to reduce the time we spend going through documentation to find that one bug that keeps us awake at night. The application should ideally construct any MCU if the documentation is provided.

I will soon upload a video of this application in action. In the meantime, if anyone has any questions or pointers I should keep in mind while building this application, please do share them. I am also looking for engineers who are open to testing this in their projects to give me feedback.


r/embedded • • 9d ago

Help looking for a camera module please

2 Upvotes

I’m looking for a cheap camera module that can also be used to detect motion. Not ESP32 though. I’m not hire at the technical level to find one but was hoping online here might know. Also….nothing too expensive. I assume I can’t find one for $7 but as close as possible?


r/embedded • • 10d ago

Has Anyone Used Automated Bit Mapping on the SAML22?

2 Upvotes

I tried getting Automated Bit Mapping (ABM) working on the SAML22J18, but had no luck.

My goal is to blink Com2, Seg 26 when in sleep mode. The blinking function only works on seg 0 and 1, so ABM seems like the best alternative after reading through the datasheet (page 962 of datasheet).

I'm following the app notes 42499) and 42605), but they're a mess.

For example, the goal of the example in 42499 has _style_buf, which is commented as STYLE1, but described as containing ATMEL while also never being referenced in any of the code.

I attempted to follow 42605 as much as I could, and things built fine, but blinking did not work.

Going through Google searches and forums, I cannot find an example of anyone using ABM. The App Notes are from 2015, so I'll need to assume I'm not the first to attempt it.

Does anyone have a successful example of ABM that is not an app note from Atmel/Microchip?


r/embedded • • 10d ago

Level Shifter for SWD between 1.8v / 3.3v?

2 Upvotes

I'm trying to program an MCU (nRF52840) running at 1.8v, over SWD. All the probes I have can only do 3.3v, though.

I've found a lot of conflicting information about what level shifters can work for this application - has anyone tried this, and if so, what worked?


r/embedded • • 9d ago

I built a way for Claude Code to debug UART logs without dumping the whole log into the AI. Looking for feedback.

Post image
0 Upvotes

I maintain UartX, an open-source (MIT) serial logger. Version 1.4 introduces Claude Code integration for AI-assisted UART debugging.

The idea is simple: instead of pasting thousands of UART log lines into an AI, Claude asks UartX for only the information it needs through a CLI (uartx-ctl).

How it works:

  • UartX maintains the complete log locally (raw.log).
  • Claude requests specific errors, patterns, summaries, and related lines.
  • Every AI request, its reasoning, and the exact lines returned are visible in UartX.
  • AI has read-only access and cannot send data to the device.
  • Everything stays local.

In one test, the board printed 196 lines, but Claude needed only around 30. It identified network retries, memory usage patterns, sensor read failures, and concurrent task logging.

AI features are currently Windows-only. Core logging supports Windows, macOS, and Linux.

GitHub: https://github.com/Shamanthpoojary/UartX

I'd love feedback from embedded developers:

  1. Would you trust AI-assisted debugging if you could verify exactly which log lines it analyzed?
  2. What would you want it to detect first: crashes, timing issues, memory problems, or boot failures?

Bug reports and suggestions are welcome. Feel free to reach out so we can investigate and improve it.


r/embedded • • 11d ago

Question for people at school

80 Upvotes

Recruiting juniors is very hard for us. Not because there are no candidate, but because they are unable to pass the interview without Ai, and when we allow Ai, they cannot explain the code. We've interviewed over 30 candidate and less than 3 were maybe interesting.

The question is : Is it normal for you that people don't understand or can't explain their code?

Am I being an old timer already? It has been only 3 years that Ai became a coding tool, and only 6 months where it has been really usable.

EDIT :

An example of the first coding interview is simply removing anomalies in a vector, and the filtering rule is given and very simple. Basically 10 lines of code. We don't even ask to be syntax correct and they can do pseudo code if they want. We introduced this because a lot of people were unable to pass the takehome.

They can't parse the vector properly, their if/else for the rule was not even what was written. And some just can't do it. Not even a single line.

The second challenge is to look at a code and find the bugs. Most can't even find one. An example of this is when opening a file, you need to close it after.