Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: method to addd a transistor to 4.0 or 3.2 to boost a pin output to 5v

  1. #1
    Junior Member
    Join Date
    Jan 2020
    Location
    Greenport NY
    Posts
    1

    method to addd a transistor to 4.0 or 3.2 to boost a pin output to 5v

    For either a 4.0 or 3.2, I need to boost the output of a pin, for example
    void setup() {
    pinMode(5, OUTPUT); // and later
    void loop() {
    digitalWrite(5, HIGH); // produces ~3.3v on pin 6
    yet I need 5v. to trigger the DC motor drive module input of this part https://www.droking.com/160W-2-Chann...tor-Controller
    Q1. Please provide a link to a schematic to help me place a transistor correctly on the breadboard.
    Q2. Would any old transistor do the job? I've got a few in my Radio Shack NPN PNP stash.

    Ideally I'd also like to pass along a PWM value to control the speed of the vacuum motor, and to that end I've got
    void loop() {
    analogWrite(6, 100); // to suitably dim an LED
    Q3. Would the solution to Q1 above also pertain passing along a suitably strong 5v PWM signal to a DC motor drive module input?

    I've scanned some forum postings and I think I almost understand that this can be done. A simple simple schematic with added instructions would be most appreciated.

    Project: a Cuirass Ventilator solution within https://helpwithcovid.com/projects/13

    Thank you, Steve
    - - - - - - - - - - - - -

  2. #2
    Senior Member
    Join Date
    Jun 2013
    Location
    Torrance CA
    Posts
    415
    A1) https://www.instructables.com/id/12V...-NPN-Transist/ (NPN), https://startingelectronics.org/begi...rduino-buzzer/ (PNP) just replace the 12V with 5V and the motor/buzzer with the controller. You don't need the diode from the first example.

    A2) Since you're just driving another controller you shouldn't need a huge current gain so yes I'd say just about any modern transistor will work.

    A3) PWM should work fine.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •