自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 arduino流水灯

const int lread = 6;const int lgreen = 8;const int lyellow = 7;const int ltime=100;// the setup function runs once when you press reset or power the boardvoid setup() {// initialize digital pin LED_BUILTIN as an output.pinMode(LED_BUILTIN, OUTPUT);

2021-12-03 20:45:30 271

原创 Arduino水位实验模拟支ADC使用

/水位探测实验/const int WaterPin = A1;void setup() {// put your setup code here, to run once:Serial.begin(115200);}void loop() {// put your main code here, to run repeatedly:int waterVal= analogRead(WaterPin);Serial.println(waterVal,HEX); //十六进制显示Seria

2021-11-28 21:12:57 334

原创 Arduino 超声波实验程序

1.首先要求测算声音的速度。可以根据温度进行计算,这样可以更精确。例如:室内温度为28摄氏度。声速为:331+28*0.6=347.8 m/s.2.将声音速度转换成每微秒多少厘米。34780 cm/S == 34.78cm /毫秒 == 0.03478 cm/微秒 == 28.752微秒/cm==287.52微秒/10cm3.声音往返距离 28.752微秒 * 2 / cm =57.504 微秒/cm ~58 微秒/cm.----------------------------.

2021-11-23 21:27:57 3262

原创 Arduino UNO输出高电平点亮LED(三)

通过 Arduino UNO输出高电平点亮LED。注意LED可承载的最大电压约为2V,10ma~15ma,需要串联一个电阻100R-200R左右的都可以。一端接GND或-,一端接输出端子。/*Input Pull-up SerialThis example demonstrates the use of pinMode(INPUT_PULLUP). It reads a digitalinput on pin 2 and prints the results to the Serial Monit

2021-11-21 20:59:59 4526

原创 Arduino开发ESP32入门教程(2)测试WiFi模块是否正常

如果购买的是创客版或者其他的开发板,需要对esp32进行初始化(可以使用mixly工具进行)项目使用了 635578 字节,占用了 (48%) 程序存储空间。最大为 1310720 字节。全局变量使用了37908字节,(11%)的动态内存,余留289772字节局部变量。最大为327680字节。esptool.py v3.0-devSerial port COM4Connecting…Chip is ESP32-D0WDQ6 (revision 1)Features: WiFi, BT, Dua

2021-11-21 09:57:06 1979

原创 Arduino开发ESP32入门教程(1)

Windows Installer从arduino.cc下载并安装最新的ArduinoIDE https://www.arduino.cc/en/Main/Software从git-scm.com下载并安装Gitgit clone https://github.com/espressif/arduino-esp32.git E:/software/Arduino/hardware/espressif/esp32打开E:\arduino\hardware\espressif\esp32\tools文件

2021-11-21 09:51:19 1888

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除