home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.raspberry-pi      Raspberry Pi computers & related hardwar      26,127 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 24,329 of 26,127   
   Theo to The Natural Philosopher   
   Re: Need help with PI PICO...   
   24 Mar 24 09:39:30   
   
   From: theom+news@chiark.greenend.org.uk   
      
   The Natural Philosopher  wrote:   
   > It would seem from the pin states that it gets permanently stuck in   
   >   
   > while(!gpio_get(ULTRASONIC_IN))   
   >                 ;   
   >   
   > Which as understand it is waiting for the module (HCSR04) to *start* to   
   > send a pulse.   
      
   Can you scope it to see if the module is actually sending a pulse?   
      
   Is the pulse perhaps too short for the Pico to detect?  eg if the loop or   
   gpio_get() function took some time, it could be the signal goes 0-1-0 in the   
   middle of a loop iteration and so the gpio_get() never sees it go 1.   
      
   Theo   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca