Things used in this project

Hardware components:
Udooneo trasparent
UDOO NEO
×1
12577 01
SparkFun Bluetooth Modem - BlueSMiRF Silver
×1

Code

BluetoothArduino
UdooNeo or arduino compatible board. We send strings wtih a mobile to a bluetooth attached to pins 0 and 1
int ledPin[]={
  5,6,7,8,9,10,11,12 };

int pines = 8;
  
void setup(){
  Serial.begin(9600);  
  for (int thisPin = 0; thisPin < pines; thisPin++)  {
    pinMode(ledPin[thisPin], OUTPUT); 
    digitalWrite(ledPin[thisPin],0);  
  }
}
void loop(){
  char dato = Serial.read();
  if(dato == 'a'){
    digitalWrite(ledPin[0], HIGH);
    digitalWrite(ledPin[1], HIGH);
  }
  if(dato == 'b'){
    digitalWrite(ledPin[0], LOW);
    digitalWrite(ledPin[1], LOW);
  }
  if(dato == 'c')analogWrite(ledPin[2],255);
  if(dato == 'd')analogWrite(ledPin[3],255);
  if(dato == 'e')analogWrite(ledPin[4],255);
  if(dato == 'f'){
    for (int thisPin = 2; thisPin < 5; thisPin++){
    analogWrite(ledPin[thisPin],0);
    }
  }
  if(dato == 'g')analogWrite(ledPin[5],255);
  if(dato == 'h')analogWrite(ledPin[6],255);
  if(dato == 'i')analogWrite(ledPin[7],255);
  if(dato == 'j'){
    for (int thisPin = 5; thisPin < 8; thisPin++){
    analogWrite(ledPin[thisPin],0);
    }
  }
  if(dato == 'k'){
    analogWrite(ledPin[2],0);
    analogWrite(ledPin[5],0);
  }
  if(dato == 'l'){
    analogWrite(ledPin[3],0);
    analogWrite(ledPin[6],0);
  }
  if(dato == 'm'){
    analogWrite(ledPin[4],0);
    analogWrite(ledPin[7],0);
  }
   if(dato == 'n'){
    for (int thisPin = 2; thisPin < 7; thisPin++){
    analogWrite(ledPin[thisPin],255);
    delay(200);
    analogWrite(ledPin[thisPin],0);
    delay(200);
    }
    
  }
  delay(250);
  
 
}

Credits

Replications

Did you replicate this project? Share it!

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Offline Speech Processing
Intermediate
  • 2,241
  • 17

Protip

Create your very own hotwords like "Alexa," "Ok Google" and "Hey Cortana," and trigger events just by speaking... without the Internet.

A powerful Maritime Instrument & Display Controller
Intermediate
  • 9,666
  • 55

Work in progress

A powerful Maritime Instrument & Display Controller, based on UDOO Neo, acting as a navigator, chart plotter, wireless NMEA multiplexer & ?

UDOO Ubuntu LTS Guide
Intermediate
  • 1,147
  • 23

Full instructions

Building a Ubuntu LTS configuration for the UDOO Quad

myva-Home (Voice controlled home automation)
Intermediate
  • 3,733
  • 40

Full instructions

My Voice Activated/Controlled Home, Using the Linkit Smart and an Android with easy to use examples and libraries

UDOO Neo Automated Hematoogy Laboratory Tubes Unscramble
Intermediate
  • 1,343
  • 11

Full instructions

A device that reads a bar code placed on the tube and, based on it, moving two step motors to place the tube in the correct position.

Home Energy Monitor
Intermediate
  • 2,303
  • 12

A low cost, high performance energy meter for my home.

Add projectSign up / Login