Cool Components Workshop Board

mbed LPC1768 Workshop Development Board (version 2 rev b) from Cool Components http://www.coolcomponents.co.uk/catalog/product_info.php?products_id=608

The workshop breakout board is a simple, compact board for experimenting with the Mbed. It offers a micro SD card slot, USB A,mini USB B, and ethernet port (with magnetics). In addition, each mbed pin can be connected to via a solderless header.

/media/uploads/O_Shovah/mbed_lpc1768_workshop_development_board_-version_2_rev_b-.jpg /media/uploads/coolcomponents/mbedworkshop.png

Orientation : A simple thing, but lots of people get it wrong. The mbed should be inserted into the board socket so that its USB mini B connector is directly over the mini SD slot.

SD Card Test Code : (This code or probably the library it uses does not work with 100% of SD cards)

#include "mbed.h"
#include "SDFileSystem.h"
 
SDFileSystem sd(p5, p6, p7, p8, "sd"); // mosi, miso, sclk, cs, name
 
DigitalOut myled1(LED1);
DigitalOut myled3(LED3);
 
int main() {
    printf("Hello World!\n");  
    myled3=1;
 
    FILE *fp = fopen("/sd/sdtest.txt", "w");
    if(fp == NULL) {
        error("Could not open file for write\n");
        myled1=1;
        myled3=0;
    }
    fprintf(fp, "If you're reading this text in a file, your SD card has been written to...");
    fclose(fp);
}

Ethernet Jack Test Code :

#include "mbed.h"
#include "HTTPClient.h"

DigitalOut led(LED1);

HTTPClient http("monkeychuff",                 // Brings up the device with static IP address and domain name.
                IPv4(192,168,0,123),   // IPv4 address
                IPv4(255,255,255,0),    // netmask
                IPv4(192,168,0,1),     // default gateway
                IPv4(192,168,0,1));    // dns server
                
LocalFileSystem local("local");
/**
 * Request a google search for HelloWorld and display the first 2000 characters 
 * of the page source on the serial terminal.
 */
int main(void) {
  char url[256];

  // Open a file to write.
  FILE *fd = fopen("/local/hello.htm", "w");

  // Insert the search term into the URL
  sprintf(url, "http://www.coolcomponents.co.uk/catalog/advanced_search_result.php?keywords=", "mbed");

  // Request a page and store it into a file.
  http.get(url, fd);

  // Close the file.
  fclose(fd);

  // The file is written on the local disk.
  // "/hello.htm" Have a look.

  // Work is done!
  while(1) {
    led = !led;
    wait(0.2);
  }
}

USB A Mass Storage Test :

#include "mbed.h"
#include "MSCFileSystem.h"
//#include <stat.h>

#define FSNAME "msc"
MSCFileSystem msc(FSNAME);

int main()
{
    DIR *d;
    struct dirent *p;
    //struct stat st;
    //char path[PATH_MAX];
    
    printf("\n\n================================\n");
    printf("USB Mass storage demo program for mbed LPC1768\n");
    printf("================================\n\n");
    
    d = opendir("/" FSNAME);
    
    printf("\nList of files on the flash drive:\n");
    if ( d != NULL )
    {
        while ( (p = readdir(d)) != NULL )
        {
            printf(" - %s\n", p->d_name);
        }
    }
    else
    {
        error("Could not open directory!");
    }
    printf("\nTesting file write:\n");
    FILE *fp = fopen( "/" FSNAME "/msctest.txt", "w");
    if ( fp == NULL )
    {
        error("Could not open file for write\n");
    }
    fprintf(fp, "Hello mass storage!");
    fclose(fp); 
    printf("\n - OK\n");

    printf("\nTesting file read:\n");
    fp = fopen( "/" FSNAME "/msctest.txt", "r");
    if ( fp == NULL )
    {
        error("Could not open file for read\n");
    }
    char buf[256];
    if ( NULL == fgets(buf, sizeof(buf), fp) )
    {
        error("Error reading from file\n");
    }
    fclose(fp); 
    printf("\n - OK, read string: '%s'\n\n", buf);
}




28 comments:

29 Sep 2010

Any chance we can get a readable schematic on this page?

06 Oct 2010

ohararp wrote:

Any chance we can get a readable schematic on this page?

A bigger version of the above schematic can be found at http://www.coolcomponents.co.uk/resources/mbedworkshop/mbedworkshop.png

CoolComponents lists the Workshop board on their website, but it is out of stock :-( Finding a baseboard is frustrating, and I'm starting to think mbed is definitely not ready for prime time.

12 Nov 2010

Hi

We've just launched version 2 of this board. /media/uploads/coolcomponents/mbedv2.jpg

You can see the specs here : http://www.coolcomponents.co.uk/catalog/product_info.php?products_id=608

24 Nov 2010

Matt - this board is great, I bought one on Monday.

My only question is regarding the 2 x 15k resistors needed to use the USB A port as a Host. Is there a specific place on this workshop board to solder them into? Otherwise, how would I go about adding them into the circuit?

24 Nov 2010

mbed board already has some resistors, are you sure you need additional ones?

24 Nov 2010

Had an email back from CoolComponents - just need to jumper the 2 sets of points just behind the USB B connector. This pulls the D+ D- down.

I plan to drop in a jumper block so I can switch between Host and Device modes.

Rich

14 Dec 2010

looks like their web-site is down :(

14 Dec 2010

Just had a look at their Site using this URL "http://www.coolcomponents.co.uk/catalog/product_info.php?products_id=608". Worked perfect. Try again.

06 Jan 2011

hello,

Could you take a look at the picture and tell me what I am doing wrong

I having connected a jumper from the mbed's 5v usb out to the workshop's 5v

I have then connect the GND from mbed to the GND on the workshop board

on the workshopboard the 5 holes that are painted gold

If I connect the usb b plug on mbed to pc and then have the wires line up on the workshopboard like this

Postive.hole.hole.hole.hole first pin

GND.hole.hole.hole.hole first pin

nothing happens the will not even power on

If I space the wire out like this

Postive.hole.hole.hole.hole first gold pin

hole.hole.hole hole.gnd last gold pin

the mbed comes on but the usb stick does not

I am trying to use mbed as host but don't know what I am doing wrong.

in the pic it might look like it's connected the 3.3v reg out, it is because I was about to try 3.3v reg out, but decided to take pic and foget to switch back

/media/uploads/mbed2f/pict0046.jpg

06 Jan 2011

/media/uploads/mbed2f/pict0050.jpg /media/uploads/mbed2f/pict0051.jpg Thanks for your email.

You don't need to connect any wires to from the mbed to the board. All of the power lines are already connected on the workshop breakout board.

Your dongle may be powered up, but its light may not come on until you start accessing it. Have you written any code?

Kind Regards Cool Components

OK THANKS I DID NOOT PUSH HER IN THE HOLES FAR ENOUGH:)

06 Jan 2011

Hahahah you gotta laugh

12 Jan 2011

Hello

I have one of these Workshop Boards (version 2). I have simply plugged the mbed module into the Workbench, and connected it to my Windows XP SP3 computer via a 'cross over' cable. To test out the LAN connection I tried to compile the "Ethernet Jack Test Code" above, and it failed with the message:

"Cannot open source input file "core/net.h": No such file or directory (E5) <a href="#" onClick="window.open('/cookbook/Compiler-Error-5');">(more info)</a>" in file "lib/HTTPClient/LPC1768/services/http/client/HTTPClient.h" at "Location Line:33, Col:21"

There is a line "#include core/net.h" in the code for "LPC1768/services/http/client/HTTPClient.h" line 33, but a search for 'core/net.h' on the mbed website fails to find a reference.

Please and Thanks for any help

25 Jan 2011

I have a strange issue with the board. I can't get the I2C bus on pins 9 and 10 to work, and it appears to be because pin 9 is permanently tied to 3.3V. The schematic shows it attached to S2 on the microSD slot, but I can't find documentation on what that connection is for, and the SDFileSystem library doesn't use it.

Could anyone shed some light on this?

08 Apr 2011

The version 2 Cool Components workshop board is a nifty breakout for USB and ethernet, and allows access to the rest of the mbed pins. THe small form factor takes the 'Rapid Prototyping' to the level of USB host, device or Ethernet (magnetics built in).

I had some hassle getting it going though, so here are my findings, for anyone else trying this:

1. There are 2 PCB sites for 2-way 0.1" jumpers. If you want to try USB host socket, you need to fit these, and close the jumper for USB host mode (eg flash drive on the type A socket). The jumpers engage the 15K pulldowns needed for correct signalling. OPEN the jumpers if you are using the baseboard mini-B connector (when your mbed is a USB device prototype).

2. Sad to say, the PCB is somewhat cheapo, and two vias in mine were not plated-through properly. Buzz the signals out, if you have any interface or power problems! I know we all like cheap PCBs, but I would rather pay a couple of pounds more & get PCBtrain PCBs - now there's quality, only a little more cost.

I'm not complaining heavily! This baseboard is still a great service to the prototyping world.

16 Jun 2011

@Rod, I just bought this baseboard a few weeks back and my mBed finally arrived today from out of stock. I verified everything working except for the USB host part. So do I need to solder in two jumpers and short them to engage the 15K pulldown resistors? I see there are two sets of two holes, which translate to two jumpers (two holes per jumper)? I'm a noob at embedded, and I haven't done any soldering since junior high. :D Just got myself a $6 soldering iron so hope it works! Thanks a bunch!

16 Jun 2011

Alex, Yes, Short to get HOST function working, open for DEVICE.

I soldered in a pair of these 2-way 0.1" jumpers:

http://www.rapidonline.com/Cables-Connectors/Connectors-Multipole/PCB-Interconnect/2.54mm-PCB-Interconnection-system/63793/kw/22-0520

then added the links:

http://www.rapidonline.com/Cables-Connectors/Connectors-Multipole/PCB-Interconnect/Jumper-links-2.54mm-ndash-coloured/63795/kw/22-3555

Now it works great, and I can choose HOST or DEVICE without soldering.

Hopefully you can find equivalent parts at Mouser or Newark!

16 Jun 2011

Rod Coleman wrote:

The version 2 Cool Components workshop board is a nifty breakout for USB and ethernet, and allows access to the rest of the mbed pins. THe small form factor takes the 'Rapid Prototyping' to the level of USB host, device or Ethernet (magnetics built in).

I had some hassle getting it going though, so here are my findings, for anyone else trying this:

1. There are 2 PCB sites for 2-way 0.1" jumpers. If you want to try USB host socket, you need to fit these, and close the jumper for USB host mode (eg flash drive on the type A socket). The jumpers engage the 15K pulldowns needed for correct signalling. OPEN the jumpers if you are using the baseboard mini-B connector (when your mbed is a USB device prototype).

2. Sad to say, the PCB is somewhat cheapo, and two vias in mine were not plated-through properly. Buzz the signals out, if you have any interface or power problems! I know we all like cheap PCBs, but I would rather pay a couple of pounds more & get PCBtrain PCBs - now there's quality, only a little more cost.

I'm not complaining heavily! This baseboard is still a great service to the prototyping world.

It's better than my god dam breadboard... it's brass I asked them, I thought it had good conductivity, have not try perf board clad yet:)

17 Jun 2011

Rod, thanks for the links and info! I'll attempt soldering this weekend. :D

02 Aug 2011

Revision B of this board is now available - Nothing had changed apart from now the SD card is wired properly so that the card detect pin goes high when a card is inserted.

07 Aug 2011

Mat Fordy wrote:

Revision B of this board is now available - Nothing had changed apart from now the SD card is wired properly so that the card detect pin goes high when a card is inserted.

Mat, I feel that you should have informed your customers about the routing errors in "rev 2A" causing P9 to be tied to 3.3V & card detect not working, instead of just keep selling them and letting people like me & John Kemp find out the hard way.

It is nice to see that the schematics are now complete but you should still advice customers that bought the rev 2A about it's brokeness.