Accelerometer sense tilt then interface with USB-6008 and generate PWM to control M995 servo motor

hi everyone,
currently im doing a final year project in LabVIEW using USB6008. my project involve of sensing the tilt from accelerometer and convert the tilt into PWM to control the turning of servo motor.
accelerometer that im using is ADXL322 which has Dual axis ±2g sense range
servo motor that im using is M995. when the servo motor in neutral position it required 1500microseconds, while it turns 90degree it requires 2200microseconds and whilw it turns -90degree, it requires 800 microseconds.
currently im facing problem in generating the PWM signal to control the operation of servo motor.
attachment is my VI design that i have done to date.
the program is about attracting tilt range from accelerometer using USB NI 6008 and then convert the tilt into angle in degree, and after that generate PWM to control two servo motor.
hopefully there is somebody can help me on this. thanks.
Attachments:
FYP.vi ‏253 KB

currently i need to generate PWM to control servo motor model MG995. but i am facing problem in generating the PWM in between 800usec to 2200usec to control the rotation of the servo motor. is there any example for me to refer.
below is my VI that i have done to date.
hopefully somebody can identify my mistake because my VI is not able to turn the servo motor.
Attachments:
pwm.vi ‏128 KB

Similar Messages

  • Can i download google map and then interface with labview?

    i intend to interface labview with google map and indicate my required position on it.i need help on how to accomplish this?can i download google map and then interface with labview?

    Hi,
         The Example avalable on following link (C:\Program Files\National Instruments\LabVIEW 2009\examples\comm\axevent.llb\ActiveX Event Callback for IE.vi) on your PC, and using of Googlr map API u can indicate your position.document are avalable on following link (http://code.google.com/apis/maps/documentation/staticmaps/)
    I hope this is help for u..
    Siva
    Sivaraj M.S
    CLD

  • Can we use applets as user interfaces with sockets, RMI and J2EE

    Dear Sir or Madam,
    Since I am a TA for software architecture class, some one ask me the following question: I think the answer is "No" based on the document on http://java.sun.com/sfaq/
    How I answer the quesions? Looking forward your help!!!
    1.You may have 2 applets and 2 html files. One applet with one html file may stay at a client PC and run on this PC, and the other applet with the other html file may stay at a server PC and run on this PC. In this case, all the applets are run locally.
    2.Could applets works with sockets, RMI and J2EE?
    3.Can we use applets as user interfaces with sockets, RMI and J2EE?
    Thank you very much!
    Best regards,
    Jing

    The scenario you paint doesn't quite make sense. The "server PC" wouldn't be running an applet, normally, since applets are by definition in a web browser page, and most likely involve user interaction, and "server processes" generally are done without user interaction.
    The security rules around applets are that -- by default -- applets can connect with sockets ONLY to the server from whence the applet was loaded. RMI uses sockets (J2EE is too broad a spec) and hence RMI calls would also be limited to the server from whence the applet was loaded. Within that limitation, an applet could open all the sockets it wants, so long as they are all on the server from whence the applet was loaded.
    If you want two applets on two different systems to communicate with each other, the simplest way is to have them rendevous through a server process on the server(s) from whence each applet was loaded. Maybe it's PC-a <-> server-a <-> server-b <-> PC-b ...? Or maybe PC-a and PC-b both are talking to the same server.
    The limitation is rooted in the security subsystem. You can specify a policy file and override anything in the security subsystem. That does mean signing the applet and then cajoling the user into agreeing to grant greater levels of security than the default. In such a case you can open sockets more broadly and then PC-a could talk directly to PC-b without going through any servers.
    - David

  • How do you record video with usb mic and have the audio from garageband be the sound when recording and not just your normal voice but garage band effects for youtube?

    How do you record video with usb mic and have the audio form garageband be apart of the video when recording, meaning the audio from garageband and echo  and not just your normal voice for youtube post?its not add the garageband audio its just normal voice from mic no  effects is going thru?

    Hi Life93,
    What you describe would be possible by recording your video, then removing the audio from it and adding audio from GarageBand once the video is in iMovie (I presume here that you are using iMovie for your video production. Other applications may need different methods.)
    See this thread on how to remove the audio from a clip in iMovie -
    Is there a way to separate audio from a video c...
    https://discussions.apple.com/thread/1779767
    To add audio from GarageBand use this article -
    iMovie '11: Add a sound clip to your project
    http://support.apple.com/kb/PH2255
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • I'm trying to insall Adobe Photoshop CS3 on a new ASUS ASM11BB001O computer equipped with 64-bit Windows 7.  I use a "bundle" approach, first loading Photoshop 6, then upgrading with CS upgrade and then CS3 upgrade.  The installation goes smoothly until I

    I'm trying to install Adobe Photoshop CS3 on a new ASUS ASM11BB001O computer equipped with 64-bit Windows 7.  I use a "bundle" approach, first loading Photoshop 6, then upgrading with CS upgrade and then CS3 upgrade.  The installation goes smoothly until I add PS CS, and then it balks at the "accept" Adobe conditions screen.  I have two other (Gateway) computers with Windows 7, 64-bit, on both of which the PS-6, CS-CS3 pathway worked fine.  Any thoughts on how to get this working?  Thanks

    If your goal is to install and activate CS5 there is no need to install anything preceding it.  You will only need to have the serial number from the preceding version that you upgrade from (CS3 I guess).

  • My iphone4 is stuck in restore mode with usb plug and the itunes symbol on the screen.

    My iphone4 is stuck in restore mode with usb plug and the itunes symbol on the screen after update os7 to os7.04
    My phone is completely disabled, what can i do ?

    Connect to iTunes. The phone is in Recovery mode. Follow the directions in this support document. http://support.apple.com/kb/HT1808

  • TS1539 How do we deal with Error 50 when downloading a movie rental then stopped with error 50 and when I try to resume the downld, it doesn't do it?

    How do we deal with Error 50 when downloading a movie rental then stopped with error 50 and when I try to resume the downld, it doesn't do it?

    Yeah this "fix" is bunk. The movie is downloading just fine, but the extra features is the one giving me this error code. It is NOT my firewall. If it was, then both files wouldn't download. Plus, I already have the firewall "issue" tacked down and fixed. Have had it fixed for months now. No, this is due to the "new" itunes version 11 software. The only conclusion to fix this issue is UPgrading from 11 back to 10.7 which is what I am going to do. This is completely ridiculous! Come on, Apple, get itunes working once and for all, and fire the people responsible for itunes 11, just like you did to the guy who was responsible for apple maps. Thankfully Google came back to the rescue with google maps app.

  • I just updated my phone and it is now stuck with usb cable and itunes logo and itunes on my computer says I have to restore.  Can I get my phone working again without loosing my photos?

    I just updated my phone and it is now stuck with usb cable and itunes logo and itunes on my computer says I have to restore.  Can I get my phone working again without loosing my photos?

    There is no other way than to plug into a computer to restore the phone. You can use another computer to do so, but in case you did not back up to iCloud your data and settings will be gone.
    Follow this article to connect in recovery mode:
    iOS: Unable to update or restore

  • Is it possible for Nexus7000 flexible netflow monitor for interfaces with different vrf and export to one netflow analyzer?

    I have a Nexus 7000 with many vlan interfaces with multiple vrf, I would like to know if my netflow analyzer only connected to one vrf, can I use flexible netflow on the Nexus 7000 to monitor those vlan interfaces with multiple vrf and export them to my netflow analyzer, so that I can see all flow from different vrfs on my netflow analyzer?
    Thank you!

    Adriano, there is a RV042G, which supports the gig ports and a 800 mbps nat throughput. Here is the datasheet
    http://www.cisco.com/en/US/prod/collateral/routers/ps10907/ps9923/ps12262/data_sheet_c78-706724.html
    If you are using a DSL connection, the SRP527/547 models may be an alternative. These models support the RFC 1483 Bridges EOA Please note the SRP547 should be 10/100/1000. Also note the SRP521/541 are Fast Ethernet units and they do differ from the SRP527/547. The main selling point of these devices are the FXS/FXO ports. So this may also be a bit of an "unfocused" solution. But it's worth throwing the idea out there!
    Here is the admin guide;
    http://www.cisco.com/en/US/docs/voice_ip_comm/unified_communications/srp540_series/administration/srp500_AG_2567701.pdf
    Here is the datasheet;
    http://www.cisco.com/en/US/prod/collateral/voicesw/ps6790/gatecont/ps10500/data_sheet_c78-550705.pdf

  • How many connections supports a web interface with each camera and how many Adobe Encoder clients does AMS support? AMS Standart

    How many connections supports a web interface with each camera and how many Adobe Encoder clients does AMS support? AMS Standart. We need connect by  Adobe Encoder many people. what is differences between Adobe Media Server 5 Professional, Adobe Media Server 5 Standard and Adobe Media Server 5 Extended?

    For the detailed list of differences across editions refer this link
    http://www.adobe.com/in/products/adobe-media-server-family/buying-guide-comparison.html

  • Has anyone any experience with a USB-6008 and reading a thermistor value

    Labview 8.0 connected to a USB-6008
    I am using 'BC Components' NTC Thermistor. I used the express VI to create a Vex input and entered the A,B,& C values from the datasheet. The thermistor is the 10K version and I placed a 10K resistor in series with it. I wired it as is shown in the connection diagram, and applied 2.5 volts to it.
    I get completly the wrong temperature readings out of it! I called the NI help line in the UK and the engineer confirmed that I had done everything correctly but couldn't understand why it didn't work.
    Any thoughts?
    Steve Lawson

    I had a similar problem, had it working at one point then screwed it up.
    try this:
    Attachments:
    Temp Pressure EXpress.vi ‏92 KB

  • How can I generate tones with usb 6008 using analog out?... tia sal2

    Greetings All
    I've been looking at the example Sim Phone.vi that comes with labview and would like to generate similar tones out of our usb 6008 device. I can get a very faint sound out of our usb 6008 using the example Gen Multi Volt Updates-SW Timed.vi Does anyone know the best way to alter Sim Phone.vi to have the sound come out of the Analog output of our usb 6008 device. ( I have a small speaker connected to the Analog out on our USB 6008)
    PS: we are using labview 7.1
    Does anyone know the Analog output frequency range of the usb-6008? Is this possible?
    TIA
    Attachments:
    Gen Mult Volt Updates-SW Timed.vi ‏78 KB

    Hi sal2,
    As stated earlier you could most certainly use the USB device to generate sound, but that would be at a max update rate of 150 Hz. While according to Nyquist theorem you could get frequency information for signals below 75 Hz, you may notice that the quality of the data in that spectrum to be very low due to having so few samples.
    While technically possible to produce you really should look for a device with a faster Analog Output update rate. I would look for a device that supports Analog Output at least 10x the maximum frequency that you want the user to hear. Some great, yet lower cost products, would be the M-Series line of products. They would give you the performance that is really needed in the type of application that you are talking about.
    If you still want to use the USB Device, then you would need to use code similar to that found in the example Gen Mult Volt Updates-SW Timed (Found here: C:\Program Files\National Instruments\LabVIEW 7.1\examples\daqmxbase\Dynamic\ao).
    Best of luck getting your system together,
    Otis
    Training and Certification
    Product Support Engineer
    National Instruments

  • Can't run apps. in Linux with USB-6008

    I am using USB-6008 by installing nidaqmxbase-1.5.0 under RH 2.4-20 without any error.
    (I installed package with the device unplugged).
    I run /usr/local/natinst/nidaqmxbase/bin/lsdaq and get:
        National Instruments DAQ Devices
        Found the following DAQ Devices:
        NI USB-6008: "Dev1"    (USB0::0x3923::0x717A::00E1D95B::RAW)
    I run /usr/local/natinst/nidaqmxbase/examples/ai/acquire1Scan application using Dev1/ai0 and get:
        DAQmxBase Error: Physical channel specified does not exist on this device.
        Refer to the documentation for channels available on this device.
    I do see 2 drivers are loaded. They are nipalk and nikal. But I don't know what is the driver associated with Dev1.
    And I don't see any Dev1 node under /dev (assume it is a character driver).
    I need help.
    John

    John,
    When you install the USB-6008 in Linux you need to have the daqmxbase firmware
    loaded onto the device.  If this device was ever plugged into a windows
    machine it is likely that the daqmx firmware was loaded onto the device. 
    If the daqmx firmware is on the device the USB-6008 will install, however you
    will not be able to use the device.  In order to change the firmware back
    to daqmxbase you need to plug the USB-6008 back into a windows machine and
    install the daqmxbase firmware.  I have included a link below that walks
    you through this process.
    http://digital.ni.com/public.nsf/websearch/1448A8AC665EE0EA8625703F004A4410?OpenDocument
    Regards,
    Jesse O
    Application Engineering
    National Instruments
    Jesse O. | National Instruments R&D

  • How to generate a waveform (with changeable update rate and sample) with USB 6008

    Apologize about my awful English.
    In Tradition DAQ I can set different update rate with "AO Start" vi.
    Transform into USB-6008 device things turn into quite different.
    I don't know which vi I can setup update rate.
    Is there any example for this.
    THX a lot!

    Hello D.
    To use the USB-6008, you need to download DAQmx Base driver from the web at http://digital.ni.com/softlib.nsf/websearch/CE3686A8D5B0CEDC86256FFD007C9C4A?opendocument&node=132070_US .
    The driver will install with example programs that you can access by going to Start->Pograms->National Instruments->DAQmxBase->Examples. You new to have LabVIEW 7.x to use this driver.
    SergesL

  • Amplifying Type K Thermocouple for high temp reading with USB 6008

    I am attempting to amplify a type K thermocouple so that the signal can be read somewhat accurately by a USB-6008. I have looked at the AD595 chip but it states a maximum useful temperature of 100 C and I am going to need to be reading up to 700 C. 
    Is there another amplifier chip that would work up to this temperature, or should I resign myself to using the signal unamplified and getting a very inaccurate (~30 C/division) reading for temperature?
    Solved!
    Go to Solution.

    A heads up- some people have ran into issues using the chip with the USB-600x devices, various solutions. You may want to browse of these posts ahead of time:
    http://forums.ni.com/ni/search?board_id=170&submitted=true&q=AD595
    -AK2DM
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

Maybe you are looking for