Feed

  • Sonoff TH10 and TH16 by Thomas day: thanks for replying, I can sleep well now knowing that my heaters can be used with a sonoff and not burn down the place. Thanks Tom Feb 21, 22:53
  • Peter Scargill Sonoff TH10 and TH16 by Peter Scargill: why not? Of course it depends where you are but in the UK, at 220v, the current is WELL below the limit for 1600w = under 7 amps. If USA at 110v then you would be pushing it and in that case I suggest not using the unit at 1600w. Feb 21, 22:23
  • Sonoff TH10 and TH16 by thomas day: no answers = a bad feeling that maybe I should not use a TH16 on the 1600 watt heater. Feb 21, 20:43
  • Big Timer by Marcus: Hi. I'm not able to stop the Timer by Inject PayLoad 'stop'. All other like 'on,off,auto' are functional. Any idea why 'stop' is not working ? Feb 21, 11:36
  • Welcoming in 2018 by Garry Keogh: How are you getting on Pete? Out of the blue I managed a week of hospital food this month, first time in there since 1976 or 77! I hope the NHS do a better job than the HSE in Ireland on the food front! Just updating/upgrading the "Scargill Script Equipped" Pi that lives inside the panel of my home alarm and which automates half my house and my remote setting shed alarm. Still working a treat! Give us a nod, let us know the physio is working out? Pic to cheer you up is an MQTT/Pushbullet equipped DIY store smoke alarm with zero quiescent current (above the sensor) that sits in my attic with some electrical stuff I don't 100% trust. Get well soon lad! Garry Feb 20, 21:01
  • Big Timer by Max: Hi, Anyone has a solution for this ? Thanks Feb 20, 12:21
  • Welcoming in 2018 by PuceBaboon: Article:- https://esp8266hints.wordpress.com/2018/02/13/adding-an-ethernet-port-to-your-esp-revisited/ GitHub:- https://github.com/PuceBaboon/ESP-Now-Gateway Feb 19, 23:16
  • A busy Week by Chris: Hi Malcolm, Im sure that you found this already since November but just in case: https://flows.nodered.org/node/node-red-contrib-rmplugin I purchased the RM Pro 3 but then promptly bricked it by flashing to wrong firmware......no way back yet as the flash disconnected the wifi connection and so the ESP on board is incognito. I just wish that I had the know how to be able to remove the Broardlink ESP and replace with a standard ESP to make use of the board with the RF Transceiver and the IR receiver and transmitter......if anyone in the know knows how please chime in.... Best Regards Chris. Feb 19, 22:45
  • AIdan Ruff Waiting for Peter, closing the 2017 by AIdan Ruff: If anyone is interested, I've done a few new PCB designs during Pete's recovery - all ESP8266 based. So, the most useful one for me at the moment is an Infre Red repeater board. This picks up the IR from - currently - a Sky+ remote control and transmits it over either a direct HTTP web access or viq MQTT or both at the same time. So, you could control 2 different devices at the same time. Why, I hear you ask? Well, like Pete I'm building a house in Spain (offgrid), plus the wife and I travel a lot. I have a Slinbox tied to one of my SKy receivers, so I can now change channels using a standard Sky remote control from anywhere in the world. She isn't keen on using the on-screen control menu in the Slingbox android app and frankly neither am I as it's a bit clunky. The software so far decodes the Sky IR remote signals and then transmits only debugged codes. So, I'm not getting any false triggering at all. There's no reason why this couldn't be used to control any IR device with standard 38KHz modulation. I've even done a simple interface using the html GET method. So, from a web browser you can type:- http://slinbox-ip-url/command?irCommand=45FC67 for example, to send a random IR code. Or, you can send:- http://slinbox-ip-url/command?irSendCommand=SELECT I've implemented all of the SKY+ remote buttons as text commands. I've used a small plastic case that Pete found on Aliexpress which costs just a few pence each. I've also done another PCB using the same case which has 2 relays and a DS18B20 temperature sensor as a cut down version of the ESP-DEV board that we developed a couple of years ago. Pete's recovering well and as soon as he gets back up to speed fully, I'll ask him to put the files up on the blog if anyone shows interest. Feb 19, 15:45
  • Peter Scargill DPH5005 Power Supply by Peter Scargill: Output will be lower than input, you are correct, I was messing about with lithium boost convertors at the same time. I would normally have corrected that long before now but for extenuating circumstances. Feb 18, 17:26
  • Andy Shrimpton The Script by Andy Shrimpton: what am i missing when i get the web page Pete's utilities up at 192.169.0.202 all the links work but not the node red two second and third in the list. by the way i am not a coder and find all of this really hard going Feb 18, 14:30
  • Welcoming in 2018 by PuceBaboon: Sorry Bob, should have put it in the body. If you click on "PuceBaboon" next to this post it'll take you straight to the article and the link to the code is right at the top of that page. If all else fails, just type PuceBaboon into the GitHub search box. -John- Feb 18, 14:16
  • DPH5005 Power Supply by Markku: About the last section on the input/output voltages/ranges etc. First this "Note that the output voltage has to be higher than the input voltage." seems to be wrong way around... Typically the input has to be higher than output, but in this case... ... Secondly, unlike the DPS (note "S") models that are buck-type, these DPH (note "H") models are buck-boost (or apparently more correctly, combination of boost and buck) type, and can (or at least should be able to) actually give any output voltage from 0 to nominal maximum, independent of the input voltage. There are some limitations at high power levels, though; from official store's wall of text: "If you want to ensure output at full load, you must make sure that input is higher than 28V and 280W". I guess the input current would get too high at low input voltage levels. Feb 18, 12:46
  • Welcoming in 2018 by Bob: John, do you have a link to the ESP-Now stuff? Feb 18, 09:42
  • DPS5020 and DPS3003 PSUs by Joe Hanley: Hi James, Glad you got it sorted. What an extremely useful and helpful project you are doing. I think a huge thanks is due from the general community. Thank you also for bringing the site and project to my attention, I had not not heard of that project before. I will most certainly be following and using that. Keep up the great work and if I can help in any way just let me know. Best regards. Joe Feb 18, 08:54
  • Welcoming in 2018 by SteveM: Try them out as above and photograph the results, then you will have a permanent copy. You could even post them here for others. Feb 18, 05:43
  • DPS5020 and DPS3003 PSUs by James Churchill: Thank you! I was hoping that was the case, but since I had the one exception to the rule I couldn't be sure. All I'm doing right now is writing a driver for Sigrok (sigrok.org) which provides a generic api for all sorts of logic analysers, oscilloscopes, data loggers, programmable PSUs, multimeters etc. Feb 18, 02:57
  • Coding the Nextion by Bob: Happy to help Meet77. I have mega and 7" nextion and can give you some time if you wish. As Peter says you only need 2 or in your case 3 images. These displays are brlliant once you understand the coding. Let me know if I can help Feb 17, 18:00
  • Sonoff TH10 and TH16 by thomas day: what about 500w towel rails are they any good for those? Feb 17, 16:40
  • Sonoff TH10 and TH16 by thomas day: my heaters has a pilot wire connection below, could I use 240V (live & neutral from another feed separate to heater) into Sonoff th16 input and then connect the black wire to output on Sonoff device so only controlling low power 100mA?? See blub from spec sheet about pilot wire? Pilot Wire Connection The BLACK control wire is designed to carry a signal from slot in or wall mounted Dimplex programmers. If, however a programmer is not being used, the pilot wire should be isolated in accordance with the current IEE Wiring Regulations. IMPORTANT - DO NOT connect the BLACK pilot wire to earth. Care should be taken with the installation of the pilot wire(s) as when switching to background (set back) they become energised at 240V although only at a current of less than 100mA. In every case a suitable means of isolation must be provided for the pilot wire and marked to indicate that two sources of supply may be present at the heater. Where pilot wires are installed separately from the heater final sub- circuit they should be protected, double insulated and carry their own integral earth continuity conductor. Feb 17, 13:43
  • Sonoff TH10 and TH16 by thomas day: Would you advise using the 16amp th16 on 1500 watt non fan heater in the UK 230v? Or should I avoid trying to using any wi-fi switch with heaters? Confused as the documentation in the box shows a picture of a heater/fan being used. Feb 17, 13:05
  • DPS5020 and DPS3003 PSUs by Joe Hanley: Hi James, Apologies, actually I made a mistake in the answer above, there ARE two models of 5005, the Buck model, DPS5005, and the Buck/Boost model DPH5005, the model number you are seeing appears to be perfectly normal, the '2' in the 5'2'05 designates it as a DPH and differentiates it from the DPS Buck only model as otherwise there would be two models with 5005, so the '2' simply designates as a DPH B/B model. Hope that helps ? The other models are as normal, ie - 5020, 5005 (dps) At the moment, that is the only Buck/Boost model with comms. There is a DPH3205 however this is not available with comms. The only model NOT to have a direct correlation to the model at this time IS the DPH5005. If you used the same read on a DPS5005 you would GET 5005, and on a DSP5015 you would get 5015. Hope that clears it up and helps. What are you actually working on ? - ie: - what is your design idea ? Best regards, Joe Feb 17, 11:52
  • DPS5020 and DPS3003 PSUs by Joe Hanley: The register (11 - decimal - in Protocol address mode as opposed to PLC address mode) contains the model number- (Device ID) and this is the model number so should normally be the same, also confirm YOUR model number ? a DPH or DPS ? - there is a DPS5005 and a DPH3205 ? Let me see the contents of registers 10, 11 and 12 (decimal) please. It is possible, but I would think unlikely, that there is a mistake in the actual programming, but I would need to see more info. Thanks Joe Feb 17, 09:35
  • DPS5020 and DPS3003 PSUs by James Churchill: I just got a basic Sigrok driver going for these and I'd like to identify the unit from the value in the MODEL register, but there's no information about the mapping (my DPH5005 returns 5205, so it's not simply the model number.) Do you happen to have a list of device id's? Feb 17, 07:10
  • Welcoming in 2018 by PuceBaboon: Here's another one which might be of interest to people here (you there, TornTrousers? πŸ™‚ ). It's a working demo of an ESP8266 gateway for ESP-Now sensor nodes, using one of the cheap, W5500 ethernet boards (available from the usual sources ...but not until the new year's holidays are over!). It receives packets from the ESP-Now nodes on the ESP8266 radio and then simply squirts them out onto the LAN through the attached W5500. It's fairly fast. Lots of room for improvement, so additions and pull requests welcomed. -John- Feb 17, 01:14
  • Brian Gentles Big Timer by Brian Gentles: Hello Pete just spotted your comment- I am so pleased to see you a bit active again, and that you will soon be back to your family and friends. Just to show how much help your blog has been to me - have script running in various mods on my system. Have boards running, even managed to do Eclipse and made some roms just changing the passwords etc. Done flows in Nodered on Rpi- . This all in the last quarter of 2017. This for my sons house. I never thought at my age I could do this. MANY Thanks TO YOU. This website has formulas for virtually every programming language to convert Epoch time might be of interest. https://www.epochconverter.com/ Regards Brian Feb 16, 23:45
  • Peter Scargill Big Timer by Peter Scargill: No timestamps as never requested. Pete Feb 16, 20:45
  • Welcoming in 2018 by Leo van der Hoek: I have used a few, but do not have these troubles. I only use as NO switches. I can touch them as long as i like and they stay on. Feb 16, 20:31
  • Ariel Romero Big Timer by Ariel Romero: HI Peter! Is there a way to inject timestamps(i.e datePicker) and select the moth and dates from there? Any advice? Thanks! Feb 16, 20:25
  • Welcoming in 2018 by Ian Sexton: Thanks Leo, I'm glad it's not just me... Another TTP223 woe: My application requires that the switch may be touched for a long time. According to the Chinglish datasheet this should be ok. There is a MOTB (maximum on time) function which should be infinite on the 6 pin chips. However, in testing, a touch of only 5 or 6 seconds is possible and the device seems to switch off & recalibrate. I bought 20 of these things. Half didn't work at all & went in the bin. The other half work but exhibit this annoying 'time out' Feb 16, 17:33
  • Welcoming in 2018 by Leo van der Hoek: You have to use a wire to bridge the links. You are right without a wire it is IMPOSSIBLE to bridge the links. A little mistake in the design! Feb 16, 09:40
  • FeelTech FY6600 Waveform Generator by Insatman: https://www.k6jm.com/hs-setupocx.htm. This solves your problem...at least it worked for me Feb 16, 06:25
  • FeelTech FY6600 Waveform Generator by Dave: Hi William, NATools programs use Visual Basic. Until recently, Microsoft automatically installed the VB runtime library when Windows was installed. With recent versions of Windows, that no longer happens, and you need to get the missing library, or at least the RICHTX32.OCX file. Search for it online - it's easy to find. Here's how to install it: For 32-bit Windows: Copy it to c:/windows/system32 Click Windows Start icon at bottom left Select All Programs, then Accessories Right-click Command Prompt, then select "Run as administrator" In the command prompt, type: "regsvr32 c:/windows/system32/RICHTX32.OCX" (without the quotation marks). For 64-bit Windows 7 or later: Copy it to c:/windows/syswow64 Click Windows Start icon at bottom left Select All Programs, then Accessories Right-click Command Prompt, then select "Run as administrator" In the command prompt, type: "regsvr32 c:/windows/syswow64/RICHTX32.OCX" (ditto) This will sort out the problem. Feb 15, 23:52
  • Welcoming in 2018 by Ian Sexton: I've seen the very cheap TTP223 touch switches discussed here. Recently I had a need to use one of these latched with active low outputs. This requires bridging the two links on the PCB. I tried this & it's *#!&@* impossible!! Maybe it's my iron/solder? Maybe it's the switches I have? Has anyone ACTUALLY done this? Feb 15, 16:41
  • Variable Persistence in Node-Red by Venkatesh: Please see node-red-persist. Excellent node to save the values permanently. Feb 15, 14:52
  • Welcoming in 2018 by Ian: Get well soon Pete, I really enjoy reading your blog and I'm pleased to see that you are on the road to recovery :). I only stumbled across your site a couple of months ago, and I've been reading a lot of your Arduino and Nextion articles - the videos are great. Always good to hear a fellow Geordie! Feb 15, 11:41
  • Welcoming in 2018 by Leo van der Hoek: Are you joking? Then I have to remember them all or draw them by hand. Anyone with a better suggestion? Feb 15, 08:51
  • Patrick Chivell Welcoming in 2018 by Patrick Chivell: I’d just connect a display, try them out, to see what they look like. Feb 15, 05:54
  • Welcoming in 2018 by Leo van der Hoek: Nice to hear from you personally. I have found your tables in the source, however there is no information other then the data in the arrays .Can i find them somewhere online,how they look like? Feb 13, 19:26
  • Welcoming in 2018 by Bob Green: Great to have you back Peter but I guess you will be taking things slowly. all the very best for your continued recovery. Feb 13, 18:53
  • Welcoming in 2018 by David: Good to see you on here Pete, how are you getting on? On the up I hope. Feb 13, 13:15
  • Peter Scargill Welcoming in 2018 by Peter Scargill: May not be a definition, I didn't expect anyone to directly copy what I'd done.... Feb 13, 12:49
  • Welcoming in 2018 by leo: Any real recent news from Pete S? Leo Feb 13, 11:44
  • Mike Junor The Sonoff B1 by Mike Junor: This has changed now - Smart We Link is now an option in the devices section of "Home Control" in Google assistant. Obviously only with stock ITEAD firmware. Feb 13, 08:49
  • Sonoff T1 by Martin: Ok I got it. I was not using dout in arduino ide Feb 13, 02:58
  • Sonoff T1 by Martin: How did you succeeded? I'm at my second night trying to get it working. I have T1 3ch UK. And I'm not able to get it succeed πŸ™ Feb 13, 00:56
  • Welcoming in 2018 by Leo van der Hoek: I am searching for the defintion which fonts are built in in the latest HC2017. There are 12 numbers to choose from($F(0-12). There is nothing in the .doc what these fonts are looking like. What are those Icon sets in the appendix of the doc? Can you load another font if necessary with the help of that free software? Feb 12, 20:23
  • Welcoming in 2018 by Ian Sexton: Those of you who make/use PCBs might be interested in: https://jlcpcb.com/ I had some boards back today & they're great πŸ™‚ They have an offer running ATM and their prices are difficult to beat(?) Feb 12, 16:32
  • A busy Week by Ed Darby: Hi Chris, That's great, every blinking LED is a blink of progress! enjoy the journey into everything IoT πŸ™‚ If I can impart a few lessons I have learnt along the way, I shall and I've learnt most of them the hard way!!! Firstly I'd say, never, ever rely on a cloud based service to control anything critical, whilst it might be great to say "Hey Alexa, kitchen lights on!" there'll come a time when your internet goes out and you'll end up screaming into the darkness at 4a.m, keep it local and then port that to the outside world, securely if you need to. Secondly, times change, protocols change and in this field, they change very quickly, you wouldn't be reading Pete's blog if you didn't want to keep up with the cutting edge but most often the most simple solution is probably the easiest, for example you could connect a NodeMCU to a 433MHz transmitter to turn a socket on, you then have to work out how to power the MCU in deep sleep, or you could buy a 433MHz key fob from Ebay or AliExpress for Β£1 that will use one coin cell battery a year. Thirdly, backups, save, save and save again, you'll find a bit of code on-line, incorporate it into you project and it will work perfectly, then a year later you'll change something, it will break, you'll want to put it back to how it was and you'll be buggered if you can remember where you found that code from. Lastly, if you have an Android phone, shell out the Β£3-4 for an App called Tasker, you won't regret it and it's so useful, if you run IOS then........ πŸ˜‰ If you have any questions feel free to email me edw_darbyAThotmailDOTcoDOTuk Most of all - Have fun! Feb 11, 19:49
  • Joe Lippa Welcoming in 2018 by Joe Lippa: Here's a random tip for anyone who orders stuff via aliexpress. About a week ago I cleared cookies down for the aliexpress domain and noticed that they're running a $4 coupon promotion apparently intended for new customers only. For some reason I ended up being given this coupon when I logged on even though I've had an account for some time. Then a couple of days ago I placed an order for 3 wemos D1 minis from the official wemos shop within aliexpress and I was able to redeem this voucher at checkout time so I now have these 3 boards winging their way here for the sum total of Β£6.48. It feels like a bit of a bug in the setup of this voucher promotion. Give it a try it might work for you too. If not perhaps just creating a new account would work too. Feb 11, 16:56
  • Welcoming in 2018 by Grant Lake: Thanks Ian, you give great explanations in your projects! Feb 11, 14:00
  • DPS5020 and DPS3003 PSUs by Luc De Smedt: Usman, Communication protocol can be found here https://www.mediafire.com/folder/3iogirsx1s0vp/DPS_communication_upper_computer Feb 11, 13:17
  • DPS5020 and DPS3003 PSUs by Usman: Dear Luc thanks, what are the commands to comunicate with DPS ? Usman Feb 10, 18:24
  • Welcoming in 2018 by Bob Green: Pascual, Thanks for that explanation it clears up a few of my concerns. Feb 10, 11:46
  • Welcoming in 2018 by Pascual Guevara: A little bit... lol πŸ˜‰ At first sight, the code "just" mimic itead bins server (more info https://goo.gl/mqy5a5). It uses a Tornado web server and opens some ports (in your machine, not visible outside your network) that's why firewalls have to be disabled. If you want, you can open only the ports used and keep the firewall running. Later you have to connect to the sonoff AP, so no internet connection during the flashing. I'd trust... Feb 9, 19:45
  • Welcoming in 2018 by Bob Green: Hi all, I took a look at the SonOTA project and it looks like a very good piece of work but I have one reservation and that is turning off the firewall(s) to use it. The well written description specifically says to turn off the firewall in order to download the code to the Sonos device. That seems rather risky to me or am I being over cautious? Feb 9, 18:03
  • Silence of the Lambs by Leo van der Hoek: I am searching for the defintion which fonts are built in in the latest HC2017. There are 13 numbers to choose from. There is nothing in the .doc. What are those Icon sets in the appendix of the doc? Can you load another font if necessary? Feb 9, 15:08
  • Ian Sexton Welcoming in 2018 by Ian Sexton: Cheers Pete, I've had a quick look & it's very promising πŸ™‚ The ONLY 433MHz sniffer code I've seen which reacts *at all* to the 1byOne bells I have! I'll take a look at your transmitter over the weekend. Well done πŸ™‚ Feb 9, 14:44
  • Pete Curlywurly Welcoming in 2018 by Pete Curlywurly: Hi Ian, Reckon you could be interested in this RX sketch for an Arduino UNO. (N.B. sometimes you have to alter the value of #define minStartLow 6000 to #define minStartLow 4000 ) https://github.com/CurlyWurly-1/uno_433_sniffer_rx_tx/blob/master/sniffer_433_RX It uses a cheap 433 Mhz AM receiver to receive data via pin 2 on an Arduino UNO . It works pretty well in sniffing out most (AM) 433Mhz comms. When it sees something valid, it outputs a code to serial. All you have to do is cut and paste the code to the sister TX sketch which runs on another Arduino UNO and compile it. This 2nd Arduino outputs data on pin 3 to cheap 433Mhz transmitter to replay the signal Sister sketch is here https://github.com/CurlyWurly-1/uno_433_sniffer_rx_tx/blob/master/sniffer_433_TX Feb 9, 13:35
  • DPS5020 and DPS3003 PSUs by Luc: Usman, Sorry but I have only programming experiences with Arduino. You could try with an Arduino, A library 'modbus' and several examples are avalable on the internet Feb 9, 12:47
  • Microwave for the Weekend by JW: It's interesting that the ESP8266/32 wifi modules are setting these off. For reference I have 16 (yes Sixteen) of these inside the metal case of a 2U x86 server, and have been logging for 5 months now and have ZERO false triggers on any of the modules. I tried it as an experiment for a highly secure tamper sensor, rather than the useless microswitch intrusion sensor on most PC cases. I thought that they would false alarm constantly from being in close proximity to the main SMPS, and motherboard with all its RF emanations, however they seem to have incredibly good RF immunity to me. I have the power supplies to all of them them smoothed with a single 47uF + 220nF cap across the supply from a USB port - which I'd expect also to be pretty noisy. I was initially thinking I'd have so many for an M of N trigger response with for example 3 of the 16 triggering a zeroisation. The modules are pointed in different directions so they bounce around the internals of the server, however conveniently they do not penetrate out through the cooling holes or through the fan blades, the circa 10 cm wavelength at 3ghz doesn't seem to go through any hole up to an inch or so wide. Feb 9, 12:07
  • More Node-Red Dashboard Success by Rene Auberger: Hi Peter, in the meantime the template node got an option where you can select if it is a widget in a group or part of the page header. This way you can put styles into the header and only need one template node for your whole dashboard instead of one per page. You can also use this very conveniently to load other javascript libraries, stylesheets, set meta tags or whatever should go into the HTML header. Feb 8, 20:52
  • Welcoming in 2018 by Pascual Guevara: Hi all, I believe this is interesting for many of the blog's readers. SonOTA project (https://github.com/mirko/SonOTA) has reported an issue with sonoff 's firmware >=v1.6. They are requesting itead to allow downgrading the firmware. Please, follow the link to their github where you'll find further information. For those of you who don't know about SonOTA, it allows flashing custom firmware to a SonOFF without soldering. Feb 8, 14:25
  • FeelTech FY6600 Waveform Generator by William Hayes: I have a FY6600-M60. Works so far. I have problems with the supplied USB driver and the program drivers. The FY6600 PC Software when run shows this error: Component β€˜richtx32.ocx β€˜ or one of its dependencies not correctly registered or a file is missing or invalid. Run on windows XP and 7. Same problem. Any help is much appreciated. Tried feeltech web page D.L.s still no Good. Feb 8, 04:38
  • Ian Sexton Welcoming in 2018 by Ian Sexton: Come on folks! Pete put a lot of effort into his blog - let's keep it ticking over for him. Here is another page which might be of interest to you: http://www.myiot.co.uk/433/ Feb 7, 14:01
  • Peter Scargill The BitScope Mini Oscilloscope by Peter Scargill: Not entirely resolved and I have since looked at other low cost logic analysers. All came to a halt in December when I went into hospital. May be a while before I get back into that. Feb 6, 19:19
  • The BitScope Mini Oscilloscope by Jefferson Allan: Hi Pete, Thanks for the review. Good to see the thing put through its paces. Did you end up getting any response from BitScope about the second batch of issues? I was particularly interested in what they had to say about the UART problems. Feb 5, 22:56
  • GPIO the Hard Way by M Dietz: Thanks to the information here and https://github.com/friendlyarm/WiringNP/blob/master/gpio/gpio.c was able to get a relay programmatically working on a NanoPC-T2 with Qt C++ and Debian. This could apply to other uses and similar boards, such as LEDs and the NanoPi-2. I am using GPIOB31 or pin 15. So as John Czaia points out above, you must first get the table. It generated 32 for B (the 'B' is from GPIOB31), so add 31 (also from GPIOB31) = 63. This is the value that must be "exported" with something like: echo 63 > export (in /sys/class/gpio). Once that value is exported, another device will appear: gpio63. Also as pointed out above, once exported, it is volatile. In other words, gpio63 will disappear after a reboot (or an unexport, ie: echo 63 > unexport). Exporting (and unexporting) must be done as root so that becomes a problem because my application could not initialize or export the pin. So it has to been done at the system level on boot. So I created an executable script file named gpioexport in /etc/init.d. This may not be completely accurate but it works. The contents are: #!/bin/bash # /etc/init.d/gpioexport # initializes pin 15 or GPIOB31 on NanoPC-T2 for relay functionality # direction and dis/enable set by application # create symlink S99gpioexport in /etc/rc5.d with: # sudo ln -s /etc/init.d/gpioexport /etc/rc5.d/S99gpioexport # then add to run level with: # sudo update-rc.d gpioexport defaults ### BEGIN INIT INFO # Provides: gpioexport # Required-Start: $remote-fs $syslog # Required-Stop: $remote-fs $syslog # Default-Start: 5 # Default-Stop: # Short-Description: un/exports gpio pin ### END INIT INFO case "$1" in start) echo 63 | tee /sys/class/gpio/export echo "GPIO exported" ;; stop) echo 63 | tee /sys/class/gpio/unexport echo "GPIO unexported" ;; *) echo "Usage: /etc/init.d/gpioexport {start|stop}" exit 1 ;; esac exit 0 Notice the trick using "tee", which I first learned about here, then discovered more information why a simple "echo 63 > export" will not work. Also, once the update-rc.d is performed, the system will assign its own value from the S99. So the last things to do are open the exposed port, set the direction, "in" or "out", and then value "0" (off) or "1" (on) in the application with something like: if ((fd = fopen("/sys/class/gpio/gpio63/direction", "w")) != NULL) fprintf(fd, "out"); // set direction out if ((fd = fopen("/sys/class/gpio/gpio63/value", "w")) != NULL) fprintf(fd, "1"); // enable Of course, there may be some disagreeable programming practices in that but they are not the focus of this discussion. There are other options available in gpio63 but direction and value are all I needed for my purposes. Feb 5, 19:28
  • DPS5020 and DPS3003 PSUs by Luc De Smedt: Lambcutlet, Very very nice, thanks for the reply Feb 5, 17:48
  • Welcoming in 2018 by Jim Hiegel: I did my EE in the 70's, Took my first computer class in '68....IBM 360 hardware & architecture. Then onward & upward - still learning all this time & sometimes re-learning! Pete's done a phenomenal job & hope he continues. Now I need to look at Wemos... Feb 5, 13:32
  • DrFragle and MrShark Home Control 2017 by DrFragle and MrShark: not if you don't change the EEPROM... the stock one is 1Mb, you need a 4Mb one (32mbit): https://tech.scargill.net/32mb-esp01/ but as sonoffs do only few things (a button, a led and a relay), you can do as Peter does and install Tasmota firmware on them, then connecting with nodered, if you want... Feb 5, 08:53
  • Werner Girlich Big Timer by Werner Girlich: Maybe just using one timer for each day might be the only solution. Feb 5, 08:17
  • DPS5020 and DPS3003 PSUs by lambcutlet: Luc, to save you some hassle have a look here 'https://github.com/lambcutlet/DPS5005_pyGUI' i've been toying with this for a few weeks now. minimalmodbus on individual reads or writes is slow in the region of 350ms to speed it up you need to read & write blocks. Feb 4, 18:54
  • Werner Girlich Big Timer by Werner Girlich: I really appreciate this smart timer. But in the very moment I need help. I want to use this timer only at Mondays, Tuesdays and Wednesdays, but I need a topic/payload-massage the other days due to an AND-function which I realize with a join-node. When I blank i.e. Friday, Big-Timer's status is 'No action today' with no message at any output. Any idea? Feb 4, 15:51
  • Ian Sexton Welcoming in 2018 by Ian Sexton: This might be of interest to Peter's watchers: http://www.myiot.co.uk/doorbell/ Ian Feb 3, 19:32
  • Ian Sexton Welcoming in 2018 by Ian Sexton: Hi Bob, good tip πŸ™‚ Feb 2, 16:39
  • Nano I2c Peripheral by Leo van der Hoek: Warning to everyone using nano i2c peripheral. I found out it only works when my Wemos D1 is set to a cpu freq. of 160MHz. At 80 MHz there is some timing problem and I start missing messages in the nano ,coming out at the next command. Feb 2, 10:36
  • Welcoming in 2018 by Bob Green: Hi Ian, an excellent project. One little trick that I have taken to using in my ESP projects is to add wmos.h header file with the Wemos pin assignments set as; "static const uint8_t D0 = 16;" I do this for all the WEMOS pins. Then if I use some example code that uses the Wemos pin references it will run on a non Wemos board without having to change the pin assignments. This might help others? Feb 2, 10:13
  • Big Timer by Alberto Iglesias: Hello, I'm starting with Bigtimer to send notifications to my SLACK, but I need to know how I can schedule for specific DAY of the month, independent of month of the year. For example: Every Day 5 at 12:00 I tried to put in DAY1: 5 and keep Month with 0 but not works. Can you help me? Thank you very much Feb 1, 11:23
  • Welcoming in 2018 by Bob Green: Hi Jo, I took a look at your blog, very interesting. I liked the article on 'Strings' I have used the PROGMEM technique with good success too. I am looking forward to becoming a regular reader! Feb 1, 09:08
  • Ian Sexton Welcoming in 2018 by Ian Sexton: It takes me at least three attempts so don't lose heart! I've checked some of your pages - don't use Eagle, it's dreadful IMHO. I use Diptrace which I like a lot. OSH Park do great PCBs but they are expensive. I've been using Seeed Fusion who are excellent. Had a glance at your firmware. Quite a project!! I'll try it out when I get a mo... Jan 31, 19:10
  • Home Control 2017 by Phil Grant: Yes I works on the ESP devices, I have programmed a few of my Sonoffs with this code. Jan 31, 14:08
  • Home Control 2017 by Leo van der Hoek: There are numerous blogs about this in here. See this one https://tech.scargill.net/32mb-esp01/. Or do search on Sonoff in this blog! Jan 31, 10:04
  • Joe Bagrie Big Timer by Joe Bagrie: Hi Pete, Love the Big Timer, just started playing with it now. One thing I noticed, and I worked around it by changing my Deploy to 'only nodes that have changed', was that every time you click Deploy in a 'deploy all nodes' setting it resets the Big Timer back to auto even if I'd turned it off or stopped it. Took me a while to figure out what was happening when I was working on other parts of my automation. Just something for the noobs out there like me. Second thing is the 'speech/txt output' only outputs when the timer sends out an on or off signal. Would be great to have this also output the state of the timer, so I can see on my dashboard whether it's actually stopped, or only temporarily off etc. I'd like to have it turn the output off when I stop the timer too. At the moment when I stop it, it just leaves everything on as it was. Is that possible? Cheers, Joe Jan 31, 09:25
  • William Smith Home Control 2017 by William Smith: Im a late comer to this blog so please excuse the question if its been answered somewhere else. But First I want to pass on my best wishes to Pete and wish him a speedy recovery. Kudos to you Pete for a great repository of information. I have been messing around with the ESP-12F from China for about a year. A great little device. I was trying to get MQTT and Node-Red to install and work properly on a RPi when I found "The Script." Dang! It worked. So easy. And as Pete would say, Bob's Your Uncle!!! So funny. Well that propelled me ahead light years in my quest to replace my cludge of Insteon/ISY99, Alexa, Hue, ESP stuff and Sonoff with a more robust controller. The question is will your .bin firmware that you developed for the ESP stuff work well on a Sonoff device??? Right now I'm using Tasmota firmware and am pretty happy with it, but I want to use the same firmware across all my ESP IOT devices. So thats the question. It sure would be easier for me to manage one firmware instead of two and would satisfy the OCD part of my personality. Any insight will be appreciated. Thanks! And again, Get Well Pete!!! Jan 31, 01:43
  • Joe Lippa Welcoming in 2018 by Joe Lippa: Ah EE..that'll be why you're good at designing boards whereas it always takes me about 5 attempts to get any PCB semi-working πŸ™‚ Incidentally I open sourced my ESP8266 web based firmware onto github today. If you're interested to see how I tackled the dynamic / live web page problem, it's all here: https://github.com/jjssoftware/iD8266 Jan 30, 19:23
  • Ian Sexton Welcoming in 2018 by Ian Sexton: Hi Joe, you're lucky! I did EE in the 80s! πŸ˜‰ The "live data in a static web page" thing took a LOT more effort than I like to admit - where were you when I needed you!? πŸ˜‰ Thanks for your encouraging remarks re RFID capture. I MUST get this finished! Pete is at home now. Not sure when he'll be blogging again though. I'll try to add a few bits & pieces. Jan 30, 19:08
  • Big Timer by Tobias Pohl: Hi, i really like bigtimer, starting using it for automated 433Mhz electric socket. Now iΒ΄ve learned how to use the override which is fine. Is it possible to change the on off time with input variables ? Would be fine to build a ajustible timer for waking up in the morning Would be really great if itΒ΄s possible Jan 30, 09:04
  • Joe Lippa Welcoming in 2018 by Joe Lippa: Hi Ian great job. Makes me wish I was back in University now learning something useful with you..rather than what I did have to endure back in the day on my comp sci Bsc course in the 90's πŸ™‚ I like your approach to "live data in a static web page". It's the same pattern that I described here: https://jjssoftware.github.io/dynamic-web-forms/ I also like your RFID data capture device project. You might have the beginnings of a real product there. Jan 30, 07:52
  • Allan Mitchell Waiting for Peter, closing the 2017 by Allan Mitchell: This is an interesting video, showing the production line at the Sonoff factory. https://www.youtube.com/watch?v=uZjZZKiKlNY Jan 29, 15:06
  • Ian Sexton Welcoming in 2018 by Ian Sexton: @Patrick, thank you for your positive words! The board has been well received so far πŸ™‚ Jan 29, 14:29
  • Patrick Chivell Welcoming in 2018 by Patrick Chivell: Ian - That's a well thoughtout prototyping board. As far as code goes, I believe your taking the right approach, keep it in smallish chunks, and then let the students pull the different parts together to suit the project they are working on. Jan 29, 09:09
  • Welcoming in 2018 by Craig Whitley: Best wishes for a quick recovery. Based upon the deluge of well wishes you are a very rich man as defined by your huge number of friends. Jan 28, 21:15
  • Ian Sexton Welcoming in 2018 by Ian Sexton: I hope Peter is getting better! He's still very quiet... Maybe I can help to keep his blog going? By day I'm a university lecturer & have an interest in IoT. I've used the ESP8266 in my teaching with mixed results, some good, some bad. Recently I designed a 'one stop' board for use in a teaching environment. Gathered some code together & this is what I came up with: http://www.myiot.co.uk/wemos/ The notes are still 'beta' but the hardware is good. I'm happy to receive constructive criticism, suggestions, even code! Cheers Ian Jan 28, 16:23
  • DPS5020 and DPS3003 PSUs by Usman: Dear Luc Please tell how can I write my own routine to communicate with dps5005 for pic 16f87 Jan 27, 17:08
  • Sonoff to Mains Block by Stephen Bourne: I am an Electrical Engineer my concerns are with the phisical electrical connectors as they appear to be around 6 Amp, I use these myself but fuse them at 3Amp and enclosed within CE approved fire retardant box. Would not trust these units for any more than 5Amp Jan 27, 16:04
  • DrFragle and MrShark Waiting for Peter, closing the 2017 by DrFragle and MrShark: an other good video: convert an old smartphone to a universal remote control interfaceable with Alexa! https://www.youtube.com/watch?v=YWEyDE8Yg0k Jan 27, 13:56
  • Andy Johnson Why has Peter been so quiet? by Andy Johnson: Just seen this Hope you are on the mend, all the very best. Take care and hope to be seeing your wonderful adventures soon Jan 26, 13:55
  • Welcoming in 2018 by Richard Wenner: Wish you well! Jan 26, 10:03
  • Why has Peter been so quiet? by Tanasi: Take your time Peter, best wishes.. No need to hurry, your blog is full of info πŸ˜‰ Jan 25, 08:39