個人資料
歸檔
正文

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)
評論
目前還沒有任何評論
登錄後才可評論.