2024年9月23日 星期一

露天購買 ESP32E 開發板 (4MB Flash) x 3

因為零件箱只找到兩片 4MB 的 ESP32, 為了補庫存上露天找到下面這個賣家, 本來想買一片 179 元的便宜 ESP32-WROOM, 最後還是買了標示品質佳但貴了 50 元的 ESP32E 3 片 : 





全家取貨付款免運 687 元. 


2024-09-28 補充 :

今天拿一片來燒錄 MicroPython v1.23 測試正常 (晶片是 ESP32-D0WD-V3) : 

D:\ESP32>esptool --port COM6 flash_id    
esptool.py v4.6.2
Serial port COM6
Connecting.......
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting......
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c0:49:ef:b2:ba:60
Uploading stub...
Running stub...
Stub running...
Manufacturer: 0b
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...

D:\ESP32>esptool --chip esp32 --port COM6 erase_flash    
esptool.py v4.6.2
Serial port COM6
Connecting....
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c0:49:ef:b2:ba:60
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 9.9s
Hard resetting via RTS pin...

D:\ESP32>esptool --chip esp32 --port COM6 write_flash -z 0x1000 ESP32_GENERIC-20240602-v1.23.0.bin   
esptool.py v4.6.2
Serial port COM6
Connecting.......
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c0:49:ef:b2:ba:60
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00001000 to 0x001a8fff...
Compressed 1734240 bytes to 1142447...
Wrote 1734240 bytes (1142447 compressed) at 0x00001000 in 101.2 seconds (effective 137.1 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

MicroPython v1.23.0 on 2024-06-02; Generic ESP32 module with ESP32

Type "help()" for more information.

>>> import config  
import xtools   
ip=xtools.connect_wifi(config.SSID, config.PASSWORD)
token=config.LINE_NOTIFY_TOKEN
openai_api_key=config.OPENAI_API_KEY
message='test'
prompt='Who are you'
Connecting to network...
network config: ('192.168.50.3', '255.255.255.0', '192.168.50.1', '192.168.50.1')
>>> xtools.line_msg(token, message)      
Message has been sent.
>>> xtools.line_sticker(token, message, 1, 4)    
'The sticker has been sent.'
>>> image_url='https://cdn.pixabay.com/photo/2024/03/15/17/50/dogs-8635461_1280.jpg'    
>>> xtools.line_image_url(token, message, image_url)   
'The image URL has been sent.'
>>> xtools.ask_gpt(prompt, openai_api_key)      
[object_link_for_thonny=1073573008]'I am an AI language model created by OpenAI, designed to assist with a wide range of questions and tasks. My purpose is to provide information, answer questions, generate text based on prompts, and engage in conversation on various topics. How can I assist you today?'
>>> prompt='你是誰?'   
>>> print(xtools.ask_gpt(prompt, openai_api_key))    
我是一個人工智慧助手,旨在幫助您解答問題和提供資訊。如果您有任何疑問或需要幫助的地方,隨時可以問我!

沒有留言 :