Automated Dino Game using Arduino:
So hey guy's welcome back to a new article in this article we will make a google dinosaur game using Arduino this Automated Dino Game is very easy to make In few steps you can make this dino game at home when I was watching Tik-Tok a few days ago, I got this idea from Tik-Tok And I liked this idea so much so why not think I will share it with you.
Needed Components:
- Arduino Uno:
- Servo Motor:
- 10K Resistor:
- LDR:
Introduction:
And I know you get bored in lockdown, then you can build this project for fun to make this project, we need Arduino Uno; Servo Motor; 10K Resistor, and most Important thing LDR (Light Dependent Resistor) LDR is to automatically turn on a light at a certain light level. An example of this could be a street light or a garden light.
As you know, we connected our servo motor to the laptop to press the space button.
And just that this is the circuit of us. Similarly, it keeps on working again and again. So how easy was it to make it? Do share this project with your relatives and friends who have a PC laptop or desktop.
And if you have any doubts related to this project, then you can comment and ask me.
Watch YouTube Video:
And if you have any questions, then watch the video before commenting and if your question does not go away, then you can comment to me and ask.
And if you have any doubts related to this project, then you can comment and ask me.
Watch YouTube Video:
And if you have any questions, then watch the video before commenting and if your question does not go away, then you can comment to me and ask.
So that is for this project if you like my article then you can also read [Another article] on our website.
5 Comments
code??
ReplyDeleteThe problem is with terodactil :(
ReplyDeleteWhere is the code bro🥺
ReplyDelete#include
ReplyDelete#define threshold 250
#define unpress_angle 70
#define press_angle 36
Servo myservo; // create servo object to control a servo
bool trig=true;
void setup() {
myservo.attach(9); // attaches the servo on pin 9 to the servo object
myservo.write(unpress_angle);
}
void loop() {
myservo.write(unpress_angle); // unpress the button
delay(1);
if(analogRead(A0)< threshold)
{
myservo.write(press_angle); // press the button
delay(100 ); // waits 100ms for the servo to reach the position
}
}
Hi, u have a code for the LDR also - but y it is seperate & where to use it?
ReplyDeletePost a Comment