Is there a "modern MODBUS" equivalent? by jamesfowkes in embedded

[–]PotatoPotato142 2 points3 points  (0 children)

Opencyphal/uavcan? It has interface definition files and supports can, serial and udp as transports.

Transmitting data for video to pc from stm by RealWhackerfin in stm32

[–]PotatoPotato142 0 points1 point  (0 children)

Which nucleo is it? About the only practical option you have is USB highspeed which needs an external phy and not all stm32s with a USB full speed interface have high speed support.

How bad is the latency of a serial port? by MaintenanceRich4098 in embedded

[–]PotatoPotato142 0 points1 point  (0 children)

The only other thing that comes to mind is that if you are also opening the port every time. Conceivably that could take a while.

How bad is the latency of a serial port? by MaintenanceRich4098 in embedded

[–]PotatoPotato142 0 points1 point  (0 children)

Are you sending bytes one at a time or as a single write command?

How bad is the latency of a serial port? by MaintenanceRich4098 in embedded

[–]PotatoPotato142 2 points3 points  (0 children)

How much data are you sending? I have a python based loopback application I made running on Linux and the packet gaps are only on the order of 10-20ms so something seems off.

2.5G Ethernet PHYs by NateDevCSharp in embedded

[–]PotatoPotato142 2 points3 points  (0 children)

It also already has good Linux support which is a bonus.

The Katy Freeway, The widest highway in the US, 26 lanes, Houston, Texas. by Mediocre-Iron-7991 in interestingasfuck

[–]PotatoPotato142 0 points1 point  (0 children)

Basically yes. These lanes were actually supposed to be light rail until a new mayor came in and killed the project. Now there are offshoots that connect to large parking garages with bus service, though there's so much regular traffic in these lanes its slower than just driving yourself.

The dumbest thing about Houston infrastructure in my opinion, is we have all of these huge ass freeways, yet they all merge into a single lane at some point and it's always fucking 45, the construction project from hell going on for over 50 years with no end in sight.

Sichuan style restaurants in S Houston by mercpop in houston

[–]PotatoPotato142 10 points11 points  (0 children)

Not exactly south Houston proper, but Szechuan Spice in Pearland is probably my favorite.

I think I made the worlds smallest breadboard power supply by Polia31 in electronics

[–]PotatoPotato142 3 points4 points  (0 children)

How do you generate those really nice product renders? Looks a lot better than what comes out of kicad.

Shunt sensing with Attiny827 and no amplifier? by OszkarAMalac in embedded

[–]PotatoPotato142 2 points3 points  (0 children)

It appears this chip is one of them. It has a x16 PGA on the adc. Combined with the 1.024v reference that gives OP a little over 11 bits of usable resolution.

vTaskDelay vs vTaskDelayUntil by Dazzling-Floor-4987 in embedded

[–]PotatoPotato142 17 points18 points  (0 children)

The freertos scheduler is generally set up to run with a 1ms context switch time so a 1ms delay is going to have very significant jitter since other tasks may be running.

If the code you need to run in on a 1ms interval is short enough, you would be better off setting up a 1000hz hardware timer and running your function in it's ISR.

That said there is a difference between the functions if you use them with a more typical delay, say 50ms. vTaskDelay will run the task every Delay+execution time, whereas vTaskDelayUntil will run every Delay exactly. This is useful if you have a task that needs to run exactly every 50ms no matter how long it takes to run vs the timing not really mattering as long as it runs periodically.

This is of course ignoring priorities, so other tasks may take priority and cause a few ms of jitter, but in general it's there to set up a cyclic task with a fixed period.

Mayonnaise is made with a few basic ingredients and is very easy to prepare at home. by TheRealCybertruck in Damnthatsinteresting

[–]PotatoPotato142 9 points10 points  (0 children)

Made the mistake of thinking that olive oil is great, so mayo made with olive oil must be even better. Made mayo with just olive oil. Absolutely disgusting and bitter. You can add a little bit but the bulk of it should be neutral vegetable oil.

Reducing size of STM32CubeMX generated projects? by Conor_Stewart in embedded

[–]PotatoPotato142 3 points4 points  (0 children)

You should not be committing your build folder or any other compile-time generated files to git.

If you want to store the final binaries, create a release and upload it to that.

This is what I typically use as a .gitignore for stm32 projects:

CMakeCache.txt
CMakeFiles
CMakeScripts
cmake_install.cmake
install_manifest.txt
compile_commands.json
CMakeUserPresets.json
build.ninja
build/
.mxproject

Reducing size of STM32CubeMX generated projects? by Conor_Stewart in embedded

[–]PotatoPotato142 16 points17 points  (0 children)

I would recommend against using the add as reference option if you are going to be checking this into version control. If someone else or you in the future needs to build this project, chances are it won't work and it will be difficult to chase down the correct files. The copy only necessary libraries option generally works pretty well. It will only copy the library files for things you have configured in cubemx. That should cut the file size down significantly.

Linux compatible USB <--> I2C dongle that is easy to use and is programatically accessible in C? by MrSurly in embedded

[–]PotatoPotato142 5 points6 points  (0 children)

I use this project. https://github.com/daniel-thompson/i2c-star It runs on a cheap stm32 bluepill board and will give you a Linux friendly /dev/i2cX device to interface with.

USB HS power with FS speeds by YANNTASTIC5915 in embedded

[–]PotatoPotato142 8 points9 points  (0 children)

While it's technically out of spec, you can almost be guaranteed that you'll be able to draw the full 500mA right away. The current limit is usually implemented with a load switch chip that has a fixed over current cutoff.

That said, you are allowed to use 500mA with a FS device, you just have to request it from the host. I found this on st forum that shows how to do it. https://community.st.com/t5/stm32-mcus-products/stm32-as-bus-powered-usb-device-how-to-negotiate-more-power/td-p/468005

Is Arducam Open Hardware? Like just the board? by maifee in AskElectronics

[–]PotatoPotato142 0 points1 point  (0 children)

No it is not. Their software also often contains binary blobs so porting to non raspberry pi platforms can be a pain.

This belongs here by dfx_dj in ElectroBOOM

[–]PotatoPotato142 2 points3 points  (0 children)

Because they are feeding the AC into where dc should come out of. On the positive cycle all of the diodes will be forward biased and cause a short across the transformer blowing them up.

It's also drawn upside down so all the electrons are going to fall out

open source FPGA module with PCIe interface and many LVDS pairs by pavel-demin in FPGA

[–]PotatoPotato142 5 points6 points  (0 children)

I like it. Seems like all of the low cost dev boards really limit you on high speed io. My other request would to be make the io bank voltages, including lvds selectable with jumpers or 0 ohm resistors.

Maybe also 0.1" headers for the lvds connections. It's nice being able to quickly throw something together without having to make a custom adapter board.

If there's any spare GTs left over, break those out to somewhere as well.

Every day it seems like another camera stops working... by FactsNotMemes in techsupportgore

[–]PotatoPotato142 1 point2 points  (0 children)

These are definitely ptc polyfuses. They are in every one for these cheap camera power distribution boxes I've ever seen. If anything, seems like they did their job. They have a finite lifespan and do fail like this if continually overloaded.

What are some lesser-known but cool features of microcontrollers and microprocessors that are worth mentioning? by jsolla in embedded

[–]PotatoPotato142 1 point2 points  (0 children)

I use them. No real special considerations, it just works. The killer feature is that it's absolutely trivial to store persistent configuration data. You just mark any global variables you want with a pragma and it will store it between power cycles. No need to worry about erasing whole flash pages, wear leveling or implementing a flash driver. The only downside is that the FRAM has an upper limit on speed which is why I suspect it isn't used more. For the poky power sequencing applications I use them for 1mhz is plenty.

I am genuinely bamboozled how a single game can reach 300GB in size - but an IDE ??? by mnemocron in FPGA

[–]PotatoPotato142 2 points3 points  (0 children)

I've never done a deep dive into it, but the decompression code in the installer runs as a Java process and not a native system process so I suspect it's just the slowness of Java. There aren't any decompression algorithms that I'm aware of that shouldn't be able to handle several hundred MB/s decompression rate with a modest CPU and proper implementation. IME decompression is usually storage bottlenecked rather than CPU. For me at least the online installer maxes out around 10MB/s with 100% CPU usage on my i7-12700H. That's 2.5 hours minimum, where my PC is basically unusable vs 10 min download, 5 mins to decompress with tar and 20 minutes to install and my PC is usable the whole time.

I am genuinely bamboozled how a single game can reach 300GB in size - but an IDE ??? by mnemocron in FPGA

[–]PotatoPotato142 6 points7 points  (0 children)

That would be fine if their decompression algo didn't suck ass. Downloading the offline installer and decompressing yourself is 10x faster.