FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    ARDUION DIY Time Capture Gloves

     

    By using Arduino, the accelerometer and LED production time gloves, the hand is tilted with both hands, it appears to be in time, and moves before and after time. Create an illusion by flashing the LED at a specific frequency. It is planned to set the time period equal to the time period of repeating itself. For example, in the case of using the fan, we will flash this light as long as the blade reaches a certain position. Just like a snapshot of the shooting object. If the frequency is equal to the frequency of the rotating fan, we will see that the fan is still moving, and it feels that it is frozen in time. If the frequency is high, we feel the fan to rotate. If the frequency is slightly lower, we feel that the fan is rotating forward. What you have to do is to adjust the frequency flashing of the object frequency. The required components: Arduino Accelerometer Light source - try to use 5V LED and Neopixel ring 9V battery Be First, steps: 1. Connect the 9V battery or DC power adapter. This voltage input is connected to the 7805 regulator, which converts the unstatic 7 to 32V DC voltage to 5V DC power supplies. The 5 V power supply is then connected to the Arduino and the indicator LED and the accelerometer. Second, PCB layout, welding Third, encoding 1, the code of the Arduino LED project. Quickly call the library and header files required to run the code. Since the NEO Pixel library is used, its header file, pin configuration, and a library for controlling the Neopixel ring must be included. #include #ifdef __AVR__ #Include #ENDIF #define Pin 9 #define numpixels 16 Adafrouit_neopixel Pixels (Numpixels, PIN, NEO_GRB + NEO_KHZ800); INT X, Y, Ontime, Offtime; Void setup () { #if Defined (__avr_attiny85__) && (f_cpu == 16000000) Clock_prescale_set (Clock_DIV_1); #ENDIF Pixels.begin (); Serial.begin (9600); Be Lightnormal (); // Turn on the lamp for 5 minutes, then start flashing DELAY (5000); } Void loop () { Y = Map (AnalogRead (A1), 250, 410, 10, 100); Serial.Print ("y ="); Serial.Println (Y); Ontime = Y / 128; OFFTIME = Y; LIGHTUP (); } void lightup () { Pixels.clear (); Pixels.show (); DELAY (OFFTIME); Pixels.Fill (Pixels.Color (255, 255, 255), 0, 15); Pixels.show (); DELAY (ONTIME); / * // Connect to the D9 LED code (if you don't use NeopiX) DigitalWrite (D9, HIGH); DELAY (ONTIME); DigitalWrite (D9, Low); DELAY (OFFTIME); * / } Void Lightnormal () { Pixels.Fill (Pixels.Color (120, 120, 120), 0, 15); Pixels.show (); / * // Connect to the D9 LED code (if you don't use NeopiX) DigitalWrite (D9, Low); * / } (Do not use the Neopixel LED ring and use with ordinary LEDs, no need to use any of these code) 2, Arduino project with LED - code description Declare 4 variables x, y, ON time and OFF time, in the setup function, the Neopixel ring will initialize the Neopixel ring, start serial communication and open the LED or ring for 5 seconds, and then start flashing. Be Void setup () { #if Defined (__avr_attiny85__) && (f_cpu == 16000000) Clock_prescale_set (Clock_DIV_1); #ENDIF Pixels.begin (); Serial.begin (9600); Be Lightnormal (); // Turn on the lamp for 5 minutes, then start flashing DELAY (5000); } In the loop, this function will acquire an analog read number of pin A1 output from the acceleration meter (vary between 250 and 410), and map the value between 10 and 100. Y = Map (AnalogRead (A1), 250, 410, 10, 100); This value is then divided by 128, and then stored in the variable on time, the value y is stored in the time variable. Be Ontime = Y / 128; OFFTIME = Y; Open and close the LED on the Neopixel ring, the value of the turn-on time and the off time is the same as the off delay. In the lighting function, all LEDs in the ring network are turned on and wait for a period of time (usually a few milliseconds). After that, it will clear all LEDs and wait for a while. This whole process repeats again and again. void lightup () { Pixels.clear (); Pixels.show (); DELAY (OFFTIME); Pixels.Fill (Pixels.Color (255, 255, 255), 0, 15); Pixels.show (); DELAY (ONTIME); / * // Connect to the D9 LED code (if you don't use NeopiX) DigitalWrite (D9, HIGH); DELAY (ONTIME); DigitalWrite (D9, Low); DELAY (OFFTIME); * / } The only change is on time and disconnection time, which is proportional to the Y output value of the accelerometer. This is the way to change the flashing frequency by tilt hands. Be The normal lighting function will open all LEDs of the new pixel ring. 3, Arduino LED Project Coding Skills If you are using an LED instead of a new pixel ring, you can use these code instead of this new pixel code. In this section, it is only necessary to adjust. Y = Map (AnalogRead (A1), 250, 410, 10, 100); These values ​​can be used, once you know the correct frequency, you can fine tune and adjust these values. First, set the open time and the closing time to Y. But after so many tests, it is found that it is best to set the value of the on time as low as possible. Set it to a more clear image with a value that is relatively low. This is the code of the LED light Arduino project. Fourth, upload code Select the correct port and board, upload code. Five, assembly Connect all things to your gloves. The Neopixel ring can be secured in the palm of the glove and secure the board and the battery on the back of the glove. Six, video demo

     

     

     

     

    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