Instructions on how to play audio, turn on direction indicator LEDs, and start other animations when you start your DC motor.
This controller is particularly useful for controlling a model turntable. Info about that is here.
Materials Required
Circuit Board
We start with this circuit board to which we add the operative parts.
All that you have to do is insert pins in the holes and make simple solder joints to secure them in place.
Parts placement is indicated by labels on the circuit board.
Overview
Motor speed is controlled by a potentiometer.
Direction is controlled by a SPST switch.
The motor can be powered with anything from 3 to 12 volts.
When the motor starts an audio player plays sounds of your choice. For example, for a turntable it can be sounds of a motor plus background sounds.
A red and green LED can be mounted on the control panel to indicate forward and reverse directions.
For use with a turntable, the motor can be automatically controlled by the indexing system that you see here. MMMM
Parts To Be Added To The Circuit Board.
L293D 1
Arduino mini pro 1
DfPlayer mini 1
2 pin screw terminal 7
3 pin screw terminal 1
Dupont pin socket 2
Pin header 2
SD card 1
Speaker 1
Program
The Arduino board comes to you fully programmed.
Assembly
All connections between parts are made via traces on the circuit board. All that you have to do is put the parts in place.
The Player and Arduino board will be connected to the circuit board via DuPont pin sockets.
So we have to add pins to the player and Arduino Board. Cut pin headers to length and solder them to the boards.
Now cut the DuPont pin sockets to length and solder them to the circuit board.
The 2 pin screw terminals are designed to be joined together by using the slots on their sides. Join them as necessary to make the terminals as long as necessary.
Be sure to note the arc on the end of the L239D. On the chip itself you will see a notch. It should be matched to the arc on the board.
Operation
To control direction, connect A SPDT switch to REV and FWD.
If this is going to be used to drive a turntable motor, the 5v power will be supplied via the turntable circuitry. See Turntable
If not, install a SPST switch for manual control.
There are two ACC terminals. These will supply a 5v output to be used as a trigger to start other activities such as turning on lights, blinking warning lights, or starting other animations.
The connections S+ and S- connect to their respective pins on the speaker. Be sure to use wires long enough so that you can place the speakers where they are best heard
You can increase volume by using an amplifier. Learn about that here.
The TX and RX connections are used for Bluetooth. They allow you to broadcast on an external Bluetooth speaker. Learn about that here.
There are two terminals labeled ACC1 and ACC2. They give a +5v output when the bells start ringing. Use those terminals as triggers for other accessory programs.
At Motor power you connect the motor’s power supply. That can be anywhere from 3 to 12 volts DC.
Connect the wires from your motor at FWD REV. Switch them as necessary so that the motor turns in the correct direction for forward.
Feedback
Please let us know if this page has been helpful And if you have questions or suggestions, use this spam free system.