Voice bonnet push button not working

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
ps_nithin
 
Posts: 33
Joined: Fri Sep 30, 2022 11:17 pm

Voice bonnet push button not working

Post by ps_nithin »

I am not able to get the push button on my voice bonnet connected to pi zero w working. I have connected another push button on another GPIO and with the same code it is working as expected. Any ideas about the possible issue with the push button on the bonnet.
This is my code which I copied from adafruit guide.

Code: Select all

import time
import board
from digitalio import DigitalInOut, Direction, Pull

button = DigitalInOut(board.D17)
button.direction = Direction.INPUT
button.pull = Pull.UP

while True:
  if not button.value:
    print("Button pressed")
  time.sleep(0.01)

User avatar
dastels
 
Posts: 15653
Joined: Tue Oct 20, 2015 3:22 pm

Re: Voice bonnet push button not working

Post by dastels »

If you have a meter you can test the button directly (without the Pi powered off or disconnected). Opposite corners should be connected when it is pressed.

Dave

User avatar
ps_nithin
 
Posts: 33
Joined: Fri Sep 30, 2022 11:17 pm

Re: Voice bonnet push button not working

Post by ps_nithin »

I checked with a multimeter continuity test and the switch is not faulty.
Thanks,

User avatar
dastels
 
Posts: 15653
Joined: Tue Oct 20, 2015 3:22 pm

Re: Voice bonnet push button not working

Post by dastels »

It's sounding like a problem between the button and the GPIO header.

Please email [email protected] with a link to this thread, your order number, and request the replacement of one Voice Bonnet.

Dave

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”