I’d like to add the TEA5767 to my project. It looks like it’s already done.
I see this
which I’m trying to compare with
which is what I’m using.
I scoured the code and the only difference seems to be the radio. But I don’t want to break everything to pieces because at this point if anything happened to „the music box“ my kids would riot. I do know that I was using the wrong code the first time which made it not work so I’m nervous of breaking it.
Can I just drop this firmware on or am I asking for trouble?
The firmwares are based on each other, that’s why the only difference is the radio support. So yes, you can enable the radio in the first one you show, flash it to your box and everything should stay the same - plus the radio. BUT it requires three new speech files, which you need to generate and add to the mp3 folder:
Be aware though, the radio module is connected to the i2c bus on Pins A4/A5. A4 is the 5th Button (if you use 5 Buttons), so you need to go back to 3 Buttons or put that Button on another Pin. I’d ask @Michi how he did that (he’s the creator of the fork with the radio support). I don’t know how tech savvy you are, so this might be the point where you are asking for trouble.
I think I can follow that. I can use quick time to make the MP3.
I do have 5 buttons up and running at this point. I have a Uno so I am out of analog. Plenty of digital.
I don’t see analog read and slc and sla are only those two pins…so could I just move the button on A4 to a digital pin? Not as pretty but not that bad, either.
Perfect. I should be able to show you the result tomorrow. Also I am going to post a DIY video in English giving you full credit so my 4H students can do one if they want. Besides the obvious parts and tweaks I need to make to the code do you have any suggestions?
Some months ago I built another box with 5 buttons and an audio mixer using digital potentiometers. And of course I had to adjust the button configuration accordingly. Not sure where I patched the 5th button through, but I can check that and give you this information later.
Michi had a diagram of how to wire up all the core components. I made the changes to the code and got it to compile just fine. YAY. Recording the voice once the recipients of this device stop making noise for the day. Which is like never…anyway…
So I’ve run into a major issue…I don’t have an RFID card writer and despite my valiant efforts using the RFID MFRC522 reader sketches and my tags I cannot call up the radio.
I have used a sketch to edit the bites like the RFID program on the android but the rest of it is missing some of the FF
Blockquote uint8_t writeNfcTagStatus = writeNfcTagData(bytesToWrite, sizeof(bytesToWrite)); //this is to make cards
I had someone help me. I uncommented out the above
// uint8_t radioBytesToWrite = {0x13, 0x37, 0x70, 0x01, 0x01, 88, 9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; //comment to make radio tags 89, 1 is 89.1 FM
// uint8_t writeNfcTagStatus = writeNfcTagData(radioBytesToWrite, sizeof(radioBytesToWrite)); //comment to make radio tags
then my friend wrote this for me. You change and upload and then save the tag. Then rinse and repeat for every tag.
It works very well, however, I’m now having terrible trouble getting the radio to play when the box is shut.
The kids, however, are rioting and want their box back. So I guess I will put TonUino 1 together and work on TonUino 2. That’s how this seems to go for everyone!
you might want to take a look at the following post Vorstellung: ElTon - Elias' TonUINO mit FM Radio. There are also some generic NFC Apps available for iOS, but I’ve never tried them. @marc s TonUINO NFC Tools works best for me. Of course you’ll need either NFC capable device (Android Smartphone or iPhone) to use any of these NFC tools
BTW: i used pin D8 for the 5th button on my second box