Getting Started
1.
Login into the mbed environment from
here
2. Import
the
mbed_blinky
program
3.
Verify that the code imported in main.cpp in the mbed_blinky folder in the mbed online Compiler environment is as indicated in the
figure above under Step 3. Ensure that the platform selected for compiling the code for is the Seeeduino-Arch. Now go ahead and
compile the code. When asked to save the resultant binary file (.bin), save it to a designated folder on your PC.
4.
Now connect your Arch board to your PC and long press the reset button. A removable USB drive named CRP DISABLD should
automatically appear on your PC. Go to the CRP DISABLD drive, delete the existing firmware file that you see in the folder and
copy the downloaded binary file to CRP DISABLD. Quick press the reset button to run the new binary.
5.
Verify that your code is running successfully by looking at the Arch GPRS V2 board. If the right-most LED from the Pinout shown
above is blinking and the other 3 LEDs next to it are all ON, this implies that your code is working.
You can change the code to the following and see what happens:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include
"mbed.h"
DigitalOut
myled1
(LED2);
//left most LED if board is held as shown in
Pinout diagram above
DigitalOut
myled2
(LED3);
//2nd from left
DigitalOut
myled3
(LED4);
//3rd from left
DigitalOut
myled4
(LED1);
//4th from left (right most)
int
main
() {
while
(
1
) {
myled1 =
1
;
//left most LED turns ON, rest off
myled2 =
0
;
myled3 =
0
;
myled4 =
0
;
wait(
1
);
//1 sec wait time
myled1 =
0
;
myled2 =
1
;
//2nd from left LED turns ON, rest off
myled3 =
0
;
myled4 =
0
;
wait(
1
);
myled1 =
0
;
myled2 =
0
;
myled3 =
1
;
//3rd from left LED turns ON, rest off
myled4 =
0
;