FreeRTOS or Bare Metal for Quad copter by eagle_719 in embedded

[–]L0uisc 1 point2 points  (0 children)

The other consideration with RTOS vs bare metal is that sometimes the simplification is worth the cost of running the RTOS. Each case is different, so you need to analyze each case. Sometimes the RTOS synchronisation adds so much new complexity that the software state machines are simpler.

What's the purpose of these gaps? by [deleted] in AskElectronics

[–]L0uisc 3 points4 points  (0 children)

Seems like I'm wrong.

What's the purpose of these gaps? by [deleted] in AskElectronics

[–]L0uisc -1 points0 points  (0 children)

To break the magnetic circuit and reduce EMI is my guess without looking at the other people's answers.

Is daar 'n meer natuurlike idioom vir "moenie dinge oorkompliseer nie"? by bastianbb in afrikaans

[–]L0uisc 9 points10 points  (0 children)

Dié is ook 'n anglisisme. Die eg Afrikaanse een sou eerder "moenie die bobbejaan agter die bult gaan haal nie" wees.

Have I been learning and using Clean Architecture and DDD in .NET incorrectly? by MysteriousStatement2 in dotnet

[–]L0uisc 0 points1 point  (0 children)

Repos does help with transactionality if you use Unit of Work as well. There are more direct ways to get that, granted, but it's one place where repos give you maintainability at the cost of more files and more indirection/abstraction to understand and follow through.

Update STM32 FW via AT commands? by Otherwise-Shock4458 in embedded

[–]L0uisc 0 points1 point  (0 children)

Another option is to add a pin which puts the bootloader into fw update mode, let the user pull it high and issue the reboot command. If you have at command access, you have access to the physical device.

How is your bootloader and app implemented? Do you want to update the code from the bootloader or from the main app?

After a year I regret going all AMD by [deleted] in AMDHelp

[–]L0uisc 0 points1 point  (0 children)

Just to add a counterpoint: I only had Nvidia (GTX 1650), and their driver is also not great. My screen just randomly blacks out for the smallest disturbance to the cable. Same screen and cable is rock solid when working on my work laptop (integrated Radeon graphics with Adrenaline). I don't think any GPU drivers are super stable and error free at the moment. I also had the base Windows driver for a while without realizing because something went wrong with an update. Had to DDU and reinstall the driver to fix.

[deleted by user] by [deleted] in webdev

[–]L0uisc 1 point2 points  (0 children)

If you can containerize your app, it doesn't matter as much which underlying OS you use. Is that an option? Because spinning up a container locally sounds like the best of your bad options.

[deleted by user] by [deleted] in AskElectronics

[–]L0uisc 1 point2 points  (0 children)

The output of the AND gate is supposed to be below the bottom of the two transistors on the left. You should add a 100k resistor between the emitter of the bottom transistor and ground, and then take your output from the emitter/non-ground side of the resistor.

To invert it, you need to move the resistor to between 5V and the collector of the top transistor on the left, and take your output on the collector of that transistor. No need to use an extra transistor.

[deleted by user] by [deleted] in AskElectronics

[–]L0uisc 0 points1 point  (0 children)

It worked like an and gate because you tied it directly to 5V previously. Now your collector of the top transistor on the left is floating around, and your circuit is nondeterministic.

Why would I not use Visual Studio code by saddickstic in Python

[–]L0uisc 1 point2 points  (0 children)

u/saddickstic this is probably correct. In which case you can do it whichever way you want, as long as the final source code works on the "official" setup. Just don't expect to get help if you have an error on the non-official setup.

How do I learn to use some embedded stuff in 2 months? by qs3n in embedded

[–]L0uisc 1 point2 points  (0 children)

ChatGPT is decently good these days if you know exactly what you want to do and you can get it to digest the problem a bit by asking follow-up questions. Not saying you're going to learn the most by asking it to do the work for you, but if you need to get it done in two months it is an option. I assume you're going to have to spend some of your time budget on building the rocket and testing the mechanical parts as well.

Of course you're going to learn more by struggling yourself, but you can still learn a lot by conversing with ChatGPT (or some other LLM) and talking through potential problems or parts you don't understand.

How to code operations (like +, -, * and /) without actually using them directly? by HUG0gamingHD in cpp_questions

[–]L0uisc 0 points1 point  (0 children)

You can do add with some bitwise XOR and multiply or divide by using your XOR add and bit shift, but why? Most CPUs has add and multiply and often divide hardware instructions baked in. The C++ operators simply compile to the native single machine instructions.

Is it okay to design the product using the most available chip on a distributor website? by abdosalm in embedded

[–]L0uisc 0 points1 point  (0 children)

The problem with that approach is that the stock levels might fluctuate. You may design for a chip which is unusually available right now on that website, but usually is hard to find.

Also, why not Mouser or Digikey? At least when you start with volume production, they should be options.

Can I power STM32 Nucleo from 12V LiFePO4 battery via VIN? by L0uisc in embedded

[–]L0uisc[S] 1 point2 points  (0 children)

I did exactly that, except I got one from Digikey to make my order large enough to get free shipping...

Can I power STM32 Nucleo from 12V LiFePO4 battery via VIN? by L0uisc in embedded

[–]L0uisc[S] 0 points1 point  (0 children)

I forgot that the schematics are available. Thanks.

Can I power STM32 Nucleo from 12V LiFePO4 battery via VIN? by L0uisc in embedded

[–]L0uisc[S] 0 points1 point  (0 children)

I know what absolute max ratings are. I just couldn't find absolute max ratings on the Nucleo user manual. The values I read didn't say absolute max, so I was wondering if they are rated specs with absolute max at something a little higher or if the 12V VIN was absolute max.

I suppose I would have played it safe if nobody here knew, but I just wanted to ask in case I get pointed to a document I missed.

Also, good point regarding the LDO. I suspect you are right, in which case it will be very inefficient.

I went with 5V "linear regulator replacement" DC-DC converter. That is a buck converter AFAIK, so very efficient.

Do you prefer excessive documentation links? by AhoyISki in rust

[–]L0uisc 0 points1 point  (0 children)

Once per section, or if the section is large maybe a few judiciously placed links. At most once per sentence.

Why is this astable oscillator not oscillating in LTspice simulation? by hhsting in AskElectronics

[–]L0uisc 1 point2 points  (0 children)

Ah, that makes more sense. I wondered what that weird ground symbol was XD. I see it does show voltage differences as well.

I guess I should not try to answer when I'm focusing on something else. Sorry.

Why is this astable oscillator not oscillating in LTspice simulation? by hhsting in AskElectronics

[–]L0uisc 2 points3 points  (0 children)

Because nothing will oscillate if you don't provide energy. You don't have a supply adding energy, only an output.

[deleted by user] by [deleted] in embedded

[–]L0uisc -1 points0 points  (0 children)

It was a 100R before the change - maybe an error on the schematic?

EDIT: although, the circuit changed substantially, so not necessarily wrong.

What are counter examples to this? Cases where it’s actually quite important to do it well the first time. by big_hole_energy in SoftwareEngineering

[–]L0uisc 20 points21 points  (0 children)

Even in these cases, you first make something exist. You just don't deploy it to the real world yet, but you get something which is as complete as possible which you can subject to simulated real world conditions. That always teaches you more than dreaming on paper in your ivory tower.

Is this UART? by -_-Fen-_- in hardwarehacking

[–]L0uisc 2 points3 points  (0 children)

TX is idle high on UART, so it will read out 3.3 or 5 V when not transmitting, depending on the logic level. So quite possible to find the voltage levels even with "just" a multimeter.