Table of contents
mentioned earlier
Because it was my first time using it and I wasn’t very good at it, so I used drawing software to do it...
There are several mainstream ESP32 compilation environments in the world, namely
There are basically some tutorials on the Internet. I chose the Arduino compilation environment. Let’s talk about the other ones. I have never used the first two, but it seems that configuring the environment is too troublesome, so I abandoned them; vscode, needless to say, You can look for tutorials on the Internet; if you want to configure Arduino, you can watch the esp32 tutorial on station B. It mainly requires the files in the video and just follow the configuration in the video. If you have used vscode-platformIO and arduino, you will find that the ino file code of arduino is quite concise, and the header files are all placed in the running file.
As for why you should use mixly? Mixly is actually a graphical programming software that can display code internally. We chose it because we were a little confused at first using esp32 and didn't know where to start writing code, but mixly makes writing code much more intuitive. But mixly is just an auxiliary tool to help you write some simple codes. Some things that need to be configured by yourself (such as timers) still need to be written by yourself.
In the save as option, you can save the mixly file as an arduino file and use its code directly, because the code displayed on the mixly interface can only be viewed and cannot be copied.
The specific usage of mixly can be found online.
Another tip, because arduino was originally built for arduino development boards, domestic boards such as esp32 need to download some library files. Generally, when the program cannot run, an error will be reported during compilation. You can check the error message to see if there is anything missing. For header files, if there are any, just search and download them in the library options of Arduino.
If you want to burn a program in Mixly, I recommend a method. Go to the Mixly source file and you will find an arduino folder. In fact, an arduino is installed in it. If you don’t want to reconfigure it, just put your previous arduino. Just replace all the files.
It is highly not recommended to use mixly to burn programs directly. The first is that it is very slow. After all, it is a modular thing. The second is that it actually uses the built-in arduino to burn the program. It is better to export the ino file and burn it directly with arduino. Recording will be much faster.
As for these modules, you can learn them by groping around in Mixly. You can also check how to use them online.
It is worth mentioning that the paj7620u2 module is in the maker-arduino of the mixly library and needs to be imported into the library before it can be used.
The reason why I discuss this separately is because the serial port function of this Essence board is really great.
When we tried to make two microcontrollers communicate through the serial port, we found that this board had a magical function. Whenever its RX was connected to TX (TX was fine, but RX was useless), the board would not move. We discovered this problem at that time and tried to use pin mapping (perhaps you have seen hardwareSerial, which is related to pin mapping), but of course it was useless, but this is actually our problem, pin mapping can only be used on ESP32 Above, the ESP32-C3 board still has too few functions. You can learn this from the development board documentation.
At the teacher's request, we built a very crude road model, which was made of discarded foam and foam board... The ESP32 board is hidden under the board. As shown in the picture below,
we also connected with the teacher's brother to create a gesture-controlled soft robot movement. , the video is below.
I also sought help from the graduate student in the laboratory and built a gesture-controlled simulated drone.
In fact, except for the first one, which was completely written by ourselves, the soft robots and drones actually send data to the computer through the serial port, and the subsequent execution programs were not written by us. If you need a simulation drone program, you can contact me via email.
Such as video
Thanks to Expert Wang for his contribution to this competition
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet