Shop OBEX P1 Docs P2 Docs Learn Events
Another opportunity for P2 — Parallax Forums

Another opportunity for P2

SeairthSeairth Posts: 2,474
edited 2014-12-19 06:23 in Propeller 2
http://www.altera.com/technology/system-design/articles/2014/motor-control-computer-architects.html

The article is primarily providing an overview of how control systems for PMSMs (permanent magnet synchronous motors) are evolving beyond the capabilities of simple MCUs. The premise is that SoCs are increasingly needed to control PMSMs. Apart from the fact that it was an interesting read, I saw this as an ideal opportunity for the P2.

Comments

  • LeonLeon Posts: 7,620
    edited 2014-11-26 06:13
    PMSM control is also an application suited to XMOS devices, which are available now:

    http://www.xmos.com/news/14-dec-2011/xmos-platform-simplifies-high-performance-multi-axis-motor-control-applications
  • SeairthSeairth Posts: 2,474
    edited 2014-11-26 06:19
    Leon wrote: »
    PMSM control is also an application suited to XMOS devices, which are available now:

    http://www.xmos.com/news/14-dec-2011/xmos-platform-simplifies-high-performance-multi-axis-motor-control-applications

    There are all sorts of existing options that are suited for PMSM control, I'm sure. That doesn't preclude the P2 from being a contender (once it's released, admittedly).
  • jmgjmg Posts: 15,148
    edited 2014-11-26 10:20
    Seairth wrote: »
    http://www.altera.com/technology/system-design/articles/2014/motor-control-computer-architects.html

    The article is primarily providing an overview of how control systems for PMSMs (permanent magnet synchronous motors) are evolving beyond the capabilities of simple MCUs. The premise is that SoCs are increasingly needed to control PMSMs. Apart from the fact that it was an interesting read, I saw this as an ideal opportunity for the P2.

    As they say there, the devil is in the details.
    One detail missing from their Block Diagram is fault sensing and dead bands in the Bridge drive. Easy to craft into a FPGA, but the P2 timers are going to need some help for serious Motor control.

    Maybe Chip's smart pins willbe smart enough to allow one COG to control 6+ Bridge Pins, with hardware fault sense ?
  • evanhevanh Posts: 15,192
    edited 2014-11-26 12:28
    That is generic servo design. I'm a tad surprised the article doesn't label it a servo. The general function as shown has been the norm since before the space race.

    The change from pure analogue to mixed digital processing occurred around 20 years ago. There would have been some rare digital cases earlier I guess.
  • jmgjmg Posts: 15,148
    edited 2014-11-26 12:43
    evanh wrote: »
    That is generic servo design. I'm a tad surprised the article doesn't label it a servo. The general function as shown has been the norm since before the space race.

    The change from pure analogue to mixed digital processing occurred around 20 years ago. There would have been some rare digital cases earlier I guess.

    Yup, another way to look at the servo control needs, is in the time-domain.
    Most quadcopters are a great example of responsive real time servo, and they seem to manage fine with 2~2.5ms control loops.
    Altera mention 16Khz trending to 100Khz, but that is the Bridge Switching frequency.

    It is natural to try to then work at the Bridge Switching Frequency, but there is scope here for a 3rd time domain.
    Full maths is not needed every PWM cycle, but single core controllers just find it easier to develop that way.
    ( and Altera, of course, will pitch a solution that uses many DSP cores, as that is what they sell )


    A prop could work quite well in 3 time domains - an outer servo loop at the QuadCopter like ~2ms, an innermost PWM one, at the upper 100KHz, doing sampling and protection, and a mid-range one, maybe 100us~300us that manages the motor physics and angle extractions. 3/16 of a Prop 2 :)
  • evanhevanh Posts: 15,192
    edited 2014-11-26 12:56
    100kHz!? Not too many motors are built to have dynamic ultrasonic features.
  • jmgjmg Posts: 15,148
    edited 2014-11-26 13:50
    evanh wrote: »
    100kHz!? Not too many motors are built to have dynamic ultrasonic features.

    I think they are talking about the Bridge Frequency there, not the motor field currents.
    The 16KHz -> 100KHz trend makes sense, as it allows smaller L's and C's, and IGBTs and MOSFETs are improving all the time. Likewise for Solar inverters.

    A P2 could also make a nice merging Solar Micro-inverter, one where a number of panels feed a single switching controller. Uses multiple inverters to match each panel, without a package price adder on every single panel.
    With multiple inverters you can also do clever things with the phase, to slash ripple currents.
  • jmgjmg Posts: 15,148
    edited 2014-12-19 06:23
    I see QSPI HW support is becoming ever-more-common, with this on the latest ST offering also adding HW memory remap.

    ["To allow seamless system expansion using off-chip memory, the STM32F446 includes a flexible memory controller (FMC) and dual Quad-SPI (QSPI) interface. The 90MHz FMC eases control of external SRAM, SDRAM, Flash NOR/NAND, or LCDs with embedded controllers, and supports memory-remap mode for enhanced performance. The dual QSPI can work independently from the FMC, and allows direct or memory-mapped connection to up to two external SPI NOR-Flash memories at single or dual data rate"]
    This FMC hardware block also supports SDRAM.
Sign In or Register to comment.