Relative Content

Tag Archive for c++embeddedmicrocontrollermicrochip

5V Motor project (Need an electrical diagram + code review)

I’m trying to get a motor(5V nailbrush, no name no spec whatsoever) to spin for a set time and pause for a set time using a microcontroller(PIC10F200 –> GP1) in conjunction with a transistor(NPN 2N2222 A331) and diode flywheel(1N4007), the Arduino Uno as the power supply provider.
Also please I need an explination on how I’d have to connect an alternative transistor (PNP 2N3906 H331) since I plan to make more of the similar project but I can’t get any NPNs any time soon.
Programing the microcontroller is done via PicKit5, the coding is done in MPLAB x IDE(6.20) XC8 Compiler.