When the light goddess hid herself in the cave of heaven, the world became dark. Embarrassed by this, the deities gathered in front of the cave to hold a conference.
class16: Interface and Application Programming
This Weekly Assignment is writing an application that interfaces with an input &/or output device.
I tried to use light sensor
I developed application with “hello.light.45”and an ambient light sensor. I made it in class 11.
First try I hope to move a circle on PC as change in light quantity .
In class 11 I has succeeded to sent value of light by serial.
I tried to express its value as circle moving by using software “Processing”.
But first time I couldnt move the circle.
I used arduino’s language. It express values as used int. It’s range -2,147,483,648 ~ 2,147,483,647. to measure practically, value of light changed about form 50 to 960. In Processing value change 0〜256. therefore I converted the value to fall within the predetermined ranges. At result I has succeeded to move circle.
Arduino
In darkside
In lightside
In addition I add to change background light.
In darkside
In lightside
Eventually I added to cahnge another circle size and shade color.
In darkside
In lightside
Second try I hope to express change in light quantity as chart. So I developed GUI referred to “Shiraishi “
I tried to change chart image. I used cucumber.
import processing.serial.
Processing code
his is a file I made as a assignment.→ Arduino1