Description
A Robot That Shoots Peanut Butter And Jelly
Everything is explain in my humourous youtube video. I didn't use a rasberry pi for this project because I don't own any rasberry pi unfortunately.
For one of my future video, I want to do a punching bag that block you attacks and that throws back a punch (It's kinda funny and it looks fun to build). To make this project possible, I need a rasberry pi to use computer vision in my project.
Unfortunately, I am a full time student and I don't have a job so I hope I'll win a rasberry pi 4 since it has much higher performance that the board I used for this video.
Here's the code:
#define PB_PIN 2
#define J_PIN 21
#define BUTTON 3
#define MIN_DELAY 400
int buttonState = 0;
boolean PB_Shot = false;
void setup()
{
pinMode(PB_PIN, OUTPUT);
pinMode(J_PIN, OUTPUT);
pinMode(BUTTON, INPUT_PULLUP);
}
void loop() {
buttonState = digitalRead(BUTTON);
if (buttonState == HIGH) {
if(PB_Shot){
PB_Shot = false;
shootJelly();
}else{
PB_Shot = true;
shootPeanutButter();
}
delay(MIN_DELAY*1.5);
}
}
void shootPeanutButter(){
digitalWrite(PB_PIN, HIGH);
delay(MIN_DELAY);
digitalWrite(PB_PIN, LOW);
}
void shootJelly(){
digitalWrite(J_PIN, HIGH);
delay(MIN_DELAY);
digitalWrite(J_PIN, LOW);
}
and the schematics looks like that:
Thank you for your time,
Jeff Robin
May 05,2021
1,229 views
A Robot That Shoots Peanut Butter And Jelly
A robot I made on my personal channel.
1229
1
0
Published: May 05,2021
Purchase
Donation Received ($)
PCBWay Donate 10% cost To Author
Copy this HTML into your page to embed a link to order this shared project
Copy
Under the
Attribution-ShareAlike (CC BY-SA)
License.
- Comments(0)
- Likes(1)
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP
0 / 10000
Remove
It looks like you have not written anything. Please add a comment and try again.
View More
- ElectroMaker May 28,2021
View More
VOTING
0 votes
- 0 USER VOTES
0.00
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Design
1/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Usability
2/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Creativity
3/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Content
4/4
More by Engineer
You may also like
-
Open Source Very Large Stick - Freejoy & MMjoy2 breakout board
467 0 0 -
RF Control training board for students based on ESP32 C3
623 0 2 -
Aquarius+ Computer, Standard PCB
831 0 4 -
KINETIC COASTERS with a TWIST! Laser or 3D Print some DIY Magic
577 0 1 -
RPI - 8 IO PLC With ATTiny85 Watch Dog
504 0 1 -
Nintendo Famicom HVC-001 Controller Shells
599 0 1 -
COMMODORE 128 DIAGNOSTIC REV.785260 KEYBOARD DONGLE
560 0 4 -
COMMODORE 128 15KHz DISPLAY ADAPTER (C128 80 COLUMN ADAPTER)
755 1 5 -