element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum GPIO set-reset in 50 ns
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 11 replies
  • Subscribers 678 subscribers
  • Views 3058 views
  • Users 0 members are here
  • raspberry_pi
Related

GPIO set-reset in 50 ns

Former Member
Former Member over 11 years ago

hi.

 

I am new to Pi. What I want to do is making a delay function of 50ns in python or C. I have not written  a single code for in python till now.

Please tell me if its possible or not.Should I over-clock the Pi to get that delay?

  • Sign in to reply
  • Cancel
Parents
  • Problemchild
    0 Problemchild over 11 years ago

    I see here folk offering you advice on a 50 uS delay saying you can use an Arduino etc how ever you are asking for a 50ns delay this is like 1000 times shorter.

    Are you sure you require 50ns?? If so then the other solutions simply won't do as 50 ns is actually less than 1 clock period on say an Arduino image

     

    If you need to do some computation  on an input and get an out put in say 50 ns then I would suggest a controller with a clock speed of several 100's of MHZ to have

    a chance of getting the job done. I would actually suggest you get an XMOS Startkit from E14/Farnell and then you will get your 50ns quite easily !

     

    With regards to doing this with RPI as folk have alluded to it may be possible in assembler to get the right delay but because you are using a non realtime O/S your code will be randomly interupted by that OS so your delays can easily be way off. To be honest you need to tell the community more about what you are trying to do to get better answers.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • iagorubio
    0 iagorubio over 11 years ago in reply to Problemchild

    You are right I did not saw he was talking about nano-seconds.

     

    There is no Atmega capable of running even near to that speed.

     

    The project he is into is this one Raspberry Pi with WS2812b strips

     

    This was what got me confused because for that project he was talking about a refresh rate of 50Hz, so I did not digged further on what he was trying to do.

     

    I don't know how he somewhat got into this math he would need a signal in the nanoseconds range.

     

    Anyway there is also the problem of the 1080Amps/5.4KW  Peter calculated was required to drive his project, so I guess he will need to go for some good hardware to have a 1080Amps of current pulsing with a signal in the nanoseconds range.

     

    In that kind of timing even the signal velocity must be taken into account, because the signal would need some time to get to  the end of the 300 meters of led strips.

     

    So I'm sorry, but I got utterly confused with this project.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • iagorubio
    0 iagorubio over 11 years ago in reply to Problemchild

    You are right I did not saw he was talking about nano-seconds.

     

    There is no Atmega capable of running even near to that speed.

     

    The project he is into is this one Raspberry Pi with WS2812b strips

     

    This was what got me confused because for that project he was talking about a refresh rate of 50Hz, so I did not digged further on what he was trying to do.

     

    I don't know how he somewhat got into this math he would need a signal in the nanoseconds range.

     

    Anyway there is also the problem of the 1080Amps/5.4KW  Peter calculated was required to drive his project, so I guess he will need to go for some good hardware to have a 1080Amps of current pulsing with a signal in the nanoseconds range.

     

    In that kind of timing even the signal velocity must be taken into account, because the signal would need some time to get to  the end of the 300 meters of led strips.

     

    So I'm sorry, but I got utterly confused with this project.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • iagorubio
    0 iagorubio over 11 years ago in reply to iagorubio

    May be that confusion came from the Adafruit page for those led strips.

     

    http://www.adafruit.com/products/1138

     

    • Second, to get high density, the controller chip is inside the LED, which is kind of cool, but also means that the chip only uses a single pin for input and a single pin for output. The protocol used is very very timing-specific and can only be controlled by microcontrollers with highly repeatable 100nS timing precision. We have example code for using with the Arduino Uno/Mega microcontroller at 8MHz and 16MHz, but it will not work with the Raspberry Pi, Basic Stamp, NETduino, any other interpreted/virtual machine microprocessor or any processor slower than 8 MHz. For those processors, check our 32 LED/meter digital LED strip which has SPI-like input/output and works well with Pi, NETduino, and other processors.

    I guess they got the unit wrong because I would like to see that library with an 8Mhz device, giving a clock signal of 1/100,000,000,000 sec.

     

    ... or may be I am getting it all wrong again ... bed time I guess.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Problemchild
    0 Problemchild over 11 years ago in reply to iagorubio

    Um are we having some type of language fail here. Many of those strips are like 60 LEDs per M and 5 M long giving 300 LEDs per strip.

    So the question here is he driving a number of "300 LED long Strips" or 300x strips !!

     

    I find strips like this tend to take 1-2Amps per Metre depending on the colour and Brightness etc so each strip can be 5-10A quite easily.

     

    Unfortunately we are seeing more and more project ideas with poorly fleshed out specs so the advice is equally vague or poor.

    Can Parag explain his project and give exact numbers

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube