ARM cortex-M3 prototyping on a budget

NGX Technologies sent us this Blueboard LPC1768-H to play with. It’s basically a breakout board for an NXP LPC1768 ARM cortex-M3 microcontroller (datasheet). The board adds a few extra goodies, such as a choice of mini-USB connector or barrel-jack to provide regulated power to the chip. There’s also a clock crystal for the internal RTC and an Atmel 256kb EEPROM chip. This chip has 70 I/O ports, accessed through the pin headers on top and bottom of the board. The 20-pin header to the left is for a JTAG programmer (yes, you’ll need a separate programmer). Coming in at only $32.78 this is a very accessible route for projects that require more power than some of the traditional hobby controllers. The shipping seems to have come down since NGX’s last offering, now it would be under $10 to ship to the States.

The LPC1768 is the same controller from the mbed that we reviewed. What’s missing is some of the interface hardware and the boot-loader, but the tradeoff comes with a $66 savings. This is to mbed what an AVR board is to the Arduino, a way to get even closer to the hardware.

There are a few things we think are missing. Most notably, there isn’t a datasheet or user guide for the board itself.  The only information available is a schematic (PDF), but that should be enough for those already well versed in working with microcontrollers. There is also a 12MHz clock crystal on the board but it doesn’t seem to be jumpered in case you wanted to use a different frequency. We’re not sure if this is much of an issue, the internal RC oscillators offer a lot of flexibility including operation up to 100MHz.

We feel this is a solid platform that will help to get more people into ARM development because of its low price. Let us know your thoughts in the comments.

Comments

  1. alex says:

    As a purchaser of an mbed, I’ve been playing with it for two months now and there are some definate pros, but some definate cons
    pros
    -easy c style development environment is easy to pick up and there are lots of code examples
    -onboard etherner
    -ease of programming (usb disk just copy .bin file)
    -debugging is easy with onboard LEDs
    -small footprint
    cons
    -need internet access to compile
    -limited access to lower level hardware
    -price (not that bad, it was $75 CAD shipped for my girlfriend when she got it at christmas)
    -blue LEDs

    all in all it’s good board to start with and an excellent widget, it’s also great for interfacing widgets to a computer, but as stated above, there are some limitations

  2. The R says:

    Looks very interesting, I would love to see similar products for ST’s cortex-M3 microcontrollers, all progress of leaflab’s maple leaf seems to have ground to a hault.

  3. rory says:

    Can i buy one of these and install android and buy a touch lcd for it

    • awr-gcc says:

      Anything is possible if you’re willing to put in the time to make it work. The key thing is figuring out whether or not it is worth your time. Figure this: how well would android run on a computer circa 1995 (100MHz, 32b era)?

      Look into a cortex-A series if you’re looking to do “Applications” processing. Pick this if you want to do touch screen or linux stuff;

      “R” series is more geared toward “Real-time” industrial systems control with an RTOS;

      The “M” series is meant for “Microcontroller” applications, like sensor reading, maybe some serial communications, and PWM/servo/motor control;

  4. mrgoogfan says:

    looks suspiciously like an arduino.

  5. Eric says:

    @alex: Wait, shouldn’t blue LEDs be a ‘pro’ not a ‘con’?

  6. David says:

    Yea. It seems to work ok. I just got one in and loaded the blinking led program from mbed using flashmagic and the old led, she is a blinking.

  7. nes says:

    As an alternative if you don’t mind MIPS to ARM (makes little difference when using GCC anyhow), PIC32MX is still ridiculously cheap for what it is at the moment, also tops out at 100MIPS and dev boards can be had delivered for about 60% the cost of this one. But you trade Ethernet for a USB slave/host.

  8. The Ideanator says:

    @Eric
    I can’t tell you how much blue LEDs annoy me, they are insanely bright when you’re doing things at night. The single LED in my usb headphones is bright enough to double as a flashlight, hell, it shines through electrical tape in the light.

  9. sage says:

    @Rory

    troll detected

  10. Ben says:

    For those who don’t want to deal with an external programmer and want similar power (minus the EEPROM and the 32kHz crystal) the PIC32-based UBW32 comes in at only a few bucks more. Not an ARM but still a pretty fun device if the 8-bit units are a bit too wuss for whatever you may have in mind.

  11. outroot says:

    @alex
    @The Ideanator

    You do know you can PWM them to a low brightness right?

  12. asdf says:

    The 12 MHz crystal is for the USB clock, the internal RC oscillator is not precise enough.

  13. The Ideanator says:

    @outroot
    Yea, but who wants to install a pwm circuit in something that doesn’t have one?

  14. @Idea

    Uh, the cortex M3? It’s right there.

  15. tayken says:

    A couple of questions:

    1) Can’t we use BusPirate as a JTAG programmer?
    2) I think Sparkfun published a bootloader for ARM LPC microcontroller. It can be used for ease of programming right?

  16. Scotty says:

    -need internet access to compile
    -limited access to lower level hardware

    Those two lines caused me to lose all interest. 80% was lost due to need for internet access, the remaining 20% of my interest is lost due to lacking lower level access.

  17. Bruno says:

    Hi all,

    Didi you check out the STM32 PRimer2? For $59 there is an onboard Cortex-M3, LCD Screen, MEMS, free IDE (GCC based), and a nice Web site on http://www.stm32circle.com.

    Beats off this LPC board!

    Bruno

  18. normaldotcom says:

    @Scotty

    The cortex-m3 doesn’t require internet access to compile, that’s the mbed. The cortex-m3 just requires a jtag programmer… but it would be nice if the board had a usb jtag programmer built-in.

  19. nubie says:

    @The Ideanator

    I agree, I put some blue Leds on my PC (for power/hdd) and it was like high-beams, I eventually just disconnected them.

    I think your problem isn’t with the color so much as the intensity, I wish dim and diffused blue LEDs were used in more electronics.

    $32 is a great deal, and ARM needs cheap breakout boards, Thumbs up for this post :)

  20. Saydrah says:

    I’m also wondering: will the bus pirate work as a JTAG programmer for this?

  21. bnewbold says:

    @TheR Maple’s not dead yet! LeafLabs just hired a new employee (me!) to get the IDE, library, and docs rolled out in time for the next shipment of boards which should be coming back in a couple weeks. You can see what we’re up to on github (http://github.com/leaflabs); we’ve been super bummed about the dearth of Maple boards after long customs delays and design iterations but we want to be out hacking and getting distributed as soon as possible!

  22. bnewbold says:

    … also, that being said, we’re super impressed with NGX’s price point and the awesome USB mass storage setup the mbed has. We’d love to see the arduino IDE targeting all of these platforms as an accessible starting point, plus gcc-based libraries for power users, plus free-toolchain-compatible cloud-based compilation and code sharing as a social hook.

  23. John R says:

    What about the LPCXpresso? I’ll take one of them thanks.

  24. kidcrash says:

    $30+$10s/h is a good price, til you look at some of the tqfp boards on ebay to put that $10 chip on.
    Few extra $ snags a cool dip tqfp adaptor board on ebay.
    lpc21isp now supports the chip, so only a serial level-shifter is needed to program.
    check out what this guy did for a lpc17xx – http://tenuki.fr/nio101/?page_id=188

  25. Wow, great price for a pretty hefty amount of power. I need something fancy for robot vision / image processing… maybe this is it. Thanks for the tip.

  26. daphreak says:

    @Michael

    The M3’s are targeted at lower level applications than image processing. You probably want to go with an A8 (specifically TI’s OMAP chip on the beagleboard and gumstix can come with DSP).

    That being said, this is a great price for a dev board (although lacking a programmer is a con). If you can squeeze your application code onto it then you will save some serious money. I will probably be getting one to see what it can do.

  27. darkore says:

    I can also recommend this:

    http://www.futurlec.com/ET-STM32_Stamp.shtml

    Very nice board for that price.

  28. Stonehamian says:

    “looks suspiciously like an arduino.”

    Well, most small MCU development boards that I’ve seen in the last 20 years “look” suspiciously similar to an Arduino, that is ICs in the middle, large headers on the sides, some power supply components in one corner, etc.

  29. error404 says:

    Interesting, I just bought one of these yesterday:

    http://www.futurlec.com/STM32_Development_Board.shtml

    Just for my own projects I think I am going to design a simple board based on STM32F105 for the USB bootloader alone. Makes it so much easier for anyone you want to distribute your designs out to, no special hardware, and in most cases, no special pins either, just connect as you would in use and flip a switch to enter DFU mode.

    But get my feet wet with the development board first, haven’t used any of the family before.

  30. error404 says:

    Just thought I’d add that the STM32’s all have a serial bootloader, no JTAG required, though it is a nice to have. Take a look at OOCDLink for an open JTAG project (haven’t built one yet, but it’s in my queue…).

  31. @daphreak – my vision processing ambitions are pretty small at the moment :) Simply finding a bright object (a candle flame, in fact). I figure since an ATmega is capable of object detection/tracking (AVRcam), this ARM would offer some additional power. Altho I am currently considering Propeller as one platform… anyhoo…

  32. Bruce Eisenhard says:

    Well theres a domestic Arduino footprint version with an LPC1751.

    http://www.coridiumcorp.com/PROplus.php

    Free tools in C and BASIC

  33. Reecardo says:

    I’ve got one of these, but no JTAG programmer. Anyone had luck programming it with the bus-pirate?

  34. Flash Magic should be able to program it.

    Also while its not supported by them the Coridium MakeItC tools can program and download it via the ISP (serial port)

    http://www.coridiumcorp.com/files/setupC.exe

  35. salammoniac says:

    The analog design of this board is not good. In fact, it’s so bad that you should expect to be able to use the LPC1768’s built-in ADC. I measured 200 mV of noise on the analog ground on my board, which just kills ADC performance.

  36. Alice Ifversen says:

    Good information here. I love how anything can be googled, and there’s the information!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 94,593 other followers