Hi there, so i am new with arduino Microcontroller && Software. I recently bought Robotdyn uno wifi. I have download the Ch340 drive and The board manager for Esp8266. So why i am making this thread is that i have some issue.
!. How should i connect the Esp8266 module to Wifi ??
I've try to Upload sketch to Esp8266 module( Dip switches was 5,6,7 On ) and it doesn't seems to Work idk Why
Executable segment sizes:
ICACHE : 32768 - flash instruction cache
IROM : 238752 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26733 / 32768 - code in IRAM (IRAM_ATTR, ISRs...)
DATA : 1504 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 964 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 25672 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 267953 bytes (27%) of program storage space. Maximum is 958448 bytes.
Global variables use 28140 bytes (34%) of dynamic memory, leaving 53780 bytes for local variables. Maximum is 81920 bytes.
esptool.py v3.0
Serial port COM6
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: e8:db:84:9c:82:d3
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0340
Compressed 272112 bytes to 199691...
Writing at 0x00000000... (7 %)
Writing at 0x00004000... (15 %)
Writing at 0x00008000... (23 %)
Writing at 0x0000c000... (30 %)
Writing at 0x00010000... (38 %)
Writing at 0x00014000... (46 %)
Writing at 0x00018000... (53 %)
Writing at 0x0001c000... (61 %)
Writing at 0x00020000... (69 %)
Writing at 0x00024000... (76 %)
Writing at 0x00028000... (84 %)
Writing at 0x0002c000... (92 %)
Writing at 0x00030000... (100 %)
Wrote 272112 bytes (199691 compressed) at 0x00000000 in 17.9 seconds (effective 121.9 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
..__Executable segment sizes:
ICACHE : 32768 - flash instruction cache
IROM : 236020 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26733 / 32768 - code in IRAM (IRAM_ATTR, ISRs...)
DATA : 1496 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 892 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 25608 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 265141 bytes (27%) of program storage space. Maximum is 958448 bytes.
Global variables use 27996 bytes (34%) of dynamic memory, leaving 53924 bytes for local variables. Maximum is 81920 bytes.
An error occurred while uploading the sketch
esptool.py v3.0
Serial port COM6
Traceback (most recent call last):
File "C:\Users\...\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1/tools/upload.py", line 66, in <module>
esptool.main(cmdline)
File "C:/Users/.../AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.1/tools/esptool\esptool.py", line 3551, in main
esp = chip_class(each_port, initial_baud, args.trace)
File "C:/Users/.../AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.1/tools/esptool\esptool.py", line 271, in __init__
self._port = serial.serial_for_url(port)
File "C:/Users/.../AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.1/tools/pyserial\serial\__init__.py", line 90, in serial_for_url
instance.open()
File "C:/Users/.../AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.1/tools/pyserial\serial\serialwin32.py", line 64, in open
raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port 'COM6': PermissionError(13, 'Zugriff verweigert', None, 5)
serial.serialutil.SerialException: could not open port 'COM6': PermissionError(13, 'Zugriff verweigert', None, 5)
Make sure you don't have COM6 open in any other applications. Only one application at a time can have a serial port open, so if another one has it open then the Arduino IDE can't use it to upload.
If you can't find any other application with it open, try restarting your computer. Sometimes the port will get stuck in an unusable state and restarting fixes that.
Ok so after Restarting my Computer i dont see the Esp Board manager and if i try to redownload it i dont see it in the List. Should i redownload the Ide?
Please open File > Preferences from the Arduino IDE's menus and then check the contents of the "Additional Boards Manager URLs" preference. Do you see this URL?:
So tried to Restart my Computer & put the URL you gave in Preferences and Upload the "Smoke-Test" to the Esp8266 module while No other Application was open which used the Com6 and during the Upload the Serial Monitor closed. After a Succesful Upload i opened the Serial Monitor and it was Blank
Executable segment sizes:
ICACHE : 32768 - flash instruction cache
IROM : 236020 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26733 / 32768 - code in IRAM (IRAM_ATTR, ISRs...)
DATA : 1496 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 892 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 25608 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 265141 bytes (27%) of program storage space. Maximum is 958448 bytes.
Global variables use 27996 bytes (34%) of dynamic memory, leaving 53924 bytes for local variables. Maximum is 81920 bytes.
esptool.py v3.0
Serial port COM6
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: e8:db:84:9c:82:d3
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0340
Compressed 269296 bytes to 197713...
Writing at 0x00000000... (7 %)
Writing at 0x00004000... (15 %)
Writing at 0x00008000... (23 %)
Writing at 0x0000c000... (30 %)
Writing at 0x00010000... (38 %)
Writing at 0x00014000... (46 %)
Writing at 0x00018000... (53 %)
Writing at 0x0001c000... (61 %)
Writing at 0x00020000... (69 %)
Writing at 0x00024000... (76 %)
Writing at 0x00028000... (84 %)
Writing at 0x0002c000... (92 %)
Writing at 0x00030000... (100 %)
Wrote 269296 bytes (197713 compressed) at 0x00000000 in 17.4 seconds (effective 123.7 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
So i tried now but i got this as a error while uploading the Sketch and the Serial monitor was Open. Also i tried to Upload the sketch and the Serial Monitor was closed. The sketch was Uploaded but nothing showed in Serial Monitor Afterwards:
Sketch uses 265141 bytes (27%) of program storage space. Maximum is 958448 bytes.
Global variables use 27996 bytes (34%) of dynamic memory, leaving 53924 bytes for local variables. Maximum is 81920 bytes.
esptool.py v3.0
Serial port COM6
Connecting........_____....._____....._____....._____....._____....._____....._____
Traceback (most recent call last):
File "C:\Users\Aesha\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1/tools/upload.py", line 66, in <module>
esptool.main(cmdline)
File "C:/Users/Aesha/AppData/Local/Arduino15/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/Aesha/AppData/Local/Arduino15/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
do you use the "ESP Reboot" button or set the switch 7 to change between flashing mode and running mode of the eesp8266?
warning: the DIP switches can't take too much switching. they fall apart after time
Hello, so there are some good news. The serial monitor works but only if i upload the Code when the dip switchtes are 567 on and after Uploading turn 7 Off and press the Reset button (the red one NOT THE ESPREBOOT BUTTON) then it Works. Can someone conform this who bought the Robotdyn uno wifi if this same happens to him?
Executable segment sizes:
ICACHE : 32768 - flash instruction cache
IROM : 236020 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26733 / 32768 - code in IRAM (IRAM_ATTR, ISRs...)
DATA : 1496 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 900 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 25616 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 265149 bytes (27%) of program storage space. Maximum is 958448 bytes.
Global variables use 28012 bytes (34%) of dynamic memory, leaving 53908 bytes for local variables. Maximum is 81920 bytes.
esptool.py v3.0
Serial port COM7
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: e8:db:84:9c:82:d3
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0340
Compressed 269296 bytes to 197723...
Writing at 0x00000000... (7 %)
Writing at 0x00004000... (15 %)
Writing at 0x00008000... (23 %)
Writing at 0x0000c000... (30 %)
Writing at 0x00010000... (38 %)
Writing at 0x00014000... (46 %)
Writing at 0x00018000... (53 %)
Writing at 0x0001c000... (61 %)
Writing at 0x00020000... (69 %)
Writing at 0x00024000... (76 %)
Writing at 0x00028000... (84 %)
Writing at 0x0002c000... (92 %)
Writing at 0x00030000... (100 %)
Wrote 269296 bytes (197723 compressed) at 0x00000000 in 17.6 seconds (effective 122.2 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Also if the upload the sketch in Flashing mode and go the read mode(5ON, 6ON and 7OFF) and reboot it then the Serial monitor works.
I dont want that my dipswitches break so if you know how to solve this then it will be appreciative