NEMA23 CNC FOC Stepper Driver Dev

Mkay, using HDI ive kinda found room for a 64Mb QSPI NOR FLASH DRIVE. This could be used to boot a folder for config files.

It is sharing a stacked uVIA [Rosenbridge] with the MCU so it can only be done if the QSPI interface can be internally powered by 1.2v, without messing other pin power domain up. The IC can only tolerate op to 2v.

Under any circumstance the pins are there, so maybe a different routing for a different package.

Actually maybe the core voltage should be 1.8 or similar, and the analog_reference, shall remain 3.3v. ?

The STM32H747 has a low-voltage IO setup, that I have a hard time figuring out. When low voltage is set, does all low_voltage pin then work on core_voltage eg. 1.2 ? And the rest, those pins without _h specefication, on 3.3v ?

With a 133Mhz bandwidth, it can make some really dense samples for graphing :smiling_face_with_three_hearts:

Let say we allocate 4Mb for plotting variables in a JSON format. With a 64byte transfer, it leaves up to 62.500 datapoints.

Changelog:

The low_voltage QSPI pin scenario is to dodgy IMO. So I have chosen a 128Mbit (16MB) IC with a 3.6v rating, instead of the 2v rated BGA.

532MHz equivalent Dual/Quad SPI

If used for some science data acquisition experiment, maybe batterie powered, It will be a nice feature to have 16MB of external memory for logging. Maybe I should focus on the battery pin. Edit: The battery power pin is only for the backup domain, which has limited functionality. If powering the MCU for logging in the field, a USB battery should be used.

Comparing USB bandwidth/datarate with a QSPI memory for logging motor data is dificult. Especially if the USB interface is based on Serial (single char transfer) like the SimpleFocStudio. When doing single char transfers, the USB protocol overhead becomes a bottleneck.

In theory, the QSPI FLASH memory, can be divided into eg. 2MB sample segments, which enables testing a motor at eg. different torque settings or similar. Efter the test_run the acquired data can be compared.

Integrated driver class;

Have been playing around with the STspin32G4 MCU, which is a STM32G4 MCU with integrated gate_drivers. Since I sat out on this modular_design quest some moons ago, with this MCU in mind, it is only logical to integrate it into this new iteration of the modular format.

This MCU also integrate a buck converter, which handle all step-down needed for the gate_drivers. 48v NEMA17 driving should be possible with the right pre-requisite.

I think it is possible, also for stepper purposes. But in order to use it with steppers, a 4th gate driver must be used on TIM8 and it will require future SimpleFOC 8pin PWM support for steppers. Basically it will need a custom hardware specific setup for stepper purposes w. this unique MCU/BUCK/GATE_DRIVER. If used for 6pin PWM BLDC purposes, then the 4th gate driver could be used for eg. Brake_resistor.

Since the physical format is 42mm x 20mm this integrated driver class, should be a good fit for NEMA17 steppers.

Still a work in progress.

Preliminary pinmap, this may change.

At the two-yard peg she faced round, and said, ‘A pawn goes two squares in its first move, you know. So you’ll go very quickly through the Third Square—by railway, I should think—and you’ll find yourself in the Fourth Square in no time. Well, that square belongs to Tweedledum and Tweedledee—the Fifth is mostly water—the Sixth belongs to Humpty Dumpty—But you make no remark?

‘I—I didn’t know I had to make one—just then,’ Alice faltered out.

‘You should have said, “It’s extremely kind of you to tell me all this”—however, we’ll suppose it said—the Seventh Square is all forest—however, one of the Knights will show you the way—and in the Eighth Square we shall be Queens together, and it’s all feasting and fun!’ Alice got up and curtseyed, and sat down again.

At the next peg the Queen turned again, and this time she said, ‘Speak in French when you can’t think of the English for a thing—turn out your toes as you walk—and remember who you are!’ She did not wait for Alice to curtsey this time, but walked on quickly to the next peg, where she turned for a moment to say ‘good-bye,’ and then hurried on to the last.

How it happened, Alice never knew, but exactly as she came to the last peg, she was gone. Whether she vanished into the air, or whether she ran quickly into the wood (‘and she can run very fast!’ thought Alice), there was no way of guessing, but she was gone, and Alice began to remember that she was a Pawn, and that it would soon be time for her to move.

(Il y a du vrai dans votre fiction et du faux dans votre vérité)