You are viewing an older revision! See the latest version
StarBoard Orange

Overview¶

'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.

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);
} else {
error("Open failed.\n" );
return 1;
}
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);
} else {
error("Open failed.\n" );
return 1;
}
return 0;
}
Ethernet¶
- http://mbed.org/users/donatien/programs/EthernetNetIf/latest
- http://mbed.org/users/donatien/programs/HTTPServer/latest
#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()) {
error("Ethernet setup failed.");
return 1;
}
FSHandler::mount("/local", "/");
server.addHandler<FSHandler>("/");
server.bind(80);
while (1) {
Net::poll();
}
return 0;
}
Your web contents will appear by just a type the path to it at a web browser. (e.g.) http://192.168.11.6/MBED.HTM
Links¶
Basic information¶
- StarBoard Orange: mbed評価用ベースボード(in Japanese)
- StarBoard Orange : "Soldering step by step"
- StarBoard Orange : "Expandability of StarBoard"
Application examples¶
- StarBoard Orange : "Application example No.1 : Enjoy mbed world with just one sensor!"
- StarBoard Orange : "Application example No.2 : Add many buttons to your application with IR remote!"
- StarBoard Orange : "Application example No.3 : Drive a CHORO Q with wii nunchuck!"
People¶
- logic_star
- funax
- nxpfan
- jksoft
- kanpapa
- shintamainjp
- kosmac