luc-github / ESP3D-WEBUI

A Web UI for ESP8266 or ESP32 based boards connected to 3D printers / CNC
GNU General Public License v3.0
747 stars 305 forks source link

[BUG] Printer Configuration is empty #225

Closed dagarwal82 closed 2 years ago

dagarwal82 commented 2 years ago

Describe the bug No customization. Downloaded Marlin 2.0.9.3, board is BOARD_RAMPS_14_EFB. Just enabled EEPROM_SETTINGS and flashed Arduino Mega 2560. Downloaded ESP3D-2.1.1 and flashed the ESP32-CAM board. Uploaded latest index.html.gz (tried both from ESP3d folder and esp3d-webui github repo). But Printer Configuration is empty

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

ESP3D Firmware: (please complete the following information)

Target Firmware: (please complete the following information)

Board used (please complete the following information):

Browser used (please complete the following information):

Additional context Add any other context about the problem here. Developer tools output, error message, etc...

github-actions[bot] commented 2 years ago

Thank your for submiting, please be sure you followed template or your issue may be dismissed.

luc-github commented 2 years ago

Only printer config does not show? What typing M115 and M503 show in webui terminal ?

dagarwal82 commented 2 years ago

Controls doesn't work either.

image image image image image image

luc-github commented 2 years ago

so issue is communication problem How do you wire esp to mega? what baud rate on each serial?

dagarwal82 commented 2 years ago

Yes, I am definitely doing something wrong. Using AUX 1 of RAMPS 1.4 5v, ground, Rx, Tx (thats the config on AUX 1) . I am connecting Rx to Tx and vice versa between RAMPS and ESP32 drive. baud rate as in the screenshot is 115200 20220127_192107

RAMPS 1.4 is connected to Mega and ESP is connected to RAMPS 1.4

luc-github commented 2 years ago

ok I think the issue is you directly wire a 5V board' s pin (Mega)to a 3.3v board's pin(ESP32) - esp32 is really not 5V tolerant - you need to decrease the voltage on esp32 RX pin - hoping you did not damaged your board check https://github.com/luc-github/ESP3D/wiki/ESP-32-CAM or https://github.com/luc-github/ESP3D/wiki/D1-mini

dagarwal82 commented 2 years ago

Ok going to try. rest all the things works. I can control everything by connecting to computer.

dagarwal82 commented 2 years ago

Just to confirm its ESP32-CAM (not just ESP32, If that makes sense I am novice). still 3.3v ?

luc-github commented 2 years ago

yes when esp8266 can handle such way (but I still do not recommend it), all esp32 based mcu are using 3.3v on rx/tx and any GPIO pins so model does not matter and they are really not 5V tolerant at all

dagarwal82 commented 2 years ago

Question. shoud I follow the links that you shared for the connection or change it to use 3.3v . both links that you shared are using 5v of ESP32-CAM

luc-github commented 2 years ago

the board power and GPIO voltage are 2 differents things - some people people power the esp32 using 5v others use 3.3v - it depends of what you have and also of power supply current stability I personnaly always power esp32 cam using 5V because camera drain a lot , it is more experimental than anything as it depend also of your esp32 cam board

dagarwal82 commented 2 years ago

Aaaahhh I understood now. I didn't see (or choose not to see :D ) the Resistors in your link. I will add some resistors, thought it was out of the box. By the way just saw smoke coming out of ESP32-CAM because I connected 5v of RAMP1.4 briefly to 3.3v ESP32. :D . haha Gotta get another one and try your solution. thanks

luc-github commented 2 years ago

Ho - sorry - yes I told you esp32 is not 5V tolerant

dagarwal82 commented 2 years ago

Followed everythng as per the instruction, fried another one but stll no luck. I used multimeter to test the voltage. I am getting 1.6v on both tx and rx. but now not even seeing ESP32 wifi access point

dagarwal82 commented 2 years ago

Well getting wifi now. but as soon as I connect tx and rx to RAMPS 1.4 my esp32 does not work

dagarwal82 commented 2 years ago

I am going to validate this schematic error. May be thats why I am having issues. http://notserpe.blogspot.com/2012/05/ramps-14-schematic-errors.html

dagarwal82 commented 2 years ago

No luck

dagarwal82 commented 2 years ago

I suspect the default baud rate I am using 1152000 (Just noticed RAMPS 1.4 has 2500000) . Waiting for the 5v voltage regulator now to test

DivingDuck commented 2 years ago

A zero too much can have huge impact, hopefully only a typo: 1152000 (Just noticed RAMPS 1.4 has 2500000)

dagarwal82 commented 2 years ago

Yes that was typo. Everything works now ! it was the baud rate issue

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.