FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    Homemade Arduino detector DIY diagram

     

    "Step 1: Raspberry PI config To set up your webcam using motion: Connect to RPI: sudo apt-get update sudo apt-get upgrade sudo apt-get install nano sudo apt-get install motion To edit a motion file: sudo nano /etc/default/motion Change the following line: start_ motion_ daemon=yes Edit profile: sudo nano /etc/motion/motion.conf And change or check the following parameters: set “daemon on” set “minimum_ frame_ time 3” set “quality 80” set “webcam_ port 8081” set “control_ port 8080” set “webcam_ Localhost off "cm3 = 1" 。 To view the displayed picture now, open the browser at http: / / youripaddress: 8081 。 。 More about sports: http://www.lavrsen.dk/foswiki/bin/view/Motion/WebH 。.. Step 2: Raspberry PI config (wiringpi) To install wiringpi, you need to install git core first. set “width 640” Then, get the wiringpi file: set “height 480” sudo service motion restart sudo apt-get install git-core You can check the installation in the following ways: git clone git://git.drogon.net/wiringPi Results will 。 For more information, visit: http://wiringpi.com http://connectionpi.com/the-gpio-utility/ Step 3: Raspberry PI configuration (Apache Web server + PHP) To install Apache and PHP5: cd wiringPi To check that Apache is running, open the browser and go to http://youripaddress You should get the default page "it works" (Figure 1). To check your PHP installation: 。/ build gpio -v gpio readall Insert the following line ?》 Then open the browser and go to http://youripaddress/info.php You should get the PHP information page (picture 2). 。 Install a web interface to control your mobile car Extract the file from web.tar.gz to / var / www/ sudo apt-get install apache2 php5 libapache2-mod-php5 cd /var/www 。 Change line 31 in / var / www / index.php and replace 0.0.0.0 with your wlan0 IP address. 。 Let PI users access web folders sudo chown -R pi:www-data/var/www sudo gpasswd -a pi www -data 。 Now open your browser at http://youripaddress/index.php You should get a result similar to the screenshot of your phone (Figure 3) Step 4: upload the file to Arduino Upload this sketch to your Arduino or download year-sketch.ino #include Servo Vservo; int Hstate = 90; int Vstate = 90; int in1 = A2; int in2 = A3; int in3 = A4; int in4 = A5; int camup = 6; int camdown = 7; int camleft = 8; int camright = 9; int p2; int p3; int p4; int p5; int p6; int p7; int p8; int p9; void setup(){ Vservo.attach(11); pinMode(A2,INPUT); pinMode(A3,INPUT); pinMode(A4,INPUT); pinMode(A5,INPUT); pinMode(6,INPUT); pinMode(7,INPUT); pinMode(8,INPUT); pinMode(9,INPUT); pinMode(2,OUTPUT); pinMode(3,OUTPUT); pinMode(4,OUTPUT); pinMode(5,OUTPUT); } void loop(){ p2 = AnalogRead(A0) ); P3 = analog read (A1); P4 = analog read (A2); P5 = analog read (A3); P6 = digital reading (camup); P7 = digital reading (camdown); p8 = digitalRead(camleft); p9 = digitalRead(camright); if(p6 == LOW || p7 == LOW) stop(); If (P6 = = high | P7 = = high) horizontal(); if(p8 == HIGH || p9 == HIGH ) vertical(); if(p2》 512) forward(); if(p3》 512) backward(); if(p4》 512) left(); if(p5》 512) right(); } void horizontal() { if(p6 == HIGH && p7 == LOW) {Hstate = Hstate + 2; } if(p6 == LOW && p7 == HIGH) {Hstate = Hstate-2; } if(p6 == HIGH && p7 == HIGH) {Hstate = 90; } if(Hstate》 = 180)Hstate = 180; if(Hstate 《= 0)Hstate = 0; Hservo.write(Hstate); delay(150); } void vertical() { if(p8 == HIGH && p9 == LOW) {Vstate = Vstate + 2; } if(p8 == LOW && p9 == HIGH) {Vstate = Vstate-2; } if(p8 == HIGH && p9 == HIGH) {Vstate = 90; } if(Vstate》 = 180)Vstate = 180; if(Vstate 《= 0)Vstate = 0; Vservo.write(Vstate); delay(150); } void forward() { digitalWrite(2,HIGH); digitalWrite(3,LOW); digitalWrite(4,HIGH); digitalWrite(5,LOW ); } Invalid backward () { digitalWrite(2,LOW); digitalWrite(3,HIGH); digitalWrite(4,LOW); digitalWrite(5,HIGH); } void left() { digitalWrite(2,HIGH); digitalWrite(3,LOW); digitalWrite(4,LOW ); digitalWrite(5,HIGH); } void right() { digitalWrite(2,LOW); digitalWrite(3,HIGH); digitalWrite(4,HIGH); digitalWrite(5,LOW); } void stop() { digitalWrite(2,LOW); digitalWrite(3,LOW ); digitalWrite(4,LOW); digitalWrite(5,LOW); } The servo library shall be installed Step 5: plug and play! -Set the mobile station wheel (and motor) -Set up server and webcam -Connect the H-bridge to the motor -Connect the H-bridge to Arduino -Connect raspberry to Arduino -Insert the camera into raspberry -Connect the battery to the H-bridge and plug Arduino and rasperry into the mobile power supply. Responsible editor: WV, read the full text“

     

     

     

     

    List all Question

    Nickname

    Email

    Questions

    Our other product:

    Professional FM Radio Station Equipment Package

     



     

    Hotel IPTV Solution

     


      Enter email  to get a surprise

      fmuser.org

      es.fmuser.org
      it.fmuser.org
      fr.fmuser.org
      de.fmuser.org
      af.fmuser.org ->Afrikaans
      sq.fmuser.org ->Albanian
      ar.fmuser.org ->Arabic
      hy.fmuser.org ->Armenian
      az.fmuser.org ->Azerbaijani
      eu.fmuser.org ->Basque
      be.fmuser.org ->Belarusian
      bg.fmuser.org ->Bulgarian
      ca.fmuser.org ->Catalan
      zh-CN.fmuser.org ->Chinese (Simplified)
      zh-TW.fmuser.org ->Chinese (Traditional)
      hr.fmuser.org ->Croatian
      cs.fmuser.org ->Czech
      da.fmuser.org ->Danish
      nl.fmuser.org ->Dutch
      et.fmuser.org ->Estonian
      tl.fmuser.org ->Filipino
      fi.fmuser.org ->Finnish
      fr.fmuser.org ->French
      gl.fmuser.org ->Galician
      ka.fmuser.org ->Georgian
      de.fmuser.org ->German
      el.fmuser.org ->Greek
      ht.fmuser.org ->Haitian Creole
      iw.fmuser.org ->Hebrew
      hi.fmuser.org ->Hindi
      hu.fmuser.org ->Hungarian
      is.fmuser.org ->Icelandic
      id.fmuser.org ->Indonesian
      ga.fmuser.org ->Irish
      it.fmuser.org ->Italian
      ja.fmuser.org ->Japanese
      ko.fmuser.org ->Korean
      lv.fmuser.org ->Latvian
      lt.fmuser.org ->Lithuanian
      mk.fmuser.org ->Macedonian
      ms.fmuser.org ->Malay
      mt.fmuser.org ->Maltese
      no.fmuser.org ->Norwegian
      fa.fmuser.org ->Persian
      pl.fmuser.org ->Polish
      pt.fmuser.org ->Portuguese
      ro.fmuser.org ->Romanian
      ru.fmuser.org ->Russian
      sr.fmuser.org ->Serbian
      sk.fmuser.org ->Slovak
      sl.fmuser.org ->Slovenian
      es.fmuser.org ->Spanish
      sw.fmuser.org ->Swahili
      sv.fmuser.org ->Swedish
      th.fmuser.org ->Thai
      tr.fmuser.org ->Turkish
      uk.fmuser.org ->Ukrainian
      ur.fmuser.org ->Urdu
      vi.fmuser.org ->Vietnamese
      cy.fmuser.org ->Welsh
      yi.fmuser.org ->Yiddish

       
  •  

    FMUSER Wirless Transmit Video And Audio More Easier !

  • Contact

    Address:
    No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620

    E-mail:
    [email protected]

    Tel / WhatApps:
    +8618078869184

  • Categories

  • Newsletter

    FIRST OR FULL NAME

    E-mail

  • paypal solution  Western UnionBank OF China
    E-mail:[email protected]   WhatsApp:+8618078869184   Skype:sky198710021 Chat with me
    Copyright 2006-2020 Powered By www.fmuser.org

    Contact Us