Hi. Is it possible to have full virtual device in OS (win)? I have sketch, from device, i dont need this device like physical board anymore, but main program still need to take commands from usb. Previously, these commands came from the physical device, but this is no longer necessary; virtual control will suffice. Is it possible? Thx.
What does that mean to you?
Which device is opened by the main program?
Main program get commands from arduino atm(listen to usb). I have a sketch of it. I need to emulate this device for main program(cant be modified) to continue working without a physical device for full manual control.
Certainly possible. Begin by making a list of ALL the inputs and describe completely what output is required for each type of input. Then write your program to match those specifications. Recommend Python is you don;t have other preferences.
I understand this way, but its a lot of problem, a lot of coding include zero ring and singing driver ~2000$. Its a reason why i ask about existing solutions with emulating arduino device in os like virtual device (like virtual network adapter/audio card and etc). General emulation, not only for my case.
Then you have at least 2 problems:
- emulate a COM device
- make it acceptable by the main program
See Paul's reply of what remains to do with the replacement of Arduino inputs by your new user interface program.
If your main program reads from stdin then you can immediately redirect this port to your interface program on the command line. Otherwise you are mostly lost ![]()
not real. Old closed project. And its not pure com. It have specific protocol.
Atm i see only one option - use 2 arduino:
- First one with original sketch, remove sensors.
- Second one will have com port for take data and will
connect to sensor pins of first one to emulate sensors.
But its a crazy stupid solution...
Creating com port over original sketch was failed because main program uses low level data exchange and something unexpected in data stream confuse it.
So solutions for emulate physical device in system doesnt exist, right?