Communication with Arduino Leonardo

So I have an arduino leonardo paired with a USB host shield. I have a program on my computer using AI to scan for objects. When it finds an object it tells the Arduino to move my mouse towards the detected object.

This program already works fine with Arduino Leonardo and USB Host Shield but I want to completely ditch any traces of serial using USB and instead use WIFI to do all the communication.

Is it possible to communicate to my arduino through WIFI and have it do the exact same thing?

Yes - with an ESP-01 for WiFi, as a sort of modem or interposer.

Alright. I was told that I am also able to communicate with the arduino using USB without using open com ports. Is this possible and if so how would I go about doing that? If it is possible I think this would be an easier route rather than having to use wifi/ethernet to communicate with my arduino

what are you communicating from? e.g. a laptop? a LCD toutch screen? a joystick? a control panel of some sort?

My computer.

Remove Serial Port - Using Arduino / Programming Questions - Arduino Forum

Yeah so basically i’m just wondering which ones would be the best approach. Either a different way to communicate with my arduino or just getting rid of COM port completely.

Do not cross post.

ah okay

Hi @archivefr. It is OK to make multiple forum topics for discrete aspects of a project.

This topic and your other topic about the project Remove Serial Port are currently on discrete subjects so they are OK.

However, there are some requirements for this to be done in a manner compliant with the rules of the forum and respectful of the people offering free help:

Avoid convergence

Even when the topics start out on discrete subjects, they have a tendency to converge to parallel discussion over time. Parallel discussions are harmful because they waste the time of the helpers who unknowingly duplicate the previous efforts from the other topic. For this reason, you must manage the scope of the discussion to prevent this from happening. If discussion starts to stray into the territory of the other topic, then redirect the participants over to the other to continue that discussion.

Cross-reference

The readers of one topic won't necessarily be aware of the content in the other. If information in one topic is relevant to the discussion in another, help your helpers by mentioning it there with a link.

2 Likes

6 posts were merged into an existing topic: Remove Serial Port

FYI: You can emulate the mouse with the Leonardo its self.
I have no idea if that will interrupt serial communication.
Is your project like this WiFi>Arduino>Computer with AI or Arduino> WiFi> computer.
I have a few ideas about Option One. But I have no Idea how to make option two.
Hope this helps

@pert
I just noticed the split posts.
If you think this is in the wrong topic could you move it?
Thank you.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.