Mornin'
I use a arduino UNO, but i have a ESP-32F module to connect to WiFi. Please give me instructions on 1.How to download library,2.What board settings to select,3.how to make a web server with diffrent pages (e.g. 192.168.1.111/welcome.html and 192.168.1.111/howtouse.html), 4. how to make a simple "HTML" box for text, button.
thanks.
ESP 12F or ESP 32F ? (Whatever the latter could be)
Assuming it’s an ESP 12F I would
- get rid of the UNO
- use the ESP only
There are zillions of tutorials on line on how to use arduino with ESP8266. Did you look it up? What did not work?
So, I Can program this module on it's own?
Yes.
Here is one of the zillions tutorials (first hit on Google, did not check it)
You would make your life easier with a NodeMCU or an ESP32 though
WOW @J-M-L Thank You So Much!
Really Really Appreciate!
Have fun !
But @J-M-L, 1.My USB-TTL converter dosent have 6 pins, only 5(3 when VCC is selected.). 2. My "Module" is attached to a board with 4 pins(TX,RX,GND,VCC). Please help @J-M-L
Hello. Please help me solve this error with my ESP-12F .
Thank you.
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
Executable segment sizes:
ICACHE : 32768 - flash instruction cache
IROM : 268936 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26845 / 32768 - code in IRAM (IRAM_ATTR, ISRs...)
DATA : 1504 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 1052 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 25928 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 298337 bytes (31%) of program storage space. Maximum is 958448 bytes.
Global variables use 28484 bytes (34%) of dynamic memory, leaving 53436 bytes for local variables. Maximum is 81920 bytes.
esptool.py v3.0
Serial port COM5
Connecting........_____....._____....._____....._____....._____....._____.....____Traceback (most recent call last):
File "C:\Users\Charl\OneDrive\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.1/tools/upload.py", line 66, in <module>
esptool.main(cmdline)
File "C:/Users/Charl/OneDrive/Documents/ArduinoData/packages/esp8266/hardware/esp8266/3.0.1/tools/esptool\esptool.py", line 3552, in main
esp.connect(args.before, args.connect_attempts)
File "C:/Users/Charl/OneDrive/Documents/ArduinoData/packages/esp8266/hardware/esp8266/3.0.1/tools/esptool\esptool.py", line 529, in connect
raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
_
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Please tell me which pins are for I2C,SPI,Serial, please note i have only 4 pins.
Share a link to your module
(As I said it would be probably easier for you to get a NodeMCU or ESP32 ready to use with an USB port)
You could solder wires or pins directly to the ESP12F module; it's the elevated part on the module with the shiny square housing on top. Pinout can be found all over the web; here's one image:
I2C is not bound to any particular pin on the ESP platform; you choose in your own (self-made) software which pins will be used for SCL and SDA.
If you can't handle a soldering iron, you'll have to get a different board.
Serial is already broken out on your 4 pins; that's the TX and RX.
The toggle switch on your board is probably for programming. I can't read Chinese so I don't know which position to put it in, but just try all possibilities. You'll find out soon enough.
Yes @J-M-L, i think its better to get a ESP32 or NodeMCU.
That’s not a link, it’s a picture
Please reccomend me a ESP32 or NodeMCU @J-M-L. Thank you!
I've had great success with ESP32's made by HiLetGo, they closely follow ESPRESSIF's specs. AmazonSmile: HiLetgo ESP-WROOM-32 ESP32 ESP-32S Development Board 2.4GHz Dual-Mode WiFi + Bluetooth Dual Cores Microcontroller Processor Integrated with Antenna RF AMP Filter AP STA for Arduino IDE : Electronics
I've tried other ESP32's with not so good results. Some development boards did not work and others took shortcuts to shave off a few bucks, which results in reduced WiFi/BT range.
Thanks @Idahowalker, please tell me what libraries to use, and a example please!
Am looking at link, and see |Brand|HiLetgo| |--| |Connectivity Technology|Bluetooth, Wi-Fi| |Wireless Communication Standard|Bluetooth|
It seems that the WiFi here is not default.
My plan for use of this is so i can make a "HAS"(H
omeA
utomationS
ystem) so when i am close to home i can use BlueTooth, or i can use the IP address to make website and turn on fan, close curtains, check who is in door, play alarm(if someone robbed), call police(if robbed). This is the best board for me.