Project tutorial
My Basic Coil Gun Setup

My Basic Coil Gun Setup © CC BY

Here's my minimal setup of a coilgun which uses a relay module to trigger the coil.

  • 1,822 views
  • 0 comments
  • 9 respects

Components and supplies

A000066 iso both
Arduino UNO & Genuino UNO
×1
Relay Module (Generic)
×1
Panasonic eca 1em102
Capacitor 1000 µF
each capacitor that I'm using has 4700uf capacitance
×1

About this project

I want to build the most basic version of a coilgun with an arduino without utilizing mosfet setup or any other circuit so I use a relay module and attach all my stuff with it.

watch the video on my channel

Code

CodeC/C++
const int switchPin = 4;
const int Coil = 2;
const int Battery = 3;

int CoilState;

void setup() {
  pinMode(Coil,OUTPUT);
  pinMode(Battery,OUTPUT);
  pinMode(switchPin,INPUT);
  digitalWrite(Battery, HIGH);
}
void loop(){
CoilState = digitalRead(switchPin);

if (CoilState == HIGH) {
    // turn LED on:
    digitalWrite(Coil, HIGH);
    digitalWrite(Battery, LOW);
  } else {
    // turn LED off:
    digitalWrite(Coil, LOW);
    delay(2000);
    digitalWrite(Battery, HIGH);
          
  }
}

Schematics

Schematics
Capture ldado5btre

Comments

Similar projects you might like

Arduino Bluetooth Basic Tutorial

by Mayoogh Girish

  • 480,947 views
  • 49 comments
  • 284 respects

Auto-Turret with Pixy and Nerf Gun

Project tutorial by Team RobotGeek Projects Team

  • 5,642 views
  • 0 comments
  • 20 respects

Basic Water Sensor

Project showcase by Ömer Beden

  • 13,259 views
  • 1 comment
  • 6 respects

Basic Ultrasonic Tutorial

by Damien Murtagh

  • 5,699 views
  • 3 comments
  • 29 respects

Rubber Band Gatling Gun Turret (Arduino)

Project tutorial by millerman4487

  • 1,703 views
  • 0 comments
  • 13 respects

Motion Sensor Water Gun

Project tutorial by Team Engineering Is Easy

  • 11,894 views
  • 3 comments
  • 24 respects
Add projectSign up / Login