- 122
- 439 409
Coding With Brett
United Kingdom
Приєднався 22 січ 2019
I learnt to code when my parents bought a Sinclair Spectrum in the early 1980's. I soon learnt Basic and Z80 Assembly Language and started writing my own games. They were pretty terrible, but I found coding to be tremendous fun.
In my day job I'm a senior full stack developer. I mostly use the .NET Framework, C#, Razor Views, SQL and JavaScript. I'm currently creating websites using .NET Core with both MySQL and SQL Server databases.
Outside work I've been building interactive Lego projects using the C programming language to program Arduino Uno and Nano microcontrollers. These projects involve lots of LEDs and TFT/OLED displays.
As well as being a programmer, I've also taught English and Computer Programming in universities in Ningbo and Guangzhou, China. I've also taught Computer Science at secondary school level.
In my day job I'm a senior full stack developer. I mostly use the .NET Framework, C#, Razor Views, SQL and JavaScript. I'm currently creating websites using .NET Core with both MySQL and SQL Server databases.
Outside work I've been building interactive Lego projects using the C programming language to program Arduino Uno and Nano microcontrollers. These projects involve lots of LEDs and TFT/OLED displays.
As well as being a programmer, I've also taught English and Computer Programming in universities in Ningbo and Guangzhou, China. I've also taught Computer Science at secondary school level.
Does Buying the ETF Dogs Outperform the S&P500?
The Dogs of the Dow is a proven long term investment strategy for outperforming the market. But does it work with Exchange Traded Funds instead of individual stocks? The results will surprise you!
00:00 - Dogs of the Dow strategy
00:40 - ETF dogs strategy
03:00 - Backtesting
05:30 - 2024's ETF dogs
07:42 - Inverse dogs
My Dogs of the ETF Universe strategy in full: www.etfsectordata.com/Dogs/
ETF dogs interactive backtesting tool: www.etfsectordata.com/DogsTool/
My strategy is somewhat different to the original strategy. Instead of screening stocks for the 10 highest yielders, I simply bought the 3 worst performing ETFs of the year, then held them throughout the following year. I then rotated into the next 3 dogs. The results were pretty spectacular. I scored a massive hit by being long China in 2024. An ETF full of meme stonks soared for me in 2023. The best dog was Turkey - up a stunning 91.6% in 2022. Some flopped, but overall the strategy returned 169% in just 3 years.
Warning: my site is new and I also need to backtest the strategy to see how it performed before 2022. My site also only lists 105 ETFs. Although I've covered most investible countries and stock sectors, I still need to add fixed income and some other sectors.
In this video I also ran the same methodology on the inverse dogs (i.e. buying the 3 best performing ETFs each year) to see if momentum is a winning strategy.
Incidentally this strategy could also be used with investment accounts where you only have a limited selection of investment choices such as mutual funds.
Dogs of the Dow: www.dogsofthedow.com/
Disclaimer: this video is for entertainment purposes only and is not financial advice.
00:00 - Dogs of the Dow strategy
00:40 - ETF dogs strategy
03:00 - Backtesting
05:30 - 2024's ETF dogs
07:42 - Inverse dogs
My Dogs of the ETF Universe strategy in full: www.etfsectordata.com/Dogs/
ETF dogs interactive backtesting tool: www.etfsectordata.com/DogsTool/
My strategy is somewhat different to the original strategy. Instead of screening stocks for the 10 highest yielders, I simply bought the 3 worst performing ETFs of the year, then held them throughout the following year. I then rotated into the next 3 dogs. The results were pretty spectacular. I scored a massive hit by being long China in 2024. An ETF full of meme stonks soared for me in 2023. The best dog was Turkey - up a stunning 91.6% in 2022. Some flopped, but overall the strategy returned 169% in just 3 years.
Warning: my site is new and I also need to backtest the strategy to see how it performed before 2022. My site also only lists 105 ETFs. Although I've covered most investible countries and stock sectors, I still need to add fixed income and some other sectors.
In this video I also ran the same methodology on the inverse dogs (i.e. buying the 3 best performing ETFs each year) to see if momentum is a winning strategy.
Incidentally this strategy could also be used with investment accounts where you only have a limited selection of investment choices such as mutual funds.
Dogs of the Dow: www.dogsofthedow.com/
Disclaimer: this video is for entertainment purposes only and is not financial advice.
Переглядів: 21
Відео
How to Add Library in Arduino IDE
Переглядів 3 тис.7 місяців тому
Here's how to add a library in the Arduino IDE, either through the library manager or from a GitHub repository's ZIP file. The same methods can be used for an Arduino Uno, Arduino Mega, ESP32, ESP8266 or any other microcontroller supported by the Arduino IDE. I also show you how to find the library source code files and examples on your computer. 00:00 - Introduction 00:13 - Add library via Ard...
Where Are Arduino Libraries Stored?
Переглядів 1 тис.7 місяців тому
I thought I'd make a quick video that helps you locate Arduino libraries if you're using the Arduino IDE. Usually you can just install new libraries through the Arduino IDE, but there are a few reasons why you might need to open the folder and edit the files: 1. You need to edit a library's configuration file. You need to do this if you're using the Bodmer eSPI_TFT library. 2. You want to find ...
Fun ESP32 Project: Foul Bachelor Frog Meme Displayer (SSD1351 SPI OLED)
Переглядів 2907 місяців тому
Here's how to make a fun little Foul Bachelor Frog (FBF) meme display device using an ESP32 microcontroller and an SSD1351 OLED display. It's a great beginner project and will definitely impress your emo friends. Maybe it will even help you find a girlfriend. Or possibly not. It would be easily modded to show other memes from the era when the internet was actually fun. I also made some other ad...
How to Connect DHT11/DHT22 Temperature Sensor to ESP8266
Переглядів 5777 місяців тому
Here's a quick tutorial that shows you how to connect up an ESP32 microcontroller to either the DHT11 or DHT22 low cost temperature and humidity sensors. The DHT11 is cheaper but the DHT22 is a better option if you want more accurate readings. This example uses the Adafruit DHT library, which supports both the DHT11 and DHT22. 00:00 - DHT11 vs DHT22 00:44 - Connect ESP8266 to DHT sensor 02:06 -...
ESP32 Send Temperature Data to Home Assistant
Переглядів 2,7 тис.7 місяців тому
Here's how to connect an ESP32 to Home Assistant and send realtime sensor data to Home Assistant over wifi. The code will also work with the ESP8266 with minimal modifications. Be warned there's something wrong with my hardware setup, but the data sending process itself works flawlessly. 00:00 - Introduction 00:36 - Installing an MQTT Broker 02:10 - Configure Home Assistant MQTT integration 03:...
ESP32 Find and Change Wifi Mac Address
Переглядів 1,6 тис.7 місяців тому
Here's how to quickly find and then change the Wifi Mac Address of an ESP32 microcontroller. The ESP32's Mac Address is assigned at the factory, but you can change it to another Mac Address of your choosing. This is really useful if you're using Home Assistant or another Internet of Things service or you're streaming video from an ESP32 CAM. Just be aware you can't permanently change the ESP32'...
Easy ILI9341 + ESP32 LCD TFT Display Tutorial (SPI/Bodmer)
Переглядів 7 тис.7 місяців тому
Here's a quick tutorial that shows you how to get an ILI 9341 TFT LCD display working with an ESP32 using the SPI protocol and the Bodmer graphics library. The display module I'm using here is the Waveshare 2.4 inch LCD module. It features a 240x320 pixel display. 00:00 - Introduction 00:49 - Configuring the TFT_eSPI library 02:37 - Configuring the backlight 03:18 - LCD test #1: Digital Rain 04...
How to Connect DHT11/DHT22 Temperature Sensor to ESP32
Переглядів 1,6 тис.7 місяців тому
Here's a quick tutorial that shows you how to connect up an ESP32 microcontroller to either the DHT11 or DHT22 low cost temperature and humidity sensors. The DHT11 is cheaper but the DHT22 is a better option if you want more accurate readings. 00:00 - DHT11 vs DHT22 00:30 - Connecting DHT to ESP32 01:30 - Arduino DHT library 02:48 - Configure the sketch 03:26 - Code walkthrough 03:54 - DHT22 te...
How to Display Animated GIF on OLED/TFT (ESP32, Arduino, ESP8266)
Переглядів 10 тис.7 місяців тому
Here's a quick tutorial that shows you how to display an animated GIF on a OLED or TFT display using the SPI protocol. It should work on any microcontroller that is supported by the Arduino IDE. In this example no external SD card is required. All you need is a microcontroller and a OLED or TFT display that supports SPI. It's a good idea to use an ESP8266 or ESP32 for this rather than an Arduin...
Rant: Visual Studio Annoying Markup Snippet Popup in Razor/HTML
Переглядів 657 місяців тому
This Markup Snippet in Visual Studio 2022 is so annoying! It keeps popping up when you're trying to write text or HTML in Visual Studio's Razor Views or maybe HTML pages too. It really slows down typing and is incredibly distracting. I really wish Microsoft would stop adding useless AI features to Visual Studio. They just get in the way of writing code! I don't know how to turn it off but maybe...
First 10 Days Being Monetized - How Much Did I Make?
Переглядів 2077 місяців тому
Here's how much money my small UA-cam channel made in the first 10 days of being monetized in 2024. I mostly produce faceless coding tutorials and troubleshooting guides. I'm trying to stay within the same niche as much as possible, because that definitely helps to build an audience and help the algorithm push out your content to a wider audience. 00:00 - About my channel 00:52 - Income reveal ...
Live UK Train Departures Board (ESP32 + ePaper Display)
Переглядів 8067 місяців тому
Here's how to build a train departure board using an ESP32, a Waveshare e-Paper display panel an API call to retrieve some Json data. In this particular example I've used it to display a list of departures from a specific UK train station. You could easily modify it to display departure data from another rail hub or even an airport. If you're using the display on a model railway or diorama you ...
ESP32 HTTPS: Install SSL Certificate and Retrieve Data
Переглядів 1,7 тис.7 місяців тому
Here's how to connect an ESP32 to a website using SSL and download content using https. While trivial on other operating systems and programming environments, it's actually quite complicated to get working on the ESP32. After two frustrating days I managed to get it to work. In this example I'm using the WiFiClientSecure library and code sample. This is a wrapper on top of the widely used WifiC...
How to Make a Mini Social Media Updates Display (ESP32 + Waveshare ePaper)
Переглядів 3278 місяців тому
I thought I'd share this little beginner project I made using the ESP32 microcontroller and a Waveshare ePaper display. What you will learn: basic C classes, Arduino String class, randomised data including string construction, displaying of bitmaps on ePaper panels, sleep and wake up ESP32. It's a nice idea for a school or university microcontroller project. You don't have to use anime dolls - ...
How to Draw Bitmap Images on Waveshare ePaper Displays (SD Card NOT Required)
Переглядів 1,2 тис.8 місяців тому
How to Draw Bitmap Images on Waveshare ePaper Displays (SD Card NOT Required)
How to Draw Shapes on Waveshare ePaper Displays (GxEPD2)
Переглядів 1,2 тис.8 місяців тому
How to Draw Shapes on Waveshare ePaper Displays (GxEPD2)
Cool Matrix Digital Rain for ESP32/ESP8266 OLED/TFT Displays
Переглядів 5448 місяців тому
Cool Matrix Digital Rain for ESP32/ESP8266 OLED/TFT Displays
ESP32 Retrieve JPEG From Web & Display on OLED/TFT
Переглядів 1,7 тис.8 місяців тому
ESP32 Retrieve JPEG From Web & Display on OLED/TFT
Easy ESP32 Waveshare ePaper Display Tutorial
Переглядів 13 тис.8 місяців тому
Easy ESP32 Waveshare ePaper Display Tutorial
Export Images From GIMP & Display on ESP32 OLED/TFT
Переглядів 8138 місяців тому
Export Images From GIMP & Display on ESP32 OLED/TFT
ESP32 OLED Yoda Quote Display - Learn to Code You Must
Переглядів 4228 місяців тому
ESP32 OLED Yoda Quote Display - Learn to Code You Must
Display Full Color Images on ESP32 + SSD1351 OLED
Переглядів 3,6 тис.8 місяців тому
Display Full Color Images on ESP32 SSD1351 OLED
How to Make Your Own DECO*27 It's Not a Devil Music Video
Переглядів 3259 місяців тому
How to Make Your Own DECO*27 It's Not a Devil Music Video
Solved: How to Make Stickers Transparent on CapCut PC
Переглядів 7609 місяців тому
Solved: How to Make Stickers Transparent on CapCut PC
Solved: Arduino IDE 'Undefined Reference to Loop'
Переглядів 6809 місяців тому
Solved: Arduino IDE 'Undefined Reference to Loop'
How to Receive MQTT Messages From ESP32 Sensors in C#
Переглядів 7899 місяців тому
How to Receive MQTT Messages From ESP32 Sensors in C#
I Wrote This ZX Spectrum Game in 1988 - Will it Load?
Переглядів 1199 місяців тому
I Wrote This ZX Spectrum Game in 1988 - Will it Load?
PIR Sensor Troubleshooting for IoT Microcontrollers
Переглядів 6159 місяців тому
PIR Sensor Troubleshooting for IoT Microcontrollers
ESP32 Wake up with PIR Motion Sensor
Переглядів 2,9 тис.9 місяців тому
ESP32 Wake up with PIR Motion Sensor
thank you so so much . this really really helped me . i was searching for soo much time . really appreciate your work
When I turn it up to 100, you can hear a lot of static in the microphone feed..
Nice to understand more on this subject. Looking for help on my project also using ESP32 with a PIR motion sensor. Problem is that the sensor is placed inside a mailbox and when its triggered by mail arriving the (metal sided) mail van is in between the sensor and my router effectively blocking off the transmission. My thought was that I could trigger an automation when the sensor resets but how do I configure it for perhaps a 2 minute delay?
Loved It.👍
Dude you are the goat. THANK YOU. Mine was at 25...
Hi Brett, I have just come across your video and I have got it to work on my ESP32-CAM board but with just one issue that is stumping me. It seems to be overwriting the saved file each time it takes a picture as when I check the SD card there is only 1 image on there named 0.jpg. The SD card is empty to start with but that should be OK. See snippet of serial monitor output in next post.
17:52:59.352 -> Going to sleep for 30000000 microseconds... 17:53:29.091 -> ets Jul 29 2019 12:21:46 17:53:29.091 -> 17:53:29.091 -> rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 17:53:29.091 -> configsip: 0, SPIWP:0xee 17:53:29.091 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 17:53:29.091 -> mode:DIO, clock div:1 17:53:29.091 -> load:0x3fff0030,len:4832 17:53:29.091 -> load:0x40078000,len:16460 17:53:29.091 -> load:0x40080400,len:4 17:53:29.091 -> load:0x40080404,len:3504 17:53:29.091 -> entry 0x400805cc 17:53:29.137 -> E (47) esp_core��][}���͡� No core dump partition found! 17:53:29.137 -> E (47) esp_core_dump_flash: No core dump partition found! 17:53:29.358 -> ESP32 is waking up... 17:53:29.358 -> Next photo number loaded from preferences: 1 17:53:29.624 -> Initialising SD card 17:53:29.669 -> SD card is empty 17:53:29.669 -> Next photo number reset to 0 17:53:29.896 -> Picture file name: /photo_0.jpg 17:53:30.022 -> Saved file to path: /photo_0.jpg 17:53:30.022 -> Next photo number saved to preferences: 1 17:53:30.022 -> Going to sleep for 30000000 microseconds... 17:53:59.711 -> ets Jul 29 2019 12:21:46 17:53:59.711 ->
It just keeps repeating this. Any help would be most appreciated. Thanks.
could you create something like this using the r4 uno
Not really an issue, more liek nit-picking, but I'm really curious how to precisely set up the the exact same dashboard panel. I can't get the sensor card configuration. However, I am using DHT11 so if that's the case it's understandable.
I get persistent compilation error (exit status 1) on my pc alone, others work fine, I have tried reinstalling countless times it doesn't work. I have no clue how to fix it
didnt know brett were into touhou haha
how to do it for oled display
Thanks for doing this video, This answered my question and solved my search problem. Thumbs up vote
This example, in my case, definitely does not work on ESP12E, but works just fine on ESP32
Good video!
This helped me so much it’s the only vid I could find that helped!😊
The problem for me was that i had it downloading and installing at the same time !!! Changed that to download and install after !! SOLVED IT !!
Great video!! Is there an option to overlay 2 images? Thnsk!
Lol mine was at 67. Thank you!
What about the 4 color (white, black, dark and light gray) Waveshare e-paper? It seems there is no easy way becaus xmp supports black/white only...
anyone know the pin mapping for esp8266?
Windows makes me wanna die everyday. Thanks for the fix!
Thank you
Thanks. But I get an error: error: 'display' was not declared in this scope; did you mean 'delay'? In the "Hello World" example a variable "display" is used first in line 48 (see 3:10 in video), but not declared. What is the problem in my case? A missing library? But I followed your instructions step by step...
Can you show a minimum program with header and setup to draw one pixel? My problem is to start any of these GxEPD2 examples.... Are other libraries necessary? To which pins must the cables be connected?
Muito boa a sua explicação! Excelente trabalho meu caro!
Tentando aqui meu mano! Deu bom colocar imagem no Display?
I followed the image at 2:58 to connect the wires, then after the esp32cam couldnt connect I realised that all the pins on my FTDI were mirrored compared to the image, just had to pull them out, turn 180° and now it works.
Oh my gosh tysm! I know it would’ve annoyed me if I wouldn’t be able to get this.
Thank you so much for this video
thank you! mine was at 75
how about temperature and HUMIDITY sir?
How about for phone?
Sorry I don't know about the phone version. I only use the PC version.
SHT VIDEO
I have made the following changes in the “CameraWebServer” sample code in order to operate the Flash LED via the web interface: File “app_httpd.cpp”: #define LED_LEDC_GPIO 4 File “camera_pins.h”: #define LED_GPIO_NUM 4 Depending on the board, other pins may be required.
Passing 24h now struggling with this..not excatly same setup and sensors as yours but damn shouldn't be this hard. I can see that Esp32 is connected to broker and receive messages but it doesn't recognize any new device or sensors in HA. It obviously would be easy to give up and let esphome do everything but that wouldn be any fun..
You literally saved my final year project.
ty so much omg
That guy going crazy was oddly cathartic
how to get this aniimations from sd card if its size is bigger than arduino memory?
I think ESP32 internal LED blinking is there to communicate when data is written to and written from it to the serial. digitalWrite() doesn't seem be able to override that behaviour. But you can make it blink at different rates with different delays between two serial.println() commands. I was trying to replicate Blink example from Arduino uno and this was the only way I could do it.
Here i used tft7735 1.8' display (160*128) But the problem arises here i trying to show various gifs but all the emojis has bluish tones..... Here i am reading from the sd card I checked all the instructions in user setup file but all are waste of time 😢 Can you guess what the problem is? I also uncommanted the rgb,bgr orders.. Green tab, ref tab orders...all thinks
What would be the size for a YT short?
your videos are very unique and for sure helpful with every detail, and I wonder if you can help me a query here, can we use e-ink display as primary display connected via SPI interface, I was told that BIOS configuration needs to be changed to do so, do you have any video on how to do it all.. or can you at least point me in right direction :)
I appreciate this video!🎉 I was recording and and sound was great…all of a sudden people couldn’t hear me talking. I did a test video and changed settings in obs and it was still not how I had it. I checked my windows settings just now and it was all the way on 12 😑. Lol, thanks for the info!
Doesn’t work for me :/
I tried and tried but it doesn't work, I need help, I have a minimal Arduino R1 programmable board
why do you talk like that?
Hello, when compiling I get this error - please advise!! 'union arduino_event_info_t' has no member named 'disconnected'; did you mean 'eth_connected'? It is highlighting the last line here: eventID = WiFi.onEvent([](WiFiEvent_t event, WiFiEventInfo_t info) { Serial.printf( " frame_cnt: %8d, WiFi event Reason: %d , Status: %d ", frame_cnt, info.disconnected.reason, WiFi.status()); logfile.printf(" frame_cnt: %8d, WiFi event Reason: %d , Status: %d ", frame_cnt, info.disconnected.reason, WiFi.status());
They made it harder to access the templates :(
Thanks for letting us know. Chrome browser has a built in translator. I don't know if that would help.
snprintf (msg, MSG_BUFFER_SIZE, "\{\"Temperature\": %4.1f, \"Humidity\": %4.1f\}", t, h);
thanks , i bought esp 32 wrover ie yesterday ,using the blink from the examples doesnt work (i thot myesp was broken) but your code work 😁😁👍👍