Things used in this project

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

Code

CodeArduino
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
  Serial.begin(9600);
}

/* 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(" " );                     
  delay(1000);  
    
if (sensorValue > 10)
{
  Serial.print("1" );                     
  // action A
}
else if

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

}

Credits

Replications

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

Comments

Similar projects you might like

Purdue ExoMIND Glove
Advanced
  • 250
  • 7

The ExoMIND Glove is a stroke rehabilitation device used to to generate biofeedback for physical therapists and patients.

Purdue ExoMIND Glove

Team Purdue MIND

Suicide Prevention Gun Safe Locking System
Advanced
  • 96
  • 2

Full instructions

An IoT device that helps prevent gun suicides through safe monitoring, only allowing access to a safe through a request/approval process.

Smart Compost System
Advanced
  • 42
  • 1

A smart system that can help anyone compost. The system aerates and hydrates your compost, and lets you know when you need to take action.

Smart Compost System

Team Boomer Sooner

Open Rover
Advanced
  • 63
  • 1

Work in progress

Standardized outdoor robotics platform

Mall Assistant Robot
Advanced
  • 408
  • 6

Create a Hospitality Robot that is capable of interacting with visitors at public spaces such as Malls, Rec Centers, Hospitals, Stadium etc.

BrainForce
Advanced
  • 814
  • 6

Full instructions

A wireless headset which allows you to control devices through cerebral waves. It works with two sensors and a Bluetooth shield.

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login