Things used in this project

Hardware components:
Ardgen mega
Arduino Mega 2560 & Genuino Mega 2560
Adafruit industries ada62 image 75px
USB-A to B Cable
Lithium Polymer Battery
Force Sensitive Resistor 0.5"
3.3K Ohm Resistor
11026 02
Jumper wires (generic)
826 04
Male/Female Jumper Wires
Software apps and online services:
8ztngd 9
My PrankChair App


This was edited from the firmware as the firmware code was different from what was needed.
// Pin Definitions
// Global variables and defines
const int analogInPin = A0;  
const int analogOutPin = 9; 
int sensorValue = 0;        
int outputValue = 0;        

/* This code sets up the essentials for your circuit to work. It runs first every time your circuit is powered with electricity. */
void setup() {
  // Setup Serial which is useful for debugging
    // Use the Serial Monitor to view printed messages

/* This code is the main logic of your circuit. It defines the interaction between the components you selected. After setup, it runs over and over again, in an eternal loop. */
void loop() {
  sensorValue = analogRead(analogInPin);            
  outputValue = map(sensorValue, 0, 1023, 0, 255);  
  analogWrite(analogOutPin, outputValue);          
  Serial.print(" " );                     
if (sensorValue > 10)
  Serial.print("1" );                     
  // action A
else if

(sensorValue < 10)
  Serial.print("L" );                     
  // action B




Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback


Similar projects you might like

Voice-Controlled Locking Device
  • 799
  • 7

Full instructions

A voice-controlled project using the EasyVR Shield with an Arduino Uno and gen4-uLCD-43DT.

J.A.R.V.I.S. : A Virtual Home Assistant
  • 6,408
  • 83

Full instructions

J.A.R.V.I.S. is a personal home automation assistant for controlling electrical home appliances integrated with an augmented reality app.

Inexpensive Wireless Interactive Board
  • 9,461
  • 15

Full instructions

This is a low cost, modular smart board with wireless capabilities.

DIY Code Red Button for Healthcare Simulation
  • 972
  • 2

Full instructions

Create your own Code Red button for use in simulation scenarios. Flashing LEDs and Button!

Biomed Shield for Arduino 101 Powered By Intel
  • 5,404
  • 17

Work in progress

Allows students, educators, and hobbyists to learn about biomedicine by monitoring heart rate, temperature, and other physiological metrics.

Arduino Darkness Activated Ghost
  • 539
  • 4

Full instructions

Ever wondered if you could build a device to scare your friends? Well here you have transform your room into a haunted house, making a ghost

ProjectsCommunitiesContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login
Respect project