Andrew Cowan
Senior Member
My current project is a POV display - spinning LEDs used to make patterns in the air.
I need to determine when the spinning board is at its zero position. I am using a 40X2 (running off 3.3v), and want to connect some kind of sensor to one of the hardware interrupt ports, so I can check to see when it has been triggered using a flag.
Options I have thought of:
1) Hall effect sensor and magnet
Advantages: Fast.
Disadvantages: From the allegro site, most seem to have a normal voltage of Vcc/2, and then increase or decrease when a magnet is sensed. This sounds quite hard to interface with a digital port.
2) 38KHz IR LED and IR detector (goes low when IR LED present). This is the idea I am currently looking at.
Advantages: Easy on/off, does not need precise alignment, should interface well with a digital input.
Disadvantage: Speed. Can this cope with a IR exposure time of <1ms? The datasheet asks for a Burst length should be 6 cycles/burst or longer. - is this 38KHz*6 cycles = 0.16mS?
Any other ideas for sensing the zero position?
Thanks,
Andrew
I need to determine when the spinning board is at its zero position. I am using a 40X2 (running off 3.3v), and want to connect some kind of sensor to one of the hardware interrupt ports, so I can check to see when it has been triggered using a flag.
Options I have thought of:
1) Hall effect sensor and magnet
Advantages: Fast.
Disadvantages: From the allegro site, most seem to have a normal voltage of Vcc/2, and then increase or decrease when a magnet is sensed. This sounds quite hard to interface with a digital port.
2) 38KHz IR LED and IR detector (goes low when IR LED present). This is the idea I am currently looking at.
Advantages: Easy on/off, does not need precise alignment, should interface well with a digital input.
Disadvantage: Speed. Can this cope with a IR exposure time of <1ms? The datasheet asks for a Burst length should be 6 cycles/burst or longer. - is this 38KHz*6 cycles = 0.16mS?
Any other ideas for sensing the zero position?
Thanks,
Andrew