Automated Mung Bean Sprouts growing machine
(자동 콩나물 재배기)
※ How to grow mung bean sprouts
1. Rinse over beans and soak around for a day (24 hours)
2. Place net in pot and spread beans on the net and then cover the pot with something to make inside dark.
3. watering every 2 hours ==> Automate this step
※ Target : develop automated watering machine using Arduino
※ Components and Supplies
- Arduino Uno : $13.98
- 12V mini water pump : $7.72
- 1 channel Relay : $3.37
- 12V Adapter + Barrel Jack : $5.3
- Small Breadboard and some jumper wires
- a piece of hose
※ Circuit
※ Source Code
/*
* For Automated Mung Bean Sprouts growing machine
*
* Watering every 2 hours
* play music when watering
*
* Relay pin 12
* speaker pin 8
*
* created 22 Jan 2017
*
*by Douglas Changsoo Park
*
*/
#include <SimpleTimer.h>
#include "pitches.h"
int relay = 12;
SimpleTimer timer;
int melody[] = {
NOTE_G4,
NOTE_G4,
NOTE_A4,
NOTE_A4,
NOTE_G4,
NOTE_G4,
NOTE_E4,
NOTE_G4,
NOTE_G4,
NOTE_E4,
NOTE_E4,
NOTE_D4,
0,
NOTE_G4,
NOTE_G4,
NOTE_A4,
NOTE_A4,
NOTE_G4,
NOTE_G4,
NOTE_E4,
NOTE_G4,
NOTE_E4,
NOTE_D4,
NOTE_E4,
NOTE_C4,
0 };
int noteDurations[] = {
1,1,1,1,
1,1,2,
1,1,1,1,
3,1,
1,1,1,1,
1,1,2,
1,1,1,1,
3,1
};
void setup() {
// put your setup code here, to run once:
pinMode(relay, OUTPUT);
digitalWrite(relay, HIGH);
timer.setInterval(7200000, watering);
}
void loop() {
// put your main code here, to run repeatedly:
timer.run();
}
void watering() {
digitalWrite(relay, LOW);
music();
music();
digitalWrite(relay, HIGH);
noTone(8);
}
void music() {
for(int thisNote = 0; thisNote < 26; thisNote++) {
int noteDuration = 250 * noteDurations[thisNote];
tone(8, melody[thisNote], noteDuration);
int pauseBetweenNotes = noteDuration * 1.30;
delay(pauseBetweenNotes);
noTone(8);
}
}
※ Picture
※ Youtube
'IoT > Arduino' 카테고리의 다른 글
[Arduino] 3rd project. 4X4X4 LED Light Cube (1) | 2017.06.05 |
---|---|
[Arduino Project 2] LED Light stand for 3D Crystal laser cube Ver. 0.4 (0) | 2017.05.08 |
[I don't like you] practice project for the project 'I like you' (0) | 2017.05.07 |
MIT App Inventor - Android App - Mega Millions Jackpot number generator (0) | 2017.01.30 |
Updated Source Code - Automated Mung Bean Sprouts Growing Machine (0) | 2017.01.27 |
[Arduino] Motion Sensor and Water Level Sensor (0) | 2017.01.17 |
[Arduino] Joystick, LED Dot Matrix and ADXL335 Module (0) | 2017.01.17 |
[Arduino] Ultrasonic, Keypad and Temperature and Humidity Sensor (0) | 2017.01.15 |
[Arduino] 7 Segment, Servo, LCD and Thermometer (0) | 2017.01.14 |
[Arduino] Using 74HC595 8-bit serial-in/serial or parallel-out shift register (0) | 2017.01.12 |