Windows PowerShell is a great automation tool for system administrators. Windows 10 includes PowerShell and support for directly connected Arduino devices via USB (drivers are automatically installed).
There is a fantastic store app you can download to interact with the Arduino: https://www.microsoft.com/store/apps/9nblggh2041m
But I wanted to control the Arduino from PowerShell. Before writing any code I always search on http://github.com and, sure enough, someone had already created a C# assembly to provide a wrapper to make it easy.
https://github.com/SolidSoils/Arduino has the DLL and information on the sketch to install. I have created a blog post on installing the required sketch here https://ianmorrish.wordpress.com/category/v-ise/arduino/
Then it is a simple matter of using PowerShell as follows.



_ztBMuBhMHo.jpg?auto=compress%2Cformat&w=48&h=48&fit=fill&bg=ffffff)



Comments