Post Reply 
 
Thread Rating:
  • 2 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Only You, or ESP8266 Forever!
09-09-2016, 09:05 AM (This post was last modified: 09-09-2016 09:20 AM by KomX.)
Post: #38
RE: Only You, or ESP8266 Forever!
Hi, citronium!

Your mistake here:
Code:
#define MOTOR1_STEP_PIN D0

eX-ESP_pins.h rules file, you do not pay attention to the comments on pins: "этот и никакой другой" ("This and no other") and this is important, because the logic of these pins allows for hardware implementation of their work.
Ping GPIO16 (your D0) works not as working pins GPIO0 - GPIO15.
Therefore, to control GPIO16 I used a named macro:
(top of file eX_ESP_Timing_Engine.h)
Code:
#define SONAR_TRIG_PIN_LOW()  (GP16O &= ~1)
#define SONAR_TRIG_PIN_HIGH() (GP16O |= 1)

Therefore, choose any free pin instead of D0 (GPIO 16). For example, free D5 (GPOI 14).

The second point.
If you do not want some functionality, comment it out of files: eX-ESP_pins.h and eX_ESP_Timing_Engine.h. But do not assign non-existent pins.

I find it hard to imagine how the chip will behave under these settings:
Code:
#define SONAR_ECHO_PIN -1
Since this pin operates with interruptions to change the signal level on it.

Good luck!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Only You, or ESP8266 Forever! - KomX - 05-07-2016, 05:50 PM
RE: Only You, or ESP8266 Forever! - KomX - 05-09-2016, 08:30 AM
RE: Only You, or ESP8266 Forever! - KomX - 05-09-2016, 03:54 PM
RE: Only You, or ESP8266 Forever! - KomX - 05-11-2016, 04:34 AM
RE: Only You, or ESP8266 Forever! - KomX - 05-12-2016, 04:35 AM
RE: Only You, or ESP8266 Forever! - KomX - 05-14-2016, 08:00 AM
RE: Only You, or ESP8266 Forever! - KomX - 05-15-2016, 09:58 AM
RE: Only You, or ESP8266 Forever! - KomX - 05-15-2016, 04:46 PM
RE: Only You, or ESP8266 Forever! - KomX - 05-15-2016, 07:10 PM
RE: Only You, or ESP8266 Forever! - KomX - 05-15-2016, 08:38 PM
RE: Only You, or ESP8266 Forever! - KomX - 05-15-2016, 09:49 PM
RE: Only You, or ESP8266 Forever! - JohnQ - 05-16-2016, 10:14 AM
RE: Only You, or ESP8266 Forever! - KomX - 05-16-2016, 05:25 PM
RE: Only You, or ESP8266 Forever! - KomX - 05-16-2016, 09:33 PM
RE: Only You, or ESP8266 Forever! - KomX - 08-19-2016, 01:32 PM
RE: Only You, or ESP8266 Forever! - jimmy - 08-19-2016, 05:28 PM
RE: Only You, or ESP8266 Forever! - KomX - 08-19-2016, 10:20 PM
RE: Only You, or ESP8266 Forever! - jimmy - 08-19-2016, 10:29 PM
RE: Only You, or ESP8266 Forever! - KomX - 08-20-2016, 06:32 AM
RE: Only You, or ESP8266 Forever! - jimmy - 08-29-2016, 05:12 PM
RE: Only You, or ESP8266 Forever! - KomX - 09-09-2016 09:05 AM
RE: Only You, or ESP8266 Forever! - rolfz - 12-06-2016, 04:42 PM
RE: Only You, or ESP8266 Forever! - KomX - 12-13-2016, 12:11 PM
RE: Only You, or ESP8266 Forever! - rolfz - 12-15-2016, 12:21 PM
RE: Only You, or ESP8266 Forever! - rolfz - 12-24-2016, 08:49 PM
RE: Only You, or ESP8266 Forever! - rolfz - 12-25-2016, 05:50 PM
RE: Only You, or ESP8266 Forever! - KomX - 12-26-2016, 10:27 AM
RE: Only You, or ESP8266 Forever! - KomX - 12-26-2016, 01:54 PM
RE: Only You, or ESP8266 Forever! - KomX - 12-26-2016, 06:40 PM
RE: Only You, or ESP8266 Forever! - KomX - 12-29-2016, 07:14 AM
RE: Only You, or ESP8266 Forever! - KomX - 12-30-2016, 04:42 AM
RE: Only You, or ESP8266 Forever! - KomX - 01-26-2017, 08:44 AM
RE: Only You, or ESP8266 Forever! - KomX - 01-30-2017, 07:14 AM
RE: Only You, or ESP8266 Forever! - KomX - 02-20-2017, 07:38 AM
RE: Only You, or ESP8266 Forever! - sirius - 04-13-2018, 11:19 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)