Skip to content

Blink

In Arduino IDE you can begin with a simple sketch like LED blink. Go to File > Examples > 01.Basics > Blink. This sketch needs to be modified, because the SODAQ board doesn’t have a LED on pin 13, but has a LED on pin 6 instead. Pin 6 is normally used for switching power to the Switched row of Grove connectors, but for now we just use it because it has an LED too. Now if you look at the first line that has colored text (Should be line 10 if you load the example) you see “int led = 13;”. Change the number ‘13’ to ‘6’ and upload the sketch to the SODAQ board using the right settings mentioned above. (or just copy the code below:)

int led = 6;
void setup() {
pinMode(led, OUTPUT);

}
void  loop() {
digitalWrite (led, HIGH);
delay (1000);
digitalWrite (led, LOW);
delay (1000);
}

Note

When programming the SODAQ board, always make sure that there is no bee module in the bee slot.
If a bee module is plugged in while programming the SODAQ board it may cause the programming to fail.
This is because USB connector and the bee module are using the same connections for communication.

Back to top