Git Product home page Git Product logo

Comments (3)

misan avatar misan commented on August 20, 2024

Hi, sorry you are getting trouble.

The code posted worked with my hardware. There is nothing wrong activating the input pullups if your encoder needs it.

Server could be access with telnet or netcat program to port 23.

I assume you are using dcservoESP_wifi.ino, right?

Available commands can be retrieved with "h" command and listed in the usage section too.

Are you ending your lines with carriage return or line feed?

from dcservo.

Wintertod avatar Wintertod commented on August 20, 2024

Yes , I'm using dcservoESP_wifi.ino.
Now I got access to my ESP, the encoder works.
Thank you very much for your good work!

I'll list what I had to do, so other people have it easier.
nodeMCU "V3" with ESP-12E (works for every ESP-12E board)
1 Replace all "LED_BUILTIN" with "led"
2 Add "#define led 2" at the beginning or copy paste code below between const char* password and byte pos[1000];
3 Edit PID or else there wont be Motor output.
// Opens a Telnet Server on Port specified below.
// specify the port to listen on
WiFiServer server(23); //Edit Port = Adress for telnet 192.168.xxx.xxx:23 |windows telnet won't work.
WiFiClient client;

#define M1 16 // D0 Output Motor 1
#define M2 5 // D1 Outout Motor 2
#define DIR 4 // D2 Input Direction
#define Step 14 // D5 Step input
#define encoder0PinB 12 // D6 Encoder B, white, edit pin to "pinMode(ender0PinA, INPUT_PULLUP);" for standard encoder
#define encoder0PinA 13 // D7 Encoder A, green, edit pin to INPUT_PULLUP for standart encoder
#define PWM_MOT 15 // D8 for ESC driven Brushless Motor
#define led 2 // internal LED on ESP-12E on any other ESP use GPIO 1 (can be any pin you want)

from dcservo.

misan avatar misan commented on August 20, 2024

Great!

Thanks for the tips for other users!

from dcservo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.