Це відео не доступне.
Перепрошуємо.

#205

Поділитися
Вставка
  • Опубліковано 12 лис 2020
  • An Internet Streaming Radio using an ESP32, a VS1053 MP3 decoder, and an ILI6341 TFT.
    www.pcbway.com First order free! 2-sided PCB just $5 for 10 pieces. Assembly for 10-pieces just $30. PCB Prototyping the easy way - see my video #129 for Hands-On details.
    An Internet Radio Player for around $20 (without a case) can't be all bad and you get to build it too!
    This *Internet Radio* was written from the ground up so that I could learn how it all worked. As a beta version 0.1 I think it's OK to release onto my unsuspecting UA-cam viewers!
    Although we don't really go through the code (there's over 900 lines and counting) I do explain the crux of connecting to a streaming radio URL and how we get the data stream - along with the Artist and Track information, if you want.
    This is a work in progress and even as I write this I have implemented a buffering system to improve playback that I hope to explain in next week's video.
    Your comments, requests and improvements gratefully received!
    To support my channel please do click on the affiliate links below before ordering ANYTHING from Banggood, AliExpress or Amazon. It expires 24 hours after clicking it so do come back and re-click!
    *ATTENTION! ATTENTION! ATTENTION! ATTENTION!*
    All this information PLUS the sketches in my GitHub:
    github.com/Ral...
    -----------
    INFORMATION
    -----------
    *VS1053* Datasheet
    cdn-shop.adafr...
    Calculating data stream duration (eg for how long does 32b of data last?)
    www.colincrawl...
    Bodmer's *TFT_eSPI library* for 32-bit processors (eg ESP32 ESP8266)
    github.com/Bod...
    -----------------------
    INTERNET RADIO STATIONS
    -----------------------
    List of many *Internet Radio stations*
    www.internet-r...
    Updated list of *BBC network radio URLs*
    www.suppertime....
    List of *many UK radio stations*
    www.radiofeeds....
    *Bauer media* radio stations (eg Magic, Greatest Hits etc)
    www.astra2sat.c...
    List of all my videos
    (Special thanks to Michael Kurt Vogel for compiling this)
    bit.ly/UA-camV...
    --------
    PRODUCTS
    --------
    The *2.8" TFT touch screen* used in my demo for just $6.66 (plus $2.05 shipping) or from USA & UK direct:
    2.8 Inch ILI9341 240x320 SPI TFT LCD Display Touch Panel SPI Serial Port Module
    www.banggood.c...
    *38-pin ESP32 with headers* for just $4.99 plus $2.25 shipping ($9.00 plus 0.99 shipping if ordered from USA):
    www.banggood.c...
    **NOTE the 30-pin works just as well, the extra pins are not for end-user use anyway!
    *Amazon UK* sell this 2.8" screen (in the UK) for just £12.50 + free delivery!
    amzn.to/38utf96
    *NB: Make sure you select the TOUCH version!!!*
    *Amazon UK* also sell the *38-pin ESP32 DEv Kit* for just £5.55 in the UK:
    amzn.to/3mFhy30
    *AliExpress offer both 30-pin and 38-pin* ($3.36 + $1.04 shipping) of the ESP32 Dev Kit:
    www.aliexpress...
    I couldn't get an affiliate link for above, click here first: s.click.aliexp...
    That's a link for a bare ESP32 with a whopping 16Mb on board! But needs an expansion board/PCB.
    My channel, GitHub and blog are here:
    ------------------------------------------------------------------
    / ralphbacon
    ralphbacon.blog
    github.com/Ral...
    ------------------------------------------------------------------

КОМЕНТАРІ • 215

  • @Gaark
    @Gaark 3 роки тому +1

    I know the feeling of the "Oh that's easy enough" trap... oh boy do I know ..... tinkering turns from weekend fun to month long projects

    • @RalphBacon
      @RalphBacon  3 роки тому

      "Just an hour", I said, "to implement the ICY metadata". Sigh.

  • @scottstevens7569
    @scottstevens7569 3 роки тому

    Ah Ha, It's important to watch part 1 before part 2. I keep learning despite my best efforts all due to your interesting presentation and content.
    Here in the land of 1st radio signal senders across Atlantic to you; we have the CBC handling things just as bureaucratically.

    • @RalphBacon
      @RalphBacon  3 роки тому

      Glad you liked it, Scott, and don't get me started on the BBC Radio 4 again!

  • @charlesjones5070
    @charlesjones5070 3 роки тому +2

    I just switched to PlatformIO for my latest project (an STM32 based shed alarm, using the stm32duino core) and I have to say it was a steep-ish learning curve on how to setup the upload methods and library inclusion (platformio.ini file) as I had never used VSCode before. However, the integration is really nice, with error checking as you go and predictive variable names, functions etc so it makes it really easy to code in there, I also found it to compile much faster than using the STM32duino core in the Arduino IDE. It would be great if you could go into more detail on how to setup VSCode & PlatformIO for Arduino/ESP/STM32 projects.

    • @AtlantaTerry
      @AtlantaTerry 3 роки тому +1

      A steep learning curve? Great.
      That means you gained a lot in a short amount of time.
      Congratulations.

    • @RalphBacon
      @RalphBacon  3 роки тому +1

      In many respects PlatformIO is as good as Eclipse and has better support from the community. GitHub is also well integrated. Not that much to dislike except that it can take ages for squiggles to disappear (if they ever do). Sometimes a compile is required to "clean things up".

  • @andre_rubins
    @andre_rubins 3 роки тому +3

    Excellent project!

  • @johnbyrne1567
    @johnbyrne1567 3 роки тому

    Thank you, Ralph
    Compiled without errors, now onto the wiring.
    You sir a godsend to us not-so-gifted amateurs.
    Thanks again for your help and very quick response.
    John

    • @RalphBacon
      @RalphBacon  3 роки тому

      There's bad news on the way, John! My revised version uses an ESP32-WROVER, which has [up to] 8MB of additional PSRAM, of which I use 150KB for a 10-second circular buffer. Whilst not strictly necessary, it does stop any glitches (in the absence of data coming down the wire). The sketch should still work with a standard ESP32-WROOM (I'll be testing that) with a 10K buffer (gives about 0.5 secs of buffer).
      But you have the experience now so it should be very simple to update what you have. Have you got a VS1053 to test it all with now?

    • @johnbyrne1567
      @johnbyrne1567 3 роки тому +1

      @@RalphBacon Thanks for the heads up Ralph.
      I have a new esp32 I checked following your advise and it is a revision 1.
      I do have a vs1053 acquired for your project and have had it working without the screen using another sketch. I have also had the screen working but not both together.
      Struggling to find a connection for the vs1053. I did see a reference to the pinouts in the Setup User.h file but for the life of me I can't seem to find where the said file is stored !! Old age I am afraid. But previous experience suggest if i stare at it long enough it will cone back to me.
      Thanks again Ralph for you interest and support.Murray park

    • @johnbyrne1567
      @johnbyrne1567 3 роки тому +1

      You are correct Ralph mine isa Wroom

  • @JerryEricsson
    @JerryEricsson 3 роки тому

    I have yet to try your program, I am still using the old one and building different radios. I just put one together for my daughter, it is inclosed in an iHome iP40 alarm clcok radio. There was enough room to stuff the esp32 as well as the decoder inside the device. I found a source of 5V inside the set and wired that to the VIN and GND on the 32 then hooked the decoder up to the same location, the 10 volt wall wart seems to give a healthy dose of amps so there isn't a problem with that. To hook it to the amp, I got lazy and wired a stereo earpone type plug to the audio out on the VS1053 used my soldering iron to burn a hole in the case and brought out an old DVD to Motherboard cable with the ends chopped off put on a plug and plugged into the aux port on the back of the device. This gave me a wonderful FM radio with capabilities of still playing iPods and older iPhones as well as wifi radio and FM radio. I never put on a display as there was just no good place to put it and leave the clock intact, I guess I could have replaced the alarm clock screen there was plenty of room but I liked the setup as was. I use the android version of Brave to load the web page served up by the 32 and do my controls from there. I considered putting on a remove reader but again couldn't find a place I liked to mount it so control is by WIFI and the amp controls built into the iHome device.

    • @RalphBacon
      @RalphBacon  3 роки тому

      You've been busy, Jerry! It sounds like you have a nice setup there, and if it works for you then it works, right? I was going to use a retro radio case for mine but eventually chickened out.

    • @JerryEricsson
      @JerryEricsson 3 роки тому

      @@RalphBacon I had considered that, my mother had a replica of an old radio, really a wooden case 2/3 scale of an old radio with a transistor set in the case. I considered putting one in that case for her and taking it up to the nursing home for her, then I got her a new land line phone with auto dial on it. When I saw the problems she had understanding the way to dial a saved number I gave up on setting the radio up for her to use. She is 95 and beginning to have memory problems but I think, if I could get her to understand the operation she would love it. The home has an Echo Dot in their dinning room and all the residents love talking to Alexa and asking for music, I considered getting her one but when I asked if she wanted it, she said she would never use it. She is a very hard lady to please when gifts are coming her way..

  • @kentswanson2807
    @kentswanson2807 3 роки тому

    Rock solid(or classical solid,Jazz solid or ) playback is vital, so I like your plan to isolate that bit. If it were to blip and blurb in my home it would quickly experience rapid non-uniform disassembly. (That is an evidence based statement). I almost prefer static and fade in/out to macroblocking, or what ever the audio equivalent is called.
    I am seriously enjoying this project. As someone else already said, please take as many episodes as you need to make it right.

    • @RalphBacon
      @RalphBacon  3 роки тому

      I've probably mentioned somewhere else that I've got the buffering working nicely (thank goodness there is so much free SRAM) and I've found that not requesting the ICY data makes it (well, Radio 4) "rock solid". I will have to check out why that might be. Or allow some stations to request ICY data and other not (all very doable in code).

  • @JerryEricsson
    @JerryEricsson 2 роки тому

    Ralph - I have a couple of thee that I built into the plastic boxes that my ESP8266 watches came in. I use a smaller screen and use a rotary encoder for control. Works great and it is very manageable. The one I am working on right now, though will be put in an old GE Table radio from 1957. I had planned on rebuilding the tube set that came in it, till I saw the condition of the old circuit board. Someone had pretty much ruined it, then tried to repair it by soldering stripped line cord over the printed circuit where they had pulled the circuit off. Quite a mess so I was looking for another way to rebuild and it came to me, use the ESP and make her into an old fashion radio with old fashion stations. If it works good enough I may take it up to mom in the Nursing home so she can listen to tunes from her younger days. She is 96 now and those days are quite some time ago..

    • @RalphBacon
      @RalphBacon  2 роки тому

      That's great news, Jerry; I'm glad you got your version of it working well enough for your mom to enjoy. Yes, 96 is a good age; my mum is now 94 and 1/2 years young.

  • @OsoPolarClone
    @OsoPolarClone 3 роки тому +1

    Another GREAT video. Thanks. Good thing it’s okay to play BBC4 otherwise you would probably be hauled off to the Tower of London!! 😜

  • @hariuxz
    @hariuxz 3 роки тому +1

    Nice project. I am working on something similar except mine uses Ethernet. Use Ring Buffer for VS1053 and prebuffer some data from ESP32 before firing VS1053 so it has a chance for grabbing some new data off WiFi. Worked well for me.

    • @RalphBacon
      @RalphBacon  3 роки тому

      Are you extracting the ICY information from the stream, Haroldas? I find that can be a cause of stability issues. I am using a 20K ring buffer (I tried 100K too) but if the data is not coming down the wire it soon runs out. What I want to do is use the PSRAM from a ESP32 WROVER, that would give me 4Mb of buffer!

    • @hariuxz
      @hariuxz 3 роки тому

      @@RalphBacon I am extracting Icy metadata to separate buffer before starting to take actual music data and sending it to VS1053. I am also using interrupts to drive VS1053 which leaves only ethernet responsible for data being received from Internet. My current Hardware: STM32F1 MCU @ 72MHz + WizzNet W5500 Ethernet configured to use only one socket with 16K RX TX buffer + 16bit ILI9481 3.2" TFT. With this I am currently able to decode 128Kbps audio streams without any problems.

    • @RalphBacon
      @RalphBacon  3 роки тому

      Interesting. My ESP32 (Rev 0) is very unstable. I switched to an ESP8266 (Wemos Lolin NodeMCU v3) today and it is rock solid on all stations, including extracting the metadata. More in the video on Friday.

  •  3 роки тому +1

    Nice projet and cool explanation of the ICY protocol, thanks for sharing!

  • @Hasitier
    @Hasitier 3 роки тому +1

    Nice to see the radio project going on. For a case: maybe now it’s time to get a 3D printer? I know we’ve talked about this months ago 😀
    If not: I’m happy to print you a case on my printer and send it to you

    • @jyvben1520
      @jyvben1520 3 роки тому

      maybe just print the corners where one could insert flat acrylic or even fine wood, 2 big U shapes for top/bottom and 4 (or 2) uprights to hide the corners. A lot less bulk to ship and less to print.

    • @RalphBacon
      @RalphBacon  3 роки тому +1

      Yes, the screen must be exposed to be "touchable". But it's a nice offer, Michael, I will think about it!

  • @johncrawford1242
    @johncrawford1242 3 роки тому

    Hi Ralph,
    I hope that you are getting sorted out in your new super duper workshop, I am still looking for things 2 years after moving, they have just got to be somewhere!
    I would like to say that I have your radio program working very well to ear buds, the sound straight out of the VS1053 is pure with no distortion thank you very much. I have really enjoyed this project as I had a reason to get some PCBs made. Like you my eyesight is not 100% and so I wanted to change the SMD components to 1206 size to give me a chance with the soldering Iron. Whilst I was at it I moved the connections for the twenty way cable and the ones for D25 to D34 a bit to give more access for the serial cable connection to the VS1053 board and with 2mm brass standoff I have plenty of wiggle room.
    But, you knew that there had to be a but, I can only get it working with the Arduino version. With the PlatformIO version it fails to connect to WiFi and so stops at that point, this is on both Windows 10 and Apple Big Sur systems. It also looks like the windows code is older than the apple code, this is just from the screen appearance. Any Ideas why the PlatformIO code is not working? It works fine for other programs that use WiFi on the same ESP32 board.
    Regards
    John Crawford

    • @RalphBacon
      @RalphBacon  3 роки тому

      The Arduino version is well out of date, but the core fundamentals of connecting to WiFi are established and mature. Did you upload the data folder in the PlatformIO version (Task)? Without that it will never connect.
      Recompile with the verbose settings (platformio.ini, set -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE) and watch the serial monitor output, that might guide you.
      More about the ESP32 Web Radio in this weeks (28th May 2021) video!

  • @stressedbunny
    @stressedbunny 3 роки тому

    Excellent project Ralph. I am waiting for the remainder of the parts to be delivered so I can start building.

    • @RalphBacon
      @RalphBacon  3 роки тому

      Good luck. Just remember that there are a couple of thousand wires here. OK, slight exaggeration.

  • @SpeccyMan
    @SpeccyMan 3 роки тому +1

    Finally using PlatformIO, hurrah! It does take a bit of getting used to for sure but the rewards far outweigh the hassles - eventually. Been using it myself now for the last couple of years and would never go back to the horrid Arduino IDE.

    • @RalphBacon
      @RalphBacon  3 роки тому

      It wasn't a question of ever "returning" to the Arduino IDE for me, Nick. I'd already moved to Eclipse (Sloeber) a long while back. It's only the fact that the Eclipse Arduino plug-in creator has thrown in the towel that made me think I had better look for something else! That, and that the Arduino PRO IDE is not what I had really expected although it's early days yet, it may become more of a programmers' tool. But in the meantime, PlatformIO it is!

  • @peut
    @peut 3 роки тому +3

    Hi Ralph, Just over a year ago I built a webradio using an VS1053 and an ESP32. I just made hardware and software public, see
    github.com/gitpeut/OranjeRadio and oshwlab.com/peut/webradio.
    Main differences with your project: I have implemented tasks for several parts of the program, I did not implement track info ( although thanks to your excellent research I might have a go) and I use gesture control to change station and volume, for kitchen use.. Also I have implemented a web interface.
    Some stations ( many French ones) use chunked encoding, I cannot remember if that is the case with the BBC stations as well,, what I do know is that BBC is working on my web radio.
    I solved the ground loop issues by using 2 little audio transformers between the VS1053 and the amplifier.
    I also experienced issues combining the SK6812 neopixels and the display, so more or less desperate I implemented my own neopixel driver, which works without issues.
    All in all I think I spent 200 hours on this, which shows I am not the sharpest knife in the drawer :-).
    Although far from perfect, it may help you get some ideas.

    • @RalphBacon
      @RalphBacon  3 роки тому

      This is all good information, Jose, thanks for sharing it here. I will certainly take a look at your way of doing things tomorrow. 200 hours, you say? Yes, I can see me doing that too...

    • @flemmingchristiansen2462
      @flemmingchristiansen2462 3 роки тому

      Nice radio

    • @peut
      @peut 3 роки тому

      @@flemmingchristiansen2462 thx. :-)

  • @strayling1
    @strayling1 3 роки тому

    I like the idea of a Dad radio. Would make a great birthday present.

  • @daveholden3935
    @daveholden3935 3 роки тому

    Great project. The modules are now on order !

  • @djayers
    @djayers 3 роки тому +1

    Great stuff! Glad you're using PlatformIO, it does seem a lot easier for larger projects than the Arduino IDE.
    You should be able to pull royalty-free streams from SoundCloud, eg.
    soundcloud.com/danny-ayers/mary-berry-made-some-doughnuts
    The VS1053 is a wonderful find. I've been using the ESP32 with an external DAC for this project:
    github.com/danja/chatterbox
    - and was thinking of adding an external ADC for the next project. But the VS1053 looks like it's got all that covered.

    • @RalphBacon
      @RalphBacon  3 роки тому +1

      I'll check it out, Danny, thanks!

  • @juanherrero911
    @juanherrero911 3 роки тому

    Amazing research and devel work Ralph and we can certainly stand on shoulders of giants with your contribution is this and all your other videos! After seeing the hassle caused with ICY metadata, I might experiment with a lazy and inefficient approach of opening two connections, one without metadata for playing the music and another with ICY metadata that skips the music, not sure how practical that is with an esp32.

    • @RalphBacon
      @RalphBacon  3 роки тому +1

      That is an interesting idea, Juan, as long as one stream doesn't delay the other (with the audio).

    • @juanherrero911
      @juanherrero911 3 роки тому

      @@RalphBacon I thought one core could just do the audio playing whilst the another core would be a display manager that would wakeup every 10 seconds or so and briefly sequentially connect to all stations which are in the presets to get what songs are playing on each of them and somehow display all that in a vertical scrolling list. It would also provide an alert if a station is down, even if not playing that station.

    • @RalphBacon
      @RalphBacon  3 роки тому +1

      As it happens, I've temporarily switched to an ESP8266 (for reasons you will discover on Friday) and it is rock solid. No problem reading the metadata or anything else.

  • @danielammann743
    @danielammann743 3 роки тому

    Hi, currently building up my own (hifi) internet radio using ESP32 and EPS8266audio library. This does work without any decoder hardware, just ESP32, one 150Ohm resistor and one red LED. I do pass SPDIF digital audio to my home theater amplifier and this is running stunning well :) If you like to get some essential Artist & Song Information you can hook up a 3-4$ 160x128 pixel TFT, but this is not necessary. Currently I am working on case for the TFT and some simple screw heads attached to some touch pins of the ESP32 to change channels. Case and changing channels is work in progress, but listening to my "one and only" internet radio stations works in hifi quality, without any buzzing / ground issues using those analog decoder boards. If interested I can share my current state of work.

    • @RalphBacon
      @RalphBacon  3 роки тому

      Sounds great, Daniel!
      I'm assuming you are using I2S for your sound? I was going to try this on the ESP32 but eventually decided against it (for reasons that are no longer clear to me). I will have to experiment with I2S again.
      Thanks for posting your experiences; it has spurred me on to checking it out again.

    • @RalphBacon
      @RalphBacon  3 роки тому

      In that case, a separate I2S board would probably be better (for I2S not MP3) which I have, but is now packed up somewhere, never to be seen again for months. Mine is a PCM5102A DAC Decoder (I was going to use this with the Raspberry Pi). I don't know if/how well this would work with the ESP32 based devices in an Arduino environment.

    • @RalphBacon
      @RalphBacon  3 роки тому

      I just tried the MP3 stream for Classic FM, media-ice.musicradio.com/ClassicFMMP3, and it works fine (port 80) on my device. Much more information on this web page: jonathan.rawle.org/2012/04/06/classic-fm-streaming-update

  • @willofirony
    @willofirony 3 роки тому

    Talk about "above and beyond"! I truly feel your pain and my gratitude knows no bounds. I am disappointed by the performance of BBC's output. Like yourself I used to be an avid listener of Radio 4 for decades (I still wake up to the Today program in the week). When I return to the UK from the US about 10 years ago, I was disappointed by the content (it seemed to be all Archers and Dessert Islands disks). Now I tend to listen to Radio 6 Music and Radio 4 extra. I do listen to a lot of Jazz FM and Classics FM (the former is only available on DAB+ despite the FM suffix). I was hoping that Internet Radio would enable me to access all these on the one device as well as PBS (US word of mouth station). Only time and your awesome research will tell. This is a monster (in a good way) project and I suspect you might be inundated by requests for more in depth textual information/tuition when you have completed it. Scorsese will probably want the film rights, should you write the book.

    • @RalphBacon
      @RalphBacon  3 роки тому

      Ha ha! Scorsese will have to pay handsomely! Oh, hang-on, it's all Open Source, Drat!
      Yes, the problem now is when to stop. If it works for me then I might just do that and pass the baton onto whoever wants it!
      Regarding Radio 4 (don't worry, not another rant) I've found that listening to it _without_ requesting the ICY data makes it _much more_ reliable. I feel a code-change coming on!

  • @jonathanr4242
    @jonathanr4242 3 роки тому

    In the old days we used to wack the tele to get rid of the static on the CRT. Kids don't realise how lucky they are today.

    • @RalphBacon
      @RalphBacon  3 роки тому

      In the old days we dreamed of having a telly. We just stared at a black and white picture on the wall pretending it was one.

  • @user-db5st7te9t
    @user-db5st7te9t 4 місяці тому

    Hi Ralph. Thank you for this project, I do enjoy your videos and projects in general! I am busy building this (github schematic v1.0, dated Jan 2022), and have a question or two (had more, but found some answers in the comments already :) )
    H1 on the schematic looks like a Logic Level Converter, is this the case? (searched the docs, but it eluded me)
    *Edit:* _looking at it again, now looks like a pull-down resistor network? for GPIO's 26,27, 34 and 39 reserved for future use?_
    *Edit 2:* _scratch that, it's just a header for the GPIOs?_
    My output is routing from the VS1053 (shield version) via the Audio Isolation Transformers to a little PAM8403 board which then goes to the speakers in the enclosure that I am designing. I am fitting your design and the amp onto a shield board, which then plugs into the VS1053 with a Socket connection to the TFT.
    Did you incorporate a battery to take advantage of the TTGO's charging functions? Or do you just run it off the phone charger? *Edit:* _staring at the pics, looks to be power via the jack only (not via the TTGO board JST?)_
    Thank you
    Liam

    • @RalphBacon
      @RalphBacon  4 місяці тому

      I don't use a battery, it runs all day on a phone charger 5v supply (running right now!)
      Email me the schematic you are using so I can compare to the most recent version, then I might be able to answer more questions (it takes too long to find all the info otherwise). It's been a while since I looked at this design/software.
      Routing the audio (via the isolating transformers) to an amp will work just fine, BTW. I plug the output into a little mixer on my desk so I can listen to both PC noises/alerts and my radio all day long.
      BTW my email address is on the ABOUT tab of my channel but is only visible if you use a PC/MAC, not your phone (some YT restriction, I believe).

  • @PavolFilek
    @PavolFilek Рік тому

    HI, I learned a lot from your channel, I built my ESP radio / mp3 player, but when I used WiFiManager with my old code, I can not compile. Do you use hard coded credencial in your radio ? Or you are using WiFi Manager ?

    • @RalphBacon
      @RalphBacon  Рік тому +2

      I do have my Wi-Fi details in a separate file in the LittleFS partition. I read that in and send it to my network. No problems.

  • @tonyherring6670
    @tonyherring6670 3 роки тому

    Great video, the coding goes way over my head though, I'm just looking for a plug and play solution where I can alter the visual look of the screen. Also on my wish list would be a piece of code allowing me to use hardwired buttons to chose preset stations. I have ordered the screen and vs1053 (already had one of those but I think its borked, a lot of legs on the ic are soldered together..). Looking forward to the next instalment.

    • @RalphBacon
      @RalphBacon  3 роки тому

      I used a real button initially to change the station, but now I have Next and Prev working on the screen too. I'll end up doing both.

  • @dogastus
    @dogastus 3 роки тому

    The reason for the noisy audio is because the ouput is not referenced to 0V but to another pin on the chip. The cure is to use a small cheap audio transformer.

    • @RalphBacon
      @RalphBacon  3 роки тому

      I have found a suitable one on eBay so I will have to purchase.

  • @Luke-san
    @Luke-san 3 роки тому

    About those VS1053 boards. Several sellers offer a VS1003/VS1053 board and there seem to be different versions on the market.. Most of the time if they advertise it like that it will be the 1003 variant which wont do AAC etc. (I received one). So make sure it is the 1053 version if you want more than just mp3. But that board you showed here seems to be the same as the one I was using this morning. If I tried to play a AAC stream it would lock up. (1 sec of audio or so) . I am not the only one it seems. If you google 'nadim24 vs1053' then you will find this gentleman's page which you can translate to English in Chrome browser. His fix worked perfectly.
    As you can see on the photo of the pcb there are 2 voltage control IC's (one is the 3.3V and the other a 1.8V one). You need to place a 10uF capacitor (not bigger!) in parallel over C17 and C18 (minus side of those caps facing towards headers). I've also shortened pin 33 and 34. (not sure if that was still needed).
    Now everything works like it should on my board.

    • @RalphBacon
      @RalphBacon  3 роки тому

      I can stream AAC radio stations no problem with my board. But I will check out your stability changes. I'm finding the ICY data causes instability in reading the data - when I request it without that it works 100%. It's _got_ to be me, right, or others would have found issues too?

  • @sunnylavie
    @sunnylavie 3 роки тому

    Thank you so much for the time and effort you have put into creating this. It’s so informative. I want to do my first project but want to know if it’s possible (conceptually) to create an MP3 player that can stream an mp3 from my own website, but then to have a push button that can pause/unpause the mp3 stream, but then also be able to double-click the same button to make it go back to the beginning again. There are many projects on UA-cam showing MP3 players using the ESP32 but none I have found that have this feature - to pause/unpause/restart an mp3 streaming from a website with a single button. If the double-click to restart is not possible, then at least to be able to pause/unpause, as I really need this feature. Please could you tell me if this is something that would be feasible? I really need to know from someone who has experience if this would be possible - also any pointers to get me started would be greatly appreciated. Thank you so much.

    • @RalphBacon
      @RalphBacon  3 роки тому

      If you don't read the stream (client.read) then you have effectively paused it (the server doesn't push it). Detecting a double-click is certainly do-able in an Arduino environment at which point you simple start the stream again. You could try this out within 30 minutes if you already have an mp3 server.

    • @sunnylavie
      @sunnylavie 3 роки тому

      @@RalphBacon Oh wow. Great. That’s given me enough confidence to order the parts. I’ve not played around with electronics for nearly 40 years but dabbled with it as a child, and also have quite a bit of experience with programming languages (eg VB), so can hopefully find my way around Arduino code. I will order the bits I need - ie breadboard, ESP32 and a PCM5102 decoder (to output to headphones), to start prototyping this. Thank you for your help!

  • @lumsdot
    @lumsdot 3 роки тому

    ive used a UDA1334A i2s audio dac to get web radio, but i listen to the planet rock stream, its fine but sometimes the ad breaks cause noise, as if stream broken

    • @RalphBacon
      @RalphBacon  3 роки тому +1

      My ESP32 Web Radio uses an ESP32 TTGO T8 module that has extra RAM (PSRAM) that I use for a circular buffer. Just 150K gives about 10 seconds which is enough to stop any stutter at all. But I'm glad yours works OK - but consider an upgrade to my design, Tim! Very easy if you use the PCB design I published. I have a newer PCB design now incorporating the small audio transformers to stop any noise, works like a dream!

  • @MUHAMMADYAWARIFRAHEEM
    @MUHAMMADYAWARIFRAHEEM 3 роки тому

    Very informative video SIR

  • @RichDMonte
    @RichDMonte 11 місяців тому

    Hi Ralph,
    I am planning on building this project, but right at the start I have a question, I have done a little on using PlatformIO but cant seem to be able to get started here. I thought you could clone the project using "Clone GIT project" from the alien icon or am I doing something wrong?could you point me in the right direction

    • @RalphBacon
      @RalphBacon  11 місяців тому

      If you download (not clone) the program from GitHub then unzip it, you can just drag (copy and paste) the files into the correct folder in PlatformIO (that way, your original download remains untouched).

  • @mphaan
    @mphaan 7 місяців тому

    Try SomaFM, Its the biggest internet radio-station in the world and has many channels and qualities to choose from. As from SomaFM FAQ "The 128k AAC streams are the best sounding. The 64k AAC-HE streams are a close second, followed by 128k MP3 streams." I do not know where 256 MP3 fits in but my guess is they are the best.

    • @RalphBacon
      @RalphBacon  7 місяців тому

      Just had a look, an eclectic mix for sure. Especially the LA Police Radio feed!

  • @KJW648
    @KJW648 3 роки тому

    Radio Caroline - Radio Caroline Flashback - Radio Caroline north .

    • @RalphBacon
      @RalphBacon  3 роки тому +1

      Oh, yes. Radio Caroline with Tony Blackburn and many others. You could almost hear the music in between the fades and static!

    • @KJW648
      @KJW648 3 роки тому

      Maybe on the 648 am, depends where you live, but not on your internet radio and on DAB.👌

    • @thisnicklldo
      @thisnicklldo 3 роки тому

      Radio Luxembourg, on 208 (metres, not this pseudo-scientific khz stuff) - used to come and go in long waves, you could get 8 good bars then miss most of the chorus. My sister revised her A levels with Luxembourg on every minute, much to Dads dismay. Personally I really got interested when Radio 1 launched on 247, with my excellent cheap Japanese transistor radio. Band-width exploitation has a lot to answer for - honestly, it was a good radio world when you could tune to one of a few transmitters in the country and reliably get a signal. High frequency is all very well, but if you happen to live somewhere near a tree you are b**red. Never saw the point in stereo, FM ended the days when you could just tune in and listen. The AM signal was the equal of any speakers I actually owned.

  • @johngatza2243
    @johngatza2243 3 роки тому

    Sorry a few more questions.
    1) Where does the ESP32 TXD pin connect to? I don't see a mating 2 pin connector
    2) is RST connected to RESET?
    3) what does the Metadata 2 pin connect to?
    Thank you again

    • @RalphBacon
      @RalphBacon  3 роки тому +1

      It's good you have questions, John! Answers:
      1) The TX pin of the ESP32 can optionally connect to the RX pin of a USB-to-Serial adapter such as an FTDI module. This enables me to get all the serial monitor stuff without relying on the USB connectivity.
      2) Yes, RST is RESET. Note that the VS1053 RST is not connected in any way to the ESP32 RST pin!
      3) Metadata 2-pin jumper (on the left side of the board) will force all stations to NOT ask for metadata - OK for trying new code out but now I have it working, not required, but might be for others. Leave disconnected if you are using my code.
      There is at least one new version of the code but I have yet to put it into the Arduino IDE folder of my GitHub. As I'm moving house tomorrow there is little chance this will happen for a while, until my new workshop is built. But the version there works well enough; just be aware that if you change the code you will get it splatted by the new version or you will have to bring across any changes you have made (may the force be with you).

    • @johngatza2243
      @johngatza2243 3 роки тому

      @@RalphBacon thank you Ralph for the quick and thorough response!
      Re: the VS1053 XRST pin. If it does not go to the ESP32 RST pin, where does it connect? Thanks

  • @JanHKila
    @JanHKila 3 роки тому

    Ralph will you please answers these questions.
    Where can I find this method:
    My_Web_Radio:844:27: error: 'class TFT_eSPI' has no member named 'getTouch'
    boolean pressed = tft.getTouch(&t_x, &t_y, 200);
    ^
    Where is class 'std' defined?
    Used for example as: std[::string getSSID()]

    • @RalphBacon
      @RalphBacon  3 роки тому

      In order for me to answer these questions (it's $1 per answer, you know that, right?) you need to tell me:
      1. What IDE are you using?
      The *tft.getTouch* is in this file:
      I:\Documents\PlatformIO\Projects\ESP32 Better Internet Radio\lib\TFT_eSPI-2.2.23\Extensions\Touch.cpp
      Check that your version of the library is the same as mine above as Bodmer's latest is 2.3.4 but I didn't want the library changing under my feet as I was writing this.
      The namespace "std" is part of the "C++ Standard Library" (not available to the Arduino UNO et al) but for the ESP32 you might have to #include various libraries, eg : #include
      In the PlatformIO this must be done behind the scenes because I did not have to do that, whereas in Eclipse (and therefore, I'm assuming Arduino) using an ESP8266 I had many, many libraries to #include.
      That all said, I've just checked my Arduino port of this project and I don't seem to have any extra #includes at all. Hence my question (typo, it's $10 per answer not $1). Perhaps the ESp32 core includes all these now.

    • @JanHKila
      @JanHKila 3 роки тому +1

      @@RalphBacon I'm on Arduino IDE. To solve Q#1: I created a lib 'TFT_eSPI_EXT' and put the files there. Now mr. Arduino can find them.
      About Q#2: I suspected that, but I've never seen it used this way. Still to much married with C, I presume.
      Thank you!

  • @peteradshead2383
    @peteradshead2383 3 роки тому +1

    I had problems with the Adafruit_VS1053_Library I was using for my board , which at first I could not get it to see the chip because the code said it didn't use the reset pin but it did , after I got it to see the chip it would keep rebooting , which I found that the library for the esp32 didn't work on the esp32 , so in the end found someone else who had the same problem and a library which worked , so a very easy chip to work with on the esp32 NOT.
    check this out : forum.arduino.cc/index.php?topic=624003.0
    and use this library github.com/danclarke/Adafruit_VS1053_Library which works for the ESP32 , set the RTS pin too.

    • @peteradshead2383
      @peteradshead2383 3 роки тому +1

      @@AtlantaTerry just for you links added .

    • @RalphBacon
      @RalphBacon  3 роки тому +1

      I've added the library from Baldram (Marcin Szałomski) that I used into my GitHub:
      github.com/baldram/ESP_VS1053_Library

  • @petermarshall2189
    @petermarshall2189 3 роки тому

    Please correct me if i'm being stupid, but is there a schematic anywhere for the wiring ? Looked on the Github with the code, and i'm sure i could work it out eventually, but would save a lot of time in the initial setup. Thanks in advance.

    • @RalphBacon
      @RalphBacon  3 роки тому +1

      You're not being stupid, Peter, and although I think I have uploaded the schematics "somewhere", here's a link to the forthcoming GitHub for my video on Xmas Day:
      github.com/RalphBacon/210-ESP32-Web-Radio-PCBs-And-More
      Unfortunately you will have to wait for 6am Xmas Day to see the video which shows the PCBs and describes why I have done it this way.

    • @petermarshall2189
      @petermarshall2189 3 роки тому +1

      @@RalphBacon thanks a lot - amazingly this is my 'fun project' over christmas

  • @didiergasser-morlay2417
    @didiergasser-morlay2417 3 роки тому

    I apologize in advance for a probably dumb question, but I am looking for the wiring you used between the esp32 & the VS1053, I am trying to derive it from the source code, but I am not entirely sure thet I got it 100% right and I am concerned about generating some magic blue smoke (tm) can you help or point me in the right direction ?

    • @RalphBacon
      @RalphBacon  3 роки тому

      The full details are in the file User_Setup.h but here they are:
      #define TFT_MISO 19
      #define TFT_MOSI 23
      #define TFT_SCLK 18
      #define TFT_BL 16 // TFT Backlight (LED)
      #define TFT_CS 5 // Chip select control pin
      #define TFT_DC 2 // Data Command control pin
      #define TFT_RST 4 // Reset pin
      //#define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST
      #define TOUCH_CS 21 // Chip select pin (T_CS) of touch screen
      This may change over time (although the SPI pins won't).

    • @didiergasser-morlay2417
      @didiergasser-morlay2417 3 роки тому +1

      @@RalphBacon thanks a lot, missed that

  • @TinyMaths
    @TinyMaths Рік тому

    So, if you put 20, 30 or more hours into a video production, and there's a 2-second, randomly stumbled across clip of music that gets picked up by some type of scanning technology, the record company gets your money. Seems fair!
    I mean, if you think about it, that's all I really do nowadays, I no longer listen to whole tracks; I just scour the internet looking for 2-3 second clips of music and I just listen to that, screw whole songs... entire albums? To hell with that - 2 second clips is where it's at; it's hugely enjoyable. And, I can spend all day long playing 'Name That Tune' while I'm at it.

    • @RalphBacon
      @RalphBacon  Рік тому +1

      That's how it is. There is no mythical "fair use" as far as these copyright owners are concerned. They do not look at the context and rightly conclude the 2-3 seconds of music is just incidental to the content. Nope. They own the rights to the music and will grab every penny from it. 😡

  • @patfarrell5663
    @patfarrell5663 Рік тому

    Hi Ralph
    I built your web radio about 2 years ago and I have used it virtually every day since, recently I noticed that I have lost all bbc channels. I see that you included a list of bbc urls,is there any way to update this or have we lost these radio channels for good.
    Pat

    • @RalphBacon
      @RalphBacon  Рік тому

      We've lost them for good, I'm afraid, Pat. Took me by surprise as well, although I should not be so surprised, the BBC does things its own way and not (always) for the consumer of its services.
      It now suggests an alternative encoding stream (not .mp3) but I've not even looked into it, as other radio station owners (eg all UK Bauer-owned ones) have decreed that each listener must have logged in first.

    • @patfarrell5663
      @patfarrell5663 Рік тому +1

      Thanks for the reply Ralph,it's a pity but there you go.

  • @leroycasterline1122
    @leroycasterline1122 3 роки тому

    I wonder if there's a way to build an Internet 'scanner' for stations...

    • @RalphBacon
      @RalphBacon  3 роки тому

      Apparently there is (might be one in the Edzel GitHub version) but I haven't looked. There would be thousands and thousands.

  • @Evilslayer73
    @Evilslayer73 8 місяців тому

    Hi Mr Ralph i have a newbie question=where i setting up my wi-fi credentials?i cant find it in the arduino ide sketch version? thansk a lot!p.s i got this error while im compiling it ='class VS1053' has no member named 'setAudio'

    • @RalphBacon
      @RalphBacon  8 місяців тому +1

      So, TWO questions!
      1) VS1053 requires a library, have you ensured the correct #include is present in your sketch? If so, the library may have changed. Open up the library header (VS1053.h) and see what public functions are available and what that might be called now.
      2) You set up your WiFi credentials like this (they are "exposed" to anyone who reads your code, but you can hide them in a separate file).
      const char *SSID = "MySSID;
      const char *PASSWORD = "MyPassword";
      if (WiFi.begin(SSID, PASSWORD)) {
      log_i("WiFi begin success.");
      }
      There are more sophisticated ways of doing this (eg static IP, LittleFS file with those details) but that's the basics.
      Good Luck!

    • @Evilslayer73
      @Evilslayer73 8 місяців тому

      @@RalphBacon thanks a lot sir
      :)

    • @Evilslayer73
      @Evilslayer73 8 місяців тому

      @@RalphBacon7 and is it possible to connect to the radio without wifi credentials? i mean a web gui ?

    • @RalphBacon
      @RalphBacon  8 місяців тому +1

      Your device must validate your credentials with your router otherwise anyone (or thing) could connect to your home network.
      Buy YOU can connect to the web server running on the device just by typing in its web address - as long as there is something to handle the request on the device. You can obviously create some form of challenge/response on the device but you don't have to (and I don't, on the assumption that if someone can get onto my home network they probably have ideas other than to hack into an ESP32 sensor!)

  • @stevesm2010
    @stevesm2010 3 роки тому

    UA-cam should make a stream of their copyright free music so that people can test audio devices such as yours without issue.

    • @TradieTrev
      @TradieTrev 3 роки тому

      Fire up a shoutcast server with thier audio library, no-one is stopping us!

    • @stevesm2010
      @stevesm2010 3 роки тому

      Not a bad idea @@TradieTrev Maybe one for you though Ralph

    • @RalphBacon
      @RalphBacon  3 роки тому

      I'll see what I can do and if I get a Copyright Strike I'll know who to blame!

    • @TradieTrev
      @TradieTrev 3 роки тому

      @@RalphBacon ROFL! Hey we mean it in good faith!

  • @xavierzander4201
    @xavierzander4201 3 роки тому

    Wauw ! this is such a complex project, i don't even think of starting with it, i do have all the components it needs i discovered, but the code
    is just too complex for me.

    • @RalphBacon
      @RalphBacon  3 роки тому

      Well, you are looking at an early version of the code here, Xavier, so it's not as neat is will eventually be. However, I'm having problems with my ESP32 right now and might have to revert to an ESP8266 - watch this week's video for more!

  • @rzinindiana8029
    @rzinindiana8029 3 роки тому

    Some SUCCESS!!! and some questions
    Basically I have success; sound playing; new stations researched and added. Tearing some parts of the application apart because I do not intend to use a display, so my comments below are most likely my early code errors.
    Observations:
    1 After first boot, no sound. Appears to connect to the station, see lots of reads from circular buffer, but alas no sound. Cycle to next station, all is well. This happens every boot.
    2 With your original station list, I could get into a loop where it was continually trying to access a non existent station.. I think. Fixed one of the counting flags to increment to the next station and all has been fixed. Have not yet gone back to validate the real cause. You may try to bugger up one of your entries to see it this happens for you, or it is most probably still something in my changes.
    Interrupts
    I am using interrupts for my NEXT/PREVIOUS buttons. My use of interrupts is causing a CRASH.
    “wanGuru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1)”
    I was using bad stuff in there, “Serial.print” which I shouldn't.
    My solution for now will be to stop using interrupts and create simple manual switches.
    If you want to provide insight so I can use interrupts and coexist with your radio... I might learn something new.
    Question: Do you want these detailed questions elsewhere like on your code site???
    Thanks for today's entertainment LZH

    • @RalphBacon
      @RalphBacon  3 роки тому

      The problem here is that
      (a) You're using a fairly old code base
      (b) you've modified it
      I wrote it with the screen part totally self contained. So if you had no screen (or a different one) you could just write a placeholder bit of code (even Serial.println statements). And it would run just like mine.
      If you can use PlatformIO (Visual Studio Code) you could have my latest and greatest version which you might find easier to use?

  • @johngatza2243
    @johngatza2243 3 роки тому +1

    Can someone please lead me to the schematic for this project? Thanks!

    • @johngatza2243
      @johngatza2243 3 роки тому +2

      Sorry I found it as the answer to a few questions down on the list...should have looked further :-)

    • @RalphBacon
      @RalphBacon  3 роки тому

      Glad you found it, John!

    • @johngatza2243
      @johngatza2243 3 роки тому

      @@RalphBacon Thanks Ralph!...looks like a fun project! I appreciate your posts and very informative videos. I will try to build it now using an ESP WROOM 32.

  • @TradieTrev
    @TradieTrev 3 роки тому +1

    Did you really have to put pcbway ads into your github page?! Ralph I love your work, but that's a bit too much.

    • @RalphBacon
      @RalphBacon  3 роки тому

      I've toned it down (a bit) but I think that's the arrangement. I should check; if they have not specified this I will remove it (I use the same text in my video description as I do in my GitHub).

  • @jolugama
    @jolugama Рік тому

    hi. I have problem with the sound. It sounds choppy. Even with radios of mediocre quality of 64 and 32 kbps. I have a normal wroom32 esp32. Do you have a pro with a lot of ram and psram? greetings.

    • @RalphBacon
      @RalphBacon  Рік тому +1

      I do use a circular buffer (in PSRAM) as otherwise you don't get a chance to recover from the slightest Internet delay. However, it should not sound choppy _all_ the time, even without a circular buffer (which you can (should) still use, in SRAM, but keep it to around 10KB).
      My circular buffer in PSRAM is around the 150K mark, which gives me around 8 seconds of buffering. I never have any issues of stuttering.

    • @jolugama
      @jolugama Рік тому

      @@RalphBacon ummm. ok, i will check. thanks

  • @TheTheking82
    @TheTheking82 3 роки тому

    Hi, interesting project! Can I play HTTPS streams too?

    • @RalphBacon
      @RalphBacon  3 роки тому

      Yes, but you may have to do more to connect to https (secure) which is why they normally use http. But the ESP32 can do it no problem.

  • @patfarrell5663
    @patfarrell5663 3 роки тому

    As the bbc radio services stopped working on 22 March on my Streaming Radio using an ESP32, a VS1053 MP3 decoder. I added new streaming urls found on the internet. These sort of work but with chirping sounds also. Anybody know the reason for this The urls work perfectly on my computer

    • @patfarrell5663
      @patfarrell5663 3 роки тому

      Found the answer in #208 Thanks "random sporadic projects"

    • @pierutube
      @pierutube 3 роки тому

      @@patfarrell5663 hi Pat! I am having the same problem with Bbc channels. Could you please repost the link? It doesn't seem to work here. Here is my humble project: github.com/Pier1965/Esp32-educational-study I tried with ring buffer and rtos queues but bbc keep on glitching, so I got stuck to the simply read from stream and feed it to vs1053 couple of commands. Edzelf project github.com/Edzelf/ESP32-Radio works but despite I tried to replicate it, my efforts are useless...

    • @patfarrell5663
      @patfarrell5663 3 роки тому +1

      @@pierutube Hi pierutube,
      I'm no expert but if you have the BBC stations working but chirping I found that in line 165 of your sketch if you change
      HTTP/1.1
      " to HTTP/1.0
      " it worked for me
      Regards
      Pat

    • @pierutube
      @pierutube 3 роки тому

      @@patfarrell5663 Thanks a lot Pat, I got back to the #208 messages you were referring too... I cannot believe that a 0 rather than a 1 caused me such coding nightmare during the past few months ... and almost a divorce :-) Now the next step with my 1cent project is to make the rtos task do its job properly in order to play smoothly this test (yet beloved) channel strm112.1/baroque_mobile_mp3... so far I've noticed no differencies apart from some delay with the classical read stream and play it approach

    • @RalphBacon
      @RalphBacon  3 роки тому

      I'm guessing this is all sorted now, Pat? I did a couple of follow up videos about the BBC and HTTP 1v1. (Spoiler: Use http/1.0)

  • @ranrajfernando9314
    @ranrajfernando9314 2 роки тому

    Dear Ralph, Extracted some web radio channels from internet radio, but some are not working cannot connect., others OK, Why? please explain. thank you.

    • @RalphBacon
      @RalphBacon  2 роки тому

      When you say "not working", do they connect but play silence? Or something else?
      Have you got a copy of WinAmp? I always try out new radio URLs with it to prove the work (or not).

    • @ranrajfernando9314
      @ranrajfernando9314 2 роки тому

      @@RalphBacon Thank you so much for the reply, When ESP32 is used to upload , In the serial monitor it indicates failed to connect. and silent. Nothing wrong with the URL address because if you double click the address the computer will connect and play the channel automatically. For Example :- " http//69.41.24.226:7635/stream" failed to connect but :- " http//151.80.42.191:8288/stream " is connecting without any fuss. Both these addresses I got from internet radio. I attempted few times.Please help to solve the issue. Thank you so much

    • @RalphBacon
      @RalphBacon  2 роки тому

      I tested both these on my WinAmp.
      http:://69.41.24.226:7635/stream connected but timed out. Nothing played. It also did not connect in my browser.
      http:://151.80.42.191:8288/stream played immediately.
      So, I'm kind of thinking that the ones that do not play really do have a problem (even though you extracted the URL, it might not always work - the station might check what is connecting, for example).

    • @ranrajfernando9314
      @ranrajfernando9314 2 роки тому

      @@RalphBacon Dear Ralph, I am very obliged and thankful for the opinion given and your efforts to solve this issue, For us ,we novices you are a great icon to consume your valuable time and to share your valuable knowledge. Thanks and keep it up.

    • @ranrajfernando9314
      @ranrajfernando9314 2 роки тому

      Dear Ralph, Sorry to trouble you again, I am using MAX 98357 with ESP 32 which is working fine and want to develop further by adding a rotary encoder to select a channel from 2 or more channels loaded. This is without a display. I tried to do a code but failed. If you have done this please provide the for me. Thanks.

  • @alexanderchistyakov318
    @alexanderchistyakov318 2 роки тому

    hello!
    Stream 320 can be confidently accepted?
    Thank you.

    • @RalphBacon
      @RalphBacon  2 роки тому

      Quite frankly, I don't know. 320kb/s is quite a high streaming rate and I cannot find a URL which I can test this with. From the Internet it appears only Radio 3 honours such a high bit-rate, others drop right down to 128kbs.
      If you can give me the streaming URL (not a playlist .m3u file) I'll test it out.

  • @jimsonweed1846
    @jimsonweed1846 3 роки тому

    Is it support flac decoding? For lossless webradio.

    • @RalphBacon
      @RalphBacon  3 роки тому

      Datasheet states: VS1053b is an Ogg Vorbis/MP3/AAC/WMA/
      FLAC/WAVMIDI audio decoder as well as an
      PCM/IMA ADPCM/Ogg Vorbis encoder on a
      single chip.

  • @ste76539
    @ste76539 3 роки тому

    I did a lot of researching this very type of project - in the end I went the RPi Zero W route - a million times easier by far, it's just a matter of configuring your choice of a plethora of pre-built systems and adding your own whistles and bells. Mine has a tft screen showing station data, current song etc and also album art. Now this was easier and less buggy but obviously doesn't come with the same 'diy' satisfaction factor. The other disadvantage is boot time. Being a minimal system and using a faster SD card mine boots in about twenty seconds, not the nice instant on that you get using something like an ESP32. Horses and courses I suppose. I still might build one with a microcontroller at some point though.

    • @RalphBacon
      @RalphBacon  3 роки тому

      If you boot the Pi from USB Stick (32Gb) then it's faster and won't get corrupted. That's what I do. I say "stick" it's actually a tiny device that plugs into one of the free USB sockets, like one of the wireless keyboard dongles.

    • @ste76539
      @ste76539 3 роки тому

      You can't USB boot a RPi Zero W, to my knowledge anyway. I do that with my B spec boards, but the advantage is minimal when compared to a decent SD card. Either way you can't get close to the speed and efficiency of an ESP32 based system, but it is a lot easier to build.

  • @robertomalatesta6604
    @robertomalatesta6604 3 роки тому

    Ciao Ralph, why don't you tune to a classical music radio; station that plays under the Creative Commons covenant;, the music of artists who died more than 70 years ago?

    • @RalphBacon
      @RalphBacon  3 роки тому

      I never realised there was such a station, that is a GREAT idea, as long as the actual _performance_ is not copyrighted (ie the musicians who performed the piece, they must put it in the Public Domain for me to use). If so, I will do so the next time I have to demo.

    • @robertomalatesta6604
      @robertomalatesta6604 3 роки тому

      @@RalphBacon If you're really determined, you could put up your own ESP32 ?) web server and employ software that reproduces music sheets. It gave me a sense of sickness, knowing that "The Eagles" use 60 people to enforce copyrights on the web...

    • @RalphBacon
      @RalphBacon  3 роки тому

      Really? That many? I guess if it is true they must think it (financially) worthwhile to do.

    • @robertomalatesta6604
      @robertomalatesta6604 3 роки тому

      @@RalphBacon Here you are, hear it from His Master's Noice...
      ua-cam.com/video/RqvuEal2P2E/v-deo.html

    • @RalphBacon
      @RalphBacon  3 роки тому

      OMG! Rick was pretty miffed, wasn't he? Quite rightly so. 12 seconds of Eagles music and your entire video is taken down. And he is a big UA-camr. I imagine if I had 0.12 seconds of any copyrighted music in MY video! I would be banned for life, I should think! Even if it was just to show my Internet Radio project.

  • @TanjoGalbi
    @TanjoGalbi 3 роки тому

    I still use Winamp too. The version I use is 5.8 build 3660 which is the current version that has been current for years! They do plan to make a comeback sometime but sometime is not a set date yet lol
    www.winamp.com

    • @RalphBacon
      @RalphBacon  3 роки тому

      Mine's 5.601 and runs just fine, including playing all those internet radio stations! I've had this version for years and years. They got bought and sold more times than postal voting slips for Trump but nothing ever came of it.

  • @wolves2.075
    @wolves2.075 2 роки тому

    Hi is there is a way to play music from youtube in esp32 mp3??

    • @RalphBacon
      @RalphBacon  2 роки тому

      I don't know of a way to play music from UA-cam; are you sure it's .mp3 format?

    • @wolves2.075
      @wolves2.075 2 роки тому

      @@RalphBacon I was thinking it might be possible doing something similer to discord bot, but again esp32 flash and storage, so what about resberry pi pico???

  • @MartinBgelund
    @MartinBgelund 3 роки тому

    I could really use some Dad radio :-)

    • @RalphBacon
      @RalphBacon  3 роки тому

      Listening to it now. Oh, I thought you said DAB. 😁 Well, that too.

  • @tonybell1597
    @tonybell1597 3 роки тому

    Thanks Ralph, please continue to use PLatformIO.... its very versatile..... I'm learning this one as weell as a replacement for the Arduino IDE...

    • @RalphBacon
      @RalphBacon  3 роки тому

      Now that I have overcome the foothills of the learning curve I'm making more inroads into its features. Nice. Expect to see me using it more frequently.

  • @szymonbienkowski2810
    @szymonbienkowski2810 2 роки тому

    Hi Ralph,
    how can I connect all things with cables? Have you have some sketch, photo? Or how and from where can I order PCB from your project?

    • @RalphBacon
      @RalphBacon  2 роки тому

      Cables are not great, Szymon, to connect this up. Yes, I know I did it at the early prototype stages but there were always problems. I do have a spare PCB; I'm guessing you are not in the UK so we'd have to work out something. Do you intend to program this with PlatformIO or the Arduino IDE? Let me know in which country you live and which IDE you will use..

    • @szymonbienkowski2810
      @szymonbienkowski2810 2 роки тому

      @@RalphBacon Im from Poland and Im using Arduino IDE

    • @RalphBacon
      @RalphBacon  2 роки тому

      OK, I can send you a PCB if you want to pay for postage. Please email me and we can sort this out. You can find my email address in the ABOUT tab of my channel (but only works from a PC not a phone).
      ua-cam.com/users/RalphBaconabout
      Finally, what is your level of expertise in using the Arduino IDE?

    • @bienonygus
      @bienonygus 2 роки тому

      @@RalphBacon I've sended email

  • @silviupaduret6526
    @silviupaduret6526 3 роки тому

    Nice Project. but ... :) wires are not the best way forward. how about a bluethooth conection from the ESP to a portable speaker as a lineout?. would that work?

    • @RalphBacon
      @RalphBacon  3 роки тому

      Great suggestion! You could certainly connect a BT transmitter (available everywhere) to the output (that's what I do to my TV so I can listen with my BT headphones).

    • @bbowling4979
      @bbowling4979 3 роки тому

      @@RalphBacon Is the bluetooth that is built in to the ESP32 not usable for output to a connected speaker?

    • @RalphBacon
      @RalphBacon  3 роки тому

      That is something I'm still trying to determine. It would have to send out a stream of audio (MP3?) data via the BT conduit.

  • @Evilslayer73
    @Evilslayer73 3 роки тому

    Hi Ralph do you a tutorial how to upload the code ??

    • @RalphBacon
      @RalphBacon  3 роки тому +1

      For the Arduino? Look at some of my very early videos, there's one that talks about identifying the correct COM port, that might help. Sorry to be so vague but my workshop is not yet up and running.

    • @Evilslayer73
      @Evilslayer73 3 роки тому

      @@RalphBacon no to upload sketch to the esp32

    • @RalphBacon
      @RalphBacon  3 роки тому +1

      ESP32 (TTGO V1.8+) will upload the same as an Arduino. Nothing to press. Other ESP32 devices require you to press RESET then BOOT then release the RESET keeping the BOOT pressed until upload starts.

  • @pauloe8pck830
    @pauloe8pck830 3 роки тому

    Hi Ralph, please try using a NEXTION screen. Touchscreen with only three connections to the Arduino board and it appears to be very easy to use. It has a built in processor and I am sure that you will be able to work the programming app.

    • @RalphBacon
      @RalphBacon  3 роки тому +1

      I have one but have never plugged it in. Just 3 wires you say? I MUST make the time for this and my Mk II.

    • @pauloe8pck830
      @pauloe8pck830 3 роки тому

      @@RalphBacon Thanks Ralph. I am Sure you will Love this Display Ehen you geht the häng OF THE programming App. There is an example in utube that uses this Display. If you cannot find it Let ne know ans I will send the Link.

    • @pauloe8pck830
      @pauloe8pck830 3 роки тому

      ua-cam.com/video/eFs2ePMQz8c/v-deo.html this is the link for the nextion use.. It is worth watching.

    • @pauloe8pck830
      @pauloe8pck830 3 роки тому

      You need 4 wires if you use the touch screen sorry.

    • @bbowling4979
      @bbowling4979 3 роки тому

      The main issue with the Nextion displays is price. A 320x240 Nextion display will run you about $25 USD.

  • @hardiknandaniya6880
    @hardiknandaniya6880 3 роки тому

    🤟🏻🤟🏻👍🏻

  • @flemmingchristiansen2462
    @flemmingchristiansen2462 3 роки тому

    Great with the topic bat at the bottom, maybe you want to keep it on all the time, just an idea.
    I, for one, don't really care if this project takes 3 or 10 episodes to finish but please go with all the bells and whistles you can think of.
    This can really turn into a great project but it need to be finished finished. I am not sure if that is within your topic/theme.
    @ 14:30, you say 32 byte, shouldn't that be 32B?
    As I remember 32b is 32 bit, 32B is 32 byte.
    If you are in touch with the guys you are "stealing" code from, please send them my best regards, they are doing a trementes work for us all. Bif thanks to them.
    You are talking about putting it in a box some time in the futura. Might i suggest that you don't put it all on one board. Some might, like me, like to make a front with the display, buttons and switches. That is much easier with a main board, with the ESD and decoder and connections to the screen and buttons.
    Might we see the list of what you are planning? I am well aware that this can explode if you let us add to your list.

    • @RalphBacon
      @RalphBacon  3 роки тому +1

      Yes, 32B (not 32b). Interesting thoughts about not putting this all on one PCB. Hmm. I've designed a double-sided PCB with the TFT on one side and the two modules on the other side. Otherwise you'll have lots of wires from the display board to the "motherboard". I suppose we could use an n-way IDC header cable... BTW the "To Do" list is in the source code - ToDo.h

    • @flemmingchristiansen2462
      @flemmingchristiansen2462 3 роки тому

      @@RalphBacon I have seen others having issues with the annoying touch screen maybe it can be fixed in code. You might want to try this out www.aliexpress.com/item/1879700082.html?spm=a2g0s.9042311.0.0.58384c4dqwiJwc
      I wonder how many would comment on the ToDo list. 😊

  • @Mr.Leeroy
    @Mr.Leeroy 3 роки тому

    RockRadio1
    Hope you know this one
    144.217.77.176:8000

    • @RalphBacon
      @RalphBacon  3 роки тому

      Hmm... a bit too much rock for me but others may like it.

  • @daveholden3935
    @daveholden3935 3 роки тому

    Isolation / audio transformer. When scavenging parts from old modems I have extracted ETAL P1200 transformers.
    Datasheet www.farnell.com/datasheets/1801043.pdf
    It's worth investigating as most old modems will have similar devices. Might be suitable to cure hum loops without too much loss in fidelity - and free !

    • @RalphBacon
      @RalphBacon  3 роки тому

      Excellent source of components in old modems (just the thought of their terrible noise as they dialled up and [hopefully] connected makes me cringe).

  • @encorespod2135
    @encorespod2135 3 роки тому

    RS 123-7200

    • @RalphBacon
      @RalphBacon  3 роки тому

      Woah! You must be kidding! They cost over £32 each! One I had in mind (should I need it) is from eBay. Compare:
      bit.ly/IsolationTransformer600ohm
      uk.rs-online.com/web/p/audio-transformers/1237200/
      But, seriously, thanks for the nudge, I had forgotten about this entirely!

    • @encorespod2135
      @encorespod2135 3 роки тому +1

      @@RalphBacon Hey I like a quality product :D I stuck one of those in the PA system at work to eliminate a ground loop with the phone system and it worked a charm. I just like buying one-offs from RS because yeah they charge the premium but they won't put their name on crap.
      I was thinking more that you'd want one for your recording setup rather than the project itself.