Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
jasir
Published © Apache-2.0

Blink LED Using ARTIK

Small example for blink an LED using ARTIK.

IntermediateFull instructions provided1 hour982
Blink LED Using ARTIK

Things used in this project

Hardware components

ARTIK 10
Samsung ARTIK 10
×1
LED (generic)
LED (generic)
×1
Resistor 221 ohm
Resistor 221 ohm
×1
Breadboard (generic)
Breadboard (generic)
×1
Wire Cable - By the Foot
OpenBuilds Wire Cable - By the Foot
×1

Story

Read more

Schematics

circuit

Connect an LED and 220 ohm resistor in series as shown below, between pin 13 (on connector J27) and GND (right next to pin 13). The "active high" output circuitry drives the line in the high (Vcc) direction when programmed to HIGH / 1.

circuit 2

Note about older ARTIK developer boards: Outputs on the older board (with separate debug board) are "active low": a logical HIGH / 1 drives the output low. Because the output can only either drive low or stop driving low, you will need to connect the circuit to 3.3V (on J25) instead of ground, as shown.

Code

CODE Arduino IDE

Arduino
arduino IDE
/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.
  This example code is in the public domain.
 */

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin 13 as an output.
  pinMode(13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}

Credits

jasir

jasir

4 projects • 22 followers
iot develeper

Comments