Posted on

So far flashing the ESP has been pretty easy, but with the new Smart Home devices from itead,it has become a bit more complicated. The function of the is the same as thebut it got the memory build in, instead of having it on an external chip.

Or you can go here and download the. So to get enough current available, I modified my TTL adapter a bit. From the top side, it still looks pretty normal, except you can see the extra jumper I added to easy be able to switch between 3v3 and 5v while having a connector attached to it.

With this extra voltage regulator, you no longer have to worry about having enough current on 3v3, because it can supply a lot more than the TTL adapters normally can do.

This is because the transmitted signal must go to the pin where it is expected to be received. But the silkscreen on my Sonoff 4CH was actually opposite. I first found this after having been struggling with getting it to work for some hours, where I just go absolutely nowhere.

I then found the datasheet for the ESP based module they used, and probed for a bad connection, but instead I found the TX and RX pins swapped, so it was opposite than the silk screen. All I needed now was to figure out what pin was connected to what function, and then it was ready to use.

And to save a bit of your time, here is my findings for pin connections. HI captain, may I know how you managed to trace the ESP pins to the respective function relay, button etc? I looked at the itead wiki, and found some data on some of their other modules, then I just tried to compare that to the one in the Sonoff 4CH with my multimeter.

Captain, as stated in the schematic you refer to gpio7 anderen gpio8 as 2. Can you help meine Out. This Page saved my day! Thanks a lot. I neither have the mentioned 2,5mm jack in my device. But the rest works like charm. Hi Captain, thank you ever so much for your help above. I have successfully flashed Espeasy to my sonoff largely inspired by this post. I am having some issues though, I am really hoping you can help?Mains Voltage is dangerous for you and your computer!

Always use a separate power supply. You obviously need a device with ESP They are the most easy to handle version of ESP For other devices you need a power supply with 3.

It will kill the chip. It's recommended to get an assorted bunch of such cables as you may need them to connect sensors, actuators and such for testing. Buy cables with many different colours. It helps We have seen some strange behaviour from cheap power supplies. If you put a voltmeter on these it shows the correct voltage. Everything looks nice. Use a high quality power supply like MeanWell or similiar. It should have at least a current of 1 ampere.

With some UART cables a wire has to be soldered accordingly. The FTDI might be one of the most faked chips at all. The genuine manufacturer took measurements against these fakes. They will not work correctly at least with Windows. Everything looks fine, apparently flashing worked well. You can use several different softwares for flashing the ESP. It needs no settings and works just out of the box. ESP Easy is programmed to give information via the serial port, the same port you use for flashing.

Of course you need the ESP Easy firmware. You will have to download the. Unpack the. Also unpack the two EXE files. Everything is ready to use on these boards. The ESP usually starts up from the internal flash that contains the firmware.

For flashing the ESP it must be set into "flash mode". Said simply this starts another program at bootup, reading the serial port and writing the data into flash memory. The ESP has four inputs that manage the startup behaviour.

These setting are necessary to flash the chip! The GPIO0 setting now decides between run mode and flash mode. Connect a 10 KOhm resistor between 3. This sets the ESP into run mode. The fourth is the "reset" pin. It should be on "high", so put a 10 KOhm resistor between Vcc and reset pin. It's an "enable" pin you may use to switch off the whole ESP-Chip.Sonoff, a smart wifi switch, which you can buy for appr.

In the most online tutorials the jumperwires are in different order, but in my case the purple and yellow are switched, This is explaned there too. While holding down the button on the Sonoff long black pin next to ledconnect the USB to your computer. This bring the Sonoff in programming mode.

When downloading the latest stable firmware versionthe download included also the flash tool:. Leave the 3. In some cases the new wifi hotspot is not visible, a restart of the Sonoff the device is required.

Start your browser on this device and go to a random webpage.

Basics: Connecting and flashing the ESP8266

Normally it will go directly to the start page of the ESP easy configuration. Here the available wifi networks are displayed and you have to select your wifi network and add your own wifi password. The Sonoff will reboot and get an ip address from your router. The same webpage will show you the new ip address of the Sonoff. The device phone, tablet will disconnect automatically. In the next steps, the basic necessary steps are showed, and how to switch the Sonoff via http commands.

Here we will define a script, so we can call it via a http command. When pressing the button on the Sonoff, the internal relais will be controlled, including the led. Thank you for the detailed instructions! I have another newer? It uses a CH chip so it needs to have the CH driver installed before connecting.

Hopefully this will be of use to someone. By default you use them with an app from iTead, but by installing new firmware on the microcontroller you make the device open for your own systems.Blog Search Results for. But, after running, you realize that the battery doesn't last very long. The No-Sleep setting will keep everything on at all times. Modem-sleep is the default mode for the ESP However, it's only enabled when you're connected to an access point.

This interval is set by your router. Light-sleep performs the same function as Modem-sleep, but also turns off the system clock and suspends the CPU.

Как прошить esp8266 с помощью ESPEasy

The CPU isn't off; it's just idling. Since everything is off, this is the most power efficient option. If you need more details, be sure to check out the documentation. But, if you need some serious power control, Deep-sleep is the way to go. Fun fact, you can't sleep forever. In this example, we log to serial, go to sleep for 20 seconds, and repeat. You can use this example as a boilerplate for other programs. In the real world, we'll want to perform an action, like make a network request, while the device is awake.

Let's go through an example of sending a temperature sensor reading to Losant every 20 seconds and sleep in between. If you have any feedback or comments, please let us know in the comments or on Twitter. Taron has been the Technical Evangelist at Losant for over four years.

He creates demos, leads meetup events, gives engaging talks, and more. He loves whiskey, learning, and handstands. Welcome to the Losant Blog.

espeasy esp8285

Taron Foxworth 3 minute read. They all have different functions. Tagged ESP Tutorial.To flash a flash chip you need to send the bin file data using serial communication. There's multiple standards on how to do this communication flash modes.

Not all flash chips support all of these modes. The datasheet provided by the manufacturer is the best source to know what supports what. But here's a list of the different modes used:. Do yourself a big favor: avoid cheap power supplies!

We have seen some strange behavior from cheap power supplies. If you put a voltmeter on these it shows the correct voltage. Everything looks nice. If you use an oscilloscope you may get some nasty surprises. Oscillating voltage, ripples Use a high quality power supply like MeanWell or similiar. It should have at least a current of Cheap cables use really thin wires.

For transfering data and some milliampere of current these are ok. For an ESP module they possibly are too weak. Voltage drops and some warm boot occurs. As a rule of thumb: Use USB cables as thick and as short as possible. A good power supply is recommended anyways as USB power from the computer is always limited. Do not use the micro USB port for anything but flashing and lab tests.

If you need to check voltage the first step is a good quality voltmeter or multimeter. Please be aware that a digital voltmeter is slow. The result you see on the display is always an average value.

If you really need to know what's going on with your power supply an oscilloscope is necessary as it can cope with short voltage peaks or drops. From Let's Control It. Navigation menu Personal tools Log in Request account. Namespaces Page Discussion. Views Read View source View history. Navigation Main page. Other Recent changes. This page was last edited on 1 Julyat WeMos D1 mini. WeMos D1 R2. NodeMcu V2. NodeMcu V3. Sonoff basic. Sonoff SCreate your free GitHub account today to subscribe to this repository for new releases and build software alongside 40 million developers.

Skip to content. Dismiss Be notified of new releases Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 40 million developers. Sign up. Releases Tags. Choose a tag to compare.

Search for a tag.

espeasy esp8285

Release mega Added device values. Added info about which specific commit used. Rewrote communication part, removed delays from code, optimised handling and storing of data Write re-enabled Renamed to plugin. Renamed to plugin. Improved write operations Fixed build when debug is disabled Make sure to break out of switch-case.

Handle only "MHP" commands adding documentation Restructured docs a bit so its easier to follow updated docs tonhuisman 2 : [P] Fix for text overflowing onto next line s Added condition for 64x48 and rotated combined. Assets 3.

espeasy esp8285

Source code zip. Source code tar. Feb 28, mega …. Fixed wildcard matching which only checked up to one character before the actual wildcard and not up to the wildcard. Avoiding deepcopy on command pass. Checking for closing character ]. Switched to if else if.After completing the configuration on the ESPEasy web interface, you can integrate it with most home automation platforms. After connecting a couple of nodes, you can control the Sonoff using a button in your Node-RED dashboard.

You can use the preceding links or go directly to MakerAdvisor. The Sonoff is a device that you put in series with your power lines allowing you to remotely turn any device on and off. In simple terms, a Sonoff device contains an ESP chip connected to a relay. This way you can connect to the Sonoff via Wi-Fi to control the relay.

The sonoff comes with a firmware that allows you to control it using the eWeLink app. Make sure your Sonoff is disconnected from mains voltage while you are uploading a new firmware. The Sonoff is meant to be hacked, and you can see clearly that some connections were left out, so that you can solder some pins and upload a custom firmware.

How to Get Started With ESP8285 Module ?

The figure below shown the pinout. Use the schematics provided as a reference. I used hot glue to glue the ends of the wires together. This prevents you from making wrong connections between the FTDI programmer and the Sonoff in the future. To flash a new firmware to your Sonoff, you have to boot your Sonoff in flashing mode. To do that, follow these next 4 steps:. After loading the firmware, all the configurations, like setting GPIOs as inputs, outputs, etc are done in your browser using a user-friendly graphical interface.

Note : to flash the firmware on other operating systems, you can use the ESPTool. If you try to upload the sketch and it fails to flash, it means that your Sonoff is not in flashing mode.

After uploading the code, re-assemble your Sonoff. Be very careful with the mains voltage connections. I strongly recommend going to the Config tab and type a new admin password this will overwrite the configesp password. For all the configuration to take effect, you should reboot your Sonoff. Then, you can either import the Node-RED flow or create it by yourself.

If you prefer to create the Node-RED flow yourself, instead of importing the code, follow these next steps.

Replies to “Espeasy esp8285”

Leave a Reply

Your email address will not be published. Required fields are marked *