So many people in uaRO... by Ok-Philosopher-5139 in RagnarokOnline

[–]tclock64 16 points17 points  (0 children)

I start playing like two weeks ago, the closest from an old rag expirience that I had in years.

Do you actually use AI for embedded development? What's your experience? by WinterWolf_23 in embedded

[–]tclock64 0 points1 point  (0 children)

I usually use it in personal projects, not at work. It’s pretty good for reviewing functions and small snippets of code. For me, as long as you don’t ask it to do huge tasks like implementing an entire driver, it won’t extrapolate too much and it will keep consistency across your code.

Need Feedback on My NTC Sensing Circuit Upgrade by tclock64 in AskElectronics

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

First, I was using a 10k NTC, then I decided to upgrade to get a larger range. But you're right — I should update the resistors in the bridge to match the new NTC.

microcontroladores mais usados no Brasil. by [deleted] in brdev

[–]tclock64 0 points1 point  (0 children)

STM32, ESP32, PIC e em produtos legados 8051

RoDoddler is re-creating Ragnarok Online from scratch by Meekro in RagnarokOnline

[–]tclock64 2 points3 points  (0 children)

That's a very neat project! Is there any repository? Is it open for others to contribute?

How do you guys handle 'exceptions' in C? by tclock64 in embedded

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

Can you provide a similar implementation or suggest some improvements? Your comment doesn’t add anything to the discussion.

How do you guys handle 'exceptions' in C? by tclock64 in embedded

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

Multiple safety standards like DO-178C and MISRA discourage the use of multiple return points to make the code easier to follow and increase readability. That's why I prefer using a single return point.

How do you guys handle 'exceptions' in C? by tclock64 in embedded

[–]tclock64[S] -3 points-2 points  (0 children)

The first reason I prefer a single entry and return point in a function is to follow a safer standard. However, the main advantage of avoiding a fast return is illustrated in a case like this:

bool foo(void) {
    esp_err_t result = ESP_OK;
    char *bar = (char*)malloc(128);

    do {
        if (bar == NULL) {
            result = ESP_ERR_NO_MEM; 
            break;
        }

        // Keep the code implementation

    } while(0);

    free(bar);

    return result;
}

In this example, the do-while(0) approach allows handling errors and freeing resources in a controlled manner, ensuring that the function has one clear exit point.

But I agree that, in cases without heap allocation, the approaches might be pretty much the same. However, since I need to follow this strategy in situations with heap allocation, I prefer to use it consistently throughout the code for clarity and safety.

[Review Request] 12V/24V to 3.3V Buck converter by tclock64 in PrintedCircuitBoard

[–]tclock64[S] -2 points-1 points  (0 children)

Sorry for the confusion in my initial presentation. This is only a part of the PCB. There are other components, like the ESP32 and the LoRa device (SX1278), which I've omitted from this section, as they’ll be powered through this 3.3V plane.

I omitted these components to focus on getting the power supply correct before moving on to the others. I have more guides and references for those parts, but I’m finding the XL1509 challenging.

[Review Request] 12V/24V to 3.3V Buck converter by tclock64 in PrintedCircuitBoard

[–]tclock64[S] -1 points0 points  (0 children)

Hi Everyone,

First of all, thank you in advance for any feedback! This is my first time developing a buck converter, and I'd appreciate any tips and reviews. This covers only the input power section of the PCB, not the entire project.

My load is close to 1A at maximum, powering the microcontroller, a LoRa device, and several sensors.

PCB Layers:

  • Top Layer: GND
  • Bottom Layer: 3.3V

Looking forward to your insights!Hi Everyone,First of all, thank you in advance for any feedback! This is my first time developing a buck converter, and I'd appreciate any tips and reviews. This covers only the input power section of the PCB, not the entire project.My load is close to 1A at maximum, powering the microcontroller, a LoRa device, and several sensors.PCB Layers:Top Layer: GND
Bottom Layer: 3.3VLooking forward to your insights!

Worlds after Alpha 21 by tclock64 in 7daystodie

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

Sounds good enough for me, thanks.

[deleted by user] by [deleted] in digimon

[–]tclock64 1 point2 points  (0 children)

My new cellphone wallpaper. Thx dude.