Condition 1: When the bend sensor is over bending and press sensor is pressed a lot, the piezo’s sound alert will start, and the LED will blink for 1.5s.
Condition 2: When only the bend sensor is over bending, the piezo’s sound alert will start for a short time, and the LED will blink for 0.5s.
Condition 3: When only press sensor is pressed a lot, the piezo’s sound alert will start for a short time, and the LED will blink for 1s.
Condition 4: When nothing on the press sensor and bend sensor, the LED and will piezo’s sound alert keep off.
(Only code about piezo and I will try it on breadboard when I get another breadboard)
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .