-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5V to 3.3V Tx/Rx lines #18
Comments
A bit of an update. I thought I'd try again with my dead DY-SV5W card, today it was working fine. It may have been a power supply problem. I had been powering by the USB connector and I'm sure I've done that in the past but it doesn't seem to work despite being able to read the files on the uSD card. Today I used the 5v-0v pin for power and the dyplayer Tx works fine. However, it doesn't work with a 1k resistor in the line. I've not tried Rx yet |
Those SMD resistors marked It's odd because all the IO pins can be used to connect buttons to, to each play 1 sound on the module, you would expect them to all have the same configuration. They do all seem to have a small capacitor connected too, maybe to debounce the buttons? I can imagine 2 resistors and a capacitor making an RC filter and causing your UART to form a kind of sawtooth wave shaped signal. You could also maybe follow the path to the pin on the chip and measure the resistance there. Or you could measure the voltage there but you would need to use an oscilloscope to check the amplitude, because a voltmeter will only measure an average voltage, which will always be lower than the signal voltage.
It depends, AVR needs In the case of AVR, |
Chris I've been down that route and had discovered the on board 1k resistors but I can't find a datasheet for the DY-SV5W. I have a pinout for a XY-V17B but although it looks to have similar logical functions, I can't assume the pins are the same. I'll take another look but the assumption I am making is the Tx/Rx lines have 1k resistors fitted. However, if logic levels are being used to drive the other IO pins they will need some resistors. I agree that the resistor capacitor combination may be unique to the Tx/Rx lines and that may be causing the signal distortion if another 1k resistor is included in the line. I have seen a diagram with capacitors to VSS on all the I/O lines. At a quick glance a PIC need 2.0V to be seen as a 1. With the DY-SV5W Tx being 3.3V and most likely going via a 1k resistor a in line resistor going to the host would seem unnecessary. |
Oh, no you don't need one on the TX of the module (RX of the PIC) for sure. |
|
@Doubletop12 Looks like this in this setup the resistors are also not present: #17 (comment) |
@SnijderC Looks like this in this setup the resistors are also not present: #17 (comment) You mean the additional inline resistors aren't there. They are there on the board for the Tx/Rx lines but not the other IO lines. It really depends on the style of board you are using. Some of the other styles have them on TX/Rx but not on the IO2-7. We really need a datasheet for the DY-SVxx to be able to get a definitive answer but it appears that users need to confirm the type of card they are using and decide for themselves if the resistors are present. These cards appear to have them |
It's been a long time, but I've added some lines to the README. |
I'm trying to confirm the need for the 1K resistors in the Tx/Rx lines with the DY-SVxxx cards or whether those devices have them installed. I'm using dyplayer, on a PIC with, the code converted to C and compilied with XC8 in Microchips MPLABX IDE. It all compiles well and test code sends the correct byte sequences to the PIC Uart. All good
The PIC (and I assume Arduino) use 5v signal levels. The data sheets for the similar XY-V17B advise the use of the 1k resistors in the lines, those cards don't have any components in the signal lines but the DY-SVxxx modules appear to have conditioning resistors already installed. When I did put a 1k resistor in the PIC Tx to DY_SV5W Rx line the signal at the DY-SV5W end was severly distorted.
In addition if a 1K resistor is put in the PIC/Arduino Rx line wouldn't that reduce the signal level when the PIC/Arduino is expecting to see a 5V Rx signal?
Any clues anybody? I can't get this to work and may have lost one of my DY-SV5W cards in trying to find out?
The text was updated successfully, but these errors were encountered: