Third Update: Doccia
On Friday I went to Nick’s studio to get some of my circuitry together. My part of the project is going inside of a large moving structure so I was concerted about 1. Getting my circuity into a small enough package 2. How to mount that to the rest of the piece 3. Making the circuit fail proof and able to withstand the duress of being moved and jolted over a long period of time. I decided the mount all my modules to a piece of wood. Then using the wood as a mounting surface to the piece. Using a piece of wood also enabled me to staple, nail, drill, wire and modules down to the support structure. This enabled me to take stress off important connections.
I used my pitch program from Wednesday to test my circuit in several way. I first used it as a stress tester. I run the program. Then I shake the circuit as hard as I can. If the sound cuts out then I know something has failed, fix it, and repeat. By the time of the lab, I was able to practically throw the thing and not have a failure although my friend dropped it later and broke something, so now it has been through a unbiased test as well.
At the lab at our space, I used the pitch program to test the range and field of the sensor with audible cues. This enabled my partner and I to discuss placements and routines that we wanted for our breathing algorithm. After the lab Nick and I tested the motor out on the mechanical structure. The resistance was to great on the up stroke so Nick devised a plan to use a tendon structure to help the motor upstroke.
Saturday I conducted an experiment at Nick studio on range values with the sensor and touched up the program and circuitry so that I could get minimum functions from the motor. Once I was finished with that I did a test of the circuit with the actual piece and the motor. All went well except the range of values in the PWM module were not great enough to make a noticeable change in speed. The sensor did to it’s job though and I was able to start and stop the motor with sensor cues. With a little bit more tweaking of code, the electronic part of the piece should be done. All that will be left to do is to finalize the visual aspects of the sculpture.
Here is my current version code:
include libsrf05.txt
to Powerup
SRF05init
clearbit 1 porta-ddr ;PWM
clearbit 1 porta
clearbit 3 porta-ddr ;On/off
setbit 3 porta
clearbit 5 porta-ddr ;Hi/Low
clearbit 5 porta
loop[
setn SRF05getvalue / 250
If(n < 3) [setn 32]
Ifelse(n < 8)[setn 0]
[
If(n > 30)[setn 30]
If(n < 2) [setn 32]
]
setbit 1 porta mwait n
clearbit 1 porta mwait (32 - n)
]
end
;Max ~7850 Min ~250
;7+ huge varience/outliers
;6ft threshold= ~3700
;5ft threshold= ~3200
;4ft threshold= >2270
;3ft threshold= >1880
;2ft threshold= >1450
;1ft threshold= >1200

