Weeks - Topics

Intro

web Development - Git
computer-aided design
computer-controlled cutting
electronics production
3D scanning and printing
electronics design
computer-controlled machining
embedded programming
mechanical design
machine design
input devices
molding and casting
output devices
composites
networking and communications
interface and application programming
applications and implications
invention, IP, and income

Home

Week 16


interface and application programming



Assignment

  • write an application that interfaces with an input and/or output device that you made


Week workflow

Here is how I see the week's flow :

Week workflow

Flow chart for this week


Table of content :





STEPS


Javascript + node.js on the server


I want to have a webpage reading light sensor data over the internet :

Legend

Legend


I will use the board made during the input devices week :

Legend

Light sensor board


Legend

Light sensor board - other side


I need to install node.js and the modules "ws" and "serialport" on the computer that has the Light sensor board.

At first, npm, the javascript packet manager couldn't install the serialport module

The server javascript program :

Legend

Legend


Go to the top




Html & Javascript on the client


The html page on the client (which could be on a webserver) :

Legend

Web Page on Client


Go to the top






Source files

Here are the sources files of the projects I talked about on this page :


the Server Javascript program
The Client's html page

Go to the top





Conclusion


  • Surprisingly simple to read a sensor from anywhere in the world :)



  • ***

    Go to the top