Is there any issues with this delay circuit to enter download mode with a single button?
▲ 3 r/esp32

Is there any issues with this delay circuit to enter download mode with a single button?

My handheld device is limited to 2 tactile switches, one of which is used to wake the device up from deep sleep & the other one I want to use to enter download mode.

After looking into the datasheet, I found that logic level high & low voltages are 0.75 * VDD & 0.25 * VDD respectively (2.475V & 0.825V).

I came up with the following circuit where after toggling the button, RST goes "HIGH" (above 2.475V) at ~16 ms and after that, IO0 stays "LOW" (below 0.825V) for about ~24 ms.

Here's the falstad circuitjs link if anyone wants to try: https://www.falstad.com/s.php?s=XXFnBH

I want to know if there's any issue with this circuit or if there's a better alternative?

This device will be updated OTA for most of the time, but this is a fallback mechanism to ensure the device isn't bricked in an bad update.

Edit: The MCU is ESP32-S3

u/FoundationOk3176 — 20 hours ago
▲ 101 r/debian

Debian 13.6.0 running on Dell Wyse 3040

Got a Dell Wyse 3040 Thin Client for $20. This particular model has a quad-core Intel Atom x5-Z8350 with soldered 2 GB of DDR3 RAM & 8 GB eMMC.

With the right skills, you can obviously desolder the RAM and/or eMMC, and upgrade them. eMMC pinouts are standardized so I think it'd be trivial to choose a replacement chip.

DDR's pinouts aren't standardized but particular configurations have unofficial standard pinouts, Like the BGA96 package for x16 configuration. But I'm not sure if anyone has tried this, as compared to the eMMC, which one madlad actually did upgrade: https://sagacioussuricata.com/posts/wyse-3040/

Debian installation was quite simple & with just the base system + ssh server, the whole installation is about 1.2 GB.

One of my plans is to build a Linux system for this mini PC using Yocto as a way to learn Yocto itself. Primarily because I plan on using Yocto for a custom Arm-based Mini PC thing I'm working on right now.

I've also configured it to use a static IP because this will be a test mule of sort for a suite of programs I'm going to write implementing SFTP, SMB, etc protocols. A light-weight git hosting service, A multi-media hosting service like Jellyfin & much more. Primarily because I want them to be efficient for the Arm-based Mini PC thing I'm working on which won't have more than a gigabyte of memory.

u/FoundationOk3176 — 1 day ago
▲ 99 r/KiCad

"Made" a inverted theme for KiCad v9's schematic editor

Wrote a script to generate inverted colors for the schematic view in Kicad as I found myself often using the software in low-light conditions. None of the themes I found were good enough for me so I wrote a simple Nodejs script to load the .json file & invert the colors related to the schematic editor.

You can get the user.json I generated here: https://pastebin.com/raw/CppqmHAg

You can also get the Nodejs script here: https://pastebin.com/raw/nR9M441d

The script was not generated or derived by AI, It's something I wrote in 5 minutes and is in public domain, do anything you want.

Edit: The schematics attached in the screenshot are part of the demo projects provided in Kicad v9.

Edit: Thanks to u/ferrybig for pointing out mistakes in my code & for providing a much more accurate implementation of inverting colors. You can download the script with his changes applied here: https://pastebin.com/raw/iHZX4PUs (You still may need to modify the final background colors to suit your liking.) or you can simply download the theme generated after this change from here: https://pastebin.com/raw/HcqsNr70

In addition to the changes by u/ferrybig, He also pointed out that inverting alpha is pointless thus if you want to still use the original script, please replace return 1.0 - v; with return v; on line 23, for a better colors.

or you can simply download the theme generated after this minor change from here: https://pastebin.com/raw/wYABxbAs

u/FoundationOk3176 — 7 days ago
▲ 2 r/esp32

Is it possible to use ESP32-S3's USB peripheral for flashing & regular communication?

I have a custom ESP32-S3 based device which I want reduce in size further & reduce the BoM by eliminating the USB to UART chip for flashing the device.

I will still expose the pads for RX, TX, GPIO0 & nRST pins for initial flashing of the firmware but is it possible to flash the firmware using the dedicated USB peripheral & also use it for USB communication with other devices?

Perhaps, having an onboard tactile switch pressing which, followed by powering the board would put the device in update mode?

I'll be honest, I am trying to save time by seeing if it's possible to begin with.

reddit.com
u/FoundationOk3176 — 13 days ago
▲ 279 r/hardware

Why can't modern CPUs run at very small frequencies?

Few months back I was trying to underclock my laptop to increase it's battery life, In my case the smallest frequency I could reach was 800 MHz.

Today suddenly it got me wondering why couldn't the CPU just be underclocked beyond a certain frequency? From my understanding of hardware, each clock cycle the CPU does something but then why does it matter how long that clock cycle is?

If anything the timing requirements would be more than lax, DDR should work just fine, The display would update at pretty horrible speeds, but it should work nonetheless?

The only reason I can think of is few peripherals that need higher clock speeds to function, Like maybe the USB 3.0 port, but if we just disregard that...

Why can't modern CPUs run at very small frequencies?

Edit: My question isn't about increasing the battery life of my laptop, The question is pretty much the title.

reddit.com
u/FoundationOk3176 — 28 days ago

How can I learn designing mechanical side of UAVs?

I want to design & build an UAV but my experience is solely limited to designing hardware & software, Thus I was wondering if there's a place I can learn how a UAV is designed so that I can design one on my own.

Particularly I want to learn how to design the mechanical side of UAVs. Like how the frame, wings, etc are designed, what kind of material to consider, what kind of motor to use, what kind of wing types & orientations to use, how to fabricate it yourself, etc.

I haven't designed any quadcopter or any kind of fixed wing aircraft before.

reddit.com
u/FoundationOk3176 — 30 days ago

Is it possible to interact with any one of many USB hosts simultaneously connected to an RP2350?

I have a RP2350 configured as a USB HID (Keyboard) device, In my PCB design I want to have multiple USB-C ports to allow connection with multiple USB hosts and at any given moment I want to be able to send keystrokes to any one of the connected USB hosts.

By many, I mean just 3-4 USB hosts. From what I've been able to gather is that it may be possible using a USB data mux? But I'm not sure if it'll work in the configuration I want to.

Thereby is this possible? If so, please point me in the right direction.

reddit.com
u/FoundationOk3176 — 1 month ago
▲ 3 r/Xpulse210+2 crossposts

How can I tighten bolts without knowing the torque?

My front wheel is misaligned due an recent accident, The forks are twisted & I want to loosen the bottom triple clamp bolts, the stem nut & axle nuts to pump the forks and see if the wheel comes back to it's original position.

The issue is that the manufacturer of my motorcycle does not state torque values for most of the bolts on my motorcycle aside from the rear & front axle.

They do seem to have an internal service manual for their employees only but I haven't even seen a torque wrench at their service center. I doubt they really tighten things to spec.

So how can I tighten my bolts without knowing the appropriate torque?

It's a '22 Hero Xpulse 200 4V.

reddit.com
u/FoundationOk3176 — 2 months ago

Is there a name for this kind of lithium battery? How can I source them reliably?

I've been trying to find such a type of battery for a handheld device I'm working on. 1000 mAH is the minimum requirement. I really like the above mentioned battery as it's easily swappable, easy to install & low profile.

I can't seem to find them anywhere aside from Amazon, etc which is likely a clone. I don't require them in bulk yet but I do want to ensure availability doesn't become a issue if the sales become high.

From what I understand these batteries are certified, so I don't need to certify them myself.

u/FoundationOk3176 — 2 months ago

How to design around (LP)DDR2/DDR3/DDR3(L) SDRAM chip without relying on a particular manufacturer & Can bigger memory than the CPU supports be used?

I am looking into designing a super simple development board around STM32MP13X MPU for learning 4-layer PCB design with BGA chip.

STM32MP13X supports upto 1 Gbyte of LPDDR2/3 & DDR3/3L SDRAM (in single rank configuration). When I was looking into sourcing the actual RAM chip, it seems that there is no standard pinout? So how can I design my board without relying on any one manufacturer because they are in low units on mouser, etc.

It seems that my best way forward is using a DDR3 SODIMM stick which seem to be easily available anywhere, but it seems that the smallest memory size I can find is 2GBytes.

So can I actually use > 1Gbyte DDR3 SODIMM stick with my STM32MP1? Intuitively I think the MPU would simply not address the extra memory but I'm not sure if that's how it would be in practice.

My minimum RAM requirement is 512 Mbytes & physical size is not a huge issue hence why I'm thinking of opting into SODIMM stick.

reddit.com
u/FoundationOk3176 — 2 months ago

Are there any easily purchasable NVMe To USB Bridge ICs?

I am looking for a Bridge IC that can allow me to interface with NVMe drives over USB. Speed is not the primary concern, The primary concern is that it should be easily available on Mouser, Digikey or other similar sites.

Unfortunately the one's I found are not low-volume friendly at all (Looking at you Realtek).

I am using a STM32MP135 based SoM & the cheapest SoM I can find with PCIe controller is twice the cost ($51) of my current SoM ($19), Therefore I was wondering if I can find a bridge IC allowing me to access NVMe drives over USB whilst costing me $10 more at max.

If not, I would appreciate if anyone can let me know which brand might be willing to work with low-volume customers.

reddit.com
u/FoundationOk3176 — 2 months ago

Just finished the show & I'm in tears. Regardless, Share the electronic music you loved the most from POI

I'll go first:

  1. Digitalism - Miami Showdown > "Let's move" > > "No point. The guy who's coming after me? Your men won't be able to stop him."
  2. The Glitch Mob - Fortune Days > "What's the point in saving the world if you can't enjoy it?"
reddit.com
u/FoundationOk3176 — 2 months ago

Is USB 1.1 Host/Device Forwards Compatible With USB 2.0 Device/Host?

I intend on using RP2350 to interact with:

  1. A USB 2.0 HCI device (with RP2350 as a host)
  2. A USB 2.0 host (with RP2350 as a USB HID device)

But the RP2350 has a USB 1.1 peripheral, Thereby I was wondering if my use-case is possible?

reddit.com
u/FoundationOk3176 — 2 months ago

How does one even work with FCC, etc regulations as a solo engineer?

I've been working on a device that communicates over USB but also can connect wirelessly via BLE & from what I've read so far is that any wireless device has to be tested as an intentional radiator to ensure it isn't causing interference, etc to other devices.

Now that can be avoided if I use a precertified module but even then it seems that I have to get my device tested as an unintentional radiator.

Which is fair but the cheapest numbers I could find online were $2K to $4K for unintentional radiators testing. HOW THE F AM I SUPPOSED TO DO THAT??? $2K IS LIKE WHAT I EARN FROM THE INTERNSHIP IN THE ENTIRETY OF THE YEAR! (I'm based out of India, cost of living, etc is much cheaper here & so is average income)

This is insane. As if actually designing a device, saving up to get prototypes manufactured & then assembling them myself, testing, etc isn't enough, Now I have to spend like an entire year worth of salary just to get FCC approval?

How does one even deal with this? I understand the regulations were made to ensure random junk doesn't interfere with devices, etc but it's so demotivating knowing I probably can't even sell my device after putting so much effort into designing it.

It very much encourages one to just skip it entirely & just hope to god that FCC, etc don't notice but obviously that's just in my mind.

It seems my best option might be to just ship my product with an existing FCC certified USB to Bluetooth dongle thing, but even then I'm not sure if I would have to do FCC certifications.

reddit.com
u/FoundationOk3176 — 2 months ago

Can't afford a car but AC didn't let me down

Keyboard + Mouse with Automatic transmission & No assists, Just starting out but I love how this E30 feels.

u/FoundationOk3176 — 2 months ago

Need advice on using ESP32-S3 module vs "bare chip"

I am developing a product around ESP32-S3 as my requirements are BLE & USB host peripherals.

As I am entering the PCB design phase I wanted advice on whether I should use the ESP32-S3 module or the bare chip? Particularly which one would be better & cheaper for getting FCC & CE certified for America & Europe respectively.

I want to go the bare chip way because aside from the BLE & USB host peripherals, I am using absolutely nothing from the S3, Thereby I can design a much smaller PCB as compared to the module, Especially since power & range isn't a concern I want to use a ceramic chip antenna.

Thus, what should I go with? what are other issues I could get into if I don't use the module?

reddit.com
u/FoundationOk3176 — 2 months ago

My first ever USB-UART PCB, Hand soldered by me. (Type-C 16P, 0603 & SOP-8 components)

All thanks to one single person who believed in me & pushed me to do it!

u/FoundationOk3176 — 2 months ago

What is the point of ARM TrustZone in MCUs?

From what I understand, ARM TrustZone is a privilege level which allows us to hideaway sensitive operations, etc to a trusted environment and allows us to expose a very small API to systems of our choice.

But what is the point of it exactly? Why would one want to split environments into Secure & Normal world? If someone can modify Normal world's code, Can't they easily interface with the Secure world?

reddit.com
u/FoundationOk3176 — 3 months ago

How is the developer experience with STM32WB series?

I am thinking of considering STM32WB35CE for a project of mine. My use case requires USB Device & BLE >= 5.0, Readout protection & Enough memory to store a 4-bit 128x96 OLED framebuffer (~6 KB).

STM32WB35CE checks all these marks but I'm seriously worried about the developer experience (DX). My previous experience with STM has been their MPU lineup.

I also don't want to use STM's IDE or whatever they call it. Thus I was wondering if anyone who has used this particular lineup or any STM32 MCU could comment on it.

There's also nRF5340 but their abomination of a packaging aQFN looks like beyond my skill set to design a PCB around.

reddit.com
u/FoundationOk3176 — 3 months ago