Author Topic: Power error: Pump + Teensy 4.1 + MOSFET FQP30N06L + MOSFET Driver NCP81074  (Read 650 times)

0 Members and 1 Guest are viewing this topic.

Offline roboticsmickTopic starter

  • Newbie
  • Posts: 1
  • Country: au
Hi all, I was hoping to get some advice on how to switch on a pump using a teensy 4.1 + MOSFET FQP30N06L + MOSFET Driver NCP81074. I'm not sure where I am going wrong?

When I power the 12V line on my schematic with a 5V source the gate turns on and the motor runs when I press the button on the Teensy, but when I swap the voltage source to a 7.4V or 12V battery the gate doesn't switch on? My schematics attached and my test code is below. Any advice on my error or where to do some research to fix my issue would be awesome and appreciated!

FQP30N06L - https://cdn.sparkfun.com/datasheets/Components/General/FQP30N06L.pdf
NCP81074 - https://www.onsemi.com/pdf/datasheet/ncp81074-d.pdf

Code: [Select]
#include <Bounce2.h>
// Teensy 4.1
#define PUMP_POWER_PIN 23
#define PUMP_ON_BUTTON 30
#define LED_TEST 2
// Variables
int buttonDebounce = 5;
// Button class
Bounce pumpSwitch = Bounce();
// Pin Setup
void setup() {
    pinMode(LED_TEST, OUTPUT);
    pinMode(PUMP_ON_BUTTON, INPUT);
    pumpSwitch.attach(PUMP_ON_BUTTON);
    pumpSwitch.interval(buttonDebounce);
    pinMode(PUMP_POWER_PIN, OUTPUT);
    digitalWriteFast(PUMP_POWER_PIN, LOW);
}
// Program
void loop() {
    // Check if button pressed
    pumpSwitch.update();
    if (pumpSwitch.read()) {
        // Turn on pump and LED if pressed
        digitalWriteFast(LED_TEST, HIGH);
        digitalWriteFast(PUMP_POWER_PIN, HIGH);
        delay(100);
        // Turn off pump and LED
        digitalWriteFast(LED_TEST, LOW);
        digitalWriteFast(PUMP_POWER_PIN, LOW);
    }
}

Thanks in advance for any help!

Cheers,
Mick

 

Offline maxiwaldi

  • Newbie
  • Posts: 1
  • Country: de
Hi Mick,
did you fix this Problem ?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf