Suitable Microcontroller for Power Electronics? (Beginner) - Page 1
Forum section: electronics / general

author: sean0118
author_rank: Frequent Contributor
timestamp: January 17, 2015, 12:59:31 pm
content: Hi everyone,I'm looking for a microcontroller development board that I can use for applications such as DC-DC converters and battery chargers. I'm a bit overwhelmed by the choice available, but it seems something ARM based would provide me with skills that would directly transfer to industry?With regards to peripherals I'm guessing I would need an ADC, DAC and PWM, but I'm not sure what else? ThisFreescale FRDM-KL05Zseems to have those features at a great price, but would I run into trouble with compilers and documentation etc? I intend to program it in C or C++.Can anyone recommend anything?

author: sean0118
author_rank: Frequent Contributor
timestamp: January 18, 2015, 01:09:24 am
content: Just to be clearer, I meant just to control a DC-DC converter or battery charger, all the power stuff will be separate to the dev board of course.

author: dannyf
author_rank: Super Contributor
timestamp: January 18, 2015, 01:25:40 am
content: QuoteQuite a few chips for such applications, like from TI or Microchip.However, Freescale is the absolute king in that business.Assuming of course you intend to produce a good quality inverter.Otherwise, pretty much any mcu can do.

author: free_electron
author_rank: Super Contributor
timestamp: January 18, 2015, 01:48:56 am
content: freescale for sure. they rule that market.They even have special dual core cpu's where one core is 32 bit and the other 16 bit. one monitors the other ...

author: mazurov
author_rank: Frequent Contributor
timestamp: January 18, 2015, 04:49:27 am
content: For applications with slow changing input/output, like battery chargers with solar input there are suitable PIC16 devices. Get Microchip Appnote 1467 (and the same authors wrote another note describing MPPT for the same circuit, but I can't find it at the moment), build the thing and play with it. It is very simple and at the same time quite capable. More importantly, the code uses no libs so you'll be able to study every detail, if you feel like it.

author: sean0118
author_rank: Frequent Contributor
timestamp: January 18, 2015, 05:51:03 am
content: Thanks for the replies everyone. I've just been reading up on theFreescale DSCs. However, I can't find many afordable dev boards except for maybe theMC56F8006? Which doubles in price to$130with the JTAG programmer included (I think?).Quote from: mazurov on January 18, 2015, 04:49:27 amThanks I'll check it out. I'm starting to think the DSCs might be overkill for what I need.So just to check, the ARM processors are not really suited to this stuff right? Or would the Freescale board from my original post be ok?

author: coppice
author_rank: Super Contributor
timestamp: January 20, 2015, 03:55:58 am
content: Quote from: sean0118 on January 18, 2015, 05:51:03 amLook at the app notes for M series ARM based MCUs, and you'll find a huge number of them are for power electronics, especially motor control.

author: nctnico
author_rank: Super Contributor
timestamp: January 20, 2015, 09:25:05 pm
content: Yup. Loads of ARM controllers for power control. I recently used an LPC11U67 from NXP in a design to do the PWM control in a wireless power transmitter design. The PWM controller in that device is capable of doing lots of things including handling external error (overcurrent) signals.

author: sean0118
author_rank: Frequent Contributor
timestamp: January 22, 2015, 06:26:22 am
content: Quote from: mazurov on January 18, 2015, 04:49:27 amI think the MPPT application note you mean isAN1521?I was really considering building that battery charger, but the PIC they use (PIC16F1503) has an inbuilt NCO. The only development board I can find with an NCO is theAC103011, however that only has 8bit ADCs and its flash and ram sizes are probably too small.I'm now thinking I might look into the ARM development boards again and aim to build a simple buck converter...Edit: I changed my mind again, that battery charger is just too interesting. It's all in that variable frequency with constant on time... I can't say no to thatAt least it doesn't look as hard as I originally thought to develop my own development board.Edit2: Actually looking at that schematic I don't think I'll even require a development board?

author: diyaudio
author_rank: Frequent Contributor
timestamp: January 22, 2015, 02:14:25 pm
content: Quote from: sean0118 on January 17, 2015, 12:59:31 pmAlthough you specified beginner I would look at a DSC (dsPIC) or a DSP (any brand will do). I'm not sure what part of the power converter you want to fit a microcontroller/dsc/dsp here is a tear-down of a APC SmartUPSMy theory is they using the TMSC6000 DSP as a the main digital control loop to drive the system, so component drift is non-existent. there is a FPGA as well a rather interesting mix for a UPS. (not sure if this thing was over engineered)

author: dannyf
author_rank: Super Contributor
timestamp: January 22, 2015, 04:23:45 pm
content: Quotethere is a wide spectrum of "smps" and you can always find a way to implement it on any mcu.For an example, google roman black smps to see how he implemented on on a PIC.

author: GNU_Ninja
author_rank: Regular Contributor
timestamp: January 22, 2015, 04:40:35 pm
content: Quote from: mazurov on January 18, 2015, 04:49:27 amThis? ==>http://ww1.microchip.com/downloads/en/AppNotes/01467A.pdf

author: Phoenix
author_rank: Frequent Contributor
timestamp: January 25, 2015, 10:42:26 am
content: Quote from: free_electron on January 18, 2015, 01:48:56 amFreescale and TI are the two big guns in power electronics MCUs. TI have some pretty powerful dual core offerings too (2xC280+2xCLA or C280+ARM). However I wouldn't really say they are beginner friendly.Lots of more basic MCUs (MSP430, ATTiny etc.) these days offer ADC, some PWM functionality and a comparator. Everything you need for a basic converter and ability to try some different control algorithms.

author: donotdespisethesnake
author_rank: Super Contributor
timestamp: January 25, 2015, 11:48:17 am
content: I would definitely look to an ARM platform, for low cost and wide support. Rightly or not, ARM are basically taking over the whole market. Even Freescale have dropped development on their whole DSC range, replaced with ARM Cortex based Kinetis range, which are fairly standard Cortex offerings. The Kinetis KV are "specialised" for motor and power control applications, but they are pretty standard apart from some Freeescale IP blocks borrowed from DSC.Freescale are putting a lot into Kinetis, they have skipped M3 in favor of M4, and as a result have some very low priced M4 MCUs. They also provide free software with Kinetis Design Studio for most of their Kinetis chips. They also have cheap dev boards with the "Freedom" badge, and high-end "Tower" kit.Freescale's documentation and support let them down, and their chips lack easy to use bootloaders. Not really a problem for professionals, but for hobbyists and tinkerers a JTAG adapter is essential.STM and NXP both have plenty of easy to use and capable Cortex chips, and the built in bootloaders make these much easier to get going.

author: sean0118
author_rank: Frequent Contributor
timestamp: February 25, 2015, 07:06:25 am
content: I ended up going with the PIC battery charger (An ARM project is on the list as well)Actually just got some PIC16F1503s and a PICkit3 in the mail today. I was a bit surprised to see they included a disk with MPLAB v8.70. Do you guys think I should use that, MPLAB X or a different IDE? Also, any compiler recommendations?Got a full packet of LEDs, resistors and jumper wire here ready to run a hello word.

author: chickenHeadKnob
author_rank: Super Contributor
timestamp: February 25, 2015, 11:25:42 pm
content: This recommendation is probably too late,ST micro has a relatively new cortex M4 specific to digital controlled SMPS inverters and such: STM32F334http://www.st.com/web/en/catalog/mmc/SC1169/SS1576/LN1820?icmp=ln1820_pron_pr1_jun2014&sc=stm32f334-prST has both a NUCLEO series and Discovery series eval board and application note for this chip. Very inexpensive to try out and get started.

author: zapta
author_rank: Super Contributor
timestamp: February 25, 2015, 11:36:00 pm
content: Quote from: dannyf on January 18, 2015, 01:25:40 amWhat business, general ARM MCUs or something more specific?