GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Have a question about this project?
#21: Six Sonoff Secrets
Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. It could be an alternative compiled version, or just an option inside the basic version to select the gpio 14 for the original Basic, 3 for the R2.
I have compiled using the base of the Basic just changing the gpio from 14 to 3 and is working perfectly. IMO right now it is better to do the second option, "select the gpio", by using this approach: You can try building from that PR and see how it goes. If you have any idea about where to put configuration presets generated from hardware. This gives an easier way of attaching wires or header pins WRT ground. You still have the boot failure if held low at start so no good for a toggle switch, but push button works fine.
As stated above you also need to set GPIO 2 rather than Skip to content. Dismiss Join GitHub today GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up. New issue. Jump to bottom. Labels enhancement. Copy link Quote reply. This comment has been minimized. Sign in to view. Because we can use just one firmware. Can this, or does this option appear in espurna for the basic R2?Itead Studio keep on creating interesting products for the hacker community. A few weeks ago a new version of the already classic Sonoff TH came to life. The old case is It's bigger in every dimension and it they were cubes they are not the new Sonoff would be 2.
Maybe we can find an explanation for this growth in the inside but my first though is that one of the good things about the Sonoff was it's relatively small size compared to it's competitor by Electrodragonfor instance. In the inside we have a completely different PCB layout.
The PCB is also 1. High voltage traces are a lot thicker and also have an extra of tin on top. All in all it looks like they have tried to answer people concerns about the safety of the device.
They have also been certified as RoHS compliant. Then there are these new push terminals. I guess they are easy to use while sticking the cable in the hole.
The enclosure is thin enough so the LEDs are visible through it. Also the new button is much better in terms of usability and aesthetic pleasure. Using an audio jack as an interface is quite common. It's also good news for anyone willing to add their own sensors.Redmi note 2 android 6
But it has two caveats: first they have decided to go for a 2. Harder to find and more expensive. So what happened to the fourth? Well as you can see in the image the engineering team at Itead Studio actually thought about it. Only it's not enabled. In the image above you can see that GPIO14 is tied to the jack tip with a 0Ohm resitor and a 5KOhm pull-up actually two 10k in parallel. Side by side to this 0Ohm resistor there is a pad ready to connect the first ring in the jack to GPIO4 and another one to add a pull-up too.Enflick sms gateway
Have you read pull-up resistors? Me too. Do you know any 2 wire protocol that needs pull-ups? Me too!!
And that includes I2C devices. First I worked my testing cable. You can also purchase a convenient 2. Thanks Teun! So let's start playing! What else… well, almost anything digital out there: displays, humidity sensors, distance sensors, touch sensors, encoders, magnetometers, gyroscopes, accelerometers, tilt switches, reed switches, real time clocks,… and also servos, external relays, buzzers, and WS strips!
Tech people at Itead Studio know some of their clients will open the product enclosure and own the device by flashing their own firmware into it. So go ahead. The button is tied to GPIO0 so just press it while powering the board and you are in flash mode. If you don't know what to flash give a try to the Espurna firmware. By the way: I hope I will have a Sonoff Pow soon in my hands….GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. Hello, i want to use two Reed Sensors on one Sonoff Basic.
The first ist connected at GPIO Maybe I have a soldering issue? Please have a look at this picture:. I thought it was my soldering. I will try to completely remove the solder joint.
Thanks for the information with RX and TX.Sonoff Basic R3 - DIY mode with Tasmota - Review & Guide
I did not know that this is possible. Of course that is much easier. Thanks everyone! Skip to content. Dismiss Join GitHub today GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up. New issue. Jump to bottom. Copy link Quote reply. Please have a look at this picture: Thanks for your help :. This comment has been minimized. Sign in to view. Well it looks like really bad soldering. You joined several pins on the chip Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. Linked pull requests. You signed in with another tab or window. Reload to refresh your session.Bios cec 2019 ready
You signed out in another tab or window.Sonoff Dual has been obsoleted by Sonoff Dual R2. Before configuring your device check which revision you have since there are significant differences in how they operate. Please see the Hardware Preparation page for general instructions. As always, you need to access the serial interface.
The four serial pins 3V3, Rx, Tx, GND are available at the short end of the PCB and can be seen on the left side of the first image and are labeled in red on the second image. Alternative GPIO locations. GND can be found on all three headers. GPIO0 can be accessed in two ways: 1.
You can find GPIO0 on one side of a resistor as shown in the second image. GPIO0 can be found on the small inter layer via pointed at in the first image. Attention: If the via is covered by silk screen green you need to expose the underlying conductive copper by carefully scratching it off. The button is not connected to the normal button pin GPIO0. After freshly flashing Tasmota with the default module setting "Sonoff Basic"the button will not act as described in the Buttons and Switches article.
You will not be able to switch power or activate the special WiFi modes. Commands are send from the ESP via a baud serial connection to a dedicated chip that controls the relays. It is therefore important to disable any serial communication to and from the device once you have debugged any anomalies.
To assist easy installation serial logging is enabled by default in Tasmota. For the Dual it is mandatory to turn it off withe SerialLog 0 comand. Another reason for intermittent switching errors can be Power Saving. Make sure it is disabled by executing the command sleep 0.
After configuring the device as "Sonoff Dual 5 ", the button will regain normal functionality.Customise your Sonoff home automation controllers with a memory upgrade, weatherproof housing, control switches, sensors, and custom firmware. The flash memory chip in Sonoffs is 8Mbit, which is only 1MByte. Then if you want to do OTA Over The Air updates you need to limit your program size to less than half the available memory so that a new program can be uploaded alongside the old one.
Thanks to Pete Scargill for this idea! You need to consider how your Sonoff will be used, including physical protection stop little fingers reaching the terminals!
You also need to make sure there is strain relief on the cables to prevent them being pulled out, and possibly exposing live mains connections. You can go even further and use an IP-rated Ingress Protection case and cable glands, to make your Sonoff waterproof and physically very strong.
In this video I gave a very simple explanation of the two-digit IP codes. There are also extensions to the code for other attributes. You can find more information and tables showing the specific meaning of the numbers at en. Internet control is fun, but usually you also want some way to manually turn the output on or off without using your phone. You can modify a Sonoff to connect an external button across the pins of the built-in button, allowing you to toggle the output by pressing the button manually.
This is used during power-up to put the Sonoff into bootloader mode, and can also be used to toggle the output or do other actions. Alternatively, you can connect an external button between GND and GPIO14 so that your software running on the Sonoff can detect when it has been pressed. GPIO14 is exposed on the internal header used to upgrade the software on a standard Sonoff. The difference is that with a button, you want the output to change state each time you press and release the button.
So your software needs to treat each level change as a separate event, and toggle the output. As explained in the section about switches, the regular Sonoff exposes GPIO14 on the internal header that is used for flashing new firmware. The same header also provides GND and 3. The socket provides 3. The 2. You can fix this easily by putting a solder blob across two pads on the Sonoff PCB, and optionally installing a pull-up resistor.
You can still use a 10k pull-up on GPIO4 if you like, or you can use a 4. There are many alternative firmware projects for the Sonoff. These include:. Excellent Post and Website. Basically a rain sensor just provides a variable voltage output depending the amount of water on the detection plate between V or V depending on the models. Thanks for your opinion.On the earlier soldered header there is one pin left, that can be used for input. GPIO is the pin that can be used for this.
According the above picture, the unused pin on the right next to the black wire could be used for input, together with the ground pin. When the magnet sensor is switched from state, you will see on the Device page the green value is changing also from 0 to 1 and back to 0 after page refresh.
Via tab Rules, you can add a script that when the GPIO pin change state, the relais will be triggered. From here I can do what I want, like switching the relais on the Sonoff. Compared to the default setting in Homeseer, the values are 0 and After creating a new device, the Status Graphics and values has to be changed for into 1. Status can be renamed from Off to Closed and On to Open, but is not mandatory. Based on the new state, the variablees in the command will be updated and send as a HTTP command.
Thanks for this information. Currently the dry contact on the water meter starts a chlorine pump and it runs for X number of seconds. The controller has failed too many times and does not give me any information on water or chlorine usage. I want to add some additional intelligence to this operation by keeping track of gallons of water, and chlorine pump run time using Node Red on a RPi.
By using this form you agree with the storage and handling of your data by this website. Don't subscribe All Replies to my comments Notify me of followup comments via e-mail. You can also subscribe without commenting. Leave this field empty. In DataHardwareSoftwareSonoff. By Rutg3r. As discussed in the previous post on the Sonoff, this time an input signal will be added. Switching a light bulb is now easy, but what to to with the input GPIO?
GPIO According the above picture, the unused pin on the right next to the black wire could be used for input, together with the ground pin. ID of the Homeseer device. Now the input on GPIO is configured as a device: When the magnet sensor is switched from state, you will see on the Device page the green value is changing also from 0 to 1 and back to 0 after page refresh.
Rutg3r All author posts. Mike Wurlitzer. Prev Next.The fix for this is pretty simple.
Sonoff seemed to be a pretty good product at an impossible price before, so why did itead do a complete board revision? The most obvious change is the shift from using circuit board traces to wires for carrying mains voltage from the relay to the terminal. The wires on the new r2 version of the sonoff basic are a far better solution for carrying current, but they also have the added benefit of increasing the separation between high and low voltage, which is another place that this board shows thoughtful redesign.
On the old sonoff basic there was separation between AC mains voltage and DC voltage, but the rectified high voltage DC passed pretty close to the low voltage area. By having this button itead adds a slew of extra safety requirements related to voltage division and also grounding, which the sonoff basic famously lacks.
This helps significantly with heat dissipation and should allow the ESP chip to run a bit cooler than on the previous sonoff basic. Using the ESP also saves itead a few cents per unit, since it has 1 megabyte of built in flash memory, rather than having to include an external flash chip like the previous sonoff basic.
Part of me is wondering if it was to discourage modification of their devices. If I missed any obvious changes to this board, let me know down in the comments section. If you found this video helpful give it a thumbs up so youtube will suggest it to other makers and DIYers. If you enjoyed this video, please consider subscribing, and as always, thanks for watching the hookup.
Hi there, If you flash the sonoff using tasmota, and change the GPIO rx pin to the external switch, how do you get back into serial coms if you need it? All are running stock fw. Great article! Great video. Do you know how to convert the output to a dry contact? There are several videos for the old sonoff basic on Internet. I have not found any video for the new sonoff basic. I would highly recommend against converting it to a dry contact.
There are products out there Shelly1 that are much better suited for that use. I have the same problem.Apkpure developer console
It would be nice if someone show how to convert it on isolated dry contact version. This is late but hope it helps someone. The coil of this relay will be triggered by the relay output of the Sonoff.Information security quiz questions and answers pdf
Just open or close — no voltage there. Thank you for great Youtube tutorials. Specifically with regards to the decoupling the switch?
- Kartopu yarn uk
- Ark eternal evolution fuel
- Ros lidar slam
- Dream girl hd movie download khatrimaza
- Xnxx sex gadis pulau bawean
- Bmw m57 standalone ecu
- Broadcom bcm47765
- Beacon employee login
- The promise turkish drama in urdu episode 1
- Expositor biblico senda de vida pdf
- Codice a1709b dd 29 agosto 2019, n. 827 dgr n. 5-42 del 5 luglio
- Rospy spin
- 48poliestere eais1nwk pantaloni calizia donna salmon mango
- Unique powder 45 acp load data
- Unigui example
- Ecopoxy liquid plastic instructions
- Yiddish keyboard
- Blazor crystal reports