Shop Forum More Submit  Join Login
About Digital Art / Hobbyist Livia16/Female/Netherlands Recent Activity
Deviant for 3 Years
Needs Core Membership
Statistics 91 Deviations 2,589 Comments 11,961 Pageviews
×

Newest Deviations

Mio by Livia-Anna Mio :iconlivia-anna:Livia-Anna 7 2 Izumi by Livia-Anna Izumi :iconlivia-anna:Livia-Anna 12 2 Dorian portrait by Livia-Anna Dorian portrait :iconlivia-anna:Livia-Anna 16 9 Violet by Livia-Anna Violet :iconlivia-anna:Livia-Anna 12 2 Portrait Hepburn by Livia-Anna Portrait Hepburn :iconlivia-anna:Livia-Anna 45 27 Sir Blob of Fishington by Livia-Anna Sir Blob of Fishington :iconlivia-anna:Livia-Anna 10 14 Merry Christmas! by Livia-Anna Merry Christmas! :iconlivia-anna:Livia-Anna 5 3 Winter scene by Livia-Anna Winter scene :iconlivia-anna:Livia-Anna 3 0 Snowy journey by Livia-Anna Snowy journey :iconlivia-anna:Livia-Anna 7 4 Portrait Gal Gadot by Livia-Anna Portrait Gal Gadot :iconlivia-anna:Livia-Anna 29 15 Commission for HinataFox790 by Livia-Anna Commission for HinataFox790 :iconlivia-anna:Livia-Anna 4 4 Math drawings by Livia-Anna Math drawings :iconlivia-anna:Livia-Anna 1 6 Photostudy #1 by Livia-Anna Photostudy #1 :iconlivia-anna:Livia-Anna 10 11 Pink flower pt 2 by Livia-Anna Pink flower pt 2 :iconlivia-anna:Livia-Anna 5 2 Pink flower by Livia-Anna Pink flower :iconlivia-anna:Livia-Anna 7 6 Portrait 3 by Livia-Anna Portrait 3 :iconlivia-anna:Livia-Anna 1 0

Donate

Livia-Anna has started a donation pool!
150 / 1

You must be logged in to donate.
  • :iconabyssols:
    Abyssols
    Donated Aug 15, 2017, 11:48:05 PM
    1
  • :icondahub:
    dAhub
    Donated Mar 6, 2016, 6:01:50 AM
    1
  • :iconjooweeuh:
    jooweeuh
    Donated Jan 16, 2016, 9:42:12 PM
    4
  • :iconshintayu-dewi:
    Shintayu-dewi
    Donated Jan 1, 2016, 1:19:55 PM
    4
  • :iconteaphotography:
    TeaPhotography
    Donated Oct 26, 2015, 4:15:51 AM
    50

Groups

Activity


// Here's an alarm system code I made :), it works for the simulation at least
const int pingPin = 7;
const int buzzPin = 8;
const int ledPin = 9;

 #define echoPin 7 // Echo Pin
#define trigPin 8 // Trigger Pin
#define LEDPin 13 // Onboard LED

void setup() {
 pinMode(buzzPin, OUTPUT);
 pinMode(ledPin, OUTPUT);
}

void loop() {
 
 // Create variables for the distance, will show later what they are for

 // PING)) sensor will work when a puls is sent of 2ms or longer.
//This activates him after which he sends a sound and waits for the echo
//Time between the sending of the puls and echo is the time shown and this number will get returned.
//Start with a LOW puls to make sure to have a clean HIGH puls
 pinMode(pingPin, OUTPUT);     //Pin sends signal
 digitalWrite(pingPin, LOW);
 delayMicroseconds(2);
 digitalWrite(pingPin, HIGH);
 delayMicroseconds(5);
 digitalWrite(pingPin, LOW);

 pinMode(pingPin, INPUT);
 tijdsduur = pulseIn(pingPin, HIGH);

 // Transfers the time into cm, speed of sound is approx 340 m/s so 29ms/cm 
 // This is why we divide by 29
 // We need time that travels in two ways, to the object and back. That;s why we divide by 2 
 // Distance in CM
 cm = tijdsduur / 29 / 2;

 // Print distance in CM on the monitor to see if it works (It works :D!)
 Serial.print(cm);
 Serial.print("cm");
 Serial.println();
 
 //If distance smaller than 40 cm then we got an intruder
 // Buzzer will go on and the leds will blink
 if (cm < 40){
   digitalWrite(buzzPin, HIGH);
   
   digitalWrite(ledPin, HIGH);  
   delay(1000);                     // 1 seconde
   digitalWrite(ledPin, LOW);    
   delay(1000);     // 1 seconde
 }else{
   digitalWrite(buzzPin, LOW);

   digitalWrite(ledPin, LOW);
 }
     
 // Rest of 0,1s
 delay(100);
}
Arduino alarm system
Yo here's some code I made, not completely finished but here you go ^^
Loading...

deviantID

Livia-Anna's Profile Picture
Livia-Anna
Livia
Artist | Hobbyist | Digital Art
Netherlands
Hiya, I'm Livia. I'm a young hobbyist artist ^^
Love creating mainly digital arts but I do some traditional art and photography too.
Passionate about art and music but tryna become a scientist later


Here's some other social media stuffz u can follow me on (I'd appreciate any support ;D)

Myanimelist- myanimelist.net/profile/livia0…
Insta- www.instagram.com/livia_the_fr…
Steam- steamcommunity.com/profiles/76…
Osu!- osu.ppy.sh/u/8117593
Interests

Comments


Add a Comment:
 
:iconmazepla:
mazepla Featured By Owner Jul 9, 2018  New Deviant Hobbyist Digital Artist
Thank you for the points, Livia :D
Reply
:iconlivia-anna:
Livia-Anna Featured By Owner Jul 10, 2018  Hobbyist Digital Artist
You're welcome! Great art :)
Reply
:iconyouronlydrpepper:
YourOnlyDrPepper Featured By Owner May 13, 2018  Student
Thank you so much for donating to my donation poll!
Reply
:iconlivia-anna:
Livia-Anna Featured By Owner May 14, 2018  Hobbyist Digital Artist
My pleasure!:)
Reply
:iconpowerofsin:
PowerOfSin Featured By Owner May 13, 2018  Hobbyist General Artist
Thanks for the favorite!
Reply
:iconlivia-anna:
Livia-Anna Featured By Owner May 13, 2018  Hobbyist Digital Artist
Welcomee
Reply
:iconprecipitous120:
Precipitous120 Featured By Owner Feb 18, 2018
I'm not going to be available for the rest of this month.... try and keep the club active and remember to vote to accept all the new members, I see there are quite a few

good luck!!!!!
Reply
:iconcaptainceja:
CaptainCeja Featured By Owner Feb 11, 2018  Hobbyist Digital Artist
Reply
:iconlivia-anna:
Livia-Anna Featured By Owner Feb 14, 2018  Hobbyist Digital Artist
My pleasure ^^
Reply
:iconiduna-haya:
Iduna-Haya Featured By Owner Feb 5, 2018  Hobbyist Digital Artist

Thank you for adding my work to your collection :) I’m happy you enjoyed it

Have a nice day!

Reply
Add a Comment: