Assignment 11

Interface and Application Programming

This week's assignement was to build some sort of application to interface with something we had been working on. Because I had a lot on my plate this week, I chose to do sometihng rather simple--set up an Serial read for a potentiometer.

I started by downloading the necessary software--in this case, I used Node.js. and wrote/saved my files in Visual Studio. To get the websocket running I ran the following commands in the Windows command shell:

npm i serial port

npm i ws

npm i websocket

I then saved Neil's code with the correct COM port selected in visual studio and tried running it through Node.js.

I kept running into an error I didn't understand, so hopefully I can return to this later and get help from someone who is more familiar with this work pipeline. I've built web-based applications in javascript before, so it will just be a matter of figuring out what I am doin wrong in setting up this websocket.