• 0 posts
  • 12 comments
Joined 1 year ago
Cake day: July 23rd, 2025
  • Circuit breakers are not one time use like fuses. You can think of them as reusable fuses. An in device fuse only protects if the fault is in the device. If you were to put metal in the outlet, to stop current, you need a fuse in the outlet or somewhere else between the outlet and makns, which is what US has. Circuit breakers are typically 20A (or 15A) and multiple outlets are connected to the same circuit breaker.

  • I’ve also not had great luck with MOTU devices (624, 8pre-es). Granted AFAIK, they’re still not supported in mainline kernel, but I found a few kernel modules on github. Those kernel modules work in that the audio interfaces are detected and I can play audio, but after a couple mins (sometimes immediately), it sounds like I’m getting buffer under runs even if I max out my buffers. If I disconnect and reconnect the devices it will sometimes work for another few mins. They work perfectly on windows. My preferred DAW is also windows only, but I can run a windows VM and do USB pass through on the either of the audio interfaces (other is connected via AVB), and it works great. So this is how I do audio, but this also means I’m using onboard audio for everything except the windows VM.

  • Ok, but you listed a tool outside of the editor (grep). In this game, you dont get access to tools outside of the editor except a very limited “test” command.

    You are 100% correct that it is possible to write code with only a plain text editor. It’s how I got started. Pico + man pages (vi didn’t make sense and I couldn’t exit it anyway so avoided it for a while), but even with “just a plain text editor” I still had access to other tools like a compiler and its output, etc,m but we’re not talking about programming on a normal system here. It’s a game inside which you type code as part of playing the game.

    If you look up screen shots for the game, you’ll see what looks like a shell, but it only has a very small number of commands, so you don’t have the tools you would normally have outside of the text editor (like grep). Can you search multiple files in the game? Yes, switch the editor between each file one by one (it has tabs) and search. Would a better in game editor improve that experience? I’d say yes. On a normal system you could get around edutor linitations by using tools outside the editor like grep. This isn’t a normal system. It’s a fake computer inside of a game and you don’t get the typical tools outside of the in game code editor.

    There may be some tricks that a JS developer would know to use inside the game, but I’m not a JS developer. That also means i need to look up JS standard functions and syntax outside of the game. Having it in game would be a better experience for me but not a requirement. I got pretty far in the game. I’ll probably go back to it as newer ADHD obsessions allow.

  • It sucks even more than usual in the “game” because the code editor lacks what I’d expect in terms of syntax highlighting, jumping between functions, finding references, errors, undefined variable usage and such. Maybe those features are available, but I didn’t know how to access them and I’m no JavaScript expert so a proper IDE (even embedding codium) would have saved me a lot of frustration. I didn’t finish it. I think I got about 2/3, but I thought it was an interesting concept. So overall, I liked the concept of EmuDevz and a different language would have probably made it a better experience (as would a better code editor).

  • I think you should look in to MIPI from a hardware protocol perspective before committing to that route. The issue isn’t the physical connector, but the complexity of the protocol. I found some open MIPI cores. idk if you’re allowed to use open cores, but if they fit in your FPGA (with whatever other logic you need for your CPU and glue logic), then that may work, but if I were a student I’d probably be looking for a simpler interface where I can have the FPGA control the flow of data (like request 1 row of pixels at a time given the memory constraints).

  • Outputting to VGA with an FPGA is fairly easy, but depending on what you mean by “image processing”, this may be too big of a project given you’re the only hardware engineer or maybe all you mean is to take the video input and output it to VGA without any further processing. You did mention wishbone, so I guess if you’re planning to reuse a bunch of Open Cores, that could simplify some things.

    How much RAM do you have on your dev board? How long of a video do you want to do?

    USB2 is fast enough for uncompressed 640x480 @ 24 fps @ 24bit color: 640 * 480 * 24 * 24 = ~177Mbit/s (plus misc overhead) USB isn’t so bad to get working on an FPGA dev board (I didn’t see you mention which you’re using) as it probably has a transceiver chip already along with drivers available. Even if not, you could add a cheap USB interface chip (FTDI makes some popular ones, but there’s many others like CP2102, etc). I’d not try to do more modern USB (3+) as it’s not needed, but also higher speeds bring more problems. I’d actually try lower quality video (lower res, framerate, and not 24bit color). As you increase the amount of data you need to transfer, you have more potential for issues related to buffering the video (and the extra memory required) or timing requirements (ensuring the video is arriving by the time it needs to, but not too much before).

    If I’m understanding your main concern, it’s how to get the video data in to your hardware? Generally:

    • camera module (that outputs uncompressed image/pixel data, idk how difficult these are to get running, drivers often abstract a lot of complexity)
    • video stored on memory chip like an eeprom (may be impractical given size)
    • storage device like SD, compact flash, or even an IDE hard drive (idk how difficult SATA is to work with). if you go this route, I recommend avoiding file systems.
    • stream over USB2 from a laptop (whether it’s pre recorded file, built in camera, some USB camera or capture device kind of doesn’t matter from your hardware perspective)

    Other communication interfaces (like ethernet) are probably going to be a lot more effort although I’ve seen a serial to ethernet interface that worked similarly to those UART <-> USB chips. idk cost or how easy they are to use though.

    EDIT: I see dev board is Basys 3 (I didn’t realize that’s what that was, I thought that was a camera). With only 1.8Mbits of memory, you’re going to need to add memory (could be complicated), drastically reduce video quality and/or have some pretty strict timing requirements for the image data entering your hardware and maybe a camera module is the way to go at that point (vs USB from laptop, but I’m thinking flash memory like SD card is going to be more practical). You had mentioned designing a CPU, so I assume you intend to run software on this, which is also going to need to use memory. Depending on what that software wants to do, adding more memory may be a hard requirement. If you’re just taking the video and outputting to VGA, you wouldn’t even need the CPU and could probably get it to work without extra memory, but without being able to buffer much video data, you still have to ensure your video input meets timing requirements and I’m leaning away from streaming from a laptop due to that I thought you’d be able to buffer more data.

    Also this dev board only does 12bit VGA output, so you can reduce your video color bit depth, which will help some.

  • I assume admin/moderation issues are a given, so uptime/reliability. I don’t have issue with my instance, but I see a lot of image posts on another instance that I want to view and they regularly don’t load until I try again much later (even opening the URL of the original instance in a browser doesn’t load, so I don’t think it’s a federation issue/issue with my instance). I don’t want to name the other instance as I don’t like to bad mouth what are almost certainly volunteers, but I do wonder why people haven’t abandoned posting images to it due to reliability. Maybe the posters aren’t aware.

    1. Why not both? Packaging multiple releases, documenting, and support is lessened with a single release. Officially supporting more ways to install is extra time and effort that is considerably worse with PHP than applications written in most (maybe all?) other popular languages due to the variety of ways people can configure PHP and how the web server executes it is huge and trying to support all of that is considerable. Even if you just narrow down to a single http server, there’s a lot of variations just how the http server executes the scripts and that’s ignoring the PHP/PHP extension level differences. I can’t think of any popular languages that are worse or even in the same ballpark as PHP on execution environment inconsistencies.

    2. The existence of the docker release doesn’t prevent you from running it outside of docker and the Dockerfile/image serves as a reference implementation. It provides you the exact steps and working configuration to deploy it outside of docker.

    Consider a PHP application with install instructions, you follow them and it doesn’t work due to some non obvious configuration difference. With the docker image you have a reference of what should work and can use that to narrow down what is different between your PHP install/configuration and a working system.

    If you’ve not run in to these kinds of situations, consider yourself lucky. It was a nightmare back in early 7.x releases and older.

  • Years ago I’d have one PHP app that required version X of PHP and another that required version Y and my distro often only had one of them (or you couldn’t install both simultaneously), so I’d have to either compile myself (or later use a 3rd party repo). All solvable of course, but then throw in MySQL version requirements and PHP extensions and it’s just extra crap that containers just take care of for you. I’ve had this kind of inter app requirements conflicts with stuff other than PHP, but I’ve had by far more of it with PHP. For a while I used FreeBSD jails to help, but jails was kind of a pain. I enthusiastically embraced docker for PHP stuff early on.

    A benefit for application developers, particularly PHP is there’s a lot of differences between distros and how people install and configure PHP. Even like which PHP extensions are available and their settings. Other languages things tend to be more consistent at the system level and customizations are app are usually application level (contrast with PHP extensions and system level configurations). It really helps reduce support issues due to distro/user differences if a developer just provides a working dockerfile as a reference implementation and in my experience this is far more likely with PHP than other languages. I realize this is mostly applicable outside of PHP, but I actually personally see more benefit with PHP based on my past experiences.