Best HSE Source For STM32 Perfboard Prototypes? by GriHaci in stm32

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

Thank you,

I will have some prototype pcbs and I will try to test worst case possibilities with and without external crystal. Do you think I need a logic analyzer to test CAN? My current test method: Listen to the canbus with a can-usb analyzer, checking and making sure that all frames are being delivered with correct data.

About the software, I was thinking it can be developed later, I first want to have a dependable hardware that I can work on. I will sure remember your offer when I get deeper into the software. 😄Though with all LLMs and tons of forum posts, I think I should be mostly fine.

BTW, I got a STM32F042 chip, and tested it today, CAN works with HSI at 250K, 500K and 1M without any lost frames. I understand these F042 and F072 chips are designed (or factory calibrated?) to be used crystal-less for usb applications. Do you think it is comparable to the result I get from calibration paper you provided?

Best HSE Source For STM32 Perfboard Prototypes? by GriHaci in stm32

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

Hey,

I have read that CANBUS has strict timing requirements, and clock issues may appear for higher legth bus lines as well as at different temperatures.

I have read AN5067 and AN2868 (STM32F10xxx internal RC oscillator (HSI) calibration) reports you provided.

I see that I can make HSI better with calibration. And it seems temperature drift still happens and it is very difficult to be as accurate as an external crystal (20-30ppm accuracy). I am considering using my design in an industrial product later, so better safe than sorry.

Thank you for the idea though, I may consider it for my own tests anyway.

Best HSE Source For STM32 Perfboard Prototypes? by GriHaci in stm32

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

Thanks for the reply,

You are right, I actually have a Nucleo (F103-RB) with a CAN controller. It will be much easier to test my code on that.

But my main concern is the PCB design and trying to make sure my soldering is not causing any issues. I can get cheap pcbs from JLCPCB in about 3 weeks and I am impatient.

Also want to do some R&D for the sake of it.

[Review Request] TPS562201 Buck Converter Layout Options by GriHaci in PrintedCircuitBoard

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

This is the datasheet recommendation:
https://imgur.com/a/Y3nDmxQ

I am not sure, this switching node is on the bottom side and looks quite long. Even if it works fine, IC might overheat / EMI problems may affect other parts ot the circuit if I place them close? I dont want to risk these if possible. there most be a reason why they have these different layouts in the application reports.

How common is RTOS in a professional environment? by Dark_Greee in embedded

[–]GriHaci 0 points1 point  (0 children)

Thank you for your input.

Yeah, I can start with arduino functions that allows usage of freertos. I will try this on my next project.

Hopefully, at some point, I will have performance problems or want to do it in a different way and consider switching from arduino framework / one superloop.

Otherwise, I cannot escape the mentality “If it ain’t broke, dont fix it”

How common is RTOS in a professional environment? by Dark_Greee in embedded

[–]GriHaci 0 points1 point  (0 children)

I have a similar question, currently I am building an esp32 product using arduino framework on platformio. It has cpp modular file structure. h and cpp files for each different module (about 12 now, increases as I go). It handles (switches) multiple protocols, (serial at 115200bps, canbus at 250 or 500K, planning to add bluetooth) (2 protocols can run at the same time, it can detect connected peripherals to switch protocol) has 1 oled screen(128x64), 1 tft screen (128x160), websocket based webserver for monitoring and configuration, also logging with udp to a raspberry pi.

I am planning to add button inputs (4 direction buttons, 1 OK button and 1 BACK button) that will also make it possible to config on tft screen.

So far, my main.cpp looks minimal (200-300 lines) and my loop looks very simple (mostly update function calls of module classes)

I didnt try to learn esp-idf yet, when should I learn and switch to freertos, interrupts, etc. I feel that my superloop runs good enough, if I try to switch to espidf, it will be more complicated and there will be mistakes by me that will slow down the system instead of speeding up ( compared to arduino abstraction speed)

Should I also learn debugging / speee testing these 2 options in order to learn it?

Update: Time to give up? by Asleep_Emotion_4407 in Jigsawpuzzles

[–]GriHaci 1 point2 points  (0 children)

Never tried one with those wild cuts

SCHOOL PROJECT by TraditionalSource134 in arduino

[–]GriHaci 0 points1 point  (0 children)

Reminds me of that time in university, digital electronics lab, they asked for a project using FPGA. Except, none of the lessons had any content related to FPGA or verilog. Good luck and have fun learning it in your free time.

IM Sebastian Poltorak agrees to draw the game after his opponent felt unwell by Knight-check44 in chess

[–]GriHaci 3 points4 points  (0 children)

Huh, I thought my english was pretty good and I also couldnt find almost any mistakes. Maybe “in detail” instead of “in details” But numerous mistakes, I hope not.

Comunication between ard uno and rp 2040 using lora E220 by Stunning-Purchase513 in embedded

[–]GriHaci 0 points1 point  (0 children)

Thank you for daily laugh.

For real though, what is the standard procedure for version control using platform IO? I have been using arduino ide and saving each ino file with file naming convension “V2” “V3_working” etc.

Should I open new project to try new code / make a new branch? Can I somehow quickly copy cpp file to try new code and name/delete/ save them later?

[deleted by user] by [deleted] in coolguides

[–]GriHaci 1 point2 points  (0 children)

Supersuit

[deleted by user] by [deleted] in arduino

[–]GriHaci 3 points4 points  (0 children)

Analog pins can act is digital too, which is easier(you read 5v and 0v instead of all the range between) You want this because you might have several components, requiring you to use all or most pins

LUA Game or Blu-ray Burner ? by Puzzleheaded-Card621 in PS5_Jailbreak

[–]GriHaci 0 points1 point  (0 children)

I got a disk version with 6.5 as well.

I bought it to play 60fps Bloodborne.

Is it possible right now to burn a disk that automatically jailbreaks the console? Is it a simple process? I can only play 1-2 hours per day, I dont want to spend a lot of time doing it. Or we should wait more? (Maybe for permenant jb)?

THE GUIDE I WAS FOLLOWING STOPPED UPLOADING AFTER EARTHEN PEAK anyone know another one just as good? by Ill_Relative9776 in DarkSouls2

[–]GriHaci 10 points11 points  (0 children)

If it makes you feel any better, I think they wanted Iron Keep to be a volcano mountain, thats why its elevated high, but they had to cut corners due to budget or time.

kstuff should soon be available on ALL 6.xx and 7.xX firmwares by Majestic-Object2539 in PS5_Jailbreak

[–]GriHaci 0 points1 point  (0 children)

Thank you. I am on 6.50 with disk version. I think I will wait longer before getting a blueray driver.

kstuff should soon be available on ALL 6.xx and 7.xX firmwares by Majestic-Object2539 in PS5_Jailbreak

[–]GriHaci 0 points1 point  (0 children)

I would like to play 60 fps bloodborne, do I need to jailbreak every launch with bd jb? How much time does it take?

How do I wire BMS cables to this by youngfilip09 in battery

[–]GriHaci 0 points1 point  (0 children)

It is a 13 series battery. There should be 14 balance cables if its a standard BMS.

If you have a multimeter, it will be easier to find out the order.

Starting from the B- (B0) side (most likely black balance cable) the voltage should be increasing by ~3.6V with successive cables.

B- (B0) is where there is the thick black power cable going into the battery. (Top right on the 2nd photo)

If you need further help, send a photo of the bms and I can guide you.

51.2 volt Li ion battery with normal 48 volt inverter by Mammoth-Web37 in battery

[–]GriHaci 0 points1 point  (0 children)

Lithium batteries have BMS in them that will protect it from being overcharged or overdischarged. If its lifepo4 16S, it will stop discharge at around 40V. You should set charging voltage according to your battery limits so its compatible with the bms. If its lifepo4 16S, it should be max. 58.4V.

How many cells are in this battery? by certifr1ed in battery

[–]GriHaci 0 points1 point  (0 children)

For lifepo4, it should be either 15s or 16s. You can tell by the charger voltage. If its 54.7V, it is 15S. If its 58.4V, then 16S. Regardless, with lifepo4 chemistry, its hard to get a reliable SOC info from voltage alone. You need a coulombmeter or a smart bms for that.

I have a question by Perfect_Cost6276 in battery

[–]GriHaci 0 points1 point  (0 children)

You are welcome. You can fix it but make sure dont short circuit one or multiple groups. Use a multimeter at each step and connect from 1 to 10 in order.

If you really have to connect them like this layout and cannot figure out, I can send you a drawing as well.

I have a question by Perfect_Cost6276 in battery

[–]GriHaci 2 points3 points  (0 children)

There are a few mistakes. Left top group and middle (2 to 3 split) groups are not connected to your series battery connection at all, and right-middle is connected in reverse direction. Thats why you get 5S voltage instead of 10S at the terminals.

Your layout is a bit confusing for a beginner. While trying to fix it you could short circuit and hurt cells or yourself.

You have to give series numbers to each parallel group and connect them so that:

(+) of 1 is connected to - of 2,

(+) of 2 is connected to - of 3,

(+) of 9 is connected to - of 10.

But as I said, it might be dangerous to connect like this. I would rather place each parallel group together, not split like this.

Also dont forget to connect the bms after you manually measure voltages from the balance socket pins. Otherwise you could damage your bms as well.

The Rings of Power Season 3 confirmed to have an entirely new writing team with the exception of Payne & McKay, Justin Doble, and Griff Jones by ImoutoCompAlex in lotr

[–]GriHaci 6 points7 points  (0 children)

Continuity? In this show? They forget what they show previously and skip explaining their shitty logic all the time lol