Not possible to upload using wifi


#1

It said it was easy to use…
I have a working wifi (it says 2.4G serial connection in the window header). Still, when I press Upload to Arduino it says: “Please connect the serial Port”. Under Serial Port there is no extra port. How is this supposed to work?

Yes, I have upgraded the firmware of the mBot.
I did need a USB cable for that (not included).
Yes, I was able to do upload a script using the cable.

Please help.


#2

That is correct. You can run programs from the mBlock IDE via WiFi / Bluetooth, but uploading to the mBot for standalone operation requires that the mBot be connected via a serial cable (USB).


#3

Well, that is interesting to know. Thanks chuckmcknight.
So how do I run a program using WiFi then?
I completely miss the tutorial on this, and many other items. Where is the real tutorial on how to program the mBot.


#4

To run a program via WiFi or Bluetooth, you need to connect via 2.4g or Bluetooth and use a when clicked block from the Events palette to run the blocks under it.

There is a couple of tutorials on the web site that talk about Scratch and the mBot/mBlock programming, but a lot of this I’ve just figured out by fiddling around as I write a short ebook on the topic for a class I’m doing in February. I’ll be publishing the ebook next year that covers programming in the mBlock environment, with a follow on book later in the year to cover programming directly in the Arduino IDE.

You cannot run anything that starts with mBot Program (as near as I can tell) over WiFi or Bluetooth. The mBot Program signals the mBlock environment that it needs to do a native compilation and download the program to the mBot.


#5

Indeed, when I click the Event block of code, it glows up and when it is glowing, it appears to be running in the mBot. That would be a simple instruction to add to the program itself… but i found it. Thanks chickmcknight, and when you have your ebook I am very insterested.


#6