A brief set of instructions to use the board.
Download the MPIDE that fits your OS from one of the following:
Windows:
http://chipkit.s3.amazonaws.com/builds/mpide-0023-windows-20130609-test.zipMACOS X: http://chipkit.s3.amazonaws.com/builds/mpide-0023-macosx-20130609-test.dmg
Linux32: http://chipkit.s3.amazonaws.com/builds/mpide-0023-linux-20130609-test.tgzUnzip it to a folder, no need to install it.
Plug the BB-32 Board into the USB.
The LED next to the USB connector indicates 5V present.
The LED next to the ICSP Connector indicates 3V3 present.
If your OS requests a device driver it can be found in the folders you unzipped earlier;
C:\....\mpide-0023-windows-20130609-test\drivers\chipKIT Drivers
It should appear as an stk500v2 device.
If you do not have a preloaded Bootloader use the one attached to this post.
You will need a PICKit 3 or ICD3 to load it.
You can power the board via the PICKit through the ICSP connector. disconnect the USB header first if you do.
Reconnect the USB and the Board should enumerate as a USB device, see above for drivers.
From the folder you unzipped to run mpide.exe
select the Board:
Tools->Board->ChipKIT-> ChipKIT DP32
then
Tools->Serial Port and select the Port that was created by the stk500 driver
When in Bootloader Mode LED2 (RED) will flash at ~ 4Hz
To test the Hardware run this Sketch (also attached):
//_________________________________________________________________
//
// BB32_Test.pde
//
// C.A.Roper - 2013/07/17
//
// Hardware confidance test Software for the CHIPKit-BB-32
// CHIPKit compatable Breadboard circuit based on PIC32MX250F128B.
//
// Tests Digital Output to LED's
// Teats Digital Input from Prog Button
// Tests Analog Input from LDR
// Tests Serial Output Via USB
// Tests Serial Input from USB
//_________________________________________________________________
//
int Last;
int State;
int Character;
void setup()
{
Serial.begin(19200);
pinMode(17, INPUT);
pinMode(13, OUTPUT);
pinMode(14, OUTPUT);
}
void loop()
{
if(Serial.available())
{
Character = Serial.read();
if(Character == '1') State = 1;
else if(Character == '0') State = 0;
else if(Character == 't' || Character == 'T') State = !State;
}
if(digitalRead(17))
{
State = !State;
}
if(State != Last)
{
digitalWrite(13, !State);
digitalWrite(14, State);
Serial.println(analogRead(A0));
}
Last = State;
delay(250);
}
Whilst uploading LED1 (Green) will flicker.
Press the Prog Button to toggle the LED's and open the Serial console to see the ADC Reading and to issue commands.
To return to Bootloader mode and upload other Sketches:
Close the Serial Monitor if open.
Press and hold the Prog Button.
Press and release the Reset Button.
Release the Prog Button.
The Green LED will go out and the RED LED will Flash.
That should get the more advanced users up to speed. Detailed instructions to follow for beginners.
Cheers
Chris