Rickroll Box

Inspired by the popular meme, this project plays "Never Gonna Give You Up" by Rick Astley.

Dec 13, 2017

36937 views

28 respects

Components and supplies

2

Resistor 560 ohm

1

Photo resistor

1

Arduino UNO

2

Resistor 10k ohm

1

LED (generic)

1

Single Turn Potentiometer- 10k ohms

1

Pushbutton switch 12mm

1

Breadboard (generic)

12

Jumper wires (generic)

1

Buzzer

Project description

Code

Rick Roll Box Code

arduino

Remember to calibrate the light sensor by keeping box open and exposed to ambient light conditions during initial setup() after upload.

Rick Roll Box Code

arduino

Remember to calibrate the light sensor by keeping box open and exposed to ambient light conditions during initial setup() after upload.

Downloadable files

Fritzing Diagram

Fritzing Diagram

Comments

Only logged in users can leave comments

Anonymous user

2 years ago

I found a small mistake in the code that causes it to start at the wrong part of the song. In void setup a=4 but it should actually be a=1.

gamemaster8245

2 years ago

It's actually not a mistake, a found that if you change it to 1, the lyrics end up misplaced, while having the 4, matches the lyrics and song.

Anonymous user

2 years ago

also, if you want to add a delay before it starts the program (so you can close the box without it starting) just add "delay(2000);" to the end of void setup.

Anonymous user

2 years ago

mine dosent work

Anonymous user

2 years ago

Good but at first the photoresistor wasn't working so I changed "if (sensorreading < threshold)" to the light level of my room. That fixed it and now the box works perfectly.

Anonymous user

2 years ago

Awesome job on this! So many ideas of ways to use a sensor activated Rick Roll ;)

Anonymous user

2 years ago

My entire computer class is about to get rickrolled.

Anonymous user

2 years ago

cool beans

Anonymous user

2 years ago

I'm imagining one random person burying this in a time capsule and someone opening it and still recognizing it in like 2300

Anonymous user

2 years ago

Not the man that we needed, but the man we deserved

Anonymous user

2 years ago

This is a great idea! Excited to try! Just a question - is the Buzzer used a Passive or Active? I'm reading that Passive Buzzers are capable of multiple tones so that would mean this is the Passive one? I also read Passive Buzzers need AC voltage.. so does this need to run off a wall plug or can it run off the computer/9V? What is the power supply here? Thanks!

markusduck5

2 years ago

Is there any way I can replace the button with an ultrasound sensor?

KrypticCoconut

2 years ago

Hello, i don't understand how the song picks off from where it left, would you mind explaining me how if the flag becomes false while its true will return to the same note, it will rather exit?

Anonymous user

2 years ago

I was wondering this too. I'm trying to figure out how to have it restart from beginning each time.

pauldyck

3 years ago

This is a great idea! Excited to try! Just a question - is the Buzzer used a Passive or Active? I'm reading that Passive Buzzers are capable of multiple tones so that would mean this is the Passive one? I also read Passive Buzzers need AC voltage.. so does this need to run off a wall plug or can it run off the computer/9V? What is the power supply here? Thanks!

Anonymous user

3 years ago

I found a small mistake in the code that causes it to start at the wrong part of the song. In void setup a=4 but it should actually be a=1.

gamemaster8245

2 years ago

It's actually not a mistake, a found that if you change it to 1, the lyrics end up misplaced, while having the 4, matches the lyrics and song.

Anonymous user

2 years ago

also, if you want to add a delay before it starts the program (so you can close the box without it starting) just add "delay(2000);" to the end of void setup.

elegoo_coder

3 years ago

I'm imagining one random person burying this in a time capsule and someone opening it and still recognizing it in like 2300

markusduck5

3 years ago

Is there any way I can replace the button with an ultrasound sensor?

thompsonn5586

3 years ago

Not the man that we needed, but the man we deserved

treyten

3 years ago

cool beans

bastien2004

4 years ago

My entire computer class is about to get rickrolled.

Anonymous user

4 years ago

Good but at first the photoresistor wasn't working so I changed "if (sensorreading < threshold)" to the light level of my room. That fixed it and now the box works perfectly.

mauriciojuarezp

4 years ago

Nice project, I Rickrolled people by putting this in a drawer

KrypticCoconut

5 years ago

Hello, i don't understand how the song picks off from where it left, would you mind explaining me how if the flag becomes false while its true will return to the same note, it will rather exit?

lewnaeger

2 years ago

I was wondering this too. I'm trying to figure out how to have it restart from beginning each time.

Anonymous user

5 years ago

mine dosent work

Anonymous user

6 years ago

Awesome job on this! So many ideas of ways to use a sensor activated Rick Roll ;)