个人资料
归档
正文

Arduino IDE开发ESP/RasperryPi,STM32

(2022-02-15 15:34:50) 下一个

Arduino simulator: https://wokwi.com/ https://wokwi.com/projects/276825819240727048 

这类应用通常称为IoT=Internet of Things

1.ESP32

S2-Pico:3V3, 240MHz, 4M Flash/2M SRAM, 21-IO+LED+Key, 50x23mm, $9, https://www.aliexpress.us/item/3256803029358542.html 文档:https://www.wemos.cc/en/latest/s2/s2_pico.html 看这个就可以了。库不支持蓝牙/蓝牙低功率/以太网/霍尔/电机PWM/SD卡/TWAI汽车规程:https://docs.espressif.com/projects/arduino-esp32/en/latest/libraries.html micropython:https://docs.micropython.org/en/latest/ 

另一种引脚较少:https://www.aliexpress.us/item/3256804611067803.html?  https://wiki.makerfabs.com/MaESP_ESP32_C3_OLED.html 

ESP-WROOM-32D是带天线及WIFI/Bluetooth的小板,按文https://dronebotworkshop.com/esp32-intro/可以容易的用Arduino开发。

32-bit LX6, 240M, 520 KB RAM/448 KB ROM, 16KB RTC RAM, 802.11 b/g/n, Bluetooth: v4.2 BR/EDR and BLE, 34GPIOs, 18x12bit A/D,2x8bit D/A. cap touch sensor/SPI/I2C/I2S,UART, SD/SDIO/CE-ATA/MMC/eMMC host controller, Ethernet MAC/CAN bus 2.0/Infrared remote/Hall, Motor/LED PWM,Ultra low power analog pre-amp 

ESP32-WROOM-32D: ESP32-D0WD双核CPU 40M, 板上2.4G天线,4M flash, SD card, UART, SPI, SDIO, I2C, LED PWM, Motor PWM, I2S, IR, pulse counter, GPIO, capacitive touch sensor, ADC, DAC, Two-Wire Automotive Interface。3-3.6V80mA-供电需500mA。https://www.espressif.com/en/support/documents/technical-documents  该板没有分立的电池供电输入但有32K时钟输入,低功率态可由3V供电,耗电据说最低5-10uA,估计是deep sleep下。LED可能是GPIO2或非可控。

https://docs.micropython.org/en/latest/esp32/tutorial/intro.html 

开发:D0, D1, D2, D3, CMD and CLK https://dronebotworkshop.com/esp32-intro/ 

MicroPython: 在Arduino下的使用:https://randomnerdtutorials.com/getting-started-micropython-esp32-esp8266/ 另  https://docs.micropython.org/en/latest/esp32/quickref.html#installing-micropython 类似Linux的config配置界面,其余多为命令行操作,用VS或Eclipse插件做开发平台IDF。带RGB LED,DHT传感器,电容传感等函数。REPL是python提示符界面,WebREPL是基于Web的REPL,它提供基于web的类似串口的连接,用户输入ID/口令。

Arduino ESP32 core: https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html  w/ I2C LCD: https://randomnerdtutorials.com/esp32-esp8266-i2c-lcd-arduino-ide/ OLED: https://randomnerdtutorials.com/esp32-built-in-oled-ssd1306/?  https://www.mischianti.org/2021/06/23/sdd1306-oled-display-wiring-and-basic-use-with-esp8266-esp32-and-arduino/ https://www.tindie.com/products/lspoplove/dstike-d-duino-32-v3/ https://github.com/FablabTorino/AUG-Torino/wiki/Wemos-Lolin-board-%28ESP32-with-128x64-SSD1306-I2C-OLED-display%29 

ESP32 https://www.youtube.com/watch?v=wNtGHCrO7E4 https://www.youtube.com/watch?v=xPlN_Tk3VLQ 

https://www.espressif.com/ 
https://www.gridconnect.com/products/esp-wroom-02-wifi-802-11-module?variant=8999357317156 
https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_cn.pdf 
发短信:http://embedded-lab.com/blog/send-email-text-messages-using-esp8266/   https://www.yiboard.com/thread-727-1-1.html 

Zephyr on ESP32: https://blog.wenxuecity.com/myblog/36867/202204/434.html 

FreeRTOS on ESP32:https://www.youtube.com/watch?v=WQGAs9MwXno 必读:https://www.youtube.com/watch?v=JIr7Xm_riRs 软件包:https://www.elektor.com/freertos-for-esp32-arduino free: https://microcontrollerslab.com/esp32-dual-core-freertos-arduino-ide/ API: https://docs.espressif.com/_/downloads/arduino-esp32/en/latest/pdf/   

VScode+ESP32:https://www.youtube.com/watch?v=5IuZ-E8Tmhg JTAG: https://www.youtube.com/watch?v=uq93H7T7cOQ state machine etc in github: https://www.youtube.com/watch?v=ywbq1qR-fY0 

2.Rasperry Pi 

Rasperry Pi Pico https://www.youtube.com/watch?v=5YOEauk9bLo    
Rasperry Pi 2040:  Arduino Nano RP2040带wifi/bluetooth 

# program to illustrate timetuple() method in Python
import datetime
obj = datetime.datetime.today()
objTimeTuple = obj.timetuple()
print(objTimeTuple) 

birthDate = datetime.datetime(1999, 4, 6)
print("Year: ", birthDate.timetuple()[0], "Month: ", birthDate.timetuple()[1], "Day: ", birthDate.timetuple()[2])
print("Hour: ", birthDate.timetuple()[3]), "Minute: ", birthDate.timetuple()[4], "Second: ", birthDate.timetuple()[5])
print("Day of Week: ", birthDate.timetuple()[6], "Day of Year: ", birthDate.timetuple()[7])
print("Daylight Saving Time: ", birthDate.timetuple()[8])

STM32: https://developer.aliyun.com/article/836487
https://www.zhihu.com/question/23631554 

[ 打印 ]
阅读 ()评论 (0)
评论
目前还没有任何评论
登录后才可评论.