当前位置:网站首页>Epp+dis learning path (1) -- Hello world!
Epp+dis learning path (1) -- Hello world!
2022-07-07 12:11:00 【MakeMaker】
In the public, “ Ningzhong physics Innovation Laboratory ” Wrote a lot based on Mixly Introduction to , I feel that my ability to write code is also declining ...... Because the information technology selective examination in Zhejiang Province has already been taken phthon Programming the , So I thought if ESP32+Python+Phyphox The combination of the three ( abbreviation EPP Well ) Develop physical DIS Experimental words , That really can achieve the perfect integration of multiple courses . So we have the idea of developing elective courses based on these three , Try to finish this summer vacation , We can teach students in the club class next semester .
Most of the previous articles are written by my own previous experience , Then these are my learning paths , Although it will be a little python, But it's still very shallow , So I learned while writing .
ESP32 Upper python Strictly speaking, it should be called micropython, There are many software available , Let's choose a relatively simple software ——Thonny To write! .
python It is an interpretative high-level language ...... About the introduction of language, I went to Baidu . use python Here it is ESP32 The best thing about writing programs is that they are super fast ! Compared with Mixly About fast 100 times ! Nonsense , Get to the point :
One 、Thonny
Download the software first , You can baidu , Go to the official website , In this way, we can get to the latest , Of course, you can also use what I share .
link :https://pan.baidu.com/s/1BMrNs1Lz6HNciNFjFs7h-A?pwd=nbzx
Extraction code :nbzx
Install after download
A very clean and concise software . Then in order to give ESP32 Write program , Still have to give ESP32 Write support micropython The firmware of , You can use Baidu or my following :
link :https://pan.baidu.com/s/1S3iIFn6btyQ2L22N7345AQ?pwd=nbzx
Extraction code :nbzx
After downloading, it's a .bin The file of
Next, let's use Thonny to ESP32 To burn in new firmware :
Open the tool first - Set up - decoder , Pay attention to the choice above MicroPython(ESP),Port Choose yours ESP32 Corresponding COM mouth ( Of course, you have to insert ESP32), Then click on the bottom right corner Install......
Open it as follows , Again Port Is your ESP32 Corresponding COM mouth ,Firmware That's what I shared above .bin file . Then click Install .
about 100 Seconds later, the recording is finished . Then close and enter Thonny The main page :
Two 、Hello world!
Below the main page Shell There will be Python The dialog . Because it is a high-level language , It supports conversational programming , Let's say hello to new world first , stay Shell Enter print("Hello world!")
Then it outputs Hello world!
Be careful , At the moment ESP32 Output Hello world! Hardware players generally don't like this way of greeting , Our way of greeting is usually to light a light ! Here we go. ESP32 The lamp on board is on .
Enter :
import machine
pin = machine.Pin(2, machine.Pin.OUT)
pin.on()
Then click the button with a white arrow in the middle of the green circle , Then a dialog box will come out
Ask where you want to save the program , Of course MicroPython equipment
stay File name Input in main.py, Point determination .
And then in a second , The program is uploaded , Observe ESP32 Is the light on the light on !
After lighting the light, you should be able to understand ESP32 On Micropython The mechanism of operation , In fact, the program we want to run is named main.py And then upload it to ESP32 Just go up ,ESP32 It will run automatically as soon as it is powered on main Program .
边栏推荐
- 111.网络安全渗透测试—[权限提升篇9]—[Windows 2008 R2内核溢出提权]
- 问题:先后键入字符串和字符,结果发生冲突
- Problem: the string and characters are typed successively, and the results conflict
- EPP+DIS学习之路(2)——Blink!闪烁!
- Visual Studio 2019 (LocalDB)\MSSQLLocalDB SQL Server 2014 数据库版本为852无法打开,此服务器支持782版及更低版本
- 【最短路】Acwing1128信使:floyd最短路
- PowerShell cs-utf-16le code goes online
- 一起探索云服务之云数据库
- Is it safe to open Huatai's account in kainiu in 2022?
- Various uses of vim are very practical. I learned and summarized them in my work
猜你喜欢
小红书微服务框架及治理等云原生业务架构演进案例
清华姚班程序员,网上征婚被骂?
Matlab implementation of Huffman coding and decoding with GUI interface
ENSP MPLS layer 3 dedicated line
111.网络安全渗透测试—[权限提升篇9]—[Windows 2008 R2内核溢出提权]
数据库系统原理与应用教程(010)—— 概念模型与数据模型练习题
Common locking table processing methods in Oracle
SwiftUI 教程之如何在 2 秒内实现自动滚动功能
[extraction des caractéristiques de texture] extraction des caractéristiques de texture de l'image LBP basée sur le mode binaire local de Matlab [y compris le code source de Matlab 1931]
30. Few-shot Named Entity Recognition with Self-describing Networks 阅读笔记
随机推荐
Flet教程之 15 GridView 基础入门(教程含源码)
全球首堆“玲龙一号”反应堆厂房钢制安全壳上部筒体吊装成功
[full stack plan - programming language C] basic introductory knowledge
Common locking table processing methods in Oracle
【滤波跟踪】基于matlab捷联惯导仿真【含Matlab源码 1935期】
2022 8th "certification Cup" China University risk management and control ability challenge
Mastering the new functions of swiftui 4 weatherkit and swift charts
Swiftui swift internal skill: five skills of using opaque type in swift
110.网络安全渗透测试—[权限提升篇8]—[Windows SqlServer xp_cmdshell存储过程提权]
【滤波跟踪】捷联惯导纯惯导解算matlab实现
TypeScript 接口继承
DOM parsing XML error: content is not allowed in Prolog
数据库系统原理与应用教程(007)—— 数据库相关概念
Basic introduction to the 16 tabs tab control in the fleet tutorial (the tutorial includes source code)
wallys/Qualcomm IPQ8072A networking SBC supports dual 10GbE, WiFi 6
Programming examples of stm32f1 and stm32subeide -315m super regenerative wireless remote control module drive
Matlab implementation of Huffman coding and decoding with GUI interface
<No. 8> 1816. Truncate sentences (simple)
Camera calibration (2): summary of monocular camera calibration
The road to success in R & D efficiency of 1000 person Internet companies