How to Build Self-Driving Cars From Scratch, Part 1
$19.99
Minimum price
$29.00
Suggested price

How to Build Self-Driving Cars From Scratch, Part 1

A Step-by-Step Guide to Creating Autonomous Vehicles With Python

About the Book

This is part 1 of my 3-part training guide on how to build self-driving cars from scratch. This guide is bundled with a repository containing simulations, python scripts, graphics, and other useful assets

. In this step-by-step guide, I’ll teach you how to make an app that you can use to create a simulation where cars learn how to drive autonomously over racing tracks. Here’s a break down of the contents of this guide.

Part 1: Car mechanics. In this part, you’ll learn how to draw the car and control it with the keyboard. You will use a multimedia library for Python called Pyglet. (https://pyglet.org/). This is the only library you will use in this guide. This is a cross-platform windowing and multimedia library for Python. It’s a powerful yet easy-to-use Python library for building games and other visually rich applications on Windows, macOS, and Linux.

Part 2: Neural network and genetic algorithm. You’ll learn how to create the AI where you combine a neural network and genetic algorithm. You’ll learn how to add sensors to the car and get output from them. To prevent the untrained network from car crashes, a genetic algorithm will be used to train the cars. This will help the cars to drive simple tracks.

Part 3: Challenges. You’ll add some challenges to the system. Tracks get more complicated and will take advantage from the previous track training by storing and retrieving the car brains.

By the end of this training, you will have created self-driving cars that are capable of driving on unknown tracks by understanding how to steer, accelerate, and brake based on what cars see in front of them. Since autonomous cars need a brain of some kind, you know we need some AI (artificial intelligence). AI comes in many forms, but in this guide, you’ll use a neural network where the weights are adjusted by a genetic algorithm.

Employment opportunities often come from work samples and concrete skills, rather than a college degree. So, you need to learn the practical aspect well enough. This guide will not only help you learn well and build a stunning portfolio, it will also provide you continuous help and support.

With this book and my dedicated 24/7 help and support team, there’s nothing for you to fear. I have helped many Python developers update their automation development skills, launch successful careers and get hired for remote jobs. I notice that even the most ambitious beginners can run into problems, such as unable to decide where to begin. Sometimes they get completely lost on the way and therefore need further help.

In Chapter 3, I explain how to download my repository which contains all updates of the Python scripts (codes) and simulations used in this guide. Although I explain all the codes used in this guide clearly, if you need further help, just use my support link at the end of the Chapter.

 

The truth is everyone needs help at one point or the other to learn and build automation in their development journey. I can give you more challenges and their solutions in my subsequent trainings.

  • Share this book

  • Categories

    • Algorithm
    • Artificial Intelligence
    • Machine Learning
  • Feedback

    Email the Author(s)

About the Author

A. B. Lawal
A. B. Lawal

I am multi-talented. As a computer engineer and a computer scientist, I have over 15 years of teaching experience in software development and computer hardware architecture. I am the CEO of AB Publisher LLC, a media publishing company. I co-publish my books with Charles H. Johnson who also offers technical assistance to my company. In the last few years I have helped the IT industry develop various useful programs on Windows, MacOS and PLCs (programmable logic controllers).

I always build solutions from scratch and go as far as modifying open source software to meet my client’s needs. As an embedded systems expert, I design embedded Systems that optimize performance and cost against complex requirements. I leverage Stratify OS (a POSIX like RTOS for micro-controllers) to quickly and cost-effectively develop complex firmware applications in Python and C/C++ languages. I work with a dedicated team of Python programmers who look into specific automation problems and proffer solutions to them.

For any inquiry, you can contact us with any of the email addresses below any time. If you want to contribute your knowledge to this website, or if you have a request, just send us your message. We promise to do our best to help.

Bolakale Aremu (CEO), Founder info@abpublisher.com, OjulaTech@gmail.com.

Charles H. Johnson (Co-publisher and Technical Assistant) amandamorin3000@gmail.com.

Table of Contents

0. Introduction

0.1. Getting Started

0.2. The Target Audience

0.3. How to Use This Guide

0.4. Who am I?

0.5. The Tool You Need

1. Neural Networks & Genetic Algorithms

2. Car Mechanics

2.1. Parking Lot

2.2. Keyboard Control

2.3. Off Road - Track Binary Matrix

2.4. Rounds

2.5. Heads Up Display

3. How to Download Simulations, Python Scripts, Graphics & Other Assets

3.1. Download link

3.2. How to Get Further Help & Support

3.3. Overview of Part 2

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub