I'm trying to make a vending machine with just one snack
For this I have a coin acceptor that I have configured, so that it only accepts coins of 1 euro and that I have connected to pin GND, Vin and 13 and it works well !
And I connect the servo motor on the 13, GND and 5V
I would therefore like to ensure that when the coin acceptor receives 1 euro the servo motor turns
I tried this code but it doesn't work (nothings is happening)
Need help
Thanks to you !
I don’t know the servo motor works too but when i make 1 euro on my coin acceptor the servo motor don’t turn so i think there is an error in the connction between the servo motor and the coin acceptor either in the code or in the circuit
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.
[quote="UKHeliBob, post:10, topic:1134345"]
What is the maximum voltage that should be applied to pin 10 on your Arduino ?
[/quote] I use arduino uno (elegro R3)
And I don’t know but I connect the card to a 12V socket
The maximum voltage that should be applies to pin 10 of a Uno is 5V. If you have connected 12V between the pin and GND then I will be very surprised if you have not damaged the pin and possibly other functionality
If you have not yet connected 12V to the Arduino pin then don't do it
So, I just want a code and a diagram that can i make a servo motor turn when 1 euro is inserted in the servo motor, I tried solutions but I am a beginner
Thanks you so much for help me