- 122
- 423 706
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.
มุมมอง: 13
วีดีโอ
How to Add Library in Arduino IDE
มุมมอง 2.3K6 หลายเดือนก่อน
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?
มุมมอง 8606 หลายเดือนก่อน
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)
มุมมอง 2536 หลายเดือนก่อน
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
มุมมอง 5016 หลายเดือนก่อน
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.3K6 หลายเดือนก่อน
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.4K6 หลายเดือนก่อน
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)
มุมมอง 7K6 หลายเดือนก่อน
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.4K6 หลายเดือนก่อน
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)
มุมมอง 9K6 หลายเดือนก่อน
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
มุมมอง 656 หลายเดือนก่อน
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?
มุมมอง 1957 หลายเดือนก่อน
Here's how much money my small TH-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)
มุมมอง 7287 หลายเดือนก่อน
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.6K7 หลายเดือนก่อน
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)
มุมมอง 2997 หลายเดือนก่อน
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.1K7 หลายเดือนก่อน
How to Draw Bitmap Images on Waveshare ePaper Displays (SD Card NOT Required)
How to Draw Shapes on Waveshare ePaper Displays (GxEPD2)
มุมมอง 1.1K7 หลายเดือนก่อน
How to Draw Shapes on Waveshare ePaper Displays (GxEPD2)
Cool Matrix Digital Rain for ESP32/ESP8266 OLED/TFT Displays
มุมมอง 5077 หลายเดือนก่อน
Cool Matrix Digital Rain for ESP32/ESP8266 OLED/TFT Displays
ESP32 Retrieve JPEG From Web & Display on OLED/TFT
มุมมอง 1.5K7 หลายเดือนก่อน
ESP32 Retrieve JPEG From Web & Display on OLED/TFT
Easy ESP32 Waveshare ePaper Display Tutorial
มุมมอง 12K7 หลายเดือนก่อน
Easy ESP32 Waveshare ePaper Display Tutorial
Export Images From GIMP & Display on ESP32 OLED/TFT
มุมมอง 7358 หลายเดือนก่อน
Export Images From GIMP & Display on ESP32 OLED/TFT
ESP32 OLED Yoda Quote Display - Learn to Code You Must
มุมมอง 3808 หลายเดือนก่อน
ESP32 OLED Yoda Quote Display - Learn to Code You Must
Display Full Color Images on ESP32 + SSD1351 OLED
มุมมอง 3.3K8 หลายเดือนก่อน
Display Full Color Images on ESP32 SSD1351 OLED
How to Make Your Own DECO*27 It's Not a Devil Music Video
มุมมอง 3018 หลายเดือนก่อน
How to Make Your Own DECO*27 It's Not a Devil Music Video
Solved: How to Make Stickers Transparent on CapCut PC
มุมมอง 6838 หลายเดือนก่อน
Solved: How to Make Stickers Transparent on CapCut PC
Solved: Arduino IDE 'Undefined Reference to Loop'
มุมมอง 6208 หลายเดือนก่อน
Solved: Arduino IDE 'Undefined Reference to Loop'
How to Receive MQTT Messages From ESP32 Sensors in C#
มุมมอง 7088 หลายเดือนก่อน
How to Receive MQTT Messages From ESP32 Sensors in C#
I Wrote This ZX Spectrum Game in 1988 - Will it Load?
มุมมอง 1168 หลายเดือนก่อน
I Wrote This ZX Spectrum Game in 1988 - Will it Load?
PIR Sensor Troubleshooting for IoT Microcontrollers
มุมมอง 5378 หลายเดือนก่อน
PIR Sensor Troubleshooting for IoT Microcontrollers
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!
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 😁😁👍👍
Great, Thanks a lot - it works
Do changes need to be made to the User_Setup.h file for the TFT SPI library?
He doesn't mention it, but you do indeed have to modify the User_setup.h file.
@@rolandor9678 thanks
Can you provide the working code? I am having trouble getting anything to display on the display. The previous tutorial (for a static image) worked great using the adafruit gfx library. I get no error codes and my serial monitor displays "Succesfully opened gif" but the screen remains black. Please help! I should also note the following lines (in setup) never show in the serial monitor: Serial.println("ESP32 is starting up"); // initialize screen Serial.println("TFT screen intialising"); I think the issue is related to the pins? I am using 0 2 and 4 just like in your example. Or perhaps it is the User_Setup.h file. I believe we need to make changes to this file but you did not mention it in the video : (
You just have to modify the User_setup.h code in the section where you assign the pins using. file path: Arduino/libraries/TFT_eSPI/User_Setup.h 1.- uncomment the line: #define SSD1351_DRIVER 2.- Search the code for the section: // ###### EDIT THE PIN NUMBERS IN THE LINES FOLLOWING TO SUIT YOUR ESP8266 SETUP ###### 3.- Comment: #define TFT_MISO PIN_D6 // Automatically assigned with ESP8266 if not defined #define TFT_MOSI PIN_D7 // Automatically assigned with ESP8266 if not defined #define TFT_SCLK PIN_D5 // Automatically assigned with ESP8266 if not defined #define TFT_CS PIN_D8 // Chip select control pin D8 #define TFT_DC PIN_D3 // Data Command control pin #define TFT_RST PIN_D4 // Reset pin (could connect to NodeMCU RST, see next line) 4.- Find the part of the code: // ###### EDIT THE PIN NUMBERS IN THE LINES FOLLOWING TO SUIT YOUR ESP32 SETUP ###### 5.- Uncomment the lines: //#define TFT_MOSI 23 //#define TFT_SCLK 18 //#define TFT_CS 15 // Chip select control pin //#define TFT_DC 2 // Data Command control pin //#define TFT_RST 4 // Reset pin (could connect to RST pin) 6.- Assign the pins used in the video example: #define TFT_MOSI 23 #define TFT_SCLK 18 #define TFT_CS 0 // Chip select control pin #define TFT_DC 2 // Data Command control pin #define TFT_RST 4 // Reset pin (could connect to RST pin) 7.- Save changes and compile Arduino project
In my case, my work VPN was on and the background task to update Visual Studio was running 30-40 minutes without completing. Once I turned *off* my work VPN, the Visual Studio update seemed to finish quickly. Just in case this tip helps someone else. Disclaimer: Follow your workplace policy!
Hi I have a question I have a esp32 when I try to get the MAC address! It show the Mac address 00:00:00:00:00:00 do you know why?
me too
"The most difficult to get working" ?? NO.. HELL NO !! I'd give that award to the Arduino Nano ESP32 is bloody easy. I mean once you get past that step of adding the board to the IDE After that it's easy
Bless you sir. I would add a note, and maybe you said it and i missed it. There might be multiple that match yours (eg 420 400x300), dont be disheartened if it doesnt work, just go down the list. 2 of the 5 worked for me for whatever reason lol
Bro tysm i was extremely confused, i thought there wouldn't be a video *this* specific on my problem but i was wrong! Have a good day
Same here!
ty!
Can i read from a memory address just the same? As an example, output from a raspberry pi is read and written to memory. The arduino loop reads the memory address over and over again and outputs to the spi oled. ??
This was monster helpful for me ✅️ Thanks ❤️ Sub✅️
Nice video
That worked thanks so much!