QC

Giant pepper pots converse with each other.

An interactive Pepper Box plays mostly pepper-related songs and speeches, then passes the torch to the next Box.

Devices and components

Breadboard - 400 contacts

Arduino Uno Rev3

5V regulator (low dropout)

433 MHz transmitter and receiver

push button switch

DPDT switch

NiMH battery 6V, 2.7A-H

Battery charger

battery charger adapter cable

5.5mm socket and jack

3W stereo amplifier

2" diameter speaker

DFPlayer Mini MP3 Player

Materials and tools

Drill press

Band Saw

Hole Saw

Table Saw

Electric sander

Software and tools

Audacity

Arduino IDE

Project description

Pair the six sets of radio receivers with their transmitter

Build the remote used to start the boxes

Load audio clips onto SD cards

Assemble the electronics on the wooden base and wire them,

Load the Arduino programs and test. Review the programs if you wish.

Complete the wooden crates and install the remaining pieces.

Enjoy the impressive results and bask in the adulation of your family and friends.

Match the six sets of radio receivers to their transmitters

Turn on both breadboards

Reset the receiver module by pressing the learn button on the receiver module 8 times. The built-in LED flashes 7 times.

Press the learn button once to put the receiver into momentary mode.

Press any switch on the transmission breadboard. The corresponding LED in the receiver breadboard will light up.

Verify that all four switches on the transmission light their corresponding LEDs on the receiver breadboard.

Mark the pairs as follows, as shown. This is a big opportunity for problems if the parts are mixed up.

Build the controller used to start the boxes

Assemble the electronics on the wooden base and wire them

RX1 receives and stores the binary word

Decode and play audio clips

Transmit signals to next box

RX2 receives and stores a binary word

Decode and play audio clips

Transmit signals to next box

//_____________________________________ transmitter control two digits

void xmit2(int VX, int VY, int VZ) {

for (i=0; i<5; i++) {

if (VX==HIGH) {

digitalWrite(T0, LOW);

delay(50);

digitalWrite(T0, HIGH);

delay(400);

}

if(VY==HIGH) {

digitalWrite(T1, LOW);

delay(50);

digitalWrite(T1, HIGH);

delay(400);

}

if(VZ==HIGH) {

digitalWrite(T2, LOW);

delay(50);

digitalWrite(T2, HIGH);

delay(400);

}

} //________________________end of transmitter control two digits

} // xmit time= 5*2*(.05+.40)sec = 4.5 seconds

//____________________________________________________ RX1 RF signal detector

// reset signal detect, samples and saves any HIGH states

VX=LOW;

VY=LOW;

VZ=LOW;

for (i=0; i<100; i++) {

vx= digitalRead(D0);

vy=digitalRead(D1);

vz= digitalRead(D2);

delay(10);

if (vx==HIGH) { VX=HIGH; }

if (vy==HIGH) { VY=HIGH; }

if (vz==HIGH) { VZ=HIGH; }

} //_______________________________________________________ end of RF signal detect part 1

//_____________________________________________________ extend detect time if any signal is detected

if (VX==HIGH||VY==HIGH||VZ==HIGH) {

for (i=0; i<300; i++) {

vx= digitalRead(D0);

vy=digitalRead(D1);

vz= digitalRead(D2);

delay(10);

if (vx==HIGH) { VX=HIGH; }

if (vy==HIGH) { VY=HIGH; }

if (vz==HIGH) { VZ=HIGH; }

} //_______________________________ end of RX1 RF signal detect part 2

}

if(VZ2==LOW&&VY2==HIGH&&VX2==LOW) { //___________ 0 1 0 code detect

if (w>2) {w=1;}

if(w==1) {

myDFPlayer.playMp3Folder(47); //_here's Black Pepper by Micropop

delay(4000);

myDFPlayer.pause();

myDFPlayer.playMp3Folder(88);//___Black Pepper Micropop

delay(31000);

myDFPlayer.pause();

VZ=LOW; VY=HIGH; VX=HIGH;

transmit(VX,VY,VZ);

VZ=LOW; VY=HIGH; VX=LOW;

}

if(w==2) {

myDFPlayer.playMp3Folder(49);//pepper box, black pepper box

delay(4000);

myDFPlayer.pause();

myDFPlayer.playMp3Folder(38);//made with premium peppercorns

delay(4000);

myDFPlayer.pause();

myDFPlayer.playMp3Folder(49);//pepper box, black pepper box

delay(4000);

myDFPlayer.pause();

myDFPlayer.playMp3Folder(49);//pepper box, black pepper box

delay(4000);

myDFPlayer.pause();

VZ=LOW; VY=HIGH; VX=HIGH;

transmit(VX,VY,VZ);

VZ=LOW; VY=HIGH; VX=LOW;

}

Serial.println(F("DFPlayer Mini online."));

delay(2000);

myDFPlayer.volume(20); //_____________________________Set volume value.

Complete the wooden crates and install the remaining pieces

Enjoy the stunning results




Note: Content and images are from: https://projecthub.arduino.cc/, with some modifications.
If you want it removed due to copyright reasons, please leave a comment. Thank you.
I want to share this article more widely so that everyone knows about Arduino and your project.

SendData

Điều khiển trạng thái qua Firebase Trạng thái hiện tại: Đang tải... ĐỔI TRẠNG THÁI