jes notes Index Gallery . 4th axis Anniversary Clocks Blog ideas Micro-machining CNC milling machine Paint colours CNC Router Shaft passers Snap issues Software ideas Stepper motor clock Toy ideas Watchmaking Wildflowers

Software ideas

Last modified: 2024-06-17 09:48:51

OpenStreetMap viewer

2023-08-31 has some plans for a tool like the waypoint editor for Waypointer Moto, but more generally useful. Like a mini-GIS.

Timegrapher

2023-09-22 I tried to use tg-timer but couldn't get it to work, and I'm not sure if it's too specifically targeted at standard lever escapements with defined periods.

I really just want something that will listen to the microphone or an audio/video recording and tell me what frequency it is ticking at, and maybe a way to plot some visualisation of the beat/regularity.

Video hosting

2023-09-23 has an idea for a tool like imagebin but for hosting videos, that gets the videos out of the YouTube silo, and gives me convenient tools for counting frames etc. and embedding in the notes system.

Image measurer

I do a lot of image measuring, where I load up one or two images in GIMP and measure distances and/or angles. Examples:

Maybe a little web tool that lets me load in an image (and optionally a 2nd image to alpha-blend on top), and then lets me measure lengths and angles, and, importantly, draws the measurements on top of the image in a way that makes it convenient for me to show the measurements. For example with red lines and red numbers like in the examples above.

Moodboard

Something that lets me stick in images that I want to keep in my mind, crop them, scale them, and lay them out in a sensible way. I don't want to have to manually do the layout, but I want to be able to manually tweak the layout. I think Pinterest sort of does this, but I'm not interested in proprietary software or data silos.

G-code sender

The G-code sender should have normal overrides like feed rate and spindle speed, but it should also preprocess your G-code and offer a "depth of cut" override. Also preprocess your G-code to detect different "sections" and allow just running 1 section at a time, or repeating a section with different depth (repeating with different cutter compensation?). And finally, maybe detect helix moves, or pocket moves, and allow a "width of cut" override? That one is much harder.

If I made a G-code sender to my taste I'd probably want to use it everywhere, which means the milling machine would probably have to switch to Grbl, and Grbl doesn't have cutter compensation, so might have to skip that.

Maybe it's best to add my features to UGS instead of starting from scratch, not sure which would be more trouble.

Features I like from UGS, or would like that aren't in UGS:

Probably the first things to look at are how easy it is to preprocess the G-code to detect sections and laps, and how easy it is to interrupt Grbl to flush the planner buffer so that we can change the Z coordinate.

On 2023-11-18 I broke a tool because I did some mental arithmetic wrong in adjusting the Z offset. My custom G-code sender should have a way to say "move Z down by 0.1mm" without the user having to do any mental arithmetic to work out "OK, it's at Z=5, so I need to touch off at Z=5.1 to get it to be 0.1mm lower".

How about this: it is basically vim but for CNC. So it's entirely keyboard-driven (but maybe with point-and-click available, and definitely with some sort of discoverability).

If you type a "G" or and "M" it puts you into the MDI to let you type a command. Also the MDI only shows you things you actually input, unless you switch it to show the raw serial data, and even in that case your own inputs should be highlighted somehow.

To change work offset you press the letter of the axis you want to change and then type the new number and hit enter. So for example, type "X0" to zero the X coordinate. This accepts arithmetic, with the existing value as an implied first value if none is given, so if you type "X/2" or "X+0.1", it sets X to X/2 or X+0.1 as you'd expect. Perhaps if you're typing an expression, it shows you both what you're typing and what the evaluation is. And of course we want the existing value to remain visible while you're typing.

I would probably want the UI at each step to say what keys can be pressed and what they'll do. And maybe rarely-used commands would open up a submenu, like a mainframe TUI.

I would want physical encoders to control feed override and jog speed but can tolerate keyboard jogging, as long as it's easy to change feed rate, continuous/incremental, and the incremental step size.

The UI can be very basic. I could probably even tolerate the "3d view" being just a 2d view. I can't tolerate fuck-ups where the Grbl state is not accurately reflected in the UI, that part needs to be rock solid. And I can't tolerate it being slow or frustrating. I need it to always be very clear exactly what it's going to do, so when I go to run a program it should show me what lines it is about to send. It should show me distance-to-go on current line.

I might want "canned cycles" for things like making circles and rectangles, and maybe tiling them at a given step size. In fact maybe I'd want it to be able to tile an entire G-code program.

High-contrast display so that it can easily be seen on the laptop with a dusty screen.

Debughackers

It's like Protohackers except every problem is a program and a bug report, and you have to fix the bug and submit your patch, shortest patch wins.

Maybe the entire buggy application is released upfront and the UI is like a bug tracker, and then the leaderboard is based on a score for how many you've solved, and how short your patches were, tie-broken by the time submitted. The leaderboard could show a SHA256 of the patch so you can see which people had different fixes.

Twists:

Gear train calculator

You give it the ratio (with tolerance?), the minimum/maximum number of gears, the minimum/maximum number of teeth per gear, and any numbers of teeth that are already fixed, and it searches to find solutions.

Terminal emulator extensions

A way to write "extensions" for a terminal emulator like you do for a browser.

A specific one I want is a way to take lines like:

path.go:111:    draw.Draw(composite, bounds, p.toolpathLayer, image.Point{}, draw.Over)

And allow me to click on "path.go:111" and the extension will then type in "vim +111 path.go" and open me up in vim at line 111, to save me the hassle of copying and pasting path names and memorising line numbers all day long.

I feel like I used to have something like this in emacs, but only in the built-in terminal emulator. I want to invert that, in my workflow the editor is inside the terminal emulator, not the other way around.

Another one would be "stash this screen", so I could stash the contents of the terminal somewhere (a different tab?) and recall them at will by switching to the tab, all while I continue working in the first tab. So like I can get a page of results from a grep or something, and start working on each line without the results scrolling up out of view as I work.

Flexwing simulator

See notes in 2024-05-07.

Side view. "Side-scrolling". Want an input for throttle and an input for wing angle of attack relative to trike.

Maybe we could include a "ground" to take off from and land on, that would be fun.

Would we model the wing as "Newtonian" only? Or do we need to look up some Bernoulli calculations? It might matter because at 0 angle of attack for example Newton says you have no lift at all but Bernoulli says your lift depends on your airspeed. Does that matter? Not sure.

What I really want to see is exactly what happens when you change the throttle or the pitch. I want to see plots of airspeed, vertical speed, angle of attack, and components of both the thrust vector and the lift vector.

A good test would be to see if you can simulate a "tuck and tumble". Is there a paper on this? Might be worth looking up.

Also we could experiment with putting the engine on the wing to see what that does to the handling. (I'm expecting it to be bad, else they would be made that way, but I want to see for myself).

ChatGPT shell

See notes in 2024-06-17.

Would be like the experience in https://incoherency.co.uk/blog/stories/chatgpt-linux.html but with a presentation much closer to a classical Unix shell, and running on your own computer instead of OpenAI's sandboxed environment.