#204

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ค. 2024
  • So I'm testing out a new touch-screen TFT as part of my Internet Radio project. Funny, that screen looks familiar where have I seen it before?
    JLCPCB Only $2 for 4-layer PCB Prototype any colour jlcpcb.com/
    Special Xmas offer valid until December 25th 2020
    ------------------------
    INFORMATION
    ------------------------
    Schreibfaul1 driver for ESP32 & ILI9341 TFT (320x240):
    github.com/schreibfaul1/ESP32...
    Fancy new fonts? Try the font creator, can be used with above driver:
    www.mikroe.com/glcd-font-creator
    ESP32 information from the designer of the device:
    docs.espressif.com/projects/e...
    Arduino sketch for the shield version of this TFT:
    create.arduino.cc/projecthub/...
    List of all my videos
    (Special thanks to Michael Kurt Vogel for compiling this)
    bit.ly/TH-camVideoList-RalphB...
    -------------------
    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.com/custlink/v33...
    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.com/custlink/KGK...
    Amazon UK sell this TOUCH 2.8" screen (in the UK) for just £10.38 with next day delivery!
    amzn.to/2GQtBLS
    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.com/item/32959...
    I couldn't get an affiliate link for above, click here first: s.click.aliexpress.com/e/_ADe0jl
    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/RalphBacon
    ------------------------------------------------------------------
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 154

  • @flemmingchristiansen2462
    @flemmingchristiansen2462 3 ปีที่แล้ว +1

    Good introduction.
    This will be my first ESP32 project, looking forward to it 😊

  • @charlesjones5070
    @charlesjones5070 3 ปีที่แล้ว

    I'm glad you said the Royal Mail delivery works ok from JLCPCB. I just ordered my first set of PCBs from them last night and that was the delivery option I chose. Interestingly my project also caters for an HC-12 module.... Keep up the great content, I've learned a lot from watching your videos

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      Wonderful! So the HC-12 module that is not actually a BT module but acts like one? Let us know how long it takes for delivery (given the strange circumstances we're all in).

    • @charlesjones5070
      @charlesjones5070 3 ปีที่แล้ว

      @@RalphBacon my PCBs arrived today. They took just over 2 weeks to arrive, which isnt bad for economy mail. They look great, looking forward to breaking out the soldering iron...
      I'm using the HC-12 as a wireless UART interface for Debug purposes on a shed alarm system, but looking to grow the system to have a repeater siren inside the house.

  • @AtlantaTerry
    @AtlantaTerry 3 ปีที่แล้ว +2

    Ralph, about your JLCPCB offer that is good until December 25, 2020:
    ANYTHING ordered from Mainland China, Hong Kong, Taiwan, etc. after mid-November of any year will most likely be late in arriving due to the high volume of orders being shipped that will then need to go through customs and handling in general by their postal system. This rush creates a backlog that then hits the Chinese New Year in mid-February when everyone there seems to take time off to celebrate and once again all shipments seem to slow to a crawl creating a backlog for the backlog. With the COVID-19 pandemic going on, goodness only knows what will happen to shipments.
    So if anyone plans to have anything shipped from the area, please keep this in mind and complete your order *before* mid-November.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      Indeed, Terry. I remember this year during Chinese New Year that coincided with the start of our UK lockdown, things took over a month to get to me (usually 10 days). So, a timely warning indeed.

  • @catherinesui2514
    @catherinesui2514 3 ปีที่แล้ว

    love it! thanks for your efforts!

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      Glad you like them! Speak to you soon!

  • @avejst
    @avejst 3 ปีที่แล้ว

    Great video as always
    Thanks for sharing 👍😁

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      Thanks for watching!

  • @Hasitier
    @Hasitier 3 ปีที่แล้ว

    Looks interesting Ralph. As we build a new house soon I might need some internet radios soon 😀
    Schreibfaul1 seems to be a German guy with great projects. I already build his scrolling text clock a few years ago.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      Sounds great! As it happens I decided that rather than implementing an existing project, which I didn't really understand, I'd design my own. What I now DON'T know about streaming radio streams with embedded ICY information is not worth knowing anyway! All will be revealed next week. Currently listening to Antenne1.de (128k), very nice.

    • @Hasitier
      @Hasitier 3 ปีที่แล้ว

      @@RalphBacon looking forward to this episode. I’ll definitely had the plan to build a cheap internet radio myself. Do you plan to include a web interface to set up your desired radio stations?

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      Eventually, yes. I'm getting the core functionality working first. I got the ring buffer working today, such an improvement. But I'm jumping the gun here!

  • @andymouse
    @andymouse 3 ปีที่แล้ว

    Hi Ralph, I'm looking forward to this one ! a nice project with some meat on and you will end up with a sweet gadget that costs a fraction of what it would from a shop...cheers.

    • @jyvben1520
      @jyvben1520 3 ปีที่แล้ว

      well, i bought a bose soundtouch years ago, no need for amp/loudspeakers, has wireless remote control, MS windows setup, auxilary wired sound input (e.g. to connect to a nas usb sound output) and can connect to the internet router using wifi or wired,
      There is even an independent simple python programming library to control it.
      It depends on your current hardware what will be cheaper.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +2

      You bet, Andy!
      So far, if I cost everything up, the ESP32 Dev Board was $6, the VS1053 about $5 and the most expensive thing was the screen, currently about $6.66 so a total spend of less than $20. Of course, the case will cost something and I suppose we ought to add in the cost of a PSU even though everyone has a 1A 5v Phone Charger hanging about! I do want to get a PCB made for this, though. Another $2 plus shipping.
      The satisfaction of getting it to work is not to be underestimated, along with the future ability to update the software OTA, including the LITTLEFS partition. All good. Another viewer mentioned BT streaming too... the list goes on.

    • @andymouse
      @andymouse 3 ปีที่แล้ว

      @@RalphBacon Yep its a goody !..from my perspective I would be looking forward to the PCB design as I love doing that ! this ticks all the boxes for me because I get invested in something Im gonna use on a regular basis. There is a screen manufacturer who has a full ecosystem to support their screens...might be worth a look ?

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      Could be, Andy. Post any links here.

    • @andymouse
      @andymouse 3 ปีที่แล้ว +1

      @@RalphBacon Not sure if this is suitable but " Nextion " do a 2.4 inch screen solution with free software to develop a simple GUI.

  • @PrawnCocktailBro
    @PrawnCocktailBro 3 ปีที่แล้ว

    Looking forward to this

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      It's playing now, displays the current track/artist and everything!

  • @Cptnbond
    @Cptnbond 3 ปีที่แล้ว

    Nice, I have another application in mind, but with essentially, same screen and ESP32 -- so indeed I will follow along this project.

  • @c2h7
    @c2h7 2 ปีที่แล้ว

    I actually like the way the sd reader sticks out sideways, that was one of the reasons I chose this module. I want to have my webradio also able to play mp3 from sd and for that I want the card to be pluggable from the top. Hope I can use the display that way around, since you mentioned the slot being on the bottom...

    • @RalphBacon
      @RalphBacon  2 ปีที่แล้ว

      You can flip the display orientation in software if needed, so it should be fine.

  • @Cairos1014
    @Cairos1014 3 ปีที่แล้ว

    Ralph, do you have any guidance on the other variations of the esp32 (S2, D)? I have not paid attention and have ended up with a mixture but haven't had the time to evaluate the differences.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      The ESP32-S2 is just a single core processor. Nothing wrong with that but do bear in mind that the WiFi and BT code will be running on that core too and will get very upset if they run out of processor cycles - so we have to have lots of "yield()" statements to let them "have a turn". On a standard ESP32D (dual core) we don't have to worry about that, assuming we're running on Core 1.

  • @qzorn4440
    @qzorn4440 3 ปีที่แล้ว

    ok ok... i am getting very close to having my very 1st pcb to be sent off for fabrication and i am using kicad for now... thank you for the great circuit board info...:)

  • @poepflater
    @poepflater 3 ปีที่แล้ว +1

    I read somewhere in some esp32 docs over the weekend that you should use PNG for detailed images, and that PNG will be rendered more accurately than jpg

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      That's good to know. I did spot a difference between two of my icons so maybe that is why.

  • @scottstevens7569
    @scottstevens7569 3 ปีที่แล้ว +1

    Interesting project and nice presentation as always.
    Just yesterday had a conversation about 'Touch Screens' and whether they might fall out of favour due Covid-19 for all the commercial uses they've been popping up in; such as Banks, 'petrol' pumps and store/restaurant purchase equipment, where most of those won't work with gloves on, a stylus isn't provided and cleanliness isn't upkept between customers.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      I understand people's concerns, for exactly the reasons you state. Luckily my gloves work with touch screens (they have some tiny (carbon fibre?) pads on the index and thumb position so I can scroll my phone too.

    • @englishrupe01
      @englishrupe01 3 ปีที่แล้ว +1

      Yes.....and i can also report that my thin nitrile gloves also work with touch stuff.

  • @MUHAMMADYAWARIFRAHEEM
    @MUHAMMADYAWARIFRAHEEM 3 ปีที่แล้ว

    Very informative video SIR

  • @willofirony
    @willofirony 3 ปีที่แล้ว +1

    Great video Ralph. I am getting excited about the complete project. Now, I listen to a lot of audiobooks, usually from an iPod Nano via headphones/earbuds. Lets pretend you have a really awkward subscriber who always wanted your projects to do something that you never thought of and was so esoteric that none of your other subscribers would have any interest in. Would it be a total pain to tweak your internet radio that it could also stream from Bluetooth?

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      I saw the words "awkward subscriber" and read no further. 🤣

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      More seriously, that is an outstanding idea. I'm not sure whether I would need a separate BT to audio module or whether the ESP32 could handle it all internally. I shall check it out.

    • @willofirony
      @willofirony 3 ปีที่แล้ว

      @@RalphBacon You are a wonderful human being.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      Flattery will get you nowhere, Michael. Now, cheques on the other hand... 🤣

    • @willofirony
      @willofirony 3 ปีที่แล้ว +1

      @@RalphBacon Who mentioned stamp collecting

  • @henninb
    @henninb 3 ปีที่แล้ว

    Good stuff.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      Glad you enjoyed it

  • @user-pq5qs1bt7y
    @user-pq5qs1bt7y 3 ปีที่แล้ว

    Good job.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      Thank you! Cheers!

  • @TYGAMatt
    @TYGAMatt 3 ปีที่แล้ว +1

    I'm using a 2.8" ILI9341 display with my ESP32 project. It's great. Using TFT-eSPI library which is lightening fast. For updating often changing data use the "sprite" class.
    I'm with you on the number of pins. The ESP32 boards I have are 30 pins. I'm using all but one, which is annoying as have more things to do. So just ordered a couple of 38 pins which will hopefully sort me out.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      This morning I just discovered and used Bodmer's TFT_eSPI library. It's running on a separate ESP32 right now but this afternoon I hope to merge the two together. Then we're done. Oh, part from IR remote control. Oh, and the internet interface. Oh, and the LITTLEFS update for the station list. Oh and the touch controls for chanGing channel. Oh, and... this is a project that will *never* end!

    • @TYGAMatt
      @TYGAMatt 3 ปีที่แล้ว +1

      @@RalphBacon that made me chuckle. My project started as a speedometer using a Nano and a Nokia 5110 display.
      Now it's ESP32 with the 2.8" ILI9341 display and measures speed (hall effect sensor) , coolant temp (thermistor) , engine knock (special sensors from April Systems in The UK), ambient conditions (BME280), lean angle, acceleration & brake force (MPU6050), gear position and two stroke oil level. Oh and just fitted a Ds3231 so I can see the time too.
      All the sensor can be read by Bluetooth and it keeps track of things like total distance and total time, saved to the EEPROM.
      Also want to hook up my exhaust gas temp sensors (MAX6675 modules) but I think I'm out of pins now. Hence ordering the 38 pin board.
      Big thanks to you Ralph as your vids have certainly helped with the code. Especially the tasks and semaphores.
      Sorry for waffling on......

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      I'm glad you are an enthusiastic maker! And you understand my project's predicament only too well! Well, can't write here all day, I've got an interface to construct...

    • @TYGAMatt
      @TYGAMatt 3 ปีที่แล้ว +1

      @@RalphBacon my enthusiasm definitely outweighs my talent at the moment, but I'm getting there, and learning plenty.

  • @yogeshitaliya473
    @yogeshitaliya473 3 ปีที่แล้ว

    Nice one sir

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      So nice of you!

  • @konstantinosdamaskos4138
    @konstantinosdamaskos4138 3 ปีที่แล้ว

    Hello, the tft freezes after some hours. What can i do? I think it must be a stability issue. How i can reduse the noise on spi pins and make more stable the connections?
    Thanks in responce and congrats for tha amazing channel.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      Firstly, ensure your cables are not too long. Whilst I have used 30cm cables here I have also reduced the frequency of the SPI bus from 80MHz to 40MHz.
      Anything generating electrical noise near those (unshielded) cables could cause it to lock up, I suppose.
      Try running a simple program overnight that just counts from 1 to a million and see if it is still running in the morning.
      Ensure your PSU that you driving the ESP32 with via the USB socket is up to the task, not just an unpowered USB from a hub.
      If you can repeat the lockup, trying removing the power from the LED pin and reconnect that the following morning - still locked up?

    • @konstantinosdamaskos4138
      @konstantinosdamaskos4138 3 ปีที่แล้ว

      @@RalphBacon Thank you for your help!!

  • @brianharper9798
    @brianharper9798 3 ปีที่แล้ว

    Generally if you find the highest quality stream you can, it will sound very good when hooked up through an external amplifier. I was running mine with i2s into a pcm5102 module.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      Good to know! Mine is playing a 128Kbps AAC stream via the VS1053 hooked up to some decent (active) speakers and it sounds fine.

  • @cheblack677
    @cheblack677 3 ปีที่แล้ว

    Is there a 3.3V i2c or UART communicating touch display for ESP32

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      Yes, I'm using one right now in my Web Radio Project - see this for some links below the video. The screen is very good value at about $6.66 from China (plus a bit of shipping) or about £10 from the UK. If you live elsewhere take your pick!
      Video: th-cam.com/video/xrR8EZh2bMI/w-d-xo.html
      TFT Touch Screen: www.banggood.com/custlink/v33EPJT6cF

    • @cheblack677
      @cheblack677 3 ปีที่แล้ว

      @@RalphBacon I didn't formulate well the question. Using the suggested display consume my processor resources to drive the display. What I need is a HMI on 3.3V-3.6V serial communication, just to send the new values of some variables and the display to take care for the rest. If a button on the screen is pushed to send me back the information of the event.
      I try Nextion with esp32. I can read from the display, but display can't from the processor. Using Arduino with the same sketch I have no issue.

  • @farhadh.jafarpour3025
    @farhadh.jafarpour3025 ปีที่แล้ว

    Dear Ralph, I have a shield for UNO. Its touch is defective and cannot be calibrated at all. I tried lots of tutorials and ... all in vain. So, could you help me if I decide to use it just as a LCD without touch which pins of the shield should be used? By the way, my major is not electronics.

    • @RalphBacon
      @RalphBacon  ปีที่แล้ว +1

      You must first identify the _exact_ model of screen you have, starting with the driver chip. Some are _very_ similar looking, so you must spend time on this aspect.
      Then use the pins from either an Arduino library (I probably used the most comprehensive library out there, read it and when you have found your exact screen/chip comment out the other screen names leaving just the one you need) or using the data sheet (good luck with that).
      Ignore the touch function as this will use different pins albeit they may be shared on the SPI bus.
      Try and upload the simplest Hello World sketch you can find in the examples just to get it going and thereby proving to yourself that you have found the correct screen.

    • @farhadh.jafarpour3025
      @farhadh.jafarpour3025 ปีที่แล้ว

      @@RalphBacon Thank you so much for your quick reply. I will do what have suggested. I will report the result.

  • @tycstahX
    @tycstahX 3 ปีที่แล้ว

    Can the TFT shield work on top of with a wemos d1?

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      The Wemos D1 is a 3v3 device but does have a +5v pin in the usual place, which the screen will need (I tested running it at 3v3 and it didn't work). Then we have the question whether the screen pins are at 5v or 3v3 because the D1 is a 3v3 device - would it be damaged? I can't answer the question fully; scour the internet, surely someone has tried this?

  • @stressedbunny
    @stressedbunny 3 ปีที่แล้ว

    Ralph, The link for the 2.8" screen from Amazon is the non-touch version. Just a heads up for people.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      Oh dear, that's not right. I shall see if they have a touch version available and update the link, if so. Thanks for the heads up, Gary.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      I found one that IS touch and even cheaper:
      amzn.to/2GQtBLS

  • @Ivor_Nastyboil
    @Ivor_Nastyboil 3 ปีที่แล้ว +1

    Have you looked at the Nextion displays?

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      I looked, and even have one, Ivor, but decided life it too short to try every display I have. BUT, once I have a few moments I want to drag it out of my component store just to see if it's any "better". I've written the Internet Radio sketch so it can use any display you want.

  • @madmax2069
    @madmax2069 2 ปีที่แล้ว

    I'd love to see someone tinker around with the ATS-25 as it does have an ESP32 Wroom and a SI4732, the second core, wifi and Bluetooth of the ESP32 aren't even being used.
    I'd love to see if the ATS-25 is capable of more.

    • @RalphBacon
      @RalphBacon  2 ปีที่แล้ว

      I can't believe someone hasn't already created an all-singing radio with this device. Search the Internet, bound to be out there!

    • @madmax2069
      @madmax2069 2 ปีที่แล้ว

      @@RalphBacon I've looked and there doesn't seem to be much of anything done with the ATS-25, people pretty much just buy it and leave it as is, I mean there has to be a bit more that it can be capable of, I mean most of the ESP32 is left unused, only a single core is used, the wifi and Bluetooth is unused, the second core is unused (you'd figure there would be someone trying to use the second core to try to make the UI more responsive or something but not even that).
      You'd figure there would be something, but there is nothing that I found.

  • @fredflintstone1
    @fredflintstone1 3 ปีที่แล้ว

    nice video I can't wait till you actually start getting it working :-)

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      It's working right now, so stay tuned.

    • @fredflintstone1
      @fredflintstone1 3 ปีที่แล้ว

      @@RalphBacon I am awaiting the screen ordered today :-)

  • @backyardbasher
    @backyardbasher 3 ปีที่แล้ว +1

    My first ESP32 "clone" I bought from ebay it had 38 pins, onboard wifi/bt antenna and external antenna socket. It was a great little microcontroller but now I only buy genuine Espressif ESP32's from mouser uk.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      In what way did you buy a clone? Are you saying the ESP32 processor block on it was not from Espressif? How did you tell? I'm worried now!

    • @carlanwray8718
      @carlanwray8718 3 ปีที่แล้ว

      I think the thing to look at here Ralph is that you can get a genuine reference board for about the same price and know that it has good quality components. And you can even get high end component boards from reputable vendors for a dollar or two more. Digikey and Mouser both stock them.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      Both those suppliers, Carlan, are outside of the UK and charge an arm and a leg for shipping. Our equivalent might be RS Components and they put the price of the ESP32 outside of my budget.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      That picture from@Backyardbasher looks fine to me!

    • @carlanwray8718
      @carlanwray8718 3 ปีที่แล้ว

      @@RalphBacon so this isn't available to you from the UK: www.mouser.co.uk/ProductDetail/Espressif-Systems/ESP32-S2-Saola-1R?qs=GBLSl2AkirsMIxW%2FKjKKRw%3D%3D

  • @garymetheringham4990
    @garymetheringham4990 2 ปีที่แล้ว

    did you have any issues with the touch screen with the miso pin on the tft connected? my 4" st7796 will not read touch when tft miso is connected. it took me weeks to find the problem

    • @RalphBacon
      @RalphBacon  2 ปีที่แล้ว

      No issues at all with the screen that I used (with an ESP32). Worked exactly as expected. My touch and screen MISO/MOSI are, of course, shared on that bus (wired in parallel). I'm guessing either your board or the library you're using works differently? The CS pin is not being held permanently LOW for the screen/touch?

    • @garymetheringham4990
      @garymetheringham4990 2 ปีที่แล้ว

      @@RalphBacon no when i pulled the miso pin from the tft pins and only had touch miso (they are on same bus) the touch and tft works fine. im also on esp32. at the moment i can live without having to read from the tft. oh well at least i got it going eventually (i got it after you released your esp32 radio and trying to sort it since then)

    • @RalphBacon
      @RalphBacon  2 ปีที่แล้ว

      Is this the same screen I'm using in my ESP32 radio?

    • @garymetheringham4990
      @garymetheringham4990 2 ปีที่แล้ว

      @@RalphBacon I think you had the large screen in one of the videos (320x480 4inch) it is based on the st7796 chip not an ilixxxx chip

    • @RalphBacon
      @RalphBacon  2 ปีที่แล้ว

      The library I use for my ESP32 Web Radio (with touch screen) will also support your screen. It's called TFT_eSPI (mine is v2.2.23) by Bodmer and can be downloaded from here: github.com/Bodmer/TFT_eSPI and it's now a later version.
      You do have to update the User_Setup.h file to indicate which screen/driver chip you have (you must uncomment out lines) but it's worth the trouble to do properly.

  • @viktorhugo8252
    @viktorhugo8252 ปีที่แล้ว

    Why did you take the ILI9341 with parallel and touch?

    • @RalphBacon
      @RalphBacon  ปีที่แล้ว +1

      Because it works amazingly well. Both display and touch work as expected, although I think (not sure) I had to invert the touch coordinates. Anyway, it was built into my ESP32 Web Radio and is still doing what it is supposed to today!

  • @jumbo999614
    @jumbo999614 3 หลายเดือนก่อน

    I'm using ILI9341 with ESP32 Wroom DOIT Dev Kit v1 (30pin version). I already solder all the connections instead of using breadboard.
    I can't get my built-in SD slot to read and display jpg image stored on SD card.
    I'm using eSPI library.
    Here is how I connect:
    cs=15, rst =4, dc=2, mosi=23, csk=18 , miso=Not connected
    t_slk=18, t_cs=21, t_din=23, t_do=19
    sd_cs=5, sd_mosi=23, sd_miso= 19, sd_sck=18
    Please help.

    • @RalphBacon
      @RalphBacon  3 หลายเดือนก่อน +1

      When using SPI (as you are here) the MOSI, MISO, SCK are shared, that is, the same for each device. It is only the CS (Chip Select) line that has to be separate for each device and which goes LOW to select that device to talk (you must never make two CS lines LOW at the same time). Try that and put a text file on the SD card and try and read that first.
      BTW the MISO (Master In, Slave Out) and MOSI (reversed) are now called CIPO and COPI (Controller In, Peripheral Out and vice versa) which is more PC and quite descriptive too!

    • @jumbo999614
      @jumbo999614 3 หลายเดือนก่อน

      @@RalphBacon Thank you

  • @bryaninglis
    @bryaninglis 3 ปีที่แล้ว

    Have you managed to get 2 SPI devices to work on an ESP32 yet ?

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      I've got three devices running, really: the VS1052 MP3 decoder, the ILI9341 screen and the touch part of that screen, also on the same SPI bus. The touch (input) part runs the SPI clock at a slower rate of 2.5MHz, the display (output) part runs at 40MHz.

  • @fritschalterheijden318
    @fritschalterheijden318 3 ปีที่แล้ว +4

    Those 38-pin development boards are a bit overrated compared to the 30-pin boards. The extra pins are mostly FLASH-pins (SD0, SD1, SD2, SD3) and ground-pins. The FLASH-pins should be kept floating at boottime, so be carefull using them...

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      *Agreed* I've done some research and the 38-pin dev boards (my one at least) has pins D6 - D11 exposed that should not be used (at least not as inputs) as they are used as a separate SPI bus for the ESP32's flash memory. So that brings the total down to 32. Subtract a couple of extra GND pins and we're down to the 30-pins of other (smaller) boards. Sigh. I believe I have a 30-pin board so I'll build another Internet Radio Player with it just to ensure it still has enough of everything! As it's smaller it would fit on my PCB better.

  • @markj3851
    @markj3851 3 ปีที่แล้ว

    Hi Ralph- Great video. I wanted to add there is a TFT library for the Arduino TFT Shield that works great. www.lcdwiki.com/Main_Page It seems they classify the TFT's into 2 categories, "Arduino Shield" and "SPI Breakout Board". The Arduino shield TFT uses a bit banging protocol and the SPI uses hardware SPI. I have both and the Arduino shield seems to be a bit faster then the comparable SPI unit. The Arduino shield version also multiplexes of few of the display and touch screen pins. The shield is great for development stuff but it's not easy to use in a real project since it must be sandwiched to an UNO or a MEGA which limits panel mounting in an enclosure. Great to see another super video and keep up the great content!

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      Thanks, Mark. As it happens, I'm using a different library now which is more powerful (and designed for ESP32 32-bit operation). My needs are very modest but it's a nice library to use. More details next week...

  • @gazzacroy
    @gazzacroy 3 ปีที่แล้ว +1

    hi hay could you try something for me can you see if your screen displays the "£" pound simbal. on mine it displays a "u" with dots above it very annoying..lol

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      "Sure," I said to myself, "I'll check this out in a couple of minutes." 1 hour later I still have not had any success. You're lucky you get _something_ printed, no matter what I do I get nothing printed, whether I use the actual "£" or ascii value 156 or some other weird combination. It will also depend on your locale - which means even if it works for you it might not work for someone in the USA with a different set of default characters. You could try looping through all ascii characters from 1 to 255 to see what (if anything) gets printed for each. Otherwise Google might be your best friend but it certainly wasn't for me this morning. Sorry.

    • @gazzacroy
      @gazzacroy 3 ปีที่แล้ว

      @@RalphBacon is mad isn't it lol mybe it's because we are leaving Europe the display just says no :)

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว +1

      I even had a problem today with an ampersand ("&"), on some song titles it would display OK and other times I just got a space. I'll add it to the list of "niggles" that need sorting out (eventually). Yes, I blame Trump, actually.

    • @gazzacroy
      @gazzacroy 3 ปีที่แล้ว +1

      @@RalphBacon lol oh yer i didnt think of him yer i 100% agree it must be lol.
      im going to try a different font see if that make the pound sing come back there some nice font for these screens they look nice to :)

  • @gazzacroy
    @gazzacroy 3 ปีที่แล้ว

    cool

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      Glad you think so!

  • @Cdaprod
    @Cdaprod ปีที่แล้ว

    Jpg could be corrupted when improperly ejecting from device. Also could be whatever

    • @RalphBacon
      @RalphBacon  ปีที่แล้ว

      Very true, SD card corruption is all too common.

  • @henrikjensen3278
    @henrikjensen3278 3 ปีที่แล้ว +1

    I do not agree with getting as many pins as possible on the ESP32, I have 32 pins and 36 pins version and they have exactly the same amount of usable pins. The four extra pins is used internally on the module and not recommended to use externally.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      The ESP32 uses 4 pins on one of its SPI buses to control its internal flash. But they are not normally exposed, are they? I shall check up on what pins are useable by us.

    • @henrikjensen3278
      @henrikjensen3278 3 ปีที่แล้ว

      That is exactly the 4 extra pins on the 36 pin ESP32.

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      On the 36-pin ESP32, agreed. But I "warned" against buying the 30-pin version which is 6 pins fewer. In which case, in your 32-pin vs 36-pin versions, what do they give you in useable pins over and above the 30-pin version?

    • @henrikjensen3278
      @henrikjensen3278 3 ปีที่แล้ว

      Sorry about the 32 pin, it is the 30 pin and the 6 extra pins are the pins used for the internal flash: GPIO6..GPIO11

    • @TYGAMatt
      @TYGAMatt 3 ปีที่แล้ว

      @@henrikjensen3278 can those pins be used at all? If not then why are they made available?

  • @jyvben1520
    @jyvben1520 3 ปีที่แล้ว

    will it be usb powered

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      Oh yes. But I have noticed that if I use an _unpowered_ hub the ESP32 will constantly reboot with "Brownout Detected". As soon as I power the hub it works just fine (and, of course, a standard USB wall wart works fine too).

    • @jyvben1520
      @jyvben1520 3 ปีที่แล้ว

      @@RalphBacon yeah, processor and wifi and screen, that is a lot

    • @RalphBacon
      @RalphBacon  3 ปีที่แล้ว

      That was _without_ the screen being connected!