0

Pigrrl zero and Adafruit MAX98357 I2S Class-D Mono Amp
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/
Please be positive and constructive with your questions and comments.

Re: Pigrrl zero and Adafruit MAX98357 I2S Class-D Mono Amp

by joe7dust on Fri Jun 24, 2016 11:29 pm

tronicgr wrote:
joe7dust wrote:
tronicgr wrote:I was using double sticky tape to mount it and avoid it touching the battery. I tried both boards I had floating on air away from the battery at first and still had no sound out of it.

Another thing I noticed is the volume mixer inside the retropie shows always 0% . Is that normal?

And I get this message when I go to terminal:

Image

Any suggestions?

Thanks
Thanos


That looks very crisp, much better than my 320x240 display. What screen is that?



Hi Joe,

It's the 2.2 inch 320x240 pitft from adafruit. It is SPI but still very fast and can handle 60hz frame rate!!!

https://www.adafruit.com/products/2315

See video of it here:
https://youtu.be/ct3Clmvc-KQ

Thanks
Thanos


Wow thanks for the prompt reply. I am really impressed your little screen is so clear. I am using a composite video 3.5" and I can hardly read the terminal text at 320x240 (supposedly)

joe7dust
 
Posts: 17
Joined: Sun Jun 05, 2016 10:53 pm

Re: Pigrrl zero and Adafruit MAX98357 I2S Class-D Mono Amp

by tronicgr on Fri Jun 24, 2016 11:45 pm

jpete24 wrote:I've got a tutorial up of how to do all of this. Thanks to Thanos for all of his help, and hopefully people find this useful!

https://cdn.thingiverse.com/assets/7a/8 ... torial.pdf

Link to Version 3 Case with Speaker Setup and Standoffs for Tighter Connection on the Case - http://www.thingiverse.com/thing:1621907/



Hi, thanks for the photo and the tutorial pdf. I noticed an error on the second page though. The DIN should connect to gpio 21, not gpio 18.

Thanks!
Thanos

tronicgr
 
Posts: 76
Joined: Wed Feb 03, 2016 1:48 pm

Re: Pigrrl zero and Adafruit MAX98357 I2S Class-D Mono Amp

by tronicgr on Fri Jun 24, 2016 11:57 pm

joe7dust wrote:
tronicgr wrote:
joe7dust wrote:
That looks very crisp, much better than my 320x240 display. What screen is that?



Hi Joe,

It's the 2.2 inch 320x240 pitft from adafruit. It is SPI but still very fast and can handle 60hz frame rate!!!

https://www.adafruit.com/products/2315

See video of it here:
https://youtu.be/ct3Clmvc-KQ

Thanks
Thanos


Wow thanks for the prompt reply. I am really impressed your little screen is so clear. I am using a composite video 3.5" and I can hardly read the terminal text at 320x240 (supposedly)


I have build a Gameboy Zero too with 3.5inch composite screen and I agree. I don't think it's resolution is actually 320x240.. looks more like 128x96...

But I like the bright colors of it.

https://www.youtube.com/watch?v=zJlBMfedyMM

Thanks
Thanos
Last edited by tronicgr on Sat Jun 25, 2016 12:26 am, edited 1 time in total.

tronicgr
 
Posts: 76
Joined: Wed Feb 03, 2016 1:48 pm

Re: Pigrrl zero and Adafruit MAX98357 I2S Class-D Mono Amp

by joe7dust on Sat Jun 25, 2016 12:04 am

Careful, I think this is only for discussing adafruit screens.

joe7dust
 
Posts: 17
Joined: Sun Jun 05, 2016 10:53 pm

Re: Pigrrl zero and Adafruit MAX98357 I2S Class-D Mono Amp

by tronicgr on Sat Jun 25, 2016 12:30 am

joe7dust wrote:Careful, I think this is only for discussing adafruit screens.


Lol, I clearly support adafruit and their great products! I made almost all Pigrrl consoles cause they are so cool. But we are talking about DIY here so I like trying out other builds to keep myself amused of the possibilities!

Thanks
Thanos

tronicgr
 
Posts: 76
Joined: Wed Feb 03, 2016 1:48 pm

Re: Pigrrl zero and Adafruit MAX98357 I2S Class-D Mono Amp

by jpete24 on Sat Jun 25, 2016 7:14 am

tronicgr wrote:
jpete24 wrote:I've got a tutorial up of how to do all of this. Thanks to Thanos for all of his help, and hopefully people find this useful!

https://cdn.thingiverse.com/assets/7a/8 ... torial.pdf

Link to Version 3 Case with Speaker Setup and Standoffs for Tighter Connection on the Case - http://www.thingiverse.com/thing:1621907/



Hi, thanks for the photo and the tutorial pdf. I noticed an error on the second page though. The DIN should connect to gpio 21, not gpio 18.

Thanks!
Thanos


Thanks! Got it and updated the page - https://cdn.thingiverse.com/assets/17/f ... torial.pdf

jpete24
 
Posts: 71
Joined: Tue May 17, 2016 2:58 pm

Re: Pigrrl zero and Adafruit MAX98357 I2S Class-D Mono Amp

by jpete24 on Sun Jun 26, 2016 12:10 am

I created a video to provide an overview of everything - https://www.youtube.com/watch?v=3qAFcTGXkjs

jpete24
 
Posts: 71
Joined: Tue May 17, 2016 2:58 pm

Re: Pigrrl zero and Adafruit MAX98357 I2S Class-D Mono Amp

by jpete24 on Sun Jun 26, 2016 8:57 pm

By the way, that GPIO Halt on Button 4 was a really drag. I don't know how many times I accidentally bumped that. I uninstalled it like this:

Code: Select all | TOGGLE FULL SIZE
sudo rm /usr/local/bin/gpio-halt.c


That removes the file

Code: Select all | TOGGLE FULL SIZE
sudo nano /etc/rc.local


Once you're editing the file, delete the following text "/usr/local/bin/gpio-halt &", Then Control-X and save the edits.

Code: Select all | TOGGLE FULL SIZE
sudo reboot


Now you won't have this issue with the TFT button reseting your device.

jpete24
 
Posts: 71
Joined: Tue May 17, 2016 2:58 pm

Re: Pigrrl zero and Adafruit MAX98357 I2S Class-D Mono Amp

by tronicgr on Sun Jun 26, 2016 10:40 pm

Yes, I happen to accidentally press it too, but I don't really have ANY other free GPIO pin to use for shutdown, so I used this one...

Thanks for the instructions how to remove it, as someone else might not want the shutdown function, or reuse it in retropie for something else.

Thanks
Thanos

tronicgr
 
Posts: 76
Joined: Wed Feb 03, 2016 1:48 pm

Re: Pigrrl zero and Adafruit MAX98357 I2S Class-D Mono Amp

by tronicgr on Thu Jun 30, 2016 11:50 am

jpete24 wrote:By the way, that GPIO Halt on Button 4 was a really drag. I don't know how many times I accidentally bumped that. I uninstalled it like this:

Code: Select all | TOGGLE FULL SIZE
sudo rm /usr/local/bin/gpio-halt.c


That removes the file

Code: Select all | TOGGLE FULL SIZE
sudo nano /etc/rc.local


Once you're editing the file, delete the following text "/usr/local/bin/gpio-halt &", Then Control-X and save the edits.

Code: Select all | TOGGLE FULL SIZE
sudo reboot


Now you won't have this issue with the TFT button reseting your device.


Congrats! You got featured on Adafruit blog!!!

https://blog.adafruit.com/2016/06/30/pi ... gpetersen/

tronicgr
 
Posts: 76
Joined: Wed Feb 03, 2016 1:48 pm

Re: Pigrrl zero and Adafruit MAX98357 I2S Class-D Mono Amp

by jpete24 on Thu Jun 30, 2016 11:54 am

I saw that! I threw you a kudos on twitter (to your Google+ page). Thanks for all your help on this project. This one was pretty interesting, and went a lot quicker than I originally thought it would take. Those small I2S amps are really the ticket on something like this.

jpete24
 
Posts: 71
Joined: Tue May 17, 2016 2:58 pm

Re: Pigrrl zero and Adafruit MAX98357 I2S Class-D Mono Amp

by jpete24 on Thu Jun 30, 2016 11:32 pm

Did you end up printing my V3 of the case? I have a couple spare volume controls if you want me to send them to you. Let me know if you need a V3.1 because of your battery....

jpete24
 
Posts: 71
Joined: Tue May 17, 2016 2:58 pm

Re: Pigrrl zero and Adafruit MAX98357 I2S Class-D Mono Amp

by tronicgr on Fri Jul 01, 2016 9:28 am

jpete24 wrote:Did you end up printing my V3 of the case? I have a couple spare volume controls if you want me to send them to you. Let me know if you need a V3.1 because of your battery....


Hi,

No, I didn't print the V3 because of the battery size. So yes if you could fix a V3.1 for the extra battery size I would be able to transfer everything to the new case.

Thanks for the offer, I already ordered volume controls from ebay and waiting for them, so no need to send me, perhaps someone else could use them instead.

You are doing great job!

Thanks
Thanos

tronicgr
 
Posts: 76
Joined: Wed Feb 03, 2016 1:48 pm

Re: Pigrrl zero and Adafruit MAX98357 I2S Class-D Mono Amp

by jpete24 on Fri Jul 01, 2016 11:13 am

tronicgr wrote:
jpete24 wrote:Did you end up printing my V3 of the case? I have a couple spare volume controls if you want me to send them to you. Let me know if you need a V3.1 because of your battery....


Hi,

No, I didn't print the V3 because of the battery size. So yes if you could fix a V3.1 for the extra battery size I would be able to transfer everything to the new case.

Thanks for the offer, I already ordered volume controls from ebay and waiting for them, so no need to send me, perhaps someone else could use them instead.

You are doing great job!

Thanks
Thanos


Just for you, Version 3.1 - http://www.thingiverse.com/thing:1621907

jpete24
 
Posts: 71
Joined: Tue May 17, 2016 2:58 pm

Re: Pigrrl zero and Adafruit MAX98357 I2S Class-D Mono Amp

by tronicgr on Fri Jul 01, 2016 12:41 pm

jpete24 wrote:
tronicgr wrote:
jpete24 wrote:Did you end up printing my V3 of the case? I have a couple spare volume controls if you want me to send them to you. Let me know if you need a V3.1 because of your battery....


Hi,

No, I didn't print the V3 because of the battery size. So yes if you could fix a V3.1 for the extra battery size I would be able to transfer everything to the new case.

Thanks for the offer, I already ordered volume controls from ebay and waiting for them, so no need to send me, perhaps someone else could use them instead.

You are doing great job!

Thanks
Thanos


Just for you, Version 3.1 - http://www.thingiverse.com/thing:1621907



Wow! Thanks!! That was fast

I'll build it Tuesday perhaps between other 3Dr print jobs.

Thanks
Thanos

tronicgr
 
Posts: 76
Joined: Wed Feb 03, 2016 1:48 pm

Please be positive and constructive with your questions and comments.