Giter Site home page Giter Site logo

Comments (5)

rsta2 avatar rsta2 commented on September 8, 2024

I will try to reproduce this. Will need some time.

from circle.

rsta2 avatar rsta2 commented on September 8, 2024

Unfortunately I cannot reproduce the problem. I have tried the source code in your initial comment on a Raspberry Pi Zero. I did only change the line

CGPIOPin clockPin(26, GPIOModeInput, &m_GPIOManager);

to

CGPIOPin clockPin(26, GPIOModeInputPullDown, &m_GPIOManager);

to enable the internal pull down resistor. When I connect GPIO26 to 3.3V I get one or some more "Interrupt rising edge" message(s) (because the connection is bouncing) but this effect is over after some milliseconds. There may be also some bouncing when the connection is removed.

But I cannot reproduce the effect that the rising edge interrupt is repeated for a longer time range. That means for me the interrupt condition is cleared successfully here and there should be some (oscillating) hardware influence which triggers the interrupt again and again.

from circle.

smuehlst avatar smuehlst commented on September 8, 2024

Unfortunately I cannot reproduce the problem. ...

Thank you for trying to reproduce my problem.

It looks like I might have a hardware problem then. The strange thing is that a logic analyzer attached to the same pin doesn't show any oscillations, so the Raspberry Pi itself might be broken.

I will try your modification with GPIOModeInputPullDown tomorrow to see whether it makes a difference.

from circle.

rsta2 avatar rsta2 commented on September 8, 2024

Yes, that's strange. I also think there must be a hardware problem with that GPIO pin.

from circle.

smuehlst avatar smuehlst commented on September 8, 2024

The symptom that I described occured in a larger breadboard setup. I built a minimal test circuit with the push button and the external pull-down resistor from scratch, and now the above test program works as expected. So the symptom must have been created by noise in the breadboard setup.

Please excuse the confusion. I should have done that isolated test before opening issue.

from circle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.