Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP8266 NODEmcu V2 connection issue #67

Open
ravx4 opened this issue Apr 23, 2020 · 8 comments
Open

ESP8266 NODEmcu V2 connection issue #67

ravx4 opened this issue Apr 23, 2020 · 8 comments

Comments

@ravx4
Copy link

ravx4 commented Apr 23, 2020

Hello Mr.Miguel,
I'm having a little fight with ESP. At first, when I tried to upload sketch "dcservoESP_wifi.ino" I've encountered an "isr not in iram" error. After googling it, I've downgraded in board manager to esp8266 v2.5.0 and added
void ICACHE_RAM_ATTR ISRoutine ();
to your code, the sketch did upload and in serial monitor I'm getting:

Connecting to Patrol 2.4

.

WiFi connected

Server started

192.168.0.101

Is that ok? how can I input PID values? or read encoder position?
If there's any other info needed to solve this issue, I'd try to provide it.
I'd be very gratefull for any help from You :)

@misan
Copy link
Owner

misan commented Apr 23, 2020

Hi,

I reckon the menu was not shown in the TCP stream but it was showed over the serial connection. At any rate, "h" command will show you the available commands, that will show you how to change PID values, move the motor, etc.

@ravx4
Copy link
Author

ravx4 commented Apr 23, 2020

Hi, thank you for reply, I'm typing "h" in serial monitor but nothing shows up

@misan
Copy link
Owner

misan commented Apr 23, 2020 via email

@ravx4
Copy link
Author

ravx4 commented Apr 23, 2020

I've found solution by to your advice :D I've downloaded SocketTest v3.0 to connect via wifi (I've been trying to connect via USB) And now i can see and adjust PID. Just one more question:

Please note EEPROM storage code will not work in this platform :-(

storing values of PID to ESP requires to flash it with sketch with manually written kp,kd,ki?

@misan
Copy link
Owner

misan commented Apr 23, 2020 via email

@ravx4
Copy link
Author

ravx4 commented Apr 23, 2020

I'll experiment with ESP anyway and see if I get the same spike on PWM ;) i can always switch to pro micro as I planned at the beggining.
By the way, could you confirm my understanding in connecting ESP to IBT-2 (BTS7890) module?

const int M1=16; goes to R_ENABLE
const int M2=5; goes to L_ENABLE
const int PWM_MOT=15; Goes to both R_PWM and L_PWM

or

const int M1=16; goes to R_PWM
const int M2=5; goes to L_PWM
const int PWM_MOT=15; Goes to both R_ENABLE and L_ENABLE

i dont want to risk burning IBT-2 module :(

@misan
Copy link
Owner

misan commented Apr 23, 2020 via email

@ravx4
Copy link
Author

ravx4 commented Apr 23, 2020

ok, I'll give it a try. Anyways, I hope that this setup would work on my D-Bot :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants