I'm trying to do something really simple but it's not working (probably me again)...
I would like the Pico to communicate with an MDFly TF Card MP3 Player Module via Serial1 but it doesn't seem to be doing it. The player is powered and in it's ready state, and the sdcard is loaded with 01-10.mp3 as required.
When the trigger pin on Pico is pulled low, the setWatch fires as evidenced by the "TEST" print in console window, but no response is received from the player.
Attached are some data sheet pages for the player.
Can you guys see anything obvious?
/* trigger pin ~ active low*/
var START_PIN = B1;
START_PIN.mode('input_pullup');
USB.setConsole();
Serial1.setup(9600, {rx:B7,tx:B6,bytesize:8,stopbits:1,parity:null});
Serial1.on('data', function (data) {console.log(data);});
function onInit(){
setWatch(function(e){
Serial1.println("0x01");
print("TEST");
}, START_PIN, {repeat:1, debounce : 100, edge:'falling'});
}
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
HI,
I'm trying to do something really simple but it's not working (probably me again)...
I would like the Pico to communicate with an MDFly TF Card MP3 Player Module via Serial1 but it doesn't seem to be doing it. The player is powered and in it's ready state, and the sdcard is loaded with 01-10.mp3 as required.
When the trigger pin on Pico is pulled low, the setWatch fires as evidenced by the "TEST" print in console window, but no response is received from the player.
Attached are some data sheet pages for the player.
Can you guys see anything obvious?
3 Attachments