Sound problems

Post Here To Discuss The Super Pixel Bros Video Game

Moderators: Chuckt, Garth, bitfogav

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Sound problems

Post by brad » Wed Sep 05, 2012 10:19 pm

Ill check it out and get back to you guys :)

User avatar
bitfogav
Moderator
Moderator
Posts: 915
Joined: Sun Mar 28, 2010 9:03 pm
Location: United Kingdom
Contact:

Re: Sound problems

Post by bitfogav » Wed Sep 05, 2012 10:30 pm

I Have been running some basic SF code on the super pixel bros board with the 18f4550 and sending just the commands to the soundchip, my results show that playing a song everything works fine, but when selecting a FX sound I get a constant buzz from the buzzer.

I have looked over Stacys soundchip code and I can't see anything out of sync.

Will have a further look at this later :)
If you don't know what Voltage your country is using, you shouldn't be doing electronics ;-)

User avatar
bitfogav
Moderator
Moderator
Posts: 915
Joined: Sun Mar 28, 2010 9:03 pm
Location: United Kingdom
Contact:

Re: Sound problems

Post by bitfogav » Thu Sep 06, 2012 6:09 am

I think ive fixed it? :)

Ive changed Stacys Soundchip code for the Super Pixel Bros Soundchip, of course I dont take any credit for this has its all Stacys work :)



Programme this to the Soundchip, you can do it using your Pickit 2 but you will need to download the device file, all the info was on the link on the previous page.
**sound_fix.rar***

(*EDIT* by Bitfogav)
Ive removed the soundchip sound fix file has this doesn't seem to be the 100% fix for the sound constantly buzzing, the problem seems to be the S5080 transistor. (replace it with a 2n2222a).
If you don't know what Voltage your country is using, you shouldn't be doing electronics ;-)

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Sound problems

Post by brad » Thu Sep 06, 2012 7:45 am

Nice work bitfogav!

I was going to suggest connecting a pull-down resistor between ground and pin 5 of the audio chip. 10K ohms would do the job nicely :)

mackletus
semi-newbie
semi-newbie
Posts: 20
Joined: Fri Aug 31, 2012 8:01 am
Location: Florida
Contact:

Re: Sound problems

Post by mackletus » Thu Sep 06, 2012 9:39 am

Excellent,

Just waiting for a socket for my chip, didn't have any at hand, so I'll be easier if I have to work on it again.

I'll try the pull-down too, because I think even with the software fix there is some noise in the sound.

I'll let you know how it goes

Thanks for the help

Mackletus

User avatar
bitfogav
Moderator
Moderator
Posts: 915
Joined: Sun Mar 28, 2010 9:03 pm
Location: United Kingdom
Contact:

Re: Sound problems

Post by bitfogav » Fri Sep 07, 2012 4:04 am

mackletus wrote:Excellent,
I'll try the pull-down too, because I think even with the software fix there is some noise in the sound.
Mackletus
Mackletus I would remove the S5080 transistor and replace it with a 2n2222a.

I removed the S5080 from my Super Pixel Bros Broad and replaced it with a 2n2222a (not a p2n2222a) and reprogrammed the Original Soundchip code and everything now works with the Original soundchip code, NO constant buzzing!!.. that explains why you haven't had the same issue Brad?.

My S5080 is now in the bin :lol:
If you don't know what Voltage your country is using, you shouldn't be doing electronics ;-)

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Sound problems

Post by brad » Fri Sep 07, 2012 7:30 am

Now that I think about it, that would have been the first thing I should have thought of. If you guys both have the S5080 and ARE having problems, and I have the 2n2222a and am NOT having problems then that would be a likely cause!

I'll let iTead know.

Good work team!

mackletus
semi-newbie
semi-newbie
Posts: 20
Joined: Fri Aug 31, 2012 8:01 am
Location: Florida
Contact:

Re: Sound problems

Post by mackletus » Sat Sep 08, 2012 9:08 am

LOL

I just got my socket for the Sound Chip and de-soldered re-soldered the whole thing...... :evil:

I kind of felt suspicious about that transistor from the beginning :mrgreen:

Now I just need a 2N2222A

Will a Mil Spec TO-18 package 2N2222A work the same?. Mil Spec just sounds Bad Ass :twisted:

Thanks again,

Mackletus

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Sound problems

Post by brad » Sat Sep 08, 2012 12:54 pm

Yep your Military standard device should work fine.

You can solder it in with your mil spec flame thrower :)

User avatar
bitfogav
Moderator
Moderator
Posts: 915
Joined: Sun Mar 28, 2010 9:03 pm
Location: United Kingdom
Contact:

Re: Sound problems

Post by bitfogav » Sun Sep 09, 2012 1:53 am

If you are interested in the code I put together to test the sounds on my SPB then you can find it link below :)

SPB Sound Test
If you don't know what Voltage your country is using, you shouldn't be doing electronics ;-)

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Sound problems

Post by brad » Sun Sep 09, 2012 11:04 pm

Have just downloaded - thanks bitfogav!

mackletus
semi-newbie
semi-newbie
Posts: 20
Joined: Fri Aug 31, 2012 8:01 am
Location: Florida
Contact:

Re: Sound problems

Post by mackletus » Mon Sep 10, 2012 3:18 am

:(
Patiently waiting for my new Mil Spec 2N222NA Transistor...

ZZZZZZZZ.......

Wifey asked to keep the flame thrower outside... I think we need new curtains. :P

I'll try your programme as soon as I fix the SPB.

Thanks again for all the help.

MacKletus

mackletus
semi-newbie
semi-newbie
Posts: 20
Joined: Fri Aug 31, 2012 8:01 am
Location: Florida
Contact:

Re: Sound problems

Post by mackletus » Fri Sep 14, 2012 4:27 am

Finally.
photo.JPG
Mil Spec Transistor
photo.JPG (103.29 KiB) Viewed 19875 times
Ready for war.... lol

User avatar
bitfogav
Moderator
Moderator
Posts: 915
Joined: Sun Mar 28, 2010 9:03 pm
Location: United Kingdom
Contact:

Re: Sound problems

Post by bitfogav » Fri Sep 14, 2012 5:42 am

Nice!!! :D
If you don't know what Voltage your country is using, you shouldn't be doing electronics ;-)

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Sound problems

Post by brad » Fri Sep 14, 2012 9:03 am

Careful! That thing could take out the LED!

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 7 guests