Hi there, I'm completely new to Arduino and Programming in general, I'm trying to design new Video Game Concepts, my current project has lead me to Galvanic Skin Response Reading, using Arduino, I am working off Che-Wei Wang's GSR Reader project found here: GSR Reader – cwwang.com .
I would like to create a second window displaying a series of images that change depending on the average reading taken from the GSR.
If possible to go further by displaying a counter that goes from 0 to 100 depending on the readings, if the average is over a certain ammount the counter increases towards 100%, if the average is low/normal it slowly decreases towards 0%.
I would like each individual image to display at different percentages, example:
0% - First Image
20% - Second Image
40% - Third Image
60% - Fourth Image
80% - Fifth Image
100% - Final Image
I have no idea how to do this myself, as my coding knowledge is 0, basically this is to provide a clear visual demonstration of changing values more suited to a video game, as apposed to the graph. (but both need to be visable.)
Does anyone know how this can be done? would greatly appreciate any advice.
Thanks
I would like each individual image to display at different percentages, example:
0% - First Image
20% - Second Image
40% - Third Image
60% - Fourth Image
80% - Fifth Image
100% - Final Image
Do you ever actually get 0% or 100%?
If possible to go further by displaying a counter that goes from 0 to 100 depending on the readings, if the average is over a certain ammount the counter increases towards 100%, if the average is low/normal it slowly decreases towards 0%.
When would the counter increment? Once a second? Once a minute? Once a week?
Average of the readings over what period of time/how many readings?
this is to provide a clear visual demonstration of changing values more suited to a video game, as apposed to the graph.
As opposed to what graph?
Showing a second window in Processing is not something I've ever seen done. But, showing a graph and an image in the same (larger) window is possible.
hmmm I should of explained better sorry, I will answer your queries:
-
You start off at 0%, the idea is to remain as calm as possible, the higher your % the more punishing the game is (the images changing is just to visually present an example of this.) so if you maintain normal readings you will stay around 0-10%, the idea is designed for horror games for example, if your startled/scared/panicking the monsters smell the fear and attract at a larger radius, just trying to get some basic way of setting up this concept.
-
I dont know how to interpret the readings myself from the code, but the counters increase should be determined by how high the spikes are, if they are small spikes then the counter should increase at a slower speed, lets say for example 1% every 0.5 seconds, if there is a large spike at the highest end of the scale, the increase should be 2% every 0.5 seconds. For a Decrease in the Counter, something simple like a reduction of about 2% every second while there are no spikes (calm).
-
His GSR project comes with a visual graph including the average reading aswell (maybe it would be best to base the counters growth on how high the average is, as apposed to the top end and bottom end?) but I would like picture and even possible sounds to play aswell, as it needs to be presented to a more visual audience.
Hope that helps.
I would like to create a second window
Where?
What language are you writing this in?
PC or Mac?
These seem to be questions about some computer app not anything to do with an arduino.
The link in the first post shows the device connected to the Arduino, sending data to a Processing application. I made the assumption that OP was referring to Processing when asking about posting a second window, etc.