Hello, I am doing an automatic gate in a railway and road crossing in my model railroad. I use for that an Arduino Uno R3, a DFPlayerMini MP3, a SG90 9g Servo, leds and infrared sensors to detect the aproximation of the little trains. The problem is that when the sensor send the command to start the sound of the MP3, the servo receive some noises and junp befor start to move. I isolated all parts to confirm that the problem with de servo only ocurrs if the the DFPlayer starts. When I disconnect the MP3 no noise goes to the servo. I will be very greatful if someone could help me to resolve this problem.
Did you forget something(s)?
Hello SemperIdem ! Did you mean in the project or in the circuit? Sorry, I didn't understand your question.
You've told us what your problem is.
You haven't told us anything else.
Okay, sorry! I will try to complement my post. I am retired since 2018 and now I have time to dedicate to my hobby, which is model railroad. I have a small installation of dimensions 2.68 m X 1.41 m. The scale of the train model is in the proportion of 1:87, named HO. I like very much using Arduino in the system to control light effects, sound effects and others. Now I decided to install a gate in a crossing of the railroad with a road. This gives a beautiful movement effect in the modell. There are the gate, red flashing lights and warning sound of a bell. Well, I hope you and other can now understand better with what I am engaged.
Thanks for the biog.
Now, tell us about the problem hardware/software.
Okay! Thanks SemperIdem. I think the problem is of hardware, some tipe of noises emitted by the DFPlayerMini MP3. All parts work well. The infra-red sensor detect the trains, the warning red LEDs work well, the MP3 sounds okay. The software is working. But the movement of the Tower SG90 9g (which open and close the gate) in the very beginning is not smooth, on the contrary it is abrupt. Occurs a jump and then it moves smoothly. I isolated each part and that noise occurs only if the DFPlayer works. When I eliminate in the software the command to the DFPlayer, the servo works perfectly.
And now, some specifics, please.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.