I am using the Arduino Create IDE without a USB connection to Arduino boards. I have a separate computer for that. I want to use Create just for writing and testing code fragments.
When I try to open the Serial Monitor on Create, I'm prompted for a USB connection. Is there a way to use the browser to display the output of Serial.print statements?
I dont think it will work in the way you hope.
The serial monitor is linked via the agent so a USB connection would be the minimum required unless you had such as the YUN in which case you could get the output via the IP address of the YUN.
You haven't mentioned what board or if it has any other connections available so this is just a best guess.
I have selected a board, since the sketch won't compile without a board selection. However, since I just want to use the Create IDE work on code fragments, I'm not actually interested in making hardware connections with a board using Create. I do that with my other computer.
My answer remains the same as your same question.
You really do need to add much more detail.
See HERE for the types of information you should be giving.
I’m not sure what additional information you need. I’m using the latest Firefox browser running on Windows 7 Pro, 64 bit. There are several C++ sites such as cplusplus which allow functions such as Serial.print() to be compiled and the output viewed within the browser without requiring a USB connection.
Ok based on the information you have provided so far…
Yes you can use CREATE to make a sketch and see if it compiles without a board.
You can then share that sketch in a variety of ways.
You can also use another instance of CREATE on a different computer to write sketches and they will be saved into your own sketchbook.
As it stands if it is an Arduino with ONLY a USB port you would have to RDP into the machine that the Arduino was actually connected to to do the upload
The Arduino needs to be CONNECTED to at least one instance of CREATE if thats what you want to use.
That COM port is in essence then dedicated to that instance of CREATE.
I have been able to read serial data from the board which is essentially connected to CREATE on the local computer using a terminal program but only reliably so long as I did not have CREATES serial monitor open.
As for what else you have failed to mention.
Board type ?
The Arduino can be programmed to communicate in a large variety of ways even texts other communication methods eg wifi, bt, ethernet, a real serial port type shield ?
Does yours have any of those methods available ?
- Arduino talks to the local computer it is CONNECTED to.
- That computer runs a serial monitor to read data from the Arduino (there are lots of terminal programs out there)
- Terminal program echo’s the Arduino output to a destination of your choosing with a method of your choosing.
- How you deal with that echo at the other end is again up to you.
Did you really go to the link I gave you ?
Many of the C sites allow you to run / edit / compile a program.
Almost always that’s in a sandbox environment for the ONLINE ones.
Sure you can test a serial function in C.
The Arduino with a couple of exceptions requires a HEX file uploaded that is compiled just before the upload using specialised libraries and functions designed and optimized for the specific cpu/mpu architecture.
Most C sites don’t have the AVR, SAMD etc etc etc architecture to allow that.
I can write in a few flavours of BASIC and see the outcome…
Even have a smattering of assembly.
Just because I can see what it should do doesn’t mean its going to run on anything other than what I made it for.
Thanks for your reply. In short, then, the answer to my question appears to be, no, Create cannot be used in a sandbox environment such as the C++ site I referenced.
And yes, I did look at the link you provided.
If it helps at all I have had success running CREATE inside a VM.
However there can be issues with COM ports under some of the VM’s
VMWARE was successful with Windows 10 using Edge browser and Chrome.
Your other option is of course RDP to the host.
Thanks, I'll take a look at it.