-
1PCB ASSEMBLY PROCESS
- Using a solder paste dispensing needle, we first add solder paste to each component pad, one by one. We're using standard 37/63 solder paste here.
- Next, we pick and place all the SMD components in their places on the PCB using an ESD tweezer.
- With extreme caution, we lifted the complete circuit board and placed it on the SMT hotplate, which increases the PCB's temperature to the point at which the solder paste melts and all of the components are connected to their pads.
- Next, we added the THT components that included the female header pins, The DC Barrel jack and the CON2 Screw connector and the solder their pads using a soldering iron.
- The IRFZ44N Mosfet is then installed in its designated spot and soldered there.
- We utilize an M2.5 nut and bolt to secure the mosfet with PCB in order to mount the IRFZ44N in its proper location.
- Finally, using the female header pin connectors, we installed the Pico in its place.
-
2Final Assembly
- We began the primary assembly process by first attaching the PCB standoffs to the main board, then covering it with the second PCB and fastening it with M2.5 bolts.
- We secured the main board and cover board together by doing the same for each of the four PCB standoffs.
- Next, we take the third layer part and place it on top of the cover layer, we remove the bolts from the cover layer and use those bolts to secure the 3D-printed third layer in place.
Motor Driver is now complete.
-
3CODE
int Motor = 0; int Speed = 0; int fadeAmount = 5; void setup() { pinMode(Motor, OUTPUT); } void loop() { analogWrite(Motor , Speed); Speed = Speed + fadeAmount; if (Speed <= 0 || Speed >= 255) { fadeAmount = -fadeAmount; } delay(30); }
Here's the code used in this project and its a simple one, its basically a fade sketch changed for driving a motor, here the speed increases from 0 to 255 and then it decreases from 255 to 0 and this goes in a loop.
-
4RESULT & CONCLUSION
Here's the end result of a straightforward build: a functional motor driver that controls the load by using a mosfet as a switch setup. The Raspberry Pi Pico is used to control the mosfet's gate.
We connect our motor driver to a bench PSU and supply 12V in order to operate this arrangement.
The Pico generates a fading effect by increasing the motor's speed from 0 to 255 and then lowering it back to 0. This procedure keeps repeating indefinitely.
As previously mentioned, this motor driver project is for a future project that requires a motor to spin in a single direction in order carry out a task. This setup can be used to drive resistive loads, LED loads, and inductive loads in addition to motors.
Overall, this project was a success and needs no further revisions.
Special thanks to HQ NextPCB for providing components that I've used in this project, check them out for getting all sorts of PCB or PCBA-related services for less cost.
Thanks and I will be back with a new project soon.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.