Michelangelo Guarise
Published

Unas

Nerd’s favourite Network Attached Storage

Full instructions provided6,627
Unas

Things used in this project

Hardware components

UDOO DUAL
UDOO DUAL
Quad suggested
×1
Hard drive
×1
Case
×1
12V fan
×1
SATA cable
×1
SATA power cable
×1

Story

Read more

Code

file_6887.txt

Plain text
Type in a caption
sudo stty -F /dev/ttymxc3 cs8 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts

file_6888.txt

BatchFile
cd /
mkdir bazinga
nano bazinga.sh

file_6889.txt

BatchFile
Type in a caption
sudo echo 1 > /dev/ttymxc3 &
sudo aplay /bazinga/bazinga.wav

file_6890.txt

BatchFile
sudo chmod a+x bazinga.sh

file_6891.txt

BatchFile
sudo nano /etc/init.d/transmission-daemon

file_6892.txt

BatchFile
NAME=transmission-daemon
DAEMON=/usr/bin/$NAME
USER=root
STOP_TIMEOUT=30

file_6894.txt

BatchFile
cat /dev/ttymxc3

file_6895.txt

C/C++
int LEDPIN   = 7;
int SERVOPIN = 8;
 
void setup() {
  Serial.begin(115200);
  pinMode(LEDPIN, OUTPUT);
  pinMode(SERVOPIN, OUTPUT);  
}
 
void loop() { 
  int slot = 0;
  while (Serial.available()) {
    char inChar = (char)Serial.read(); 
 
    if (inChar == '1') {
      digitalWrite(LEDPIN, HIGH);
      digitalWrite(SERVOPIN, HIGH);
      delay(4000);
      digitalWrite(LEDPIN, LOW);
      digitalWrite(SERVOPIN, LOW);
    } 
  }
 
  delay(15); 
}

Credits

Michelangelo Guarise

Michelangelo Guarise

7 projects • 57 followers
Founder @ volumio.org , passionate maker, unpredictable developer, misunderstood creative. I do stuff, I build things.

Comments