Liste des Groupes | Revenir à cs raspberry-pi |
That is, some asynchrounous event in this sequenceif you change the wait body to include a counter then you could realize that when the counter had reached a high number - you missed the pulse.
gpio_put(ULTRASONIC_OUT,1);
sleep_us(10);
gpio_put(ULTRASONIC_OUT,0); //reset the input
//if asynch event lasting more than 100uS occurs here...
// wait for echo pulse start
while(!gpio_get(ULTRASONIC_IN))
;
//then the low-high-low echo pulse will never be detected.
Date | Sujet | # | Auteur | |
23 Mar 24 | Need help with PI PICO... | 35 | The Natural Philosopher | |
23 Mar 24 | Re: Need help with PI PICO... | 30 | Ahem A Rivet's Shot | |
24 Mar 24 | Re: Need help with PI PICO... | 29 | The Natural Philosopher | |
24 Mar 24 | Re: Need help with PI PICO... | 27 | Ahem A Rivet's Shot | |
24 Mar 24 | Re: Need help with PI PICO... | 26 | The Natural Philosopher | |
25 Mar 24 | Re: Need help with PI PICO... | 25 | Pancho | |
25 Mar 24 | Re: Need help with PI PICO... | 24 | The Natural Philosopher | |
26 Mar 24 | Re: Need help with PI PICO... | 1 | The Natural Philosopher | |
26 Mar 24 | Re: Need help with PI PICO... | 6 | Ahem A Rivet's Shot | |
26 Mar 24 | Re: Need help with PI PICO... | 5 | The Natural Philosopher | |
26 Mar 24 | Re: Need help with PI PICO... | 4 | David Higton | |
27 Mar 24 | Re: Need help with PI PICO... | 3 | The Natural Philosopher | |
28 Mar 24 | Re: Need help with PI PICO... | 2 | Robert Riches | |
28 Mar 24 | Re: Need help with PI PICO... | 1 | The Natural Philosopher | |
26 Mar 24 | Re: Need help with PI PICO... | 12 | Pancho | |
27 Mar 24 | Re: Need help with PI PICO... | 11 | The Natural Philosopher | |
27 Mar 24 | Re: Need help with PI PICO... | 2 | David Higton | |
27 Mar 24 | Re: Need help with PI PICO... | 1 | The Natural Philosopher | |
29 Mar 24 | Re: Need help with PI PICO... | 8 | Pancho | |
29 Mar 24 | Re: Need help with PI PICO... | 6 | The Natural Philosopher | |
29 Mar 24 | Re: Need help with PI PICO... | 2 | Pancho | |
29 Mar 24 | Re: Need help with PI PICO... | 1 | The Natural Philosopher | |
30 Mar 24 | Re: Need help with PI PICO... | 3 | The Natural Philosopher | |
30 Mar 24 | Re: Need help with PI PICO... | 2 | Pancho | |
30 Mar 24 | Re: Need help with PI PICO... | 1 | The Natural Philosopher | |
29 Mar 24 | Re: Need help with PI PICO... | 1 | druck | |
28 Mar 24 | Re: Need help with PI PICO... | 2 | Björn Lundin | |
28 Mar 24 | Re: Need help with PI PICO... | 1 | The Natural Philosopher | |
29 Mar 24 | Re: Need help with PI PICO... | 2 | Michael Schwingen | |
29 Mar 24 | Re: Need help with PI PICO... | 1 | The Natural Philosopher | |
24 Mar 24 | Re: Need help with PI PICO... | 1 | Michael Schwingen | |
24 Mar 24 | Re: Need help with PI PICO... | 4 | Theo | |
24 Mar 24 | Re: Need help with PI PICO... | 3 | The Natural Philosopher | |
24 Mar 24 | Re: Need help with PI PICO... | 1 | Michael Schwingen | |
24 Mar 24 | Re: Need help with PI PICO... | 1 | Theo |
Les messages affichés proviennent d'usenet.