Maximizing Frequency Detection in Arduino Projects

  • Thread starter Thread starter Genji Shimada
  • Start date Start date
  • Tags Tags
    Arduino Project
Genji Shimada
Messages
46
Reaction score
4
Hello, I am doing an arduino project and I need a bit of help with a code. What I am doing is I am setting an Infrared led to pulsate at different frequencies and I use IR phototransistor to capture that light. Then the phototransistor sends the data back to the arduino and here I need to add some code to read the frequency and depending on it to set different pins HIGH. Any suggestions? I am using the arduino language by the way.
 
Last edited:
  • Like
Likes   Reactions: Genji Shimada
You can simply count the frequency. For that, you must get a square wave signal from the transistor (either by an amplifier or comparator). Then you can count the pulse length of a single square pulse or count the number of pulses in a some time frame by using interrupts and timers, much like a frequency counter.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
23
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
7
Views
3K
  • · Replies 32 ·
2
Replies
32
Views
8K
Replies
10
Views
2K
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K