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

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,254
    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.

  4. #14
    Join Date
    Dec 2017
    Posts
    3
    Post Thanks / Like

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

    This is really useful. Just wondering if some one could upload a circuit diagram of how to hook up led to a esp 8266?

    Thanks

  5. #15
    Join Date
    Dec 2011
    Location
    UK S80 postcode
    Posts
    1,254
    Post Thanks / Like

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

    Quote Originally Posted by Lxkev View Post
    This is really useful. Just wondering if some one could upload a circuit diagram of how to hook up led to a esp 8266?

    Thanks
    Hi, more than happy to. Can you give me / us an idea of what your wanting to drive with this (any link are good).

  6. #16
    Join Date
    Dec 2017
    Posts
    3
    Post Thanks / Like

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

    Going to try and drive a 5v led chip.

    Uses a wemos mini board
    Last edited by Lxkev; 12-29-2017 at 10:00 PM.

  7. #17
    Join Date
    Dec 2011
    Location
    UK S80 postcode
    Posts
    1,254
    Post Thanks / Like

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

    Hi, hand drawn schematic below. The 270R resistor is to protect the wemos outputs, if you don’t have one 330R or 220R will do. This switches the connection to ground (low side) so can be used for voltages greater than 5V if needed. There are 6 GPIOs that I would start with: 12, 13, 14, 15, 4 & 5. You can repeat this circuit for each GPIO / channel you wish to control; you may need current limiting resistors for the LEDs dependant on which you use.


    Once you get some bits wired up if you need help with the sketch let me know.

    IMG_0786.JPG

    EDIT:
    I didn't lable the pins on the FET.
    Top = Drain.
    Side = Gate.
    Bottom = Source.
    Last edited by Barnabybear; 12-30-2017 at 11:22 AM.

  8. #18
    Join Date
    Dec 2017
    Posts
    3
    Post Thanks / Like

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

    Thank you for the wiring diagram. I've got it hooked and working.

    I'm trying to add the wifi manager code for fun. However because I deleted the code for the wifi config I get error frm this code:

    /* Choose one to begin listening for E1.31 data */
    //e131.begin(ssid, passphrase); /* via Unicast on the default port */
    e131.beginMulticast(ssid, passphrase, universe); /* via Multicast for Universe 1 */

    My SSID and passphrase is sorted by the wifi manager... Can anybody help me?

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
  •