As we continue making Pong with an Arduino, I now create the code to make the ball handle collision detection, movement and way much more. We are building Pong on a constrained piece of hardware using raw binary bits and clever algorithms. Like before I’ll live code everything with very little preparation so that you can see my thinking process. All of the heavily commented code follows below. Continue reading Arduino 10 : Arduino Pong 2
Arduino 9 Arduino Pong
Someone requested that I make the game Pong on a 16 x 2 LCD panel and so I start doing that in this tutorial. I’m going to live code everything with no preparation ahead of time, so that you can see how I solve this problem.
I focus this time on drawing on the LCD panel, moving the paddles and processing user input along with much more. All of the code and a transcript are found below. Continue reading Arduino 9 Arduino Pong
Arduino 8 Conway’s Game of Life
I tried to cover a ton in this tutorial. I’ll show how to use LCD Panels with Arduino. I then live code Conway’s Game of Life using an Arduino and a LCD Panel. Along the way we’ll create custom characters, convert from binary to base 10, generate random arrays, copy arrays and a whole lot more. I hope these functions will be useful in numerous personal projects you may have.
All of the code and a transcript follows the video below. Continue reading Arduino 8 Conway’s Game of Life
Arduino 7 Binary Calculator Circuit
This tutorial takes the next step towards understanding how a bunch of resistors and transistors turn into a real computer.
Previously we created gates and now we will use them to create both a 1 Bit & a 4 Bit Binary Calculator on a breadboard. I’m using a NAND 7400 IC to create an XOR Gate. I’m using a 4 Bit Binary Adder 74LS283 IC to create that circuit. The circuit diagrams can be found below. Continue reading Arduino 7 Binary Calculator Circuit
Arduino 6 : Read Schematic Diagrams
After the last video many people asked me how to read schematic diagrams so this time I’ll walk you through the process of taking a schematic diagram to a finished circuit. This time we will be creating a NAND Gate. NAND Gates are awesome because they can be used to build all the other gates. They are the basic component from which a computer is made.
I have a drawing of the circuit below to help you. I hope you enjoy this video. Continue reading Arduino 6 : Read Schematic Diagrams
Arduino Tutorial 5
My most active subscriber asked me to show how to make a calculator with circuits and so I begin that journey with this video. To make a calculator you need to understand Transistors as well as Transistor Gates. I make 4 circuits, one to demonstrate how transistors work as well as NOT, OR 7 AND Gates. The designs can be found below along with the code I used in this video. Continue reading Arduino Tutorial 5
Arduino Tutorial 4
In this part of my Arduino tutorial we’ll create 2 separate projects. First we’ll learn how 7 segment displays work and then create a dice simulation rolling circuit. We’ll then learn how to create a theremin, which is a weird instrument you can play without touching it. In addition we’ll learn about photoresistors, importing libraries, voltage dividers, map and much more.
All of the code follows the video below. Continue reading Arduino Tutorial 4
Arduino Tutorial 3
In the last video I asked for requests so in this video I cover those requests. I’ll make both a Proximity Sensor and a Piano using an Arduino. Here is the kit I’m using.
We’ll learn about Ultrasonic Sensors, How Sound is Turned into a Current, Passive Buzzers and much more. All of the code is below. Continue reading Arduino Tutorial 3
Arduino Tutorial 2
In this part of my Arduino tutorial I’ll cover how to measure current, resistance and voltage with a multimeter. I’ll also show how to measure voltage with an Arduino with a demonstration using a potentiometer and LED. To finish off I’ll show the difference between resistors in series versus parallel and a whole lot more.
All of the code used follows the video below. Continue reading Arduino Tutorial 2
Arduino Tutorial
Here I begin a massive tutorial on Arduino and Electronics! In this first video I cover Arduino Basics, Electricity, Ground, Voltage, Current, Resistance, Power, Protecting Components, LEDs, Breadboards, Arduino Coding, Ohm’s Law, Generating Different Voltages with Arduino, 2 Circuits and much more.
Like always the code I use follows the video below. The kit I’m using for the tutorial is here. Continue reading Arduino Tutorial
Arduino Programming
In this tutorial I’ll cover the core C language used to program Arduinos. We’ll look at ports, the serial monitor, looping, data types, conditionals, setup, loop, static, functions, arrays, strings, numerous math functions, bit manipulation, random, structs, styling text, pointers and much more.
I make multiple little projects here, but the projects will get more advanced as I make more videos. All of the heavily commented code follows below. Continue reading Arduino Programming
Qt Tutorial 5 : Paint App
In this video I finish the Qt Paint app I started in this video. So many topics are covered. We make menu bars, numerous dialog boxes, interact in numerous ways, allow for drawing, changing colors, changing line widths, printing, saving and opening new files.
I hope this makes the original Qt example make more sense. The heavily commented code can be found below. Continue reading Qt Tutorial 5 : Paint App
Qt Tutorial 4 : Paint App
I received a bunch of questions about the Qt Paint App Example, so I decided to do a tutorial in which I explain every line of code. This paint app allows for opening, saving and printing images. You can also draw on the screen using different colors and pen widths. The are a bunch of dialogs covered as well along with numerous other topics. I provide all of the heavily commented code below for the finished app. Continue reading Qt Tutorial 4 : Paint App
Qt Tutorial 3
In this part of my Qt Video Tutorial I’ll cover how to make numerous charts. We’ll make two types of Bar Charts along with Pie and Line. I’ll also cover numerous attributes associated with Qt charts.
All of the code follows the video below. I did my best to structure it as a transcript as well. Feel free to use it as you may. Continue reading Qt Tutorial 3
Learning Japanese
In this tutorial series I’ll show all the free tools I used while learning Japanese over the last 2 months. I’ll cover how I learned Hiragana, Katakana, and over 2,100 Kanji. I show how to use an awesome app named Anki for learning everything. Then I’ll cover the tools I’m using to study 10,000 of the most used Japanese words. I also show a browser extension that translates Japanese and a free version of the popular Pimsleur course that allows for studying on your computer or phone. All of the links mentioned follow the video below. Continue reading Learning Japanese
How I Learn Everything
The question I get more then any other is “How do you learn everything?” In this video I cover the main tool I use being Anki. I provide numerous examples on how you can use Anki to learn an endless variety of subjects. I then cover tricks to make learning complex topics easier and more.
If you want me to cover how I’m learning Japanese leave a comment below. It has been an interesting journey. You can get an Anki Account here. The Desktop Anki App is here. Continue reading How I Learn Everything
Qt Tutorial 2 : C++ Calculator
The most requested next C++ app you guys asked for was a calculator, so here it is. We’ll make a C++ GUI Calculator app in one video. Along the way we’ll learn a lot! We’ll cover a topic which confuses many people which is how to setup event handling with Signals and Slots. We’ll also cover how to work with widgets in many ways, setting up an interface, stylesheets, casting, regular expressions and much more.
All of the heavily commented code follows the video below. Continue reading Qt Tutorial 2 : C++ Calculator
Qt Tutorial : C++ Notepad App
I thought it would be fun to make a real app in this Qt Tutorial, so I made a working Notepad app. We’ll install Qt for Windows and MacOS. Then we’ll cover Qt Basics, Dialogs, Widgets, Drag and Drop Interfaces, Creating / Opening / Saving Files, Menus, Toolbars, Icons, Printing, and much more.
Qt is an amazing framework for creating cross platform C++ GUI applications. All of the code follows the video below. Here are the icons used. Continue reading Qt Tutorial : C++ Notepad App
C++ Tutorial 21
In this part of my C++ tutorial I finish covering C++ with Regular Expressions. If you missed the 1st part watch it first.
This time I’ll cover Back References, Substitutions, Look Ahead, Or Conditionals and 3 problems for you to solve. All of the heavily commented code follows the video below. Use it to receive the best results in your studies. Continue reading C++ Tutorial 21
C++ Tutorial 20
In this part of my C++ tutorial I continue showing tons of examples about regular expressions. If you missed the 1st part watch it first.
This time I’ll show more ways to match what you are trying to grab. We’ll also talk about Greedy vs. Lazy matching, Boundaries, and grabbing multiple subexpressions. This tutorial also contains 2 problems for you to solve. All of the code follows the video below to help you learn. Continue reading C++ Tutorial 20