Hi everyone. This is my first post and my first project with a picaxe and an mdfly AU5120 mp3 player. I am familiar with programming, serial comms and basic electronics but I can't seem to get this thing to work. I'm sure I'm just not doing something right and that's why I'm here. Any help would be great.
As I said, I can't seem to get this thing to play. Right now, I have the player plugged into a set set of PC speakers and it's not doing anything. I currently have pin 7 (TX) of the 40X1 going to pin 16 (RX) of the mdfly. I wrote the following code just to try and get the thing to do something.
As I understand it, though I may be wrong, "serout 7, 4800, ($XX)" should send that Hex string through the serial port of the picaxe to the player. Is this correct? If not can someone point me in the right direction? I have been using this video as a reference though he's using a different chip.
edit: I got it working! I obviously have a lot to learn about a picaxe. I didn't realize that the outputs are not only digital but they can also be a serial out. I moved the wire from pin 7 to pin 34 and modified the code from serout 7 to serout b.1 and it played!
As I said, I can't seem to get this thing to play. Right now, I have the player plugged into a set set of PC speakers and it's not doing anything. I currently have pin 7 (TX) of the 40X1 going to pin 16 (RX) of the mdfly. I wrote the following code just to try and get the thing to do something.
Code:
serout 7, 4800, ($EF)
pause 1000
main:
serout 7, 4800, ($001)
pause 500
edit: I got it working! I obviously have a lot to learn about a picaxe. I didn't realize that the outputs are not only digital but they can also be a serial out. I moved the wire from pin 7 to pin 34 and modified the code from serout 7 to serout b.1 and it played!
Last edited: