Adding sound to my train controller

Enhanced mid-range devices. PIC12F1xxx and PIC16F1xxx

Re: Adding sound to my train controller

Postby Roche » Fri Jun 24, 2016 6:50 pm

Are you able to measure the voltage? The spec says 3.2 - 5.
Another thing to try - run a heavy gauge of wire from the output of your regulator - both 0V and +5, directly to the supply pins of the MP3 module, with a 0.1uF and a largish electrolytic across the supply by the module.

It seems the module uses 3.3V internally. It is suggested that a 1k resistor in the tx line (when using a serial interface) will reduce noise. I would try that in your trigger line.

On a different note, if you go to the separate power supply, if you share the ground with the existing supply, and only use the new supply for the MP3 module, you won't need to isolate the trigger line.
Roche
 
Posts: 28
Joined: Fri Jul 11, 2014 12:35 pm
PIC experience: Professional 5+ years with MCHP products

Re: Adding sound to my train controller

Postby grandpa jay » Sat Jun 25, 2016 1:12 pm

Roche
I tried the common ground and still had the static in the sound. I am going to try the optical isolators. This is the schematic that I am working on, any suggestions will be appreciated.
Jay
Attachments
TCwS 6_25.png
TCwS 6_25.png (27.41 KiB) Viewed 669 times
grandpa jay
 
Posts: 22
Joined: Wed Sep 24, 2014 9:10 pm

Re: Adding sound to my train controller

Postby Roche » Sat Jun 25, 2016 2:41 pm

Hi GPJ, you need a resistor in series with the drive to the LEDs of the opto-couplers - say about 220R, and a resistor going from the collector of the opto coupler to +5 of their respective supplies.

I'm on holiday for a week...
Roche
 
Posts: 28
Joined: Fri Jul 11, 2014 12:35 pm
PIC experience: Professional 5+ years with MCHP products

Re: Adding sound to my train controller

Postby grandpa jay » Tue Jun 28, 2016 4:28 pm

I have the sound woking with no static. I added a second power supply. My problem now is that I can not get the sleep to work. It acts like it is just stepping over it. The relay is energised when the sound is about half done. It is programmed to energize 2 sec. after the sound ends.
Jay
Attachments
TCwS.png
TCwS.png (28.73 KiB) Viewed 647 times
TCwS.c
(9.92 KiB) Downloaded 42 times
grandpa jay
 
Posts: 22
Joined: Wed Sep 24, 2014 9:10 pm

Previous

Return to 14-Bit Core (enhanced)

Who is online

Users browsing this forum: No registered users and 1 guest