Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Potential E1.31 / WiFi mod for dumb strips & floods.

  1. #11
    Join Date
    Oct 2015
    Posts
    47
    Post Thanks / Like

    Default Re: Potential E1.31 / WiFi mod for dumb strips & floods.

    Quote Originally Posted by Barnabybear View Post
    Hi, sorry - my bad. Arduinos only have a 8 bit analog output (0 to 255) the ESPs / Wemos are 10bit (0 to 1023). An easy fix *4.
    Code:
    analogWrite(output_1_red, e131.data[channel_1_red -1] );
    
    analogWrite(output_1_red, (e131.data[channel_1_red -1] *4));
    I will try tonight! Many thanks sofar.
    Did make some changes, will upload a working sketch if all works out!!

    Thanks. Martijn


    Verzonden vanaf mijn iPhone met Tapatalk

  2. #12
    Join Date
    Oct 2015
    Posts
    47
    Post Thanks / Like

    Default Re: Potential E1.31 / WiFi mod for dumb strips & floods.

    Hahaha, no problem dude

    I tried the 4* multiplier. This gives me a proper 3.3v output.
    This is however too low for the irf540 mosfet.
    The led lights up but not very bright. I meassure 7V output as where it should be 12V.

    Easiest way is put another arduino (nano) between the in- and output, but far from ideal.
    Pretty stuck, is there a way to juice up the voltage from 3 to 5v?

  3. #13
    Join Date
    Dec 2011
    Location
    UK S80 postcode
    Posts
    1,195
    Post Thanks / Like

    Default Re: Potential E1.31 / WiFi mod for dumb strips & floods.

    Quote Originally Posted by martijnkooi View Post
    Hahaha, no problem dude

    I tried the 4* multiplier. This gives me a proper 3.3v output.
    This is however too low for the irf540 mosfet.
    The led lights up but not very bright. I meassure 7V output as where it should be 12V.

    Easiest way is put another arduino (nano) between the in- and output, but far from ideal.
    Pretty stuck, is there a way to juice up the voltage from 3 to 5v?

    The proper way is to use the correct MOSFET IRLB8721, if you really must cheat put a silicon diode between the ground on the Wemos and the ground of the FETs, Anode to the Wemos.

    IMPORTANT when you power the Wemos you use the normal 5V terminal and the FET side of the diode not the ground terminal on the Wemos. What it does is make the ground of the Wemos 0.7V higher than the ground of the FET. Instead of the FET seeing 0 to 3.3V it sees 0.7 to 4V. As 0.7V is low enough to switch the FET off this doesn’t matter.

    EDIT: ANODE to the Wemos.
    Last edited by Barnabybear; 09-29-2017 at 02:47 PM.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

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