Readit News logoReadit News
fest commented on Custom telescope mount using harmonic drives and ESP32   svendewaerhert.com/blog/t... · Posted by u/waerhert
topspin · 5 days ago
From the blog: "Not surprising once you understand that slewing to a target significantly increases the number of pulses per second sent to the motors, and everything became just too much to handle for our little ESP32."

A hobby application of mine involves driving multiple steppers at high-ish frequencies, following sigmoid curves precisely and no tolerance for glitches, because the mass and the cost of the device(s) is too great to risk any failure in pulse output, and there is no feedback, so I must not suffer "missed" steps, glitches, etc. The big hammer that solves this is obviating the MCU core (ARM or otherwise,) in motion control and using timer peripherals with DMA.

Ultimately, I ended up turning to STM32G4 MCUs because of the ACT (advanced control timer) peripheral. These timers can generate arbitrary waveforms using DMA in a relatively simple manner: the ARM core and its code/RTOS/whatever can suffer whatever overload, priority inversion, sleep mode, etc. happens to emerge, and the timers are unaffected.

Today I would consider using RP2350 and the PIO peripheral, which is also capable of achieving this, I believe.

ESP32 has its MCPWM peripheral, but I determined that with MCPWM you can't do the sort of arbitrary acceleration/deceleration profiles I needed in a 100% "core-free" manner without either a.) cascading timers or b.) using interrupts. The former is, comparatively speaking, complex[1], and the later gets you back into the MCU core, and possible glitches[2]. With the ST ACT peripheral, the problem is self contained to one timer per motor: simple and straightforward. At least one of their MCUs has three of those timers (G474, in larger packages, for example.)

The other way to go is specialized motor driver ICs. Analog Devices, by way of their Trimanic line of devices and low cost breakout boards, has great products there, widely used with 3D printers, CNC and similar. The driver software is much more complex than my simple ACT peripheral solution, however.

[1] I know it's possible and others have done it. The ST peripheral is far easier to get working and get right, if you can deal with CMSIS and the ST reference manual.

[2] I know about interrupt priorities. I also know about code evolution, bugs and other ways that dealing in interrupt priorities can get fragile.

fest · 4 days ago
When I was doing stepper control on rp2040 I looked into using PIO but the 5 bit counters and 32 instruction limit made it too awkward to use. What worked better for my needs was dedicating 2nd core for just motion control and bit-banging the step/dir signals- simple to implement and good enough for the modest needs I had (just trapezoidal velocity profile for single axis motion).
fest commented on Mission Accomplished? Heat pump adoption has a long way to go   heatpumped.org/p/mission-... · Posted by u/ssuds
fest · 6 months ago
On this topic I've been wondering why are the air-air heatpumps significantly cheaper than air-water units?

As far as I could tell, there's not that much of a difference (different heat-exchanger, circulation pump instead of a fan, maybe a three way valve for hot water)- but I have hard time seeing how they contribute to the price difference of several thousand EUR.

There are also quite a few conversion projects (where an air-air unit is converted to air-water), so I'm wondering if it really comes down to just higher demand for air-air?

fest commented on How do jewellers capture every last particle of gold dust? (2017)   ft.com/content/0512638c-b... · Posted by u/EndXA
fest · a year ago
I found it interesting that CNC machines aimed at precious metal processing have an optional access control system for swarf/dust collection bins- presumably so that the technicians operating the machine don't steal the "waste" material.
fest commented on Standard cells: Looking at individual gates in the Pentium processor   righto.com/2024/07/pentiu... · Posted by u/todsacerdoti
Harmohit · a year ago
I didn't know there is such a thing as a metallurgical microscope. What makes them different from biological microscopes? And what is there primary purpose? I am assuming they don't make microscopes just for dissecting chips.
fest · a year ago
Metallurgical microscopes illuminate the sample "from the top side". The actual implementation even goes as far as making sure the illumination happens on the optical axis of the objective (as if the light was emitted from your eyes/camera, reflected from the sample and then seen by your eyes/camera). They are also called reflected light or epi-illumination microscopes.

Biological microscopes, on the other hand illuminate the sample from the back side (which doesn't work for fully opaque objects).

fest commented on I like the RP2040   dgroshev.com/blog/rp2040/... · Posted by u/dgroshev
05 · a year ago
Many, many cheap MCUs have peripherals that can decode quadrature in hardware. E.g, PCNT on ESP32, timer modes on STM32 etc. Might as well use PIO to implement I2C or UART :)
fest · a year ago
> Might as well use PIO to implement I2C or UART :)

PIO actually came in handy for me when interfacing with an x-ray sensor which had 12 or 14 bits long UART data frame- not many micros have such a flexibility in their UART peripherals.

fest commented on Open Beam Interface   github.com/nanographs/Ope... · Posted by u/luu
mastax · a year ago
> Built on Glasgow [Interface Explorer]

Now there’s a name I haven’t heard in a long time. It’s meant to be a sort of digital Swiss Army knife, where you can connect almost any digital interface to a computer and do basically anything with it programmatically. I’ll have to pick one up now that it looks like they’re released.

I’ll probably still end up using an arduino as my one-off IC-to-PC interface device just out of habit and not needing to read any documentation, but I love the idea.

fest · a year ago
I built a couple of glasgow devices and used one extensively- it becomes very useful once the IC in question has an interface you can't practically use with a microcontroller.

I used it to capture data from a thermal imaging sensor (extracted from an automotive night vision camera)- a weird ~75MHz data bus[0].

0: https://github.com/festlv/isc0901b0-breakout?tab=readme-ov-f...

fest commented on Security Issue: Cloud Site Manager presented me your consoles, not mine   community.ui.com/question... · Posted by u/amaccuish
AlexandrB · 2 years ago
That was part of the UniFi product since day 1, no?
fest · 2 years ago
Yes, but I always found it strange (though I lack any exposure to "enterprise" networking equipment).
fest commented on Security Issue: Cloud Site Manager presented me your consoles, not mine   community.ui.com/question... · Posted by u/amaccuish
ubiquitithrow · 2 years ago
Ex Ubiquiti employee here. I barely recognize the company any more. The company always had problems but we had a lot of smart and hard working peopl in the early days. People are always amazed when I tell them how small the company was when we made Ubiquiti and UniFi into household names among nerds.

Some of those people remain. UI-Marcus in that link is a good person. The company went into a steady decline after the CEO started centering the company around the offices in Portland and China. Portland was home to the UX designers who wanted to redesign everything to look nicer but didn't understand how customers used our products. Portland was also home to Nick Sharp, the cloud lead who tried to extort the company and lied to the press about hacks. The favorite office in China made the FrontRow product, which failed so badly that I doubt anyone has heard of it. These people were supposed to be the future leaders of the company, but everything they did was a disaster. We could all see the writing on the wall and left. Well, almost everyone.

I don't even know which Ubiquiti office owns the cloud any more because everyone working on cloud at Ubiquiti either quit or was laid off after the cloud lead went to prison for extorting the company.

I hope the company can get back on track some day. It's sad to see all of our old work decay like this.

fest · 2 years ago
Can you weigh in on the decision to require UniFi controller instead of providing on device configuration interface as well?
fest commented on Security Issue: Cloud Site Manager presented me your consoles, not mine   community.ui.com/question... · Posted by u/amaccuish
giobox · 2 years ago
Is it true the failed FrontRow hardware was repurposed into the Unifi door fob scanning thing/product ("Access Reader Pro")? I recall reading this somewhere, and the hardware appears to be identical:

> https://www.theverge.com/circuitbreaker/2017/8/15/16146354/f...

> https://c3aero.com/products/ua-pro

I was absolutely floored when I saw the announcement of the FrontRow device - what a bizarre thing to have brought to market for a network hardware company. I can only imagine someone somewhere got far too caught up in the "wearable" hype a few years ago.

fest · 2 years ago
I can't really go into details, but FrontRow wasn't the most bizarre thing Ubiquiti was working on, just the one that got reasonably close before being shelved.

IIRC Access reader isn't the only product the FrontRow R&D cost/stock of parts was tried to be recouped, but at that time I wasn't working there anymore.

fest commented on How to attach logic probes to tiny SMD components (2021)   reddit.com/r/AskElectroni... · Posted by u/dcminter
jakeogh · 2 years ago
Nice, but not very good durability... pdf says 30 cycles.
fest · 2 years ago
This is actually a common problem for test fixtures that involve miniature coaxial connectors (pretty much all of them are rated for few tens of mating cycles): even if the connector on device is used for assembly/repairs and goes through very few mating cycles, the automated test fixture used during manufacture of such a device is expected to last longer.

Most connector vendors have specialized connectors for test fixtures that last much longer (they are also a lot more expensive).

u/fest

KarmaCake day1072January 16, 2012
About
- I write software. For hardware.

Areas of expertise: * Embedded firmware for (C/C++), * Human-machine interfaces (Qt UIs, industrial HMI panels), * Industrial automation (primarily woodworking),

Recent expansions: * Machine vision for production automation.

Contact me at reinis@wot.lv

View Original