Introduction: Touch Me Glow Plant!

About: A high school student who is crazy about electronics.I'm just a beginner

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!!

Supplies

Arduino Uno ×1
Resistor 1M. ×1
WS218b addressable led strip ×1
Wire (any length)

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

Make it Glow Contest

Participated in the
Make it Glow Contest