Arduino Uno pinmode

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.

Hi!

Yes?

Show us a good schematic of your circuit.
Show us a good image of your ‘actual’ wiring.
Give links to components.
Posting images:
https://forum.arduino.cc/index.php?topic=519037.0

Getting 5v out of the pin is not your problem, the limited current capacity is. The maximum current from an output pin is 40mA, and its generally good to stay well below that, otherwise you can permanently damage the chip.

Ohh, ok that would make sense. Is there a way to get a higher amp draw without damaging the arduino?

How much current is needed to start ignition ?

You can use BJTs, MOSFETs and relays to drive large current loads.


When ask for information, please supply answers.

MOSFET igniter driver. Use a logic level MOSFET sized to handle the required current and with very low Rds(on). Safe/arm switch optional.