HNHacker News
TopNewBestAskShowJobs

auxym

2,296 karma · joined May 2, 2014

I'm mechanical engineer with a long-lived interest in programming and computers.

Get in touch:

frtherien@gmail.com github.com/auxym

submissionscomments
auxym··on Ask HN: Has anyone gone from software to physical engineering?
Someone needs to haul big hunks of steel into the machine, clamo them down tight (and straight), and haul the part out when it's done.

Also install tooling, swear when a tap or drill inevitably breaks and gets stuck in a very expensive part, etc.

auxym··on Bare Metal C++ Register Access API
It's extremely common to use bitfields though. As mentioned by the article, it is recommended by ARM's CMSIS and thus found in vendor libraries of all cortex MCUs I have seen.

arm-none-eabi-gcc changing its behavior for bitfields would probably break 99% of existing arm MCU codebases.

auxym··on Open-Sourcing our Firmware
There's some good info here if anyone is interested: http://www.ganssle.com/debouncing.htm
auxym··on I cannot begin to tell you how proficient I am in Microsoft Word
Powerquery is a much more powerful alternative to pivot tables in modern excel.

For one thing, you can chain queries, SQL style. IE, you can use the table that is the result of a query as input to another query.

auxym··on Ask HN: Any experienced engineers took a lower position as a “vacation”?
Mechanical engineer in Canada here, I took a research assistant job in academia (after a few years in industry) to get similar benefits. 35h hours weeks, 5 weeks vacation, lots of flexibility for kid sickness (has been a godsend for the past two years, getting called all the time to pick up kids with sniffles for mandatory COVID testing), relatively low stress yet fun and interesting projects.

Low pay, but enough for a good lifestyle in a LCOL small university town.

auxym··on Are We Really Engineers? (2021)
That's a PhD (in engineering).

Non-phd doctorates I'm aware of would be MD, Psy. D, JD.

auxym··on Ask HN: Best resources to learn mechanical engineering?
Yes, our lecturer referred to it ass the bible, as he had actually taken Heywood's clas on ICEs MIT!

It's definitely a huge brick though, can be intimidating. I think he picked the Ferguson book because it's more approachable, cheaper and covers the essentials for the class (and not too much else).

auxym··on Ask HN: Best resources to learn mechanical engineering?
Shigley's Mechanical Engineering Design and Machinery's Handbook are two classic texts on the design of various mechanical components.

For ICEs we used Ferguson and Kirkpatrick when I took a graduate level ICE class. It's concise but good. I'm not sure it's exactly what you're looking for as a hobbyist though, it's a lot of thermodynamics and associated math, not a lot on practical implementation of engines.

If you're looking to rebuild engines and such "mechanical engineering" is probably the wrong road to go down. I don't have specific recommendations, but maintenance manuals or trainings for mechanics, millwrights a d metal workers might be closer to what you want.

auxym··on Introduction to Model Predictive Control
Generally this process would be called linearization.

You can create a complex, nonlinear, numerical model of the full system in as much detail as you want (eg implemented in a block sim like Simulink, or MBD software like ADAMS, or just A and B matrices derived manually but incorporating nonlinearities like sin, etc).

From that you can evaluate a whole bunch of finite differences around an arbitrary state (linearization point), which are the components of the A and B matrices. This is an approximate, linear model which is "close enough" in behaviour to your real model for states that are "close" to your linearization point.

In practice if you're moving far away from your linearization point (eg a 6 DOF robot arm with large displacement of all joints), you'll need to re-compute the linearization each timestep, around the current state, and re-compute the LQR or MPC solution from this "new" approximate model.

Here's some linearization code I wrote for a library that's used to teach controls and robotics in undergrad. It takes as a input a "model" that's an arbitrary function that generates the next state from a given state, and computes the jacobian matrices by finite differences: https://github.com/SherbyRobotics/pyro/blob/43dcb112427978ff...

auxym··on Hashing is not encryption
Encrypting the file, or better whole disk encryption, prevents someone stealing the laptop and yanking the drive to get access to everything.
auxym··on T-Shaped People and Academia
In Canada, research masters are a prereq for entering a PhD program.
auxym··on Ask HN: Resources for “Learning” Manufacturing?
The book we used in undergrad (mech eng) was "Manufacturing Processes for Engineering Materials" by Kalpakjian and Schmid.

Not convinced it's the best, as I didn't really enjoy the class, but that was mostly due to a poor lecturer. I'm also not convinced that it's the most relevant for you, as you seem to be looking more into "small batch prototyping", rather than mass scale manufacturing.

Still, it's a good book for getting an overview of what is out there in terms of processes and figuring out what would be appropriate for your needs. It's not a good book for getting into the nitty of, say, injection mold design, which is highly specialized.

I do believe Protolabs offers small batch injection molding for "reasonable" cost, probably as reasonable as you'll get for small batch. From my memory they also have a design guide PDF that you can download or they send when you register. That's probably a good place to start. Also try searching reddit r/mechanicalengineering for "injection mold" and similar queries, I do remember a few people asking for resources and getting good replies.

auxym··on Financial Independence / Retire Early Calculator
Buying stuff is not a universal recipe for happiness.

Neither is retirement, obviously, but you are correct that being financially independent gives you the freedom do do what you want. Whether that is time off between jobs, working on independent projects, etc.

auxym··on Financial Independence / Retire Early Calculator
I used to want to retire early and ASAP, firmly in the "lean fire" category.

Then I found a job which pays significantly under market but that I actually enjoy doing. My priorities have changed a lot.

Unfortunately said job is highly unstable and provides little opportunity for transferrable skills, so I still aim for a 50% savings rate, for peace of mind.

auxym··on Smartbolts
Anecdotally, I've been using loctite C5A (copper anti-seize) on lug nuts for years without an issue. I also torque them to the manufacturer spec with a torque wrench twice a year (when I switch summer/winter tires).
auxym··on Smartbolts
Their patent might have expired? Im not aware of the situation but these seem to be an identical product: https://heico-lock.us/
auxym··on Smartbolts
Unless I'm misunderstanding the diagram, it does not look like fatigue at all but rather yielding from shear loading.

The definition of fatigue is a small crack (in fact microscopic in the beginning) that grows through the application of cyclical loading (typically about 10k cycles is the lower bound for high cycle fatigue, which does not involve macro yielding).

Thus a fatigue failure would look like a fully ruptured part , usually with two distinct zones of the fracture face: one smooth zone from crack growth ( sometimes with characteristic "beach marks") and the final sudden rupture which is usually rough.

https://en.m.wikipedia.org/wiki/Fatigue_(material)

auxym··on Smartbolts
When I worked on railway vehicles (bogies for passengers vehicles, more accurately), Nord locks (or equivalent clones) were standard on all structural joints.

Especially on a prototype I'd recommend them. Prototypes are really expensive, a complete supply of Nord locks for your project is probably less than a single one-off CNC part.

Note that Nord locks are specced to be single use. Not that I've never reused some on prototypes, but, well, I'd never do it on a life-critical joint that is meant to be taken apart often.

auxym··on Smartbolts
Adding on to that, tensioning bolts using torque is convenient and inexpensive but not very accurate at all. Some data reproduced in Shigley's Mechanical Engineering Design showed a +/- 30% variation in tension for properly torqued bolts, if my memory is correct.

Emphasis on properly torqued: in the field threads or bolt heads might be dirty, or torque wrenches might be out of calibration, adding even more uncertainty.

auxym··on TinyVG: A challenger to the throne of vector graphics
From my experience, laser cutting shops (we're talking about steel plate cutting right?) are annoyed with everything except DXF.
auxym··on Nim 1.6.2
I'd recommend it. The syntax should make you feel at home if know python, though the type system (and std lib) does make it feel like a very different language once you use actually use it.

One advantage over C++ is that you don't need to learn make, IDEs or a complex build system. The nim compiler and the nimble package manager just takes care of building for you. "nim c main.nim" and off you go, ending up with a single executable, no matter how many imports, modules, etc you have.

I do recommend this as a gentle introduction: https://nim-by-example.github.io/ and recommend you use VS Code with the Nim extension by saem.

auxym··on Advent of Code 2021
I think they mean 1 second of program execution time :)
auxym··on Advent of Code 2021
For what it's worth, I'm not a (professionnal) programmer, and I can usually solve 80% of the AoC problems intuitively. That's OK for me.

For the other 20% where I don't even know where to start, I look up a solution on reddit, try to understand it and re-implement it myself, and learn something new. The 2020 day 13 problem mentioned by GP was indeed one of those for me last year.

auxym··on EmacsConf 2021 – Live Now
Matlab is awful at being a general-purpose language, anything that isn't wrangling matrices. Strings, paths, networking, etc are all really painful compared to Python or Julia.
auxym··on Advent of Code 2021
Nota bene: https://en.wikipedia.org/wiki/Nota_bene
auxym··on Advent of Code 2021
Yes, I do distinctly remember having that same feeling when reading zevv's solutions!
auxym··on Advent of Code 2021
Yes! However, I'll say this: If you're using a new language that you're trying to learn, don't also try to do it for time. That is to say, take your time, it doesn't matter if it takes you a few days to do a single problem. Do try and read other people's solutions in OCaml after you've solved it yourself, or even before, if you're really stuck.
auxym··on Advent of Code 2021
I also learned Nim in 2018 with AoC. I found one of the best things was coming up with my own solution, then looking at other people's solutions (the Nim community usually does Advent of Nim where a bunch of people post their solution repos on the nim forum) for more idiomatic approaches or stdlib functions I didn't know about.
auxym··on Ask HN: What is your favourite gaming hardware/device?
There's also the fact that midrange GPUs are now the price of a full console, if you can even find one for sale, and there's no immediate end in sight to the shortage.
auxym··on Analog Devices AD1139
We're veering pretty far off-topic, but, as a mechanical engineer working in research, yes.

Develop a new ceramic material for advanced turbofan engines? Not tech.

Web front end? Oh yeah, tech.

← PreviousPage 9 of 28Next →