Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. Mosfet with Ceech board

Mosfet with Ceech board

Scheduled Pinned Locked Moved Hardware
6 Posts 3 Posters 2.0k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JodailleJ Offline
    JodailleJ Offline
    Jodaille
    wrote on last edited by Jodaille
    #1

    Hello,

    I would like to use the mosfet of the Ceech board: ATmega328p board w/ NRF24l01+ socket LTC4079

    In the doc is indicated that it is wired do digital 3.
    I have modified the "blink without delay" sketch

    const int MOSFET = 3;
    int loadState = LOW;
    unsigned long previousMillis = 0;
    const long interval = 2000;
    
    void setup() {
      // put your setup code here, to run once:
      pinMode(MOSFET, OUTPUT);
      digitalWrite(MOSFET, HIGH);
      Serial.begin(9600);
    }
    
    void loop() {
      unsigned long currentMillis = millis();
    
      if (currentMillis - previousMillis >= interval) {
        // save the last time you blinked the LED
        previousMillis = currentMillis;
    
        // if the LED is off turn it on and vice-versa:
        if (loadState == LOW) {
          loadState = HIGH;
        } else {
          loadState = 0;
        }
    
        // set the LED with the ledState of the variable:
        digitalWrite(MOSFET, loadState);
        Serial.print("state: ");Serial.println(loadState);
    
      }
    
    }
    

    I don't understand how it works, I have tried to measure continuity with a voltmeter, I have tried to wire a led between vcc, cuting the gnd with the mosfet without success.

    Does anyone would be explain how I can use it ?
    Ceech board with led

    I would like to make an electrical barrier to protect my beehive from vespa velutina using a mosquito racket :
    Racket

    alt text

    vespa velutina

    YveauxY 1 Reply Last reply
    0
    • JodailleJ Jodaille

      Hello,

      I would like to use the mosfet of the Ceech board: ATmega328p board w/ NRF24l01+ socket LTC4079

      In the doc is indicated that it is wired do digital 3.
      I have modified the "blink without delay" sketch

      const int MOSFET = 3;
      int loadState = LOW;
      unsigned long previousMillis = 0;
      const long interval = 2000;
      
      void setup() {
        // put your setup code here, to run once:
        pinMode(MOSFET, OUTPUT);
        digitalWrite(MOSFET, HIGH);
        Serial.begin(9600);
      }
      
      void loop() {
        unsigned long currentMillis = millis();
      
        if (currentMillis - previousMillis >= interval) {
          // save the last time you blinked the LED
          previousMillis = currentMillis;
      
          // if the LED is off turn it on and vice-versa:
          if (loadState == LOW) {
            loadState = HIGH;
          } else {
            loadState = 0;
          }
      
          // set the LED with the ledState of the variable:
          digitalWrite(MOSFET, loadState);
          Serial.print("state: ");Serial.println(loadState);
      
        }
      
      }
      

      I don't understand how it works, I have tried to measure continuity with a voltmeter, I have tried to wire a led between vcc, cuting the gnd with the mosfet without success.

      Does anyone would be explain how I can use it ?
      Ceech board with led

      I would like to make an electrical barrier to protect my beehive from vespa velutina using a mosquito racket :
      Racket

      alt text

      vespa velutina

      YveauxY Offline
      YveauxY Offline
      Yveaux
      Mod
      wrote on last edited by
      #2

      @Jodaille without looking at schematics I'd say you will kill/have killed the led if you don't put a current limiting resistor (few hundred ohms) in series with it.

      http://yveaux.blogspot.nl

      1 Reply Last reply
      0
      • rvendrameR Offline
        rvendrameR Offline
        rvendrame
        Hero Member
        wrote on last edited by
        #3

        You need to connect the LED (+resistor) like this:

        • Positive: Vcc Pin
        • Negative: The pin with the orange/brown wire in your picture.
          the mosfet onboard is N-channel, so it will switch the negative (GND) line.

        Home Assistant / Vera Plus UI7
        ESP8266 GW + mySensors 2.3.2
        Alexa / Google Home

        1 Reply Last reply
        1
        • JodailleJ Offline
          JodailleJ Offline
          Jodaille
          wrote on last edited by
          #4

          Hello @Yveaux, hello @rvendrame: thank you.

          the led is still alive :-)

          With the sketch , I can see the led blinking if it is wired between gnd and d3.

          @rvendrame I should miss something because the led stay off with your instructions.

          Maybe @ceech will see this my SOS :-)

          rvendrameR 1 Reply Last reply
          0
          • JodailleJ Jodaille

            Hello @Yveaux, hello @rvendrame: thank you.

            the led is still alive :-)

            With the sketch , I can see the led blinking if it is wired between gnd and d3.

            @rvendrame I should miss something because the led stay off with your instructions.

            Maybe @ceech will see this my SOS :-)

            rvendrameR Offline
            rvendrameR Offline
            rvendrame
            Hero Member
            wrote on last edited by
            #5

            @Jodaille , it works for me, when wiring the led between Vcc and the non-named pin where you put that orange (or brown?) wire. There is where I found the MOSFET N-channel drain is connected.

            alt text

            Home Assistant / Vera Plus UI7
            ESP8266 GW + mySensors 2.3.2
            Alexa / Google Home

            JodailleJ 1 Reply Last reply
            0
            • rvendrameR rvendrame

              @Jodaille , it works for me, when wiring the led between Vcc and the non-named pin where you put that orange (or brown?) wire. There is where I found the MOSFET N-channel drain is connected.

              alt text

              JodailleJ Offline
              JodailleJ Offline
              Jodaille
              wrote on last edited by
              #6

              Thank you @rvendrame ,
              it works, I attach a Ceech's schema, using D4 instead of D3 :-)

              0_1495557725819_AstriArista_mosfet.png

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              27

              Online

              11.7k

              Users

              11.2k

              Topics

              113.1k

              Posts


              Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • MySensors
              • OpenHardware.io
              • Categories
              • Recent
              • Tags
              • Popular