Protonerd / FX-SaberOS

System code for Arduino based Lightsaber replicas for DIYino family boards
Creative Commons Zero v1.0 Universal
92 stars 42 forks source link

speaker buzz and no sound playing #68

Closed luke2636 closed 6 years ago

luke2636 commented 6 years ago

im making a homebrew lightsaber with nano dfplayer and mpu6050 , i have wired it as per the homebrew led star schematic and im getting no sound just a load buzzing sound from the speaker, i am also powering from usb and using a 470 ohm resistor from dfplayer rx to d8

serial monitor is displaying this : size of StoreStruct: 72 32 L02⸮⸮⸮ EEPROM LOADED Initializing I2C devices... Testing device connections... MPU6050 connection successful Initializing DMP... address: 200 output: -2038

address: 202 output: -468

address: 204 output: 1686

address: 206 output: 58

address: 208 output: -2

address: 210 output: 32

Enabling DMP... Enabling interrupt detection (Arduino external interrupt 0)... DMP ready! Waiting for first interrupt... checkpoint 0 LoL

jbkuma commented 6 years ago

You either have a power or grounding issue. Make sure your battery is charged and that none of your solder joints are shorting.

Jason "Kuma" Brinkerhoff Mad Science Workshoppe, proprietor http://jbkuma.com/workshoppe

On Fri, Mar 9, 2018 at 1:31 PM, Luke Yeo notifications@github.com wrote:

im making a homebrew lightsaber with nano dfplayer and mpu6050 , i have wired it as per the homebrew led star schematic and im getting no sound just a load buzzing sound from the speaker

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Protonerd/FX-SaberOS/issues/68, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdCMKdtvI0hGOtAVrwfuP0EXuDRetnFks5tcsqFgaJpZM4Skrip .

luke2636 commented 6 years ago

im powering directly from my laptop via ftdi usb sorry this is my first electronic project so i am a noob , im using a breadboard at the mo and jumper so should have not sorting and the solder joints seem good on all of my parts

when i touch grd to vol - on dfplayer i get a 5 sec hum sound then buzzing again. i get no ignition sound when button is pressed ethier.

jbkuma commented 6 years ago

You aren't getting enough power through your FTDI adapter. It only supplies a minimal current to power the board and program it. Breadboards and jumpers often have a lot of loss in them which only compounds the issue. You can try rigging up a 5v power supply to power your breadboard for now. You probably have a wall adapter around your home you could power it from (or a drawer full if you you are like me).

Jason "Kuma" Brinkerhoff Mad Science Workshoppe, proprietor http://jbkuma.com/workshoppe

On Fri, Mar 9, 2018 at 2:38 PM, Luke Yeo notifications@github.com wrote:

im powering directly from my laptop via ftdi usb sorry this is my first electronic project so i am a noob , im using a breadboard at the mo and jumper so should have not sorting and the solder joints seem good on all of my parts

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Protonerd/FX-SaberOS/issues/68#issuecomment-371923588, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdCMEE-fnNXX--5Arnehfl96oY3HGgxks5tctongaJpZM4Skrip .

luke2636 commented 6 years ago

okay thanks i will give that a shot and hopefully that will work

Protonerd commented 6 years ago

I can confirm, USB will not be able to supply the board with a premium speaker connected to it at full volume. A homebrew will make the situation even worse. Easiest option to try is either to select a better supply (like jbkuma suggested, or simply hook up the battery), or lower the volume of the DFPlayer to about 15.

luke2636 commented 6 years ago

thanks for all your advice i have connected a 5v 1a power supply, and buzzing has ceased but now i have some more issues i have a hum playing all the time even before i ignite the blade once ignited clash swing blaster and lock up interrupts work but the hum will only last 5 second afterwards even tho the hum file in the sound file is 16 seconds long. thanks again for your help so far.

20180315_170302

20180315_170315

Protonerd commented 6 years ago

The code restart the hum sound every 5 secs if the default settings are used. You only can have problems if your hum or hum extension is shorter than 5 secs. Otherwise regarding the problem of hum playing, it is a copy error to your SD-card.

luke2636 commented 6 years ago

The sound file is the diyino prime image I dragged and dropped the content to the sd card after a full format to fat32 I'm using Windows10 and problem persist I can't seem to find what I am doing wrong I have ordered a new dfplayer from banggood to see if the issue lies there as mine is a Chinese copy from eBay

luke2636 commented 6 years ago

issue was the dfplayer it was faulty that sorted mixed up sound fonts. i changed 3w speaker to 2w and with li-ion battery instead of 5v power supply it stopped buzzing from the speaker thanks for help at the start