David Escobar
Published © GPL3+

DIY Code Red Button for Healthcare Simulation

Create your own code red button for use in simulation scenarios. Flashing LEDs and button!

AdvancedFull instructions provided3,342
DIY Code Red Button for Healthcare Simulation

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
Adafruit 16mm Illuminated Pushbutton On/Off
Adafruit Super Bright Red LED 5mm
Adafruit 5mm Plastic Flat LED Holder
Adafruit Hook-Up Wire Spool Set
Adafruit 5V 2A Switching Power Supply
Adafruit Perma-Proto Quarter-sized Breadboard PCB
Adafruit Nylon Screws

Software apps and online services

Arduino Web Editor
Arduino Web Editor

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Ultimaker 3


Read more

Custom parts and enclosures

Code Red Plate v1

Code Red plate for project. 200 microns layer height, 20% infill

Back Plate v2

Face Plate v2


Code Red Button Diagram


DIY Code Red Button

DIY Code Red Button
Created by David Escobar
Date: 04/14/17

int ledOn = 4; //LED Button On
int led1 = 5; //LED 1
int led2 = 6; //LED 2
int led3 = 7; //LED 3

void setup() {
  pinMode(ledOn, OUTPUT);
  pinMode(led1, OUTPUT);
  pinMode(led2, OUTPUT);
  pinMode(led3, OUTPUT);

void loop() {

void blink(){
    digitalWrite(ledOn, HIGH);
    digitalWrite(led1, HIGH);
    digitalWrite(led2, HIGH);
    digitalWrite(led3, HIGH);
    digitalWrite(led1, LOW);
    digitalWrite(led2, LOW);
    digitalWrite(led3, LOW);


David Escobar

David Escobar

7 projects • 39 followers
Healthcare Simulation Specialist. 9+ years in healthcare.I have been actively involved with 3D printing and electronics for the past 2 years