Loading...
Logo
Processing Forum
zlr102's Profile
1 Posts
0 Responses
0 Followers

Activity Trend

Last 30 days
Show:
Private Message
    Hello,

    I am an extreme novice at Processing... correction, I have never used it before.  I have a project that requires me to measure the weight of an object and display an image depending on the weight range.  I have already built and tested the hardware.  Basically an arduino board connected to four force sensors and plugged into my mac via USB.  The force sensors output a value between 0 and 1023 depending on the weight of the object being weighed. 

    From here I need to write a simple program that uses this value to display an image (jpeg or similar).  So if the value falls between 0 and 250 then image A is displayed, if between 251 and 500 image B is displayed... etc. Also needs to live update, so if I remove the object the image should change and if I re-place it, the image should return.

    Does anyone know where I can find sample code to do this, or if someone thinks they can write some quick code to do this I would be grateful. 

    Please help.  Thanks.  Let me know if you need any more information.

    -Zach