Hey guys,
I'm having trouble with the coding that would go along with the one I have already that would allow me to average every ten pH readings and then save them to be looked at later. I also am trying to figure out how to set up the wiring on the breadboard for an LED emitter and detector that would be used to detect each drop added to a solution. This is basically going to be used for titrations and is needed to record the amount of an acid or base being added to a solution and then recording the solutions change in pH while the acid or base is being added. I need help with the coding behind the detector and emitter. Thank you again for any help given.
have you got the receiver in a kind of tube to cut out the background noise? (light)
if i were tyring this (being a total noob aswell) i would connect the lsr or whatever you use to detect light to an analogue input and take a reading at normal light levels, then take one with the led shining on it,
i would then include an if statement in the code so that when the value falls beneath the set limit a counter is increased by one,
Did you already look here: Arduino Playground - TutorialList and here: Arduino Playground - InterfacingWithHardware? Especially Arduino Playground - InterfacingWithHardware contains references to detecting broken beams.