Nothing showing up on the Serial monitor

Hello Mr. Cannaday,

Our next competition is coming up in 2 weeks! We installed the new board you sent and we are receiving an error;

Arduino: 1.8.5 (Windows 7), Board: “Arduino Yún”

C:\losant\losant-kit-moisture-master\losant-kit-moisture\losant-kit-moisture.ino:12:25: fatal error: ESP8266WiFi.h: No such file or directory

#include <ESP8266WiFi.h>

                     ^

compilation terminated.

exit status 1
Error compiling for board Arduino Yún.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

We were wondering if we could just come to your office and work together with you or some of your other co-workers to build the sensor since we have such little time.

Thanks,
Brick Girls
Anya Mehta and Arushi Gupta
Coach: Bhavna Mehta

Looks like you sent the same message twice. I replied above. Please check the board that’s configured in the Arduino IDE. It should be set to “Generic ESP8266 Module”.

We still see the same thing as with the previous board:

Hi Remy,

Can you paste the snapshot of your basic Hello code?

Thanks,
Bhavna

Hi Bhavna_Mehta

I tested the baords with two configurations (the two pictures below) with Hello sketch.
-The first configuration, I managed to display “Hello” word but it remains a problem related to the configuration of the wifi (WIFI_SSID = “mini @”) of my old applications.
-the second configuartion that uses GenericESP8266module does not work

Windows 10
Arduino 1.8.0
ESP8266 2.4.0

Hello code:
void setup() {
Serial.begin(115200);
while(!Serial) { delay(100); }
}

void loop() {
Serial.println(“Hello!”);
delay(1000);
}

This one is related to the first configuration (see above)

@Remy

Hi, just as a test. Can you try using DOUT as the flash mode instead of QUO?

As I was testing out other devices, this seem to resolve this issue for me.

@anaptfox

Yes you are right.
thank you

Thank you Remy and Taron. We will try that later today too.

@anaptfox @Bhavna_Mehta

I used this configuration for the door opening detection application ( https://docs.losant.com/getting-started/losant-iot-dev-kits/door-sensor-kit/ ) but it does not work properly !!!

Yes :rofl::sunglasses::grinning:, everything works correctly with the configuration shown in the figure below

Hi, Thanks to Taron Foxworth’s help we were able to get the moisture sensor to work. We would like to demo the sensor connected to a hotspot while it shows the dashboard on a phone. We changed the wifi settings to the hotspot but somehow the sensor still needs to be connected to a computer via USB to transmit values to LOSANT.

Also, we are trying to flash the code to a different MCU and are getting the following error:
Arduino: 1.8.5 (Windows 7), Board: “Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None”

Archiving built core (caching) in: C:\Users\mehtb1\AppData\Local\Temp\arduino_cache_720532\core\core_esp8266_esp8266_generic_CpuFrequency_80,FlashFreq_40,FlashMode_dio,UploadSpeed_115200,FlashSize_512K64,ResetMethod_ck,Debug_Disabled,DebugLevel_None_____49786d67e89a1b4c62c7f2194357454d.a
Sketch uses 292361 bytes (67%) of program storage space. Maximum is 434160 bytes.
Global variables use 39576 bytes (48%) of dynamic memory, leaving 42344 bytes for local variables. Maximum is 81920 bytes.
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
error: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Thanks,
Bhavna

I think I have my answer to the first part of the question - does the USB cable power the sensor? We will try a portable USB power supply.

Thanks,
Bhavna

@Bhavna_Mehta

Yes. The USB powers the NodeMCU. So, it doesn’t need to be powered by a laptop. I can also be powered by a power bank or a wall usb plug.

Hi…i think those are printed by the ESP as part of the boot process. It should then immediately start printing other stuff. I’ll provide a simpler firmware shortly just to test that the boards are working at all.

contract manufacturing pcb assembly

Hey, same issue here. Nothing showing up in the serial monitor. I’m using ESP-12E as standalone and using Arduino IDE. The first time it was able to connect to WiFi but, later serial monitor is blank. Nevertheless, the Blink code is working. I’ve also tried the “hello code” mentioned in the discussion and it just outputs ‘?’ for it.

Phew. It’s working when I changed the flash mode to DOUT. Thanks! Can I know what exactly are these configurations? I mean the detail explanations?

Regards,
Sathvik Setty

Hi @SathvikSetty_s,

The LosantDevice documentation can be found here, and Losant variables (found at the top of the file) can be found here.

Thanks!
Julia

I have the same issue with a nodemcu sketch.

I was using Ubuntu with Arduino v10 and doing some program tweaking and the serial monitor quit displaying anything.
I loaded my same sketch onto my Mac Book PRO and everything loads and works as it should.

I have tried different sketches that use WIFI and also your simple Serial.print test.
And still nothing on the Serial Monitor on the Ubuntu computer.
The sketch looks like it is loading onto the nodemcu via the led is flashing while the sketch is loading.

Is there something that I should check with the USB ports on the Ubuntu computer?

Thanks, Joe

Well i got it to work again.
I powered down the Linux PC for an hour and then restarted it.

This part of my sketch is where I was tweaking:

void SouthBed(){
if (timerRunning1 == 0 && digitalRead(sBed) == LOW){
startTime1 = millis();
timerRunning1 = 1;
}
if (timerRunning1 == 1 && digitalRead (sBed) == HIGH){
endTime1 = millis();
timerRunning1 = 0;
TimeS = ((endTime1 - startTime1) /60000);
Serial.print("sBed cycle time in minuets: ");
Serial.println(TimeS);
SBed = (TimeS = ((endTime1 - startTime1) /60000));
Serial.println (SBed);
Blynk.virtualWrite(2, SBed);
}
}

I wanted to see how long startTime1 = millis(); was running before it got reset so I put in Serial.println(startTime1 = millis()); right before timerRunning1 = 1 code line and when I loaded the sketch that is when the serial monitor quit.

What I did notice was that after the sketch finished loading it didn’t perform the “Hard resetting via RTS pin” at the end of the uploading. Kinda frustrating and kinda weird.

I am new at C++ programing, I used to program in Basic back in the day and before I retired I programed AllenBradly PLC’s

These Arduino devices are a lot of fun.
Joe

2 Likes