Don.Vukovic
Member
I am new to Teensy.
I have a Hall Effect sensor: https://www.amazon.com/gp/product/B00W029QYC ,
with the DOUT pin connected to pin23 of the Teensy,
Vcc is connectd to 3.3V on the Teensy.
My Code:
When I wave a magnet over the sensor, the interrupt latency is huge > 100uS !!
Can anyone tell me what I'm missing.
I have a Hall Effect sensor: https://www.amazon.com/gp/product/B00W029QYC ,
with the DOUT pin connected to pin23 of the Teensy,
Vcc is connectd to 3.3V on the Teensy.
My Code:
Code:
const byte Column_One_Pin = 23;
const byte debugpin = 21;
void setup() {
pinMode(Column_One_Pin, INPUT); //_PULLUP);
attachInterrupt(Column_One_Pin,Column_One_Int,FALLING);
pinMode(debugpin, OUTPUT);
digitalWrite(debugpin,LOW);
}
void loop() {
}
void Column_One_Int()
{
digitalWrite(debugpin,HIGH);
delayMicroseconds(10);
digitalWrite(debugpin,LOW);
}
When I wave a magnet over the sensor, the interrupt latency is huge > 100uS !!
Can anyone tell me what I'm missing.
Last edited by a moderator: