You are viewing an older revision! See the latest version

StarBoard Orange

/media/uploads/shintamainjp/_scaled_starboardorange.png

Overview

/media/uploads/shintamainjp/_scaled_dsc03138.jpg

'StarBoard Orange' is a base board designed by @logic_star for mbed NXP LPC1768.

The board includes

  • microSD card connector
  • USB (Host side)
  • LAN(RJ-45)
  • TextLCD

You can use these features for various applications.

http://mbed.org/media/uploads/shintamainjp/_scaled_star_board.png

Resources

Schematics

BOM

Short code examples

Here is short code examples for components on StarBoard Orange.

Text LCD

http://mbed.org/users/simon/programs/TextLCD/latest

#include "mbed.h"
#include "TextLCD.h"

TextLCD lcd(p24, p26, p27, p28, p29, p30);

int main(void) {
    lcd.cls();
    lcd.locate(0, 0);
    lcd.printf("StarBoard Orange");
    lcd.locate(0, 1);
    lcd.printf("mbed NXP LPC1768");
    return 0;
}

SD card

#include "mbed.h"
#include "SDFileSystem.h"

SDFileSystem sd(p5, p6, p7, p8, "sd");

int main(void) {
    FILE *fp = fopen("/sd/test.txt", "w");
    if (NULL != fp) {
        fprintf(fp, "StarBoard Orange. mbed NXP LPC1768.");
        fclose(fp);
    }
    return 0;
}

USB(A)

#include "mbed.h"
#include "MSCFileSystem.h"

MSCFileSystem usb("usb");

int main(void) {
    FILE *fp = fopen("/usb/test.txt", "w");
    if (NULL != fp) {
        fprintf(fp, "StarBoard Orange. mbed NXP LPC1768.");
        fclose(fp);
    }
    return 0;
}

Ethernet

#include "mbed.h"
#include "EthernetNetIf.h"
#include "HTTPServer.h"

#if 1
/*
 * Use "DHCP"
 */
EthernetNetIf ethif;
#else
/*
 * Use "static IP address" (Parameters:IP, Subnet mask, Gateway, DNS)
 */
EthernetNetIf ethif(IpAddr(xxx,xxx,xxx,xxx), IpAddr(xxx,xxx,xxx,xxx), IpAddr(xxx,xxx,xxx,xxx), IpAddr(xxx,xxx,xxx,xxx));
#endif
HTTPServer server;
LocalFileSystem local("local");

int main(void) {
    if (ethif.setup()) {
        printf("Ethernet setup failed.");
        return 1;
    }
    FSHandler::mount("/local", "/");
    server.addHandler<FSHandler>("/");
    server.bind(80);
    while (1) {
        Net::poll();
    }
    return 0;
}

Links

Basic information

Application examples

People


All wikipages