当前位置:网站首页>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 machinepin = 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 .
边栏推荐
- STM32F1与STM32CubeIDE编程实例-MAX7219驱动8位7段数码管(基于SPI)
- Basic introduction to the 16 tabs tab control in the fleet tutorial (the tutorial includes source code)
- 防红域名生成的3种方法介绍
- Flet教程之 16 Tabs 选项卡控件 基础入门(教程含源码)
- @What happens if bean and @component are used on the same class?
- Sonar:cognitive complexity
- 清华姚班程序员,网上征婚被骂?
- idea 2021中文乱码
- Rationaldmis2022 array workpiece measurement
- Unity map auto match material tool map auto add to shader tool shader match map tool map made by substance painter auto match shader tool
猜你喜欢

zero-shot, one-shot和few-shot

数据库系统原理与应用教程(007)—— 数据库相关概念

wallys/Qualcomm IPQ8072A networking SBC supports dual 10GbE, WiFi 6

2022 年第八届“认证杯”中国高校风险管理与控制能力挑战赛
![111. Network security penetration test - [privilege escalation 9] - [windows 2008 R2 kernel overflow privilege escalation]](/img/2e/da45198bb6fb73749809ba0c4c1fc5.png)
111. Network security penetration test - [privilege escalation 9] - [windows 2008 R2 kernel overflow privilege escalation]

Rationaldmis2022 advanced programming macro program
![[shortest circuit] acwing1128 Messenger: Floyd shortest circuit](/img/a4/783bdcc2b97938efc77b7da6442866.png)
[shortest circuit] acwing1128 Messenger: Floyd shortest circuit

Camera calibration (1): basic principles of monocular camera calibration and Zhang Zhengyou calibration

【紋理特征提取】基於matlab局部二值模式LBP圖像紋理特征提取【含Matlab源碼 1931期】

Summed up 200 Classic machine learning interview questions (with reference answers)
随机推荐
数据库系统原理与应用教程(007)—— 数据库相关概念
Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)
@What happens if bean and @component are used on the same class?
Flet教程之 17 Card卡片组件 基础入门(教程含源码)
Tsinghua Yaoban programmers, online marriage was scolded?
[data clustering] realize data clustering analysis based on multiverse optimization DBSCAN with matlab code
2022 8th "certification Cup" China University risk management and control ability challenge
超标量处理器设计 姚永斌 第9章 指令执行 摘录
Flet教程之 15 GridView 基础入门(教程含源码)
STM32F1与STM32CubeIDE编程实例-315M超再生无线遥控模块驱动
Sonar:cognitive complexity
STM32F1与STM32CubeIDE编程实例-MAX7219驱动8位7段数码管(基于SPI)
Software design - "high cohesion and low coupling"
【玩转 RT-Thread】 RT-Thread Studio —— 按键控制电机正反转、蜂鸣器
UP Meta—Web3.0世界创新型元宇宙金融协议
顶级域名有哪些?是如何分类的?
NGUI-UILabel
免备案服务器会影响网站排名和权重吗?
What are the technical differences in source code anti disclosure
Rationaldmis2022 array workpiece measurement