134Views3Replies

Author Options:

Ping pong ball launcher Answered

Hi everybody, i need some support in developing this circuit.

I'm making a ping pong ball launcher and I just need a servomotor with a switch and 3 dc motor.

One should move quite slow and I wanted to use a potentiometer.
The other two move together or alone but at the same speed.
I want to control the 2 motors and the servo with Arduino.

I don't know how much volt I should apply. Should work this way?

May anybody give me some hints? Thank you so much.

If u may want to change something https://www.tinkercad.com/things/aPDSlGBukDM-epic...

I left here my code:


#include
Servo servo_2;
int counter;

void setup()
{ pinMode(8, OUTPUT);
pinMode(10, OUTPUT);
servo_2.attach(2); }

void loop()
{ digitalWrite(8, HIGH);
digitalWrite(10, HIGH);
for (counter = 0; counter < 10; ++counter)
{ servo_2.write(45);
delay(3000);
servo_2.write(0);
delay(3000); } }

Discussions

1
Downunder35m
Downunder35m

4 weeks ago

It won't work with a 9V battery.

0
vincenzoga
vincenzoga

Reply 27 days ago


Thank you for answering 🙏🏼
I don’t know how I should distribute the voltage. The servo needs 5V and quite so the others, I just know I can’t consider everything on parallel because it won’t work.
Should I use different source for each? I would like to minimize the batteries needed.

0
Downunder35m
Downunder35m

Reply 27 days ago

Have you considered one or a pair of lantern batteries?