Jeffrey Gamelin
CANADA • + Follow
Edit Project
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,606 views
end-flag
A Robot That Shoots Peanut Butter And Jelly
A robot I made on my personal channel.
1606
2
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.

Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW
ESP32-S3 4.3inch Capacitive Touch Display Development Board, 800×480, 5-point Touch, 32-bit LX7 Dual-core Processor
BUY NOW
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(0)
- Likes(2)

Upload photo
0 / 10000
It looks like you have not written anything. Please add a comment and try again.
You can upload up to 5 images!
Image size should not exceed 2MB!
File format not supported!
-
Engineer Oct 01,2024
-
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 Jeffrey Gamelin
You may also like
-
-
-
Modifying a Hotplate to a Reflow Solder Station
963 1 6 -
MPL3115A2 Barometric Pressure, Altitude, and Temperature Sensor
505 0 1 -
-
Nintendo 64DD Replacement Shell
416 0 2 -
V2 Commodore AMIGA USB-C Power Sink Delivery High Efficiency Supply Triple Output 5V ±12V OLED display ATARI compatible shark 100W
1204 4 2 -
How to measure weight with Load Cell and HX711
741 0 3