Hello,
I am unable to use serial monitor using board NodeMCU Esp12-E (clone) on Arduino IDE on my MacBook Air laptop and using Arduino cloud on my web browser, however it works fine when using Arduino IDE on my Acer laptop ? On the serial monitor it shows a bunch of unreadable font ? i've already tried using nearly every different baud rate and settings but it still refuses to work, which is a pain when i need to get address's for AP/ip and so on, Ive already googled for answer's but i am unable to find a fix.
Cheer's
How about showing us pictures, code, and more information?
OK, this is my first time using Forum so im a bit new...
do you want me to copy whats showing on the seial monitor ?
No, just take a screenshot and upload it.
/*
Copyright (c) 2015, Majenko Technologies
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
* * Neither the name of Majenko Technologies nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/* Create a WiFi access point and provide a web server on it. */
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#ifndef APSSID
#define APSSID "ESPap"
#define APPSK "thereisnospoon"
#endif
/* Set these to your desired credentials. */
const char *ssid = APSSID;
const char *password = APPSK;
ESP8266WebServer server(80);
/* Just a little test message. Go to http://192.168.4.1 in a web browser
connected to this access point to see it.
*/
void handleRoot() {
server.send(200, "text/html", "<h1>You are connected</h1>");
}
void setup() {
delay(1000);
Serial.begin(115200);
Serial.println();
Serial.print("Configuring access point...");
/* You can remove the password parameter if you want the AP to be open. */
WiFi.softAP(ssid, password);
IPAddress myIP = WiFi.softAPIP();
Serial.print("AP IP address: ");
Serial.println(myIP);
server.on("/", handleRoot);
server.begin();
Serial.println("HTTP server started");
}
void loop() {
server.handleClient();
}
Huh, it does use 115200 baud, one that the serial monitor has as an option... maybe it's because of faulty hardware, such as a bad USB port?
This is a screen shot on my Macbook
That is readable...
Have you tried on the old IDE?
I have have other boards such as a D1 mini and others that work fine on my Macbook.
I might try an older version... do you think it might have something to do with the Warnig with the crystal frequancy ?
Do you get the same warning on other boards?
No..its only on the NodeMCU 12-e boards, i have 2 of them and they both have the same problems, however i have another NodeMCU board from a different maker and that works fine... i think the boards might be faulty.
Probably.
Its strange that it works on my Acer laptop though ? i might just have to only use my Acer when using the faulty boards.
@pappasmurf80. The screenshot you shared is not of the Serial Monitor. It is of the Output view, were the output from compilation and upload processes are displayed. If you want to look at the Serial Monitor, you need to click on the tab here:
Hi,
Thanx for the reply, yeah i know where the serial monitor is i was trying to show the output view cos it says some warning about the crystal freq being different to normal uploads or something, and i was wondering if that might have anything to do with my serial monitor not showing readable texts? only on my Macbook air and on the Arduino IOT cloud monitor, but for some reson it works on my Acer..i was thinking that it happened after flashing new firmware on my Acer laptop cos im sure i remember it was working on my Macbook befor i flashed firmware.
Ta.
I don't know a lot about the subject of clocking on the ESP8266, but it could be. Serial communication is timing sensitive, so if the microcontroller is running at a different clock speed than the speed the program assumes, this can corrupt the serial communication. From my experience with the AVR microcontrollers, there is a bit of tolerance there, so the clock doesn't need to be running at exactly the expected speed, but if the variation gets too large then there are problems. This might be affected by the environment the board is running in (temperature, power supply), so if the board is on the edge of the usable clock speed range you might see it work in some environments and not work in others, or work intermittently.
Do you get the same warning when uploading to the board on the laptop?
When people are having odd results with the Serial Monitor, I usually suggest they try a very simple sketch in order to reduce the number of potential factors. If the problem does not occur with the simple sketch, that would indicate the code of the other sketch is a factor:
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("hello");
delay(1000);
}
If you upload this sketch to your board, you should see "hello" printed in Serial Monitor at 1 Hz. I used the more conservative 9600 baud here, so make sure to set the baud rate menu in Serial Monitor to 9600.
Hi,
I followed your advise and unfortunately the problem still insists...i'll upload the results from my Macbook and Acer..for some reason the crystall warning doesnt show up on the Acer, does that probally have anything to do with ? and the serial monitor shows unreadable text in Arduino clouds serial monitor on my Acer?
Here is the upload from my Macbook.






