Touch Me Glow Plant!

80756

Intro: Touch Me Glow Plant!

Hi everyone,
If you are someone who who loves indoor plants and mood lamps you are in for a treat I am going to show you how easy is to make your own "touch me glow plant". This is made with arduino ,resistor and a wire which act as an capacitive touch sensor which sense whenever we touches and changes the light according to it. The light changes randomly and glows up the whole plant..so let's get started!!

STEP 1: Wiring Up !

First connect the 1 M resistor across pin 2 and 4.
connect the wire to the pin2 of Arduino ( same pin as the resistor is connected)..and connect the other end of the wire to the plant.im my case I dip the wire into the bottle
(I have used a guitar string for a wire because I didn't had a long wire at the time and the string was nearly not visible.).
Now it's time to connect the led strip :
Connect vcc pin -- arduino 5v pin
Gnd pin -- Arduino gnd pin
Data pin -- Arduino pin 7
All the pin can be modified according to your use in the code given below

STEP 2: Setting Up

It is very easy to set up. Place the wire (which we connected to the pin 2)into the container where the plant is placed
Now touch the plant and read the value on the Arduino ide serial plotter and change the code according to it .
( If you have any doubt on this project fell free to ask down below).
The leds can be placed according to your will I have placed below the bottle to get that effect.

STEP 3: Code!

#include "FastLED.h"

#include
#define NUM_LEDS 6

// Data pin that led data will be written out over
#define DATA_PIN 7
CRGB leds[NUM_LEDS];

CapacitiveSensor cs_4_2 = CapacitiveSensor(4,2); // 10 megohm resistor between pins 4 & 2, pin 2 is sensor pin, add wire, foil

void setup(){
Serial.begin(9600);
delay(2000);
FastLED.addLeds(leds, NUM_LEDS);
}

void loop(){

long start = millis();

long total1 = cs_4_2.capacitiveSensor(30);

Serial.print(millis() - start); // check on performance in milliseconds

Serial.print("\t"); // tab character for debug window spacing

Serial.println(total1); // print sensor output 1

delay(100); // arbitrary delay to limit data to serial port
if (total1 >1500) {
leds [0]= CRGB(random(),random(),random());
leds [1]=leds [0];
leds [2]= leds [0];
FastLED.show();
// turn LED on:

}

}

STEP 4: Video


This is how "touch me glow plant " looks like in light and dark room..sorry for the crappy video I took it on my phone.

STEP 5: Conclusion

I have used 2 libraries
FastLED.h
CapacitiveSensor.h
These can be downloaded on the Arduino ide itself.( If you have any trouble downloading comment below).
All the value in the code can be changed according to your use.
If you want any further details and help you can message me.
Hope everyone liked this project

5 Comments

Cool project! Is it a 10 MOhm resistor or a 1 MOhm? You say 1 at the beginning but 10 in the code.
Hello, Nice project and thank you for sharing !
Did you put the LED inside the water ? or is it just back the container ?
Have a nice day ! :)

The led is outside.its under the bottle:)
Thanks for the support