Week.16 Interface and Application Programming

  • Assignment write an application that interfaces with an input &/or output device that you made,comparing as many tool options as possible

    The input Device Hello.Light.45

    I have used my Hello.Light.45 input device. I have made a lot of experience with Phototransistor and also in the Final Project and for this reason this is my input device par excellence!

    Software

    First of all I have installed Python than TkInter and the pyserial module I suggest to install a Python version 2.7.12

    Source Software 
    Python
    TkInter
    pyserial 3.1.1

    Control if you have all installed:

    Instructions:
    WindowsCommand Prompt
    type: python
    type: help()
    type: modules
    
    check to have serial module installed 

    Python screen shot

    Fix bug from newer version

    remember

    1) remove a capital letter in Tkinter

    2) add brackets in print string

    Idea

    The idea is change the colour with the change of the light intensity. With low light the colour will be Violet then with the increase of the light intensity will pass to blue, green, yellow, orange until red with brightness light. Also the windows will show the intensity of the light, then the RGB colour and the hexadesimal colour code.

    Source Code
    Hello.color.py
    Hello.color.text.py
    


    Processing and Processing.js

    tree_pde : Built with Processing and Processing.js

    tree_pde

    Source code: tree_pde
    Built with Processing and Processing.js

    Source web.export
    Tree web javascript

    Copyright © Elia De Tomasi 2016