ihacklab
Published © GPL3+

Autognorics: The Science of Making a Living Machine

This project reveals the hidden nuts and bolts, ground rules, and fresh ideas essentially needed in making a living machine known as ELFS.

ExpertWork in progress403
Autognorics: The Science of Making a Living Machine

Things used in this project

Story

Read more

Schematics

A sample emulator

Code

Exyzforms

Arduino
This is a sample intuitive code similar to the natural biological inscriptional codes of an organism. Please be aware that although the codes and schematics are included on this page, they were never intended to be anything else than for reference purposes. Inaccuracies, issues, or missing pieces of information might be found in this project.
/* BioTronics Exyzforms */

#include <Servo.h> 
int spkr = 4;                 
int led = 13;                 
int sensor = 5;               
int state = LOW;              
int val = 0;                  
int pos = 0;
int  var = 0;
 

void setup() {
  pinMode(led, OUTPUT);       
 pinMode(spkr, OUTPUT);       
  pinMode(sensor, INPUT);    
  Serial.begin(9600);         
   
}

void loop(){
  val = digitalRead(sensor);    
  if (val == HIGH) {            
    Serial.println("Motion detected!"); 
 while(var < 10) {        
        digitalWrite(13, HIGH);
        delay(1000); 
       digitalWrite(13, LOW);
       delay(1000); 
       tone(4, 440, 200);
      var++;
       }
   var=0;
   
    if (state == LOW) {
      digitalWrite(led, HIGH);    
      state = HIGH;        
    }
  } 
  else {
      digitalWrite(led, LOW); 
      delay(200);               
      
      if (state == HIGH){
        Serial.println("Motion stopped!");
        state = LOW;        
    }
  }

Credits

ihacklab
12 projects • 22 followers
Contact

Comments

Please log in or sign up to comment.