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,461 views
A Robot That Shoots Peanut Butter And Jelly
A robot I made on my personal channel.
1461
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.
- Comments(0)
- Likes(2)
Upload photo
You can only upload 5 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP
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!
View More
- 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
-
-
-
kmMiniSchield MIDI I/O - IN/OUT/THROUGH MIDI extension for kmMidiMini
127 0 0 -
DIY Laser Power Meter with Arduino
188 0 2 -
-
-
Box & Bolt, 3D Printed Cardboard Crafting Tools
167 0 2 -