MicroPython with the ESP32

MicroPython with the ESP32

如果您熟悉Python,则会发现MicroPython的外观,感觉和工作方式与常规Python相似。本课程将帮助您快速入门,并帮助您了解将Python用作在ESP32硬件上运行的MicroPython的特性。

如果您没有编程经验,MicroPython是学习如何编程硬件的理想选择。本课程将帮助您学习足够的MicroPython以便能够编写在ESP32微控制器上运行的程序。

如果您有使用Arduino IDE和语言对ESP32进行编程的经验,但是要了解MicroPython的知识,则本课程将帮助您实现这一目标。

什么是MicroPython?

MicroPython是一种编程语言,它借用了Python 3的语法和语言属性。

Python 3是一种功能强大的高级通用语言,旨在易于学习和使用。它非常流行,并且是使用最广泛的前五种编程语言之一。因此,它拥有广泛的学习资源,出色的文档和代码库,涵盖了惊人的应用程序范围。

从游戏到物联网,从数据科学到工业自动化,任何可以用Python编程的东西。

MicroPython是在Python的基础上建模的,以减少想要为资源有限的微控制器或嵌入式设备编写程序的人员的进入门槛。

什么是ESP32?

ESP32是Espresif的功能强大但低成本的微控制器设备。

ESP32器件的吸引力在于它集成了功能强大的双核CPU,具有相对大量的RAM和闪存,完整的无线和有线通信选项组合,并具有大量低成本的小尺寸输入/输出引脚。包裹。

ESP32还具有多种功能,您可以使用各种编程工具和语言(包括Arduino IDE和MicroPython)对其进行编程。

MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz, 2 Ch
Genre: eLearning | Language: English + srt | Duration: 87 lectures (10h 30m) | Size: 6.64 GB
The easiest way to write programs for the ESP32 microcontroller


What you’ll learn:
The MicroPython programming language.
How to use MicroPython with the ESP32 microcontroller.
How to use the Thonny editor with MicroPython and the ESP32.
How to use MicroPython with common peripherals such as motors, displays and sensors.
How to use MicroPython to write programs that work with IoT services like IFTTT.
How to search, find and install MicroPython libraries on the ESP32.

Requirements
You have basic understanding of electronics. You are comfortable with assembling simple circuits on a breadboard, and you understand simple concepts like pull-up resistors and voltage dividers.
You have a basic understanding of microcontrollers. For example, you know what is a GPIO, the I2C or SPI interfaces and PWM. You understand that if you connect a 3.3V device to a 5V power source, you will damage the device.
You are familiar with related concepts, such as the Internet Of Things (which features in one of the course sections).
You are comfortable with at least one programming language and programming tool. It doesn’t matter which ones, as all modern languages and programming share the same basics.
You have a growth mindset, and you are willing to work hard in order to learn.
If you feel that you don’t tick one of these boxes, consider doing one of my introductory Arduino and Electronics courses first.

Description
With this course, you will learn how to use MicroPython with the ESP32 microcontroller.

MicroPython is a high-level programming language specifically designed for microcontrollers and resource-limited embedded devices.

Who is this course for?

I have created this course for three types of students:

If you are familiar with Python, you will find that MicroPython looks, feels, and works like regular Python. This course will help you get started quickly, and help you out with the peculiarities of using Python as MicroPython operating on the ESP32 hardware.

If you have little programming experience, MicroPython is a perfect option for learning how to program hardware. This course will help you learn enough MicroPython to be able to write programs that run on the ESP32 microcontroller.

If you have experience in programming the ESP32 with the Arduino IDE and language, but what to check out MicroPython, this course will help you do that.

What is MicroPython?

MicroPython is a programming language that borrows the syntax and language attributes of Python 3.

Python 3 is a powerful high-level general-purpose language that is designed to be easy to learn and use. It is extremely popular, and among the top-5 most widely used programming languages. As a result, has an extensive set of learning resources, excellent documentation, and code libraries that cover an amazing breadth of applications.

From gaming to the Internet of Things, from data science to industrial automation, anything that can be programmed in Python.

MicroPython was modelled after Python to reduce the barrier to entry for people that want to write programs for microcontrollers or embedded devices that have limited resources.

What is the ESP32?

The ESP32 is a powerful yet low-cost microcontroller device from Espresif.

The appeal of the ESP32 device is that it packs a powerful dual-core CPU, with relatively large amounts of RAM and flash storage, a full complement of wireless and wired communications options, with lots of input/output pins in a small low-cost package.

The ESP32 is also versatile, as you can program it with a variety of programming tools and languages, including the Arduino IDE, and, of course, MicroPython.

I selected the ESP32 as the hardware for this course because it is easy to find in the market, very affordable considering its capabilities, and, most likely, most people interested in microcontrollers already have at least one.

What are the objectives of this course?

This course has 3 main objectives:

To introduce you to the MicroPython programming language, even if you have little or no prior experience.

To help you learn how to use MicroPython with common external devices, like motors and screens, with MicroPython programs running on an ESP32 microcontroller.

To consolidate this knowledge with the help of two capstone projects. In these projects, you will create a working gadget by combining the knowledge you acquired earlier in the course.

What are the knowledge prerequisites?

Before embarking on this course, please confirm that you tick the following boxes:

You have a basic understanding of electronics. You are comfortable with assembling simple circuits on a breadboard, and you understand simple concepts like pull-up resistors and voltage dividers.

You have a basic understanding of microcontrollers. For example, you know what is a GPIO, the I2C or SPI interfaces and PWM. You understand that if you connect a 3.3V device to a 5V power source, you will damage the device.

You are familiar with related concepts, such as the Internet Of Things (which features in one of the course sections).

You are comfortable with at least one programming language and programming tool. It doesn’t matter which ones, as all modern languages and programming share the same basics.

You have a growth mindset, and you are willing to work hard in order to learn.

If you feel that you don’t tick one of these boxes, consider doing one of my introductory Arduino and Electronics courses first. Then you’ll be ready to come back to this course.

Course organization

This course is organised in four parts.

In the first part, you will learn the basics. This is where you’ll learn how to set up and use Thonny, our programming editor, and prepare your ESP32 to work with MicroPython.

You will also have the opportunity to learn the basics of MicroPython and where and how to find compatible libraries.

The second part is where you roll up your sleeves and write MicroPython programs. You’ll start with simple pin operations that make LEDs blink and read buttons, then move on to sensors, displays, and motors. There’s a large section dedicated to Wifi and Internet of Things applications, and another section dedicated to more advanced topics such as hardware timers, working with internal sensors, and sleep.

In the third and final part, you will consolidate your new knowledge with the help of two capstone projects. Both projects combine the same hardware components with one big difference in the software. While in the first project, all of the MicroPython code exists in the same file, in the second project I show you how to modularise the design and break up the code into two files.

Required software and hardware

For details on the required software and hardware, I have prepared two separate lectures in this section, which I invite you to watch next.

But, in summary:

For the software, you will the Thonny programming tool, and the MicroPython firmware for the ESP32. Both are open-source and free

For the hardware, you will need an ESP32 board, and an assortment of common components like LEDs, resistors, sensors and motors. It doesn’t matter which ESP32 board you have. As long as it is an ESP32, it will work with MicroPython.

If you have taken one of my Arduino courses, you probably already have everything you need.

For the details, please refer to the two lectures in this section where I go into the details for the required software and hardware.

Ok, what’s next???

I hope that you now have a good understanding of what this course is about and what to expect ahead.

The first section contains several free lectures with more detailed information about the course. Feel free to watch them if you wish before enrolling.

Happy Learning!

Who this course is for
People that are familiar with Python that want to program microcontrollers.
People with little programming experience but familiar with basic electronics.
People with experience in the ESP32 using the Arduino IDE.

MicroPython with the ESP32

此内容仅限VIP查看,请先
本站资源仅限VIP会员下载点击购买VIP会员

原创文章,作者:steven,如若转载,请注明出处:https://rr3d.cn/6512.html

赞 (0)
steven的头像steven
上一篇 2021年4月25日
下一篇 2021年4月25日

相关推荐

发表回复

登录后才能评论
分享本页
返回顶部