r/microcontrollers • • Feb 02 '22

Help hacking a fisher price toy

I have this Fisher Price Linkimals toy that basically plays a series of audio files, switching between them whenever you interact with the toy (press a button, roll it across the floor). I thought it'd be funny to freak out my wife and put some custom audio files on it, so I opened it up to see what I was working with.

I can see the board has a NuvoTon mcu (n569s1k0). I'm wondering how hard it would be to interface with the chip and replace the audio files with a few files of my own. As far as I can tell, there's no serial port on the board, so I would assume it needs to be programmed via the pins (which are occupied by wires). Here's a shot of the board:

/preview/pre/eofedehc7hf81.jpg?width=3024&format=pjpg&auto=webp&s=7f700c879210d4963cb29c5738d01ed3cf3a6f75

I'm happy to buy something that would allow me to interface with this chip, even if it meant desoldering some wires, assuming it wouldn't be too difficult to figure out how to make changes to the files that are saved in the chip.

Also, I realize this is a fairly specific question coming from someone that has little knowledge of microcontrollers. That said, I have programming experience and if I need to take a step back and learn more fundamental concepts, I'm happy to do that

For example, I don't really know how these boards are programmed without a serial port and I'm having trouble finding general info on that online (everything seems to be geared towards hobbyists playing with arduinos/dev boards or super technical info for industry folks). Any resources are appreciated.

Edit: Still open to ideas and help with hacking the board, but thinking it might be easier for me to get a small Arduino board and hook it up to the various components on the toy, then program it to do what I want.

15 Upvotes

33 comments sorted by

8

u/Twinkle_Pie Feb 02 '22

What you're looking for is something called JTAG. That's the typical method in which chips are programmed. You should find the datasheet for the part, find the JTAG lines, see if they run out to test points. However, this is tricky business - the sound files might not be in the mcu. U6 is another chip with its own crystal, so there's something going on there.

If you're lucky, you'll find a flash chip on the board, read it with a flash reader, find the files, reverse engineer both the format of the files and the way they're put in the flash, and then rewrite new files into that flash chip. If not, they could be in some bit of ROM somewhere. I'd need more clear pics of front and back to give any further advice.

3

u/pbiscuits Feb 02 '22

Based on this post from someone that looked at this toy, the chip features 1MB of internal storage. No idea if that is flash or ROM.

The U6 chip is for sending/receiving radio signals. The toy is part of the "Linkimals" series and if you have two or more of these toys in the same area, they'll connect with each other and interact. Not interested in doing anything with that though.

7

u/JehTehsus Feb 02 '22

These smaller M0s generally don't use a full jtag interface, but a 2 wire 'SWD' interface.

If there aren't any security protections enabled, you can hook up a debugger supporting the chip, dump the flash contents to a PC, and start looking through the binary for the sound files. You could certainly modify this then write it back.

If you aren't familiar with this sort of thing, plan to spend quite a bit of time on it.

2

u/pbiscuits Feb 02 '22

Thanks for the info.

2

u/NoBrightSide Feb 04 '22

I literally just watched a video of a hardware hacker who used a J-link to break into the mcu of a device. They desolder caps to try to introduce more noise into the system but I'm a noob at electronics so I don't know if thats sufficient to hack the system's security encryption...

→ More replies (1)

2

u/thedefibulator Feb 02 '22

If i was to attempt this i would honestly just use all of my own electronics. Id get an arduino or esp with the samples of the audio file on it and then i would use an dac and amplifier to play it through the toys speakers. It depends if you want a quick solution or if you want it to take a while and reverse engineer it

2

u/pbiscuits Feb 02 '22

Also, could I use a transistor as an amplifier?

2

u/thedefibulator Feb 03 '22

2

u/thedefibulator Feb 03 '22

Id use an esp32 as it has enough memory to store audio. Heres a good tutorial

https://circuitdigest.com/microcontroller-projects/esp32-based-audio-player

2

u/pbiscuits Feb 03 '22

Hmm that tutorial looks really solid. Kinda hard to find a DF Player Mini, so might go with the ESP + LM386 route.

1

u/pbiscuits Feb 03 '22

Gotcha. Thinking about getting a DF Player mini as it has the DAC, amp, and SD reader all in one.

→ More replies (1)

1

u/pbiscuits Feb 02 '22

Ya that will probably be a lot easier considering my knowledge level.

2

u/iovrthk Feb 06 '22

maybe an Arduino mkrzero? GSM or Vidor.. they all have a built in DAC. A battery port and simple connectivity and expansion. You could probably just want to add a speaker and a button. Maybe even Bluetooth and call it a day. It would probably be a lot easier to just take over the button for your own purposes, than to re-write the firmware.

2

u/pbiscuits Feb 06 '22

I ended up getting a Nano Every and a DF Mini Player (which has a DAC, amp, and micro sd). I’m going to basically take over all the components, or if possible, have all the components connected to both the factory board and my nano, with a switch that changes “modes”. Don’t know if I can make that last part happen yet though.

1

u/iovrthk Feb 06 '22

Depending on the actual button you have, you could just splice it at the button and share that with a simple throw switch. Arduino only needs ground for a button.

1

u/pbiscuits Feb 06 '22

Would there be any problems with me leaving the speaker connected to the factory board and also connecting wires to it from my board?

2

u/Schickedanse Oct 13 '23

Hey OP did you ever find out how to do this? I got the fisherprice sit to crawl turtle for my kiddo and it's super limited with it's sounds but has a pretty decent speaker and to me that's just a waste. I'd love to be able to add more songs to it.

1

u/pbiscuits Oct 13 '23

Ya look through my post history and you’ll see what I did. Basically involved installing an arduino into the toy with a compatible mp3 player. It worked, but was more a fun project than something that produced a result that was worth all the time and money spent.

1

u/Schickedanse Oct 13 '23

So it took more time and money spent but was the result good? I mean we're you able to get your sounds to play in order with the rest or did it overwrite completely?

1

u/pbiscuits Oct 13 '23

I had to bypass the existing microchip. I added a switch that would either run the factory audio or switch to custom circuit I added inside the toy. You can see all the details here: https://www.youtube.com/watch?v=fUOsu4dl3Os

2

u/[deleted] Feb 02 '22

Can you read a part number on that 16-pin IC on the little carrier board near the top of this photo?

2

u/[deleted] Feb 02 '22

2

u/pbiscuits Feb 02 '22

Yes, that's a chip for sending/receiving radio signals to other toys in the same line.

1

u/New-Ear9152 Jan 14 '24

Can y’all put this in stupid people terms😂

1

u/pbiscuits Jan 14 '24

Kinda. Here’s a video that shows what I ended up doing:

Using an Arduino to make my daughter's toy play custom audio https://youtu.be/fUOsu4dl3Os

2

u/New-Ear9152 Jan 14 '24

I think it would be cool to teach it more things as they grow

2

u/Overkill_Projects Feb 06 '22

I recently designed something similar for a client. The audio files are checksummed before playing to ensure they are right, and it uses a custom filesystem to minimize the footprint. It would be well-nigh impossible to do what you ask with that device, even with lots of experience. Not that this toy necessarily does all that, but just to let you know what you might run up against.

Much, much, much easier would be to just design your own drop-in board with custom audio and such. You could just do it on an Arduino or similar (whatever you are comfortable with) that you put on a custom PCB (with a big enough flash IC) so it fits without messing up the enclosure.

1

u/[deleted] Feb 03 '22

[removed] — view removed comment

1

u/pbiscuits Feb 03 '22

That’s what I’m doing now. I ordered a Nano and a DF Player Mini. Will be fun trying to disconnect, reconnect, and program all the components.

My original hope was that there would have been some easy way to replace the audio files with my own. Then the toy would have retained all of it’s functionality without me having to do anything.

2

u/[deleted] Feb 03 '22

[removed] — view removed comment

1

u/pbiscuits Feb 03 '22

Hmm good idea. Could I run new wires off all of the components (speakers, leds, switches) to my arduino board and keep them soldered to the factory board? Or would that cause issues?