Wemos Lolin32 OLED and Gpio

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey what's happening guys I've been playing some more with this ESP 30 to the Wemo slowin with the onboard OLED display screen and you know we order these things from China in what you get is a usually working module and no documentation whatsoever but you know for the most part it follows along the lines of the standard ESP 32 but there are some interesting things that they don't tell you especially like well how is that OLED wired in is it I squared C is the SPI what sort of drivers do you need so I thought we'd take a few minutes today and go over that now you can see here that I am running a clock on here it does a digital clock than it does an analog clock and this is just an example program from the esp8266 ESP 32 SSD 1306 OLED library that's a hell of a long name for library but it works great you just need to know a couple of things to make it work with this particular module so let's zoom out okay I hit the right button this time and we'll bring in this paper here which has all of the goodies on it so that we can talk about it and figure it out so the first thing we need to know is how is that module wired and it is wired I squared see the clock is on GPIO 5 and data is on GPIO 4 now there are other modules that might be wired differently might be wired as SPI if you find one that's wired SPI then your pin out here is clock is 5 mossie is 7 reset is 0 data command is 8 and chip select I'm sorry data command is 2 and chip select is 8 now some other interesting features on this module are the SVP and SVN which is a very low powered amplifier which can be used for like a thermocouple you also see that we have the touch pins over here and they go from GPIO 4 down to GPIO 15 here and then we also have our serial ports here we have a couple of 3.3 volts couple of 5 volts a couple of 3 grounds and we also have some direct access to the flash memory over here so this is going to turn out to be a really nice and useful module let's uh go over to the computer and we'll take a look at that particular library ok if we take a look in our library manager and just search SSD 1306 we're going to come up with this one here it is the esp8266 and ESP 3200 LED driver for SSD 1306 display by daniel Eichorn and Fabrice Weinberg I have version 3.2.40 here will open up a new one file examples ESP driver this is one we're running here it's the clock demo and if you come down here you see it tells you pretty much everything you need to be doing but you need to pay attention here you see it's setting your your data and your clock at D 3 and D 5 you need to make sure you change that like I did right here in this line 2 5 comma 4 those are the correct settings that will get you running also this is the address hex address o x3c once you've got that going it's you know just like using any other library you can just take a look in the dot H folder and see what the commands are and use them so if we come down here again and we look in that library you can see it has some other things this is the clock demo we have a drawing demo ot a simple in a UI demo so there's lots of interesting stuff you can do with this library and it's made specifically for the esp8266 and the ESP 32 so there's really no trouble in making it work you just have to make sure you adjust this line here for your I squared C now if you find that it's not coming up when you do this it's probably the address is different and if that's the case simply run the I squared C scanner program and you'll find out what address it's on no problems there at all so hopefully this helps you guys out so that you can access this OLED screen if you bought one of these modules and keep in mind you know this is a standard ESP 32 so it has all of the advantages of the 32 including the touch sensors sleep internal temperature dual processors you know Wi-Fi Bluetooth it's all there this is just simply giving you an OLED onboard so you don't have any additional wiring it makes for nice compact products or projects whichever way you like it hope this helped you out did please give me a thumbs up and feel free to comment share and don't forget to subscribe big thanks to all the patrons I'll put a link to that library down below and a link to this module that's it I'm out peace you
Info
Channel: learnelectronics
Views: 15,327
Rating: undefined out of 5
Keywords: Wemos Lolin32 OLED and Gpio, esp32, esp32 pinout
Id: mFpUNYX6B0U
Channel Id: undefined
Length: 6min 51sec (411 seconds)
Published: Sat Apr 28 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.