The Human Trigger

Project Goals

  • Trigger a low/high voltage application safely
  • Up to 6 people to complete circuit with a delay 
  • Unlock a drawer, turn lights on/off up to two devices (Opto Isolated Relays)
  • Plug and play functionality
  • Create a custom PCB and provide an easy to understand tutorial

The Circuit 

Parts Needed

It works with the Arduino UNO as well.

Connections

  1. Attach a wire to A0 on your Arduino going to a 1k resistor  then out to a bare wire this will be the input side of the circuit. 
  2.  Connect a wire from A5 to the positive side of your led on the and the signal side of your relay board. On the negative side of the LED add a resistor, this is your output side of the circuit.
  3. Now attach a wire to ground and leave the other side bare
  4. Remember to provide 5v power to your relay board.

A0 ---------Resistor --------------- Trigger Sw

GND --------------------------------  Trigger Sw

A5 ---------------------+LED ------- Relay Signal

-LED ---Resistor------GND------- LED GND

5V ------------- Relay +

GND ----------- Relay -

 

After you've completed the circuit like shown move onto the code!

The Code

Simply copy and paste this code into the Arduino Environment and upload the code. Touch both ends of the wire if everything is wired correctly you should see the LED and the Relay turn on simultaneously. If your Human Circuit keeps triggering by itself you'll have to play with the Sensitivity on the first line of code (const short Sensitivity = 5;) I got mine stable at about 100. 

// FMD Human Circuit Relay Trigger Board
// Open Source and availible to use in any project
// www.fatalmentality.com


const short Sensitivity = 5; // The lower the number the more sensitive. change this to prevent false triggers;

void setup() {
  pinMode(A0, INPUT); 
  pinMode(A5, OUTPUT); 
  digitalWrite(A5, HIGH);
  delay(1);
}

void loop() {
  short value = analogRead(A0);
  digitalWrite(A5, (value > Sensitivity) ? HIGH : LOW);
  delay(1000); // increase or lower this number for Output on time 1000 = 1 second
}

The PCB

This is the completed PCB All the outputs for the current code is broken out to screw terminals and header pins. The input is further to the left to prevent noise from the other components on the board. The system can be powered via USB or the 12VDC - 24VDC power jack. All other unused pins are broken out for tinkering/ code changes. The Prototypes are currently on order check back later for more information on this project, Thanks!