My project is a button controlled siren with different LED transitions. You can change the siren sound with each press.
We used a TI FDC1004 breakout with an Arduino to measure liquid level in a bottle using the capacitance between two adhesive copper strips.
by Team ProtoCentral
Please suggest me any cheap alternative...this breakout board has a 24 bit capacitive to digital converter ic...Can you suggest me any cheaper IC that can be used for the same purpose...Please reply! 😯
Transition from 1st Siren to another one can be controlled by the push-button but it should be pressed at an appropriate moment(when tone is low). The reset button after the 7th Siren(last one) is compulsory. You can't go to any of the tones after the last siren starts sounding although by changing the code. The issue is solved only by using the Interrupts.
Bro...I am facing the same problem in my project too...I have figured it out that, By pressing the button at a specific moment will changes the tone/transition.(Your button will work if you press the button at the time when the tone is low.) To alleviate from this problem... you can check for the state changing from low to high rather than simply checking for the pin(button pin) is high on an interval. That means we have to use the "INTERRUPTS" so that it may react to the button events instantaneously regardless of what is happening inside your void loop().
I haven't applied it yet but I will notify you when upload the new code! You might understand Interrupts from following link:
Or connect with your social account:
New here? Create an account