Hello,
So I am working on a program that detects the change in altitude over a length of time. I have the altimeter hooked up and a program the works fairly well to calculate it. When the change goes below -1 i want the pin to be on and vise versa. The
code i have for this part is something like this:
pinmode(13,Output);
void loop {
if(changeInAltitude < -1) {
digitalWrite(13,HIGH);
}else {
digitalWrite (13,LOW);
}
}
I have tried this with a simple LED and it works great but I want it to be able to ignite an E-match (which is and electrically ignited match). I found that the match can go off with 5V but when I plug it in place of the LED nothing happens. So long story short, is there a way to get 5V out of a digital pin or is there a way to toggle the 5V pin on the arduino and if so how would I go about that. Sorry if that was poorly explained. Thanks.