当前位置:网站首页>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 .
边栏推荐
- Unity中SmoothStep介绍和应用: 溶解特效优化
- Sonar:Cognitive Complexity认知复杂度
- 千人規模互聯網公司研發效能成功之路
- 从工具升级为解决方案,有赞的新站位指向新价值
- Various uses of vim are very practical. I learned and summarized them in my work
- Mastering the new functions of swiftui 4 weatherkit and swift charts
- How to connect 5V serial port to 3.3V MCU serial port?
- Completion report of communication software development and Application
- In SQL, I want to set foreign keys. Why is this problem
- 超标量处理器设计 姚永斌 第8章 指令发射 摘录
猜你喜欢
Rationaldmis2022 advanced programming macro program
UP Meta—Web3.0世界创新型元宇宙金融协议
Review and arrangement of HCIA
Flet教程之 14 ListTile 基础入门(教程含源码)
wallys/Qualcomm IPQ8072A networking SBC supports dual 10GbE, WiFi 6
Fleet tutorial 15 introduction to GridView Basics (tutorial includes source code)
Mise en œuvre du codage Huffman et du décodage avec interface graphique par MATLAB
College entrance examination composition, high-frequency mention of science and Technology
111.网络安全渗透测试—[权限提升篇9]—[Windows 2008 R2内核溢出提权]
HCIA复习整理
随机推荐
让数字管理好库存
Have you ever met flick Oracle CDC, read a table without update operation, and read it repeatedly every ten seconds
数据库系统原理与应用教程(008)—— 数据库相关概念练习题
College entrance examination composition, high-frequency mention of science and Technology
人大金仓受邀参加《航天七〇六“我与航天电脑有约”全国合作伙伴大会》
MATLAB實現Huffman編碼譯碼含GUI界面
Nuclear boat (I): when "male mothers" come into reality, can the biotechnology revolution liberate women?
Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)
110. Network security penetration test - [privilege promotion 8] - [windows sqlserver xp_cmdshell stored procedure authorization]
百度数字人度晓晓在线回应网友喊话 应战上海高考英语作文
Hi3516全系统类型烧录教程
从工具升级为解决方案,有赞的新站位指向新价值
EPP+DIS学习之路(2)——Blink!闪烁!
【滤波跟踪】基于matlab扩展卡尔曼滤波EKF和无迹卡尔曼滤波UKF比较【含Matlab源码 1933期】
总结了200道经典的机器学习面试题(附参考答案)
VIM command mode and input mode switching
In SQL, I want to set foreign keys. Why is this problem
Various uses of vim are very practical. I learned and summarized them in my work
wallys/Qualcomm IPQ8072A networking SBC supports dual 10GbE, WiFi 6
Completion report of communication software development and Application