<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Serial Monitor Blues - ESP32 &amp; ESP8266				            </title>
            <link>https://forum.dronebotworkshop.com/esp32-esp8266/serial-monitor-blues/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Thu, 12 Nov 2026 20:06:51 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Serial Monitor Blues</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/serial-monitor-blues/#post-50330</link>
                        <pubDate>Sat, 04 Jan 2025 12:15:26 +0000</pubDate>
                        <description><![CDATA[Well, that was a little embarrassing, Output_B was supposed to be 22, not 01.  I&#039;ve actually have a copy of that RNT document, I just didn&#039;t look at close enough.  The serial monitor works f...]]></description>
                        <content:encoded><![CDATA[<p>Well, that was a little embarrassing, Output_B was supposed to be 22, not 01.  I've actually have a copy of that RNT document, I just didn't look at close enough.  The serial monitor works fine now.</p>
<p>What I'm building is a Torch Height Controller (THC) for a CNC Plasma cutter.  The two interrupt inputs are the Step and Direction signals from the CNC, which are simply passed straight thru the ESP32 to the Stepper Motor controller for the Z Axis, which moves the torch up and down.  When the torch is actually on the THC will monitor the DC voltage of the torch, which is proportional to the distance the torch is above the material it is cutting.  There will be a setpoint in the THC which is compared to measured voltage and then controls the Step and Direction outputs to maintain the desired height.  </p>
<p>The two ISRs are used to simply pass the Step &amp; Direction signals thru to the outputs.  There will be no other code in the ISR's.  I've actually got this portion working on the bench and it works well.</p>
<p>I like to test code separately in sections and now that this portion is working, I'll move on to the control portion and then on to the touch screen portion.</p>
<p>I could actually purchase a THC, but what's the fun in that.</p>
<p>Thanks again for your help.</p>
<p>And Ron, would you please stop sending that cold weather our way....</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>RebelJD</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/serial-monitor-blues/#post-50330</guid>
                    </item>
				                    <item>
                        <title>RE: Serial Monitor Blues</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/serial-monitor-blues/#post-50328</link>
                        <pubDate>Sat, 04 Jan 2025 00:28:12 +0000</pubDate>
                        <description><![CDATA[@davee @rebeljd Oops, yes I missed that, and I just noticed I don&#039;t see any mention of pullups or downs, floating input pins are unpredictable. Also you should put in error checking for each...]]></description>
                        <content:encoded><![CDATA[<p>@davee @<span>rebeljd</span> Oops, yes I missed that, and I just noticed I don't see any mention of pullups or downs, floating input pins are unpredictable. Also you should put in error checking for each function or procedure call.</p>
<p>BTW, I still have no idea what you are doing, but it seems interesting,</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/serial-monitor-blues/#post-50328</guid>
                    </item>
				                    <item>
                        <title>RE: Serial Monitor Blues</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/serial-monitor-blues/#post-50327</link>
                        <pubDate>Sat, 04 Jan 2025 00:22:33 +0000</pubDate>
                        <description><![CDATA[Hi @rebeljd,
  I agree with Ron (@zander)&#039;s comment, but maybe in this case, I would also check out your port selections, especially GPIO 1, assuming this reference is correct (and RNT stuf...]]></description>
                        <content:encoded><![CDATA[<p>Hi @rebeljd,</p>
<p>  I agree with Ron (@zander)'s comment, but maybe in this case, I would also check out your port selections, especially GPIO 1, assuming this reference is correct (and RNT stuff is usually reliable).</p>
<p>See https://randomnerdtutorials.com/esp32-pinout-reference-gpios/</p>
<p>which includes:</p>
<h3 class="wp-block-heading">UART</h3>
<p>The ESP32 supports up to three UART interfaces: <strong>UART0</strong>, <strong>UART1</strong>, and <strong>UART2</strong>, depending on the ESP32 board model you’re using.</p>
<ul class="wp-block-list">
<li><strong>UART0</strong> is usually reserved for communication with the serial monitor during upload and debugging. However, you can also use it for communication with other devices after uploading the code if the Serial Monitor is not needed.</li>
</ul>
and<br />
9987
<p> (click table to see enlarged version)</p>
<p>Best wishes, Dave</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>DaveE</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/serial-monitor-blues/#post-50327</guid>
                    </item>
				                    <item>
                        <title>RE: Serial Monitor Blues</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/serial-monitor-blues/#post-50326</link>
                        <pubDate>Fri, 03 Jan 2025 23:49:10 +0000</pubDate>
                        <description><![CDATA[@rebeljd The recommended approach for an ISR is to do as little as possible. Ideally set a flag that gets processed in the main loop.]]></description>
                        <content:encoded><![CDATA[<p>@<span>rebeljd The recommended approach for an ISR is to do as little as possible. Ideally set a flag that gets processed in the main loop.</span></p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/serial-monitor-blues/#post-50326</guid>
                    </item>
				                    <item>
                        <title>Serial Monitor Blues</title>
                        <link>https://forum.dronebotworkshop.com/esp32-esp8266/serial-monitor-blues/#post-50325</link>
                        <pubDate>Fri, 03 Jan 2025 23:37:30 +0000</pubDate>
                        <description><![CDATA[I working on a project using an ESP32 and seem to be having intermittent issues with the serial monitor.  The attached sketch illustrates the problem (it is just of portion of the sketch I&#039;m...]]></description>
                        <content:encoded><![CDATA[<p>I working on a project using an ESP32 and seem to be having intermittent issues with the serial monitor.  The attached sketch illustrates the problem (it is just of portion of the sketch I'm working on.  The serial monitor has worked a few times this sketch, but mostly it does not.  I've done many projects with this ESP32 and have never had this issue.  I did just upgrade to the latest version of the Arduino IDE (2.3.4)  </p>
<p>This is a simple sketch so I don't know why I can't get the serial monitor to work.  It simply passes thru two inputs to two outputs using interrupts. The blink portion in the loop works fine, but the Serial.println does not.   Any help is appreciated.</p>
<p>Jim</p>
<div>
<pre contenteditable="false">#include&lt;arduino.h&gt;
#define INPUT_A 12  
#define INPUT_B 27  
#define OUTPUT_A 23
#define OUTPUT_B 01
void IRAM_ATTR ISR_A() {
  digitalWrite(OUTPUT_A, digitalRead(INPUT_A));
}
void IRAM_ATTR ISR_B() {
  digitalWrite(OUTPUT_B, digitalRead(INPUT_B));
}
void setup() {
  Serial.begin(115200);
  pinMode(2,OUTPUT);
  pinMode(INPUT_A, INPUT);
  pinMode(INPUT_B, INPUT);
  pinMode(OUTPUT_A, OUTPUT);
  pinMode(OUTPUT_B, OUTPUT);
  attachInterrupt(INPUT_A,ISR_A,CHANGE);
  attachInterrupt(INPUT_B,ISR_B,CHANGE);
    }
void loop() {
  digitalWrite(2, HIGH);  
  delay(250);                      
  digitalWrite(2, LOW);  
  delay(250);                      
  Serial.println("I'm Looping");
}</pre>
</div>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/esp32-esp8266/">ESP32 &amp; ESP8266</category>                        <dc:creator>RebelJD</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/esp32-esp8266/serial-monitor-blues/#post-50325</guid>
                    </item>
							        </channel>
        </rss>
		