kghunt
Posts: 383
Joined: Sun Mar 04, 2012 9:28 am

GPIO 8 Starts True?

Thu Jul 12, 2012 7:38 am

I have a buzzer attached to GPIO 8 (pin 24) and everytime I reboot my Pi it goes off like mad until I set it to false manually?

Is this just the nature of that pi and its secondary function? Should I swap the buzzer to one of the primary GPIO's or can I make it stop.

User avatar
gordon@drogon.net
Posts: 1961
Joined: Tue Feb 07, 2012 2:14 pm
Location: Devon, UK
Contact: Website

Re: GPIO 8 Starts True?

Thu Jul 12, 2012 9:21 am

kghunt wrote:I have a buzzer attached to GPIO 8 (pin 24) and everytime I reboot my Pi it goes off like mad until I set it to false manually?

Is this just the nature of that pi and its secondary function? Should I swap the buzzer to one of the primary GPIO's or can I make it stop.
Is this recent kernel? If-so, then I think it's the SPI driver - it seems to set a couple of pins to be active outputs and sets them high.

So what I did was to make sure those modules were not loaded at boot-time - if this is the issue, then create /etc/modprobe.d/gpio-blacklist.conf and put in it:

Code: Select all

blacklist spi_bcm2708
blacklist i2c_bcm2708
blacklist w1-gpio
and reboot.

To see if it is the cause, try typing lsmod and looking for those modules.

-Gordon
--
Gordons projects: https://projects.drogon.net/

kghunt
Posts: 383
Joined: Sun Mar 04, 2012 9:28 am

Re: GPIO 8 Starts True?

Thu Jul 12, 2012 10:38 am

awesome thanks got rid of that annoying buzzing sound every time I reboot :-).

User avatar
gordon@drogon.net
Posts: 1961
Joined: Tue Feb 07, 2012 2:14 pm
Location: Devon, UK
Contact: Website

Re: GPIO 8 Starts True?

Thu Jul 12, 2012 10:59 am

kghunt wrote:awesome thanks got rid of that annoying buzzing sound every time I reboot :-).
Great!

You can always use the modprobe command to re-load those modules later if you have a project that uses SPI or I2C.

-Gordon
--
Gordons projects: https://projects.drogon.net/

Return to “Interfacing (DSI, CSI, I2C, etc.)”

Who is online

Users browsing this forum: No registered users and 13 guests