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

IoT Based Garden Automation And Monitoring System
  • 324
  • 9

Full instructions

Automate Your Garden with Arduino and Cayenne

URB (Universal Railway Model Bus)  - Automate Your Layout
  • 93
  • 2

Work in progress

All features Arduino, plus: direct plug servos, motor drivers, high-current outputs, built-in I2C bus, convenient connections, and more.

Punch Activated Arm Flamethrowers (Real Firebending)
  • 42,718
  • 327

Shoot fireballs from your fists when you throw a punch with these arm mounted smart flamethrowers!

Visual Capturing with OV7670 on Arduino
  • 4,728
  • 24


This is an Arduino camera module, using the surveillance camera's digital image processing chip-OV0706.

Get Nostalgic and Use Nokia 84x48 LCD with Arduino
  • 3,120
  • 14


These 84 by 48 pixel LCDs are what you might have found in Nokia 3310. And what about using them in the Arduino projects?

Smart Energy Monitor Based on Arduino
  • 402
  • 3

Full instructions

Open source Smart energy monitor with some new features like "Terminal Commands " , "Readings Logger", "Data Plotting ".

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaFree StoreBlog