Hi guys,
ok my problem is this, i cant get any readings from my sensor HCSR04 using my Wemos D1 R2 board on serial monitor, i use the same code that works with my other arduino nano board and same sensor, but serial monitor just shows some random signs in this case, i adjusted settings as shown below, baud rate on monitor and sketch are the same and this is the code:
Ok i cant i believe i overlooked that, now that i changed that in the code, i get the readings but still there is some error at the very start of the readings, and those signs appear again every time i reset my board :
There is excuse for posting as pic, i did so,so you can easily see that baud rates are correct in IDE, code and serial monitor, nothing else...
There is excuse for printing it as string, since i used this to send data to processing, so i needed it to be in string format, as processing is recieving data from arduino as String (if it can be recieved as int or float i didnt know that, will try though)..
Serial.print converts numbers to text; as @PaulS says, no need to convert to String.
I sometimes see funny characters after boot (but not as many as you) ; adding a short delay in setup() before the first print (wherever that is) has solved it up to now.
I dont know, i still have those appearing on my serial monitor, even with delay in setup() ...
btw everytime i upload a code to the board i get this message below, it always uploads cca 230kB of code to flash memory and it mentions flushing the memory,closing bootloader etc., does the same thing happen to you guys with this board, is it normal or ...?