Rory the Robot Plant

Summary of Rory the Robot Plant


Rory is a plant-shaped robot that monitors soil moisture, temperature, and humidity, playing music and detecting motion. It uses an Arduino UNO, SD card for audio, and various sensors including PIR, LDR, and sound detection to interact with users vocally and capture photos via a hacked webcam.

Parts used in Rory the Robot Plant:

  • Arduino UNO
  • SD Card Reader module
  • Micro SD card
  • LM386 Audio Amplifier
  • 10uf Capacitor (2 Nos)
  • 100uf Capacitor (2 Nos)
  • 1K,10K Resistor
  • PIR sensor
  • Hacked webcam
  • KY-038 Sound Sensor
  • LDR light dependent resistor
  • DHT11 humidity and temperature sensor
  • Moisture sensor
  • Connecting Wires
  • Breadboard
  • 8*16 LED matrix module
4 min read
Rory the Robot Plant

Rory is a funny looking robot in the form of a plant, interact with some inputs by sensors, play music and detect any human movements around, in addition, to snap photos when you order it too.

It’s also caring about a small plant inside the pot, notify me with water level, humidity and temperature vocally in a human voice.

Step 1: Hardware Required

Hardware Required

1. Arduino UNO

2. SD Card Reader module

3. Micro SD card

4. LM386 Audio Amplifier

5. 10uf Capacitor (2 Nos)

6. 100uf Capacitor (2 Nos)

7. 1K,10K Resistor

8. PIR sensor

9. Hacked webcam

10. KY-038 Sound Sensor

11. LDR light dependent resistor

12. DHT11 humidity and temperature sensor

13. Moisture sensor

14. Connecting Wires

15. Breadboard

16. 8*16 LED matrix module

Step 2: Getting Ready With Your WAV Audio Files

Getting Ready With Your WAV Audio Files

For playing sounds from SD Card using Arduino, we need audio files in .wav format because Arduino Board can play an audio file in a specific format that is wav format. To make an Arduino mp3 player, there are a lot of mp3 shields are available which you can use with Arduino. Or else to play mp3 files in Arduino, there are websites which you can be used to convert any audio file on your computer into that specific WAV file.

Arduino SD card module

+5V Vcc

Gnd Gnd

Pin 12 MISO (Master In Slave out)

Pin 11 MOSI (Master Out Slave In)

Pin 13 SCK (Synchronous Clock)

Pin 4 CS (Chip Select)

1. Click on “ Online Wav Converter” to enter into the website.

2. Arduino can play a WAV file in the following format. You can toy around with the settings later, but these settings were the experiment to be the best in quality.

Bit Resolution 8 Bit

Sampling Rate 16000 Hz

Audio Channel Mono

PCM format PCM unsigned 8-bit

3. In the website click on “choose file” and select the file, you want to convert. Then feed in the above settings. Once done it should look something like this in the below image

4. Now, click on “Convert File” and your Audio file will be converted to the WAV file format. It will also be downloaded once the conversion is done.

5. Finally, format your SD card and save your .wav audio file into it. Make sure you format it before you add this file. Also, remember the name of your audio file. Similarly, you can select any of your four audios and save them with names 1, 2, 3 and 4(Names should not be changed). I have converted about 51 voice messages and have saved a sample in the link below:

https://github.com/AhmedAzouz/AdruinoProjects/blob/master/a-hi-thereim-rory-madeby1551946892.wav

6. Sample Code

#include SimpleSDAudio.hvoid setup() {SdPlay.setSDCSPin(4); // sd card cs pinif (!SdPlay.init(SSDA_MODE_FULLRATE | SSDA_MODE_MONO | SSDA_MODE_AUTOWORKER)){ while(1); }if(!SdPlay.setFile("music.wav")) // music name file{ 
  while(1); }}void loop(void){SdPlay.play(); // play musicwhile(!SdPlay.isStopped()) ;{ }}

Step 3: Get Ready With Multi Sensors

Get Ready With Multi Sensors

Moisture sensor:

You’ll use an HL-69 moisture sensor, readily available online for a few dollars. The prongs of the sensor detect the moisture level in the surrounding soil by passing current through the soil and measuring the resistance. Damp soil conducts electricity easily, so it provides lower resistance, while dry soil conducts poorly and has a higher resistance.

The sensor consists of two parts

1. Two pins on the sensor need to connect to the two separate pins on the controller (connecting wires are usually supplied).

2. The other side of the controller has four pins, three of which connect to the Arduino.

·VCC: For power

·A0: Analog output

·D0: Digital output

·GND: Ground

DHT11 Temperature & Humidity:

DHT11 Temperature & Humidity Sensor features a temperature & humidity sensor complex with a calibrated digital signal output. By using the exclusive digital-signal-acquisition technique and temperature & humidity-sensing technology, it ensures high reliability and excellent long-term stability. This sensor includes a resistive-type humidity measurement component and an NTC temperature measurement component, and connects to a high-performance 8-bit microcontroller, offering excellent quality, fast response, anti-interference ability, and cost-effectiveness.

LDR light dependent resistor:

The LDR is a special type of resistor that allows higher voltages to pass through it (low resistance) whenever there is a high intensity of light, and passes a low voltage (high resistance) whenever it is dark. We can take advantage of this LDR property and use it in our DIY Arduino LDR sensor project.

KY-038 Sound Sensor:

Sound sensors can be used for a variety of things, one of them could be turning lights off and on by clapping. Today however we are going to use hook up the sound sensor to an array of LED lights which will beat with music, clapping or knocking.

PIR Sensor:

Passive infrared sensor is an electronic sensor that measures infrared (IR) light radiating from objects in its field of view. They are most often used in PIR-based motion detectors.

All objects with a temperature above absolute zero emit heat energy in the form of radiation. Usually, this radiation isn’t visible to the human eye because it radiates at infrared wavelengths, but it can be detected by electronic devices designed for such a purpose.

Step 4: Circuit and Code

Circuit and Code

Step 5: Hacked Webcam

Hacked Webcam

The entire project is controlled by windows application that helps receive messages and notifications, as well as the ability to receive photos through the webcam and store it.

Source: Rory the Robot Plant

Quick Solutions to Questions related to Rory the Robot Plant:

  • How does the moisture sensor detect water levels?
    The sensor passes current through the soil to measure resistance, where damp soil provides lower resistance and dry soil provides higher resistance.
  • What file format is required for audio files on the SD card?
    Arduino can play audio files specifically in .wav format.
  • Does the project support voice notifications for environmental data?
    Yes, the robot notifies the user about water level, humidity, and temperature vocally in a human voice.
  • Can the system snap photos when ordered?
    Yes, the project includes a hacked webcam controlled by a Windows application to store photos upon command.
  • What are the recommended settings for converting audio files?
    The best quality settings are 8 Bit resolution, 16000 Hz sampling rate, Mono channel, and PCM unsigned 8-bit format.
  • How does the LDR function in this project?
    The LDR allows higher voltages to pass during high light intensity and low voltage during darkness due to its changing resistance.
  • What is the role of the KY-038 Sound Sensor?
    The sound sensor is used to make LED lights beat with music, clapping, or knocking sounds.
  • Does the PIR sensor detect visible light?
    No, the PIR sensor measures infrared light radiating from objects rather than visible light.
  • What controls the entire project functionality?
    A Windows application controls the project by receiving messages, handling notifications, and managing photo storage.
  • Are specific pin connections needed for the SD card reader?
    Yes, Pin 4 is used for Chip Select, while Pins 11, 12, and 13 connect to MOSI, MISO, and SCK respectively.

About The Author

Avatar of Ibrar Ayyub

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Use Arduino for Projects

Free Arduino projects, circuits, code and tutorials. Pick a board, pick a sensor, build something.

Scroll to Top