Parallax ultrasonic

All,
I'm attempting to use a Parallax Ping Ultrasonic sensor #28015 with a c-RIO robot for the FIRST program. Problem, the sensor sends and receives on the same 5v pin and the c-RIO wants two DIO ports, one receive one send. Can anyone assist with a programming solution to send and receive on the same DIO pin?
Thanks

jdam,
I just happen to have used several Ping sensors, and while I didn't have the luxury of a cRIO (just a Freescale HS12 something-or-other) I think I may be able to help.  My first question is:  What DIO module are you using?
For anyone else reading who may be unfamiliar with the sensor:  
The sensor waits for a trigger on it's sole I/O line (why they didn't just use two lines, one for In and one for Out, I'll never know) and then starting 750us later returns a pulse who's width is proportional to the distance to the nearest object.
http://www.parallax.com/dl/docs/prod/acc/28015-PING-v1.3.pdf
So you need to be able to tristate your output to the sensor and start reading back data in less than 750us.  I'm not an expert on cRio modules, but it looks like some of them are capable of being inputs or outputs, so you might be able to accomplish your goal by simply switching the pin to be an Input right after you give it a pulse.  Since the tHoldoff is specified starting when your output goes low, you'll probably have to place a weak pulldown on your IO pin so that when you turn it into an input the sensor sees a 0.  Again, I've never tried to do this with a crio module so you'll have to figure out if you can meet that timing.  I imagine that the code would look something like:
Configure Pin0 as an Output --> Output a 1 --> Wait for 5us (tOut typical) --> Configure Pin0 as an Input --> Start reading Pin0 until it goes to 1 --> Continue reading Pin0 until it goes to 0 
Another option (if your module doesn't support bidirectional ports) is to use an external buffer with a tristate pin like one of these ($0.40 for four) which can probably be ordered in DIP form from Mouser or your favorite distributor (I like Mouser because they can get things to Austin, TX in usually less than 24 hours).  This would require TWO outputs from your cRio (one to drive the Trigger pulse and one to control the tristate) and one Input.
Hugs,
memoryleak 
Message Edited by memoryleak on 09-07-2009 02:14 PM

Similar Messages

  • Is there a way of making the Edge Commons parallax effect work smoothly with DPS on the iPad?

    I want to create a feature for an iPad magazine utilising the parallax effect shown here...
    Parallax Scrolling Made Easy (Adobe Edge Animate Online Week, Episode 9) - YouTube
    I am using Digital Publishing Suite to publish to an iPad.  I ran a test and the effect partially works, but not smoothly.
    As you scroll down the animation does not play.  Once you finish scrolling the animation then jumps to whichever point has been reached on the timeline, rather than animating as you scroll down the page.
    Is there a way to get the same animation effect through DPS that you see in the browser?  Or is it not compatible?
    Thanks!

    As lllaass said, you can't.
    If you want Apple to add backgrounds to the iPad version, leave them feedback: http://apple.com/feedback/ipad.html.

  • Parallax scrolling .OAM file is not working with muse

    I had created recently parallax scrolling with Edge Animate. Parallax scrolling is not working after placing the OAM file in the muse.
    The problem is its not triggering the function with the scroll. Any Idea ?

    Please post your Edge Project file for others to cross-check?
    Also Muse embeds Edge Animate as an iframe within the Muse html file, so that particular interaction my not be the best use case.
    Also Muse (the latest version) has some wonderful Parallax capbilities built in - here are a bunch of references to check out.
    Darrell

  • How can I create an adaptable full-width site with sliding parallax panel?

    Hi guys!
    I have to create a web site with a full-width resolution, adaptable with any monitor and resolution using some panels that moves using the parallax scroll-motion with a sliding effects.
    For example I nedd a site like "collecdiv.com" that works with the same effects and with an adaptable full-widht size page.
    Here's some screen I take of my site with a 22" 1920x1080 resolution and a 15" 1280x1024.
    The 4 tab I want to see in full width and in scroll motion parallax: four with a resolution of 22" and the other four with a resolution of 15" (the screen are made with paint to let you see what is the problem)
    In the first tab there's a slideshow widget with some photo, in the other tabs there's a rectangular form with an image fill... I have to see the same layout that I see in my 22" monitor, in other smaller or bigger monitor (like 15") just like in the "collecdiv.com" website... The Dimension of my muse file is 960px width
    How can i resolve the problem? How can I fix the screen so anyone else can see my site without problem and with all the resolution?
    Who can help me? PLEASE
    Thanks in advice
    Francesco
    P.S.: an advise... check the site "www.collecdiv.com" to see what I nedd

    I'm adding this screenshot so you can understand the problem... The 4 tab I want to see in full width and in scroll motion parallax: four with a resolution of 22" and the other four with a resolution of 15" (the screen are made with paint to let you see what is the problem)
    In the first tab there's a slideshow widget with some photo, in the other tabs there's a rectangular form with an image fill... I have to see the same layout that I see in my 22" monitor, in other smaller or bigger monitor (like 15") just like in the "collecdiv.com" website... The Dimension of my muse file is 960px width
    Pleas help me

  • Parallax View after 7.1 and Moving Icons

    I think my favourite change for iOS 7.1 is the ability to switch parallax view (or perspective zoom) off when setting a wallpaper without having to switch of all animations which!
    However, i have noticed that even with it switched off, there still seems to be an effect which makes the icons seem to move when you move the phone around. The only way to stop this is to switch on "reduce motion" in the accessibility menu.  This seems odd as why would i want the effect of icons moving as I move the phone?  Admitadly the movement is very slight but still noticeable but I would like it to stop without me having to switch off all the animations (which run nice and quickly now by the way).
    Anyone else have this problem or does anyone know a way to resolve it?
    Thanks
    Paul

    I also noticed this. Dont have an alternative solution. Thanks for the tip.

  • Parallax no longer works in Firefox 16+

    I created a Parallax ( scrolling interactive images in layers which tells a story) about 10 months ago or so, it works in every browser and at that time it worked in firefox 10-ish. I just saw today that it no longer works in Firefox 17 or 16, it doesn't scroll at all. The Parallax is in an iframe container ( not sure if that matters ) and it looks like the iframe has been squashed in height.
    Thanks,
    Sam

    Yes it will break. Don't swap one for the other; use everything for now to cover your bases
    *-moz-transform
    *webkit-transform
    *transform
    So older Firefox will see -moz-transform, Chrome and Safari will see webkit-transform and new Firefox will see transform. When webkit changes then Chrome and Safari will see transform instead of webkit-transform. Then one day in the future you'll be able to remove the prefixed versions and just use transform.
    Make sense?

  • Photo gallery using parallax scrolling?

    hey  i have been testing out each of the slide show widgets in adobe muse.  some of them are okay. the light box for once. is a challenge,  but heres something i want to learn how to do. and its parallax scrolling with photos for a gallery. i think for what i am wanting to do i think its the best layout for me.  heres a web site that hass it i think. http://album.alexflueras.ro/galleries/people.html#a1.
    see i shows both landscape and portrait mode of photos. and thats been a challenge from the get go. so there i am thinking of using parallax scrolling . now how do i do this? is it done in photo shop and adobe muse. bec i do want to change out my i mages when needed?
    now i am a tad bit curious. it looks good on desktop, but what about mobile devies. most phone. would it work great.?
    so what are the steps for making this?
    the other key thing i noticed. is that the photos are large. and thats what i like.
    thanks

    Hi
    You can use composition on page where you can insert the images with scroll effect applied.
    Check this video , its not exact design but will help to make images scroll page :
    http://www.youtube.com/watch?v=BDgERSf2a5k
    Thanks,
    Sanjit

  • A Designer with a H/Parallax and a bag of goodies

    Hello, hopefully theres a person who knows the location to these - or can answer them???
    Started using EA last week, and from a PS and AI background and I love it.
    But I have an issue with the concept that is taken shape, and now I cannot complete it for client on time.
    So I have all the artwork for a:
    Horizontal Parallax moving Interactive Inforgraphic -
    My stage is 600px H and 4000px W, with 5 seperate background colours 800px w each, which I would like to scroll though (horizontally ---no vertical movement)
    So how do I activate horizontal scrolling???
    I would also like a Next & Previous (forwards - backwards) button on each page which are clickable (mine aren't doing that!)
    And finally on the base of the inforgraphic I require a contant measurement of your location and the page your on, so you can click 2 pages back if you wish.
    I was thinking about Adobe Muse - but I don't want a seperate URL - client wants this to be embeded on their website.
    If someone can provide a similar example, and tell me how to adapt to draw in my elements and symbols?
    Many thanks,
    PS - I've been added script from EdgeCommons on Parallax....am I doing it wrong?
    yepnope({
        load: "http://cdn.edgecommons.org/an/1.1.2/js/min/EdgeCommons.Parallax.js",
              callback: function() {
                        EC.centerStage(sym);
                        EC.Parallax.setup(sym);
                        EC.Parallax.setup(sym, "horizontal");
    // Show an Element
    Many thanks!!!!

    Sample here: https://app.box.com/s/fj9w3walfoo2b3cfn2u2
    Add this plugin:
    http://css-tricks.com/examples/HorzScrolling/jquery.mousewheel.js
    and
    add this code:
    $(function() {
       $("body").mousewheel(function(event, delta) {
          this.scrollLeft -= (delta * 30);
          event.preventDefault();

  • Parallax code not working in CC 2014.1

    Hi!,
    I have being using this code for  parallax in CC 2014,  as an action on the stage on a scroll event.
    // scrolling controls animation 
    var animationHeight = 25000 
    var stageHeight = sym.$("Stage").height() 
    var scrollPos = sym.$("Stage").scrollTop(); 
    var duration = sym.getDuration(); 
    var percent = scrollPos / (animationHeight - stageHeight); 
    var time = duration * percent; 
    // Update timeline 
    sym.stop(time); 
    After upgrading to CC 2014.1, the code no longer works, any ideas about what needs to be changed? Tried to downgrade to 2014, but the version is no longer available.
    Help? 
    Thanks,

    ok, so I figured out the answer. last line should be replaced with
    sym.stopAll(time);
    And overflow value should be set to scroll or auto.

  • Discover New Parallax Scrolling with Adobe Muse CC | Creative Cloud for Design | Adobe TV

    Terry White, Adobe worldwide evangelist, shows how Adobe Muse CC lets you create stunning effects with just a few clicks. Make images and elements move in different directions at different speeds when scrolling — all without writing code.
    http://adobe.ly/12yzGv0

    There has to be a way to create a Re: Discover New Parallax Scrolling with Adobe Muse CC | Creative Cloud for Design | Adobe TV slideshow that fills browser width. It's not a problem for desktop, but it is a problem for laptops/tablets/phones.
    How did the site in the tutorial do it? Terry said it was created in Muse.
    Here is a test site that I've been working on - I would love to make it responsive w/o having to create separate tablet/phone sites:
    http://mandm.businesscatalyst.com
    Any suggestions?

  • Parallax scrolling not adjusting to different browser size, help?

    Hello everyone,
    I am putting together this parallax website, http://natashajackson.businesscatalyst.com/index.html and it works on my 15 in mac book, but does not adjust size for smaller or larger screens. I can't seem to make the timing for all the "scrolling effects" line up for all browser sizes.
    I have watched many muse tutorials and have figured out how to avoid horizontal scrolling, but again, it only appears to be working on my 15 in book.
    The below photo shows my layout properties. Any magical tips that I am missing? I look forward to your feedback!
    Thank you

    Hey manna9er I was able to figure out the 100% browser width and it turned out to be pretty simple. At first I was "Placing" my images into muse and scaling them to the width of browser, and it never was 100% width. I found that you cannot "Place" you must use the "Rectangle Tool" and create box the width of the browser, make sure that it is 100% browser width, the border line turns red and a tool tip informs you, as seen in image)
    Next use the "Fill" option on your top menu bar-->select "Choose Image Background"--> upload image file-->scale to whatever size/style you want. (see image below)
    For parallax go to Window-->scroll effects--> and play with Motion, Initial Motion, Key Point and Final Motion. Parallax takes some toying with to get desired effect.
    Hope this helps

  • Parallax scrolling to images

    hey i am wondering if you know of a way to add parallax scrolling to image slide tumbnail slide shows ?
    this is what i am working on. i am using the compostion lightbox display, and in there. i have a thumbanil slide show. nowi have managed to get that in there. with the triggors.
    now. i am wanting to see if i can added thumbnail slides that when i hit the slide, it shows the next set of images.
    example.
    engagment| Bridal| wedding
    its one slide show, but when you hit it. you can go to the next slide, like how you have slide 1, 2 and 3.  that what i am thinking is what parallax scrolling is?
    can it be done? if so how?

    Thanks for your reply. I tried applying the following AS2 script to each image:
    For the first movie clip I used:
    animator = createEmptyMovieClip('animator',1);
    bg_1 = animator.attachMovie('star1','bg_1',1);
    bg_2 = animator.attachMovie('star1','bg_2',2);
    bg_1._x = -bg_1._width/2;
    bg_2._x = bg_2._width/2;
    speed = 1;
    starWidth = 950;
    animator.onEnterFrame = function() {
        bg_1._x -= speed;
        bg_2._x -= speed;
        if(bg_1._x <= -bg_1._width) bg_1._x = starWidth;
        if(bg_2._x <= -bg_2._width) bg_2._x = starWidth;
    For the second movie clip I used:
    animator = createEmptyMovieClip('animator',2);
    bg1 = animator.attachMovie('star2','bg1',1);
    bg2 = animator.attachMovie('star2','bg2',2);
    bg1._x = -bg1._width/2;
    bg2._x = bg2._width/2;
    speed = 2;
    starsWidth = 950;
    animator.onEnterFrame = function() {
        bg1._x -= speed;
        bg2._x -= speed;
        if(bg1._x <= -bg1._width) bg1._x = starsWidth;
        if(bg2._x <= -bg2._width) bg2._x = starsWidth;
    And for the third and final movie clip I used:
    animator = createEmptyMovieClip('animator',3);
    bg01 = animator.attachMovie('star03','bg01',1);
    bg02 = animator.attachMovie('star03','bg02',2);
    bg01._x = -bg01._width/2;
    bg02._x = bg02._width/2;
    speed = 3;
    starssWidth = 950;
    animator.onEnterFrame = function() {
        bg01._x -= speed;
        bg02._x -= speed;
        if(bg01._x <= -bg01._width) bg01._x = starssWidth;
        if(bg02._x <= -bg02._width) bg02._x = starssWidth;
    I thought this would work, but when I tested the movie all three movie clips moved together at the same speed. I want each movie clip to move at a different speed, but I'm completely stuck.

  • Parallax Scrolling vertically not working right

    My muse parallax scrolling page will not scroll vertically down the center.  WHen I preview it, the page shifts to the left then scrolls down.  What am I doing worng? Im using Adobe Muse CC.

    Are you getting a scrollbar at the bottom of your browser when your browser is maximized? If yes, there is likely some content (not visible perhaps) placed bit to far to the right on the page.
    Look for the same in Muse in Design View and get rid of the same.
    Share a link to the page with this effect to check if you can't locate the element causing the shift.
    Cheers,
    Vikas

  • Parallax Scrolling and Browser Magnification

    This is probably an unresolvable issue at this point, but it seems one of the BIG drawbacks to using Parallax Scrolling is that it only works as planned if the user of the site is viewing it at 100% Magnification.  Any change up or down in magnification results in a different set of parameters for final motion, and if you're using it hoping that the final location of the moving object aligns with another fixed object in the overall design in some fashion, you're in for a big disappointment, and an embarrassing result if you're a designer.  I'm hoping that there is some way in the future that the writers of this code will please include whatever math is necessary to compensate for changing browser magnification.

    I realised the problem that i was having...thanks so much. I will explain for the help of others. Avoid putting the anchor in a "Composition" element. This i did inadvertantly since i had many layers. If you put it in one of them the smoothe scrolling will not work. This possibly holds true for grouped objects. I will also post the site to show that i have finally gotten it working. Thanks Zak and all the parties that showed kindness in answering me.
    Best regards
    http://www.raiora.com/index.html

  • First Time using Parallax Scrolling!

    So I've been doing a new landing page for DJBigdad.com  -  I have included both project file and published files with in this zip to better explain myself.
    Just finished my album animation with parallax scrolling but the overall published result shows nothing!
    Here is the file! http://www.djbigdad.com/ParallaxProjects/LandingPageDJBigdad/DJBigdadLandingPage.zip
    I love this edge animate stuff its great but sometimes it doesnt work... Probably a operator error lol 
    I would greatly appreciate any advice on how to fix this!
    Thanks a ton
    DJBigdad

    to activate iphone, you should connect your iphone to your computer which should have itunes via your usb cable provided with your iphone problem. and you don't need to register an account to activate the iphone. but you need to register to download apps for iphone.
    it have to be unlocked to work with other country's normal sim card. you should have a malaysian mini sim card to make a normal at&t iphone work in malaysia and other countries.
    if you want to know about unloked phones, go to this webpage-> http://www.tgdaily.com/mobility-opinion/33600-unlocking-the-iphone-what-does-it- mean definition for unlocking--->
    Unlocked is the term used to describe mobile phones that are not tied to a particular service provider in order to be used. Many cell phones are tied to a single cellular provider at their introduction, but are later unlocked for use on many networks.

Maybe you are looking for