Comments (3)
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.
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.
Great!
Thanks for the tips for other users!
from dcservo.
Related Issues (20)
- STM32 with hardware encoders HOT 1
- Motion profile on a UNO HOT 1
- Can I use this for a reversible AC motor? HOT 3
- ESP8266 NODEmcu V2 connection issue HOT 8
- Drift HOT 19
- Code Modification HOT 4
- Step multiplier HOT 5
- modification of code to use Sparkfun monster shield HOT 2
- Free nano shield blueprint HOT 16
- BLDC FOC controller HOT 2
- Cant understand code HOT 1
- ISR error HOT 1
- Any plans to port to ESP32 ? HOT 8
- Help with open collector encoder. HOT 3
- arduino mega HOT 2
- can i use this code for stepper close loop HOT 1
- 2 pin IR phototransiator in place of 3 pin Receivers with ATTiny85 HOT 3
- the problem is failure HOT 2
- BTS7960 HOT 1
- Direction in ATTiny85 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dcservo.