Abdullah Sadiq
Published © GPL3+

LinkIt ONE Bluetooth PWM LED Control

Control a LED strip using PWM and Linkit ONE.

EasyFull instructions provided1 hour619
LinkIt ONE Bluetooth PWM LED Control

Things used in this project

Hardware components

LinkIt ONE
MediaTek Labs LinkIt ONE
Darlington High Power Transistor
Darlington High Power Transistor
Resistor 2.21k ohm
Resistor 2.21k ohm


Read more


LinkIT LED Dimmer

Install this on your Android phone


LinkIT ONE PWM LED Control

Just upload it to your LinkIT ONE
#include <LBT.h>
#include <LBTServer.h>

int ledPin = 9; //Pin the LED strip is connected to the LinkIt ONE
int value;

void setup() {
  // put your setup code here, to run once:
Serial.begin(9600);   //Initialize serial port
Serial.println("Started LED PWM control program");
pinMode(ledPin,OUTPUT);   //Set ledPin as output

void loop() {
  // put your main code here, to run repeatedly:
while (Serial.available() == 0){}   //Wait until user inputs something
value = Serial.parseInt();

if (value >=0 && value <=1023){
  analogWrite(ledPin,value);  //Writes the value saved to the ledPin
else {
  Serial.println("Error! Type a value between 0-1023");
  LBTServer.write("Error! Type a value between 0-1023");



Abdullah Sadiq

Abdullah Sadiq

9 projects • 50 followers


Add projectSign up / Login