Inputting frequency using an LED and photoresistor
D34DF007
Posts: 4
As part of a project I'm working on, I am running a test of a certain program on my stamp, and I am trying to have my BS2 read certain frequency pulses from an LED using an photoresistor, and outputting different values in the debug terminal based on the frequency of the pulses.
for example, the LED pulses at 80 Hz, and in the debug terminal, the stamp would output the same value as "80 Hz". Ideally, I would like it to go up to the 4000 Hz range, but I'm not sure any of the stamp commands are able to read such high frequencies through a photoresistor. Can anyone help me out here?
for example, the LED pulses at 80 Hz, and in the debug terminal, the stamp would output the same value as "80 Hz". Ideally, I would like it to go up to the 4000 Hz range, but I'm not sure any of the stamp commands are able to read such high frequencies through a photoresistor. Can anyone help me out here?
Comments