So far, developing the source code for iKu575 has proved to be quite a complex endeavour. We’ve managed to adapt a priliminary sketch by incorporating Arduino’s ‘Twitter Library’ (enabling output processing), with references to ‘Calibration’ ‘String’ ‘Array’ examples.
After declaring the set constants ‘lightPin,soundPin,tempPin’ with sample integers, we comprised a list of variables (lightValue,soundValue,tempValue) meant to identify the value of the different sensors in each instance of use (light, microphone, thermistor). Since we additionally expect these readings to communicate with the Twitter SNS (the outputting process in the form of a haiku post), we also declared the character variables ‘haikuline1,haikuline2,haikuline3’ to identify the isolated lines of poetry, we humanists, have written ourselves! (Selection TBA). We suspect that this process would also require a mapping of the ‘sensorMin’s and ‘sensorMax’s that could be determined by debugging with the serial monitor in the next CM session. Therefore, the values are declared as ’0′ or TBD constant integers for the time being.
const int lightPin = 1; // sample pin that the Light sensor is attached to
const int soundPin = 2; // sample pin that microphone is attached to
const int tempPin = 3; // sample pin that thermistor is attached to
const int lightMin = 0; // sensor min and max TBD
const int soundMin = 0;
const int tempMin = 0;
const int lightMax = 0;
const int soundMax = 0;
const int tempMax = 0;
// variables
int lightValue = 0; // sensor value
int soundValue = 0;
int tempValue = 0;
int lightRange = 0; //value range
int soundRange = 0;
int tempRange = 0;
char haikuline1[]; // character variable
char haikuline2[];
char haikuline3[];






