当前位置:网站首页>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 .
边栏推荐
- 2022 年第八届“认证杯”中国高校风险管理与控制能力挑战赛
- Tsinghua Yaoban programmers, online marriage was scolded?
- [data clustering] realize data clustering analysis based on multiverse optimization DBSCAN with matlab code
- C#中在路径前加@的作用
- What are the top-level domain names? How is it classified?
- Upgrade from a tool to a solution, and the new site with praise points to new value
- 小红书微服务框架及治理等云原生业务架构演进案例
- 108. Network security penetration test - [privilege escalation 6] - [windows kernel overflow privilege escalation]
- Sonar:cognitive complexity
- SwiftUI 4 新功能之掌握 WeatherKit 和 Swift Charts
猜你喜欢
Tsinghua Yaoban programmers, online marriage was scolded?
数据库系统原理与应用教程(011)—— 关系数据库
【滤波跟踪】捷联惯导纯惯导解算matlab实现
Flet教程之 15 GridView 基础入门(教程含源码)
Xiaohongshu microservice framework and governance and other cloud native business architecture evolution cases
[neural network] convolutional neural network CNN [including Matlab source code 1932]
Unity 贴图自动匹配材质工具 贴图自动添加到材质球工具 材质球匹配贴图工具 Substance Painter制作的贴图自动匹配材质球工具
Baidu digital person Du Xiaoxiao responded to netizens' shouts online to meet the Shanghai college entrance examination English composition
Complete collection of common error handling in MySQL installation
盘点JS判断空对象的几大方法
随机推荐
Solve the problem that vscode can only open two tabs
Completion report of communication software development and Application
清华姚班程序员,网上征婚被骂?
ENSP MPLS layer 3 dedicated line
30. Few-shot Named Entity Recognition with Self-describing Networks 阅读笔记
What are the top-level domain names? How is it classified?
Review and arrangement of HCIA
108. Network security penetration test - [privilege escalation 6] - [windows kernel overflow privilege escalation]
CMU15445 (Fall 2019) 之 Project#2 - Hash Table 详解
消息队列消息丢失和消息重复发送的处理策略
110.网络安全渗透测试—[权限提升篇8]—[Windows SqlServer xp_cmdshell存储过程提权]
Fleet tutorial 19 introduction to verticaldivider separator component Foundation (tutorial includes source code)
<No. 8> 1816. 截断句子 (简单)
Unity中SmoothStep介绍和应用: 溶解特效优化
Hi3516全系统类型烧录教程
powershell cs-UTF-16LE编码上线
防红域名生成的3种方法介绍
超标量处理器设计 姚永斌 第8章 指令发射 摘录
Zero shot, one shot and few shot
[neural network] convolutional neural network CNN [including Matlab source code 1932]