Hi mates, if this is an off topic please excuse me, I?m looking for infos and the digispark forum is not more working.
Do you know any project to control a digital output (connected to a relay) driven by Windows? (a commmand line is great, since I can directly run .bat files from other programs).
Digispark is really small, it has an USB ready, available drivers, adding a relay and close all in a small box is easy solution..
My goal is to activate a relay for example:
digisparkactivate.exe -on
pause 200
digisparkactivate.exe -off
There is anything ready maybe on Github?
Thank you for your suggestions
Looks like it should be possible to have it appear as a COM port to the PC, so then you should be able to send commands to the COM port that would make the Digispark do stuff - like turning an output on/off...
Got it thanks, teorically works, I have to echo something >COM1 to send a message the digispark will knowm but,
I know well that Windows love to enumerate COM ports with its own logic, don't ask me how, probably if the device will be not connected to the same USB, or if anycase the system reboots with an error, or any other else silly reason, the number of COM can change and if it does the command line batch will not work more.
So you share this problem with me. Unfortunately I need that on a remote PC, which should work anyhow standalone, if a reboot occour it has to keep the COM port number, or find itself and adapt the batch file to it. Do you have any idea? Since there will be only one COM port it can be enough to discover it, and use the output to direct the command to that port..