author
56Instructables1,941,587Views3,774CommentsEuropeJoined February 14th, 2009
I am a physician by trade. After a career in the pharmeceutical world I decided to take it a bit slower and do things I like. Other than my hobbies that involves grassroots medicine in S.E.&P Asia. I have built low income cow dung bio-reactors, solar lamps and family fish ponds as well as houses out of every kind of thinkable material. Instructables is an endless source of inspiration for my projects.

Tell us about yourself!

Complete Your Profile

Achievements

1K+ Comments Earned a gold medal
1M+ Views Earned a silver medal
Gardening Challenge
Contest Winner First Prize in the Gardening Challenge
Show 1 More »
  • Introduction Library WifiManager for Esp8266

    I am a bit confused.take for instance step 12, where extra parameters (e.g. Thingspeak API) appear. Obviously that is something that need to be programmed in your ino file, but I see no explanation of that, just a screenshot of a menu.

    View Instructable »
  • A Simple MQTT Pub/Sub Node With Arduino UNO and W5100 Ethernetshield

    Thank you. I am not using websockets at the moment, so will not be developing any code for it in foreseeable future

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable AC PWM Dimmer for Arduino9 days ago
    AC PWM Dimmer for Arduino

    The code depends on what you want to do, but the circuit is controlled by the analogWrite function from a pwm pin

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Arduino Controlled Light Dimmer9 days ago
    Arduino Controlled Light Dimmer

    Something odd in instructables, as I am quite sure I replied your question some time ago, but now I cant find my reply. Maybe I forgot to click something, apologies. Can I suggest you change int dimming =128 into "volatile int dimming =128"

    in principle yes, but dimming usually not that good for the life span of halogen bulb.

    apologies for the late reply, sometimes somehow I don't see questions pop up.the avr.io.h file is for avr architecture. If I now look at the old code I even wonder why I put it in. I suggest you just leave it out

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable 433 MHz Coil Loaded Antenna9 days ago
    433 MHz Coil Loaded Antenna

    Look great, thanks for the upload

    View Instructable »
  • diy_bloke commented on Nematic!'s instructable DIY Arduino Nano !13 days ago
    DIY Arduino Nano !

    Looks great. Ofcourse one can get a nano knock off for 2 euro but this seems like a great excercise in and soldering

    What exactly do you need help with?

    View Instructable »
  • Hearing Impaired Doorbell Room Light Hack

    Well done. I am a bit surprised you didn't get the cheap switch to work: pressing a button is pressing a button but maybe it needed two buttons :-)I made something similar once but used one of those cheap 433mhz transmitters and 3 plug in remote switches. As I had one of those old classic doorbells, I used an optocoupler to pick up the signal.

    View Instructable »
  • How to Measure AC Current Using Hall Effect Sensor With Arduino or Other Common Microcontrollers

    interesting site, but as far as I can see, Harry loses the negative sine as I don' t see him offsetting the AC at all. His formula however is great.... if the 'zero crossing' had a 1/2Vcc (or 1/2 Vpp) offset

    View Instructable »
  • diy_bloke commented on MissionCritical's instructable ARDUINO BASED OIL DISPENSER5 weeks ago
    ARDUINO BASED OIL DISPENSER

    Fantastic. Not sure how useful but great anyway.Builders may consider using a peristaltic pump

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Arduino Controlled Light Dimmer7 weeks ago
    Arduino Controlled Light Dimmer

    is that a 12Volt DC?if you are thinking of dimming the primary side, that usually has a transformer, it is not impossible, but not optimal. I would rather thinkof dimming the secondary side, either with PWM, if DC, or a triac if AC

    Thijs, that is definitely a bit of a bummer. It has been a long time since I used this code and don't recall any problems with it.18mS is a bit of an odd value, as the entire cycle should be dealt with in 10 mSec.you say it caries from 0-128 every 18mS. Could you expand on that a bit more? do you mean that even if you don't touch anything, it flips from 0 to 128 every 18mS? or do you mean something else?

    View Instructable »
  • Raspberry Pi PowerHAT - Powering Your Pi, Simplified

    oh it definitely is and I am no stranger to building something that economically did not rival anything on the shelf

    View Instructable »
  • Raspberry Pi PowerHAT - Powering Your Pi, Simplified

    Very nice, well done, but time flies and as we are two years down the line it would be cheaper to buy one :-)

    View Instructable »
  • A Simple MQTT Pub/Sub Node With Arduino UNO and W5100 Ethernetshield

    I attached a new code at the bottom of the instructable

    View Instructable »
  • A Simple MQTT Pub/Sub Node With Arduino UNO and W5100 Ethernetshield

    The callback function is called whenever a topic arrives that the client has subscribed to. Both the topic as well as the message are passed in the callback function.What you need to do is check in your callback function what exactly the incoming topic is (which relay?) and what the message is (ON or OFF?)So suppose you want your relays to be switched with the following topics:home/relay/onehome/relay/two……..home/relay/sixthen you declare your subscription like thishome/relay/#In your callback you then do the following checks:if (topic=="home/relay/one) { if (message=="ON") ---> then switch relay on if (message=="OFF")--->then switch relay off}if (topic=="home relay/two") {etc}ofcourse this is only one way of doing it, you could do it ...

    see more »

    The callback function is called whenever a topic arrives that the client has subscribed to. Both the topic as well as the message are passed in the callback function.What you need to do is check in your callback function what exactly the incoming topic is (which relay?) and what the message is (ON or OFF?)So suppose you want your relays to be switched with the following topics:home/relay/onehome/relay/two……..home/relay/sixthen you declare your subscription like thishome/relay/#In your callback you then do the following checks:if (topic=="home/relay/one) { if (message=="ON") ---> then switch relay on if (message=="OFF")--->then switch relay off}if (topic=="home relay/two") {etc}ofcourse this is only one way of doing it, you could do it more efficient, e.g. by stripping the "home/relay/" part of the incoming topic and then use a case statement. That is even easier if you use numbers to address the relays:home/relay/1 ……….home/relay/6newtopic= Rightstring(topic,1);switch newtopiccase "1" do ON/OFF checkcase "2" do ON/OFF checketc etcin this example https://arduinodiy.wordpress.com/2018/06/14/simple...I switch 4 relays. It is quite modular and can easily be expanded to six or 8 or 100 relays

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable AC PWM Dimmer for Arduino2 months ago
    AC PWM Dimmer for Arduino

    It is forming a PSU for the IGBT/FET that is separated from the power going to the lamp. Although theoretically you could do without D1, that would leave C1 to smooth the raw rectified voltage for the lamp as well and that is just not as effective

    View Instructable »
  • A Simple MQTT Pub/Sub Node With Arduino UNO and W5100 Ethernetshield

    Download this file and try again:https://drive.google.com/open?id=1x6k5WDlocTFux0lB...Note I have not been able to test it myself yet as my W5100 shield is engaged in another project, but I think it is solved now.I made small changes, namely that the commands are now ON and OFF rather than 1 and 0.Please let me know the result. If it doesn't work, I guess I have to pull out my shield and try here

    It has been a while since I used this code. As a result of your question I looked at it again and cant immediately find anything wrong. I will pull out my Arduino and ethernetshield and see what could be causing it.In the mean time, if you have MQTT-spy installed, you could have a look if perhaps an unexpected mqtt message is sent.

    View Instructable »
    • Driving a 4 Channel Relay Board With ESP8266-01 and MQTT and OpenHAB
      121 views
      4 favorites
      0 comments
  • diy_bloke commented on diy_bloke's instructable Arduino Controlled Light Dimmer3 months ago
    Arduino Controlled Light Dimmer

    what lamps are you using?

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable AC PWM Dimmer for Arduino3 months ago
    AC PWM Dimmer for Arduino

    I am really lost at what and how you are measuring.there cannot be a minus voltage of 130.you say 330 volt at the capacitor and -130 volt at D1 that is just physically impossible.The "So 200Vdc at load" I do not understand other than that you deduct 2 voltages of which I have no idea where you measured one ofAnyway If there is 200 Volts over your load, then it is ON.Where is the 110 VAC that you measured coming from?I am more than willing to help but what you write makes no sense to me.

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable AC PWM Dimmer for Arduino3 months ago
    AC PWM Dimmer for Arduino

    -130V ?? How can you measure a minus voltage there??Anyway 15 Volt should be enough to open the fet.Can you check your connections. If those are OK, I start to doubt your FET

    View Instructable »
  • diy_bloke commented on bcointepas's instructable Autonomous Kitchen Garden3 months ago
    Autonomous Kitchen Garden

    nicely done, just a few questions: you have 6 pots each with a sensor (I presume) plus one sensor for the water level, makes 7. but you only have 6 in your schematic drawing, but then in your code you only seem to have 5.Please keep in mind that with continuous voltage on your sensors they will deteriorate pretty fast

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Using the 4 Pins of the ESP8266-013 months ago
    Using the 4 Pins of the ESP8266-01

    KatonaThat should be simple, just take a BMP280 instead of the BMP180.You may need to use the new BMP280 libraryLeave out the code for other sensors and the OLED.Apologies for my late reply, had some health issues

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Arduino Controlled Light Dimmer3 months ago
    Arduino Controlled Light Dimmer

    Hi Syed, That actually does surprise me.That would mean that one cant get the lamp to dim below 50%. I can just dim it all the way down.Could there be a problem with your triac.Also apologies for my late reply. have som health issues that kept me away from insructables

    View Instructable »
  • diy_bloke commented on Naran's instructable DIY Smart Home Doorbell for Less Than $40!3 months ago
    DIY Smart Home Doorbell for Less Than $40!

    connect the output pin of a motionsensor (e.g. a PIR) to a pin of the raspberry.Whenever the pin goes HIGH instruct camera to take picture. A short python program can do that.Wasn't sure what you meant with the 'in 5 seconds'. Does that mean someone needs to be present for 5 secs? then just set timer and recheck if still presence in 5 secs

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable AC PWM Dimmer for Arduino3 months ago
    AC PWM Dimmer for Arduino

    Ardian, somehow your question escaped my attention. Apologies.Could you perhaos measure the voltage on the gate (please be careful) and let me know what it is?

    Christian, apologies I overlooked your question. Normally I try to reply asap, but yors escaped my notice.An incandescent bulb is almost a pure ohm resistance so yes yoy can change it for a resistor

    View Instructable »
  • Automated Garden Monitoring System - Slimme Serre

    looks great. It looks like your moisture sensor is continuously connected to a voltage and thus continuously a current will flow causing rapid detoriation of your sensors through electrolysis.There are simple remedies 1-feed the sensors from an I/O pin that you only make high during the reading.2-get a simple capacitive module. there are several kinds, but the one Ilink to can directly be read by an analog port https://www.aliexpress.com/item/Capacitive-Analog-...

    View Instructable »
  • diy_bloke commented on JonasBoecquaert's instructable Lewekas - a Homemade Incubator3 months ago
    Lewekas - a Homemade Incubator

    looks good but my first hunch would be that the DHT22 might not be accurate enough to give you the correct temperature. Could consider a DS18B20(plus a DHT for humidity) .The heating element is a bit unclear. Is that an air heater? It is in fact what the lamps also do.How do you turn your eggs?The door sensor is a nice touch, but as you already mentioned, also a bit accident prone.The motionsensor is certainly a nic touch too, but it could also pick up the multidaily eggtuning

    View Instructable »
  • The Absolutely Worst Raspberry Pi Case

    not ugly at all, just basic....but sufficient and certainly handier than many fancier casings that are too small to add HAT internally or too high to add it externally

    View Instructable »
  • Automated Chicken Coop Door (schoolproject)

    nice project.it was a bit unclear to me why you use 2 servos. One to lift the door and the other?????? or do they both lift the door?You advise to use stronger servos when you build this for real. That certainly would be necessary, but it could turn out to be a rather expensive servo. Other options are a motor that lifts the door via a pulley system, or a motor driving an extender shaft (sort of a diy linear actuator), that will certainly be cheaper :-)

    View Instructable »
  • Powerful Standalone Home Automation System - Pi, Sonoff, ESP8266 and Node-Red

    running your system locally has many advantages. I am using openhab +mosquitto on a Pi, with a lot of ' satellites' such as the sonoffs, but the principle is the same

    you probably are aware of the scargill 'script' for DietPi, I take it? if not it is worth checking out

    View Instructable »
  • diy_bloke commented on mjrovai's instructable Pan-Tilt Multi Servo Control3 months ago
    Pan-Tilt Multi Servo Control

    very interesting, thanx. I understood from several buyers that the pan/tilt unit you linked to has some issues: supposedly the servo' s do not fit properly and some handy work is needed. Nevertheless a good starting point

    View Instructable »
  • diy_bloke commented on Borya's instructable ESP8266 GMail Sender3 months ago
    ESP8266 GMail Sender

    Your question is easier to answer if you say what your problem with #include "Gsender.h" is.Anyway, I am going to throw in a few possibilities1: you have not installed the Gsender.h lib ->install it2: you have put it in the wrong place. with #include "Gsender.h", the compiler expects to find it in the sketch directory. If you are using the greater than and smaller than signs it expects to find it in the libraries folder

    I know its been 11 months since you asked so I hope you got it to work, but I will address it anyway.The ESP8266WiFi is part of your ESP8266 core that you should have installed.the amazon link shows an esp8266-01, whereas this project is done with an ESP8266-12, that breaks out more pins, but in essence there is not so much difference

    View Instructable »
  • Hacking a Sonoff Touch Panel to Work With MQTT and Homeassistant

    I know it has been a while since this question was posted but let me just confirm; yes if something works with MQTT it will work with openhab.the openHab community documentation gives ample instructions, but it comes down to:Installing the MQTT bindingConfiguring yr services/mqtt.cfg file send MQTT commands

    What Graham says is correct. I managed to make contact with the 4 hole header by pushing in a 4 pin male header.I used a female to male DuPont wire to pick up the ground from the square 4 pin connector at the backside and push the male end against GPIO0 while inserting the FTDI module in USB.Nothing soldered at all.

    View Instructable »
  • diy_bloke commented on the_3d6's instructable Arduino CO Monitor Using MQ-7 Sensor4 months ago
    Arduino CO Monitor Using MQ-7 Sensor

    Thanks for your detailed reply. yes I had seen the proposal for the alternative approach. I may use a FET, and try that.I guess that understandably, the manufacturer would like to keep the module simple and useable for other MQ sensors as well, but not connecting the heating coil to the Vcc would have made more sense. As it is I am afraid many people will just use the module 'as is' and got totally irrelevant readings. Especially the Dout is totally irrelevantYou seem to be one of the few people who made am MQ 7 project after actually reading the datasheet.As for the 'load' resistor, was only referring to it as such as that is what the datasheet is calling it.i'll hae a closer look at step 3 pics.thanks

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable 433 MHz Coil Loaded Antenna4 months ago
    433 MHz Coil Loaded Antenna

    Thanks for sharing :-)

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable AC PWM Dimmer for Arduino4 months ago
    AC PWM Dimmer for Arduino

    average

    There is no sketch, you need to send a PWM signal to the FET. Not sure what a DHT22 has to do with it

    Ah, I see what you are driving at, you want the outcome of a DHT22 reading to be translated in a setting for the PWM dimmer.That' s simple, just read the DHT22 and map the pitcome to an analogWrite value between 0 and 255

    The main issue is to be able to provide enough voltage to the gate of the FET. as long as you reach 15 Volt and still have a somewhat reasonable current left it will be fine.The thing with FET' s is that you need to use them as a switch, not as a variable resistor. That means you want to switch them fast. The 100k resistor(and in your case 300k) will form an RC time with the input capacitance of the FET that could be around 9-20pF. It is best to keep that RC time as low as possible, so with a 300k resistor, the FET will switch a bit slower, but I think it is still all reasonable

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Arduino Controlled Light Dimmer4 months ago
    Arduino Controlled Light Dimmer

    This circuit works with phase cutting, not with PWM. Not sure what DHT22 has to do with it but I guess you want to set a specific value, depending on temperature / humidity.That is not hard, just read the dht and ma the outcome to a range of 1-128 for the dimming variable

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable 433 MHz Coil Loaded Antenna4 months ago
    433 MHz Coil Loaded Antenna

    my pleasure. Indeed makes a great difference

    View Instructable »
  • diy_bloke commented on TheCircuit's instructable Interface LM35 With NodeMCU4 months ago
    Interface LM35 With NodeMCU

    The nodemcu already gives a full 1024 reading at 1 volt so the calculation is wrong. Also it needs a minimum voltage of 4 volt I believe

    I think you might have made a calculation error. The analogue input measures up to 1 volt not 3.3 volt

    View Instructable »
  • diy_bloke commented on TheCircuit's instructable Interface Moisture Sensor With NodeMCU4 months ago
    Interface Moisture Sensor With NodeMCU

    Similar as to.my comment on your Arduino - moisture project, if you use the analogue output of the module there is no need to use the module at all as it has no function. Just connect the sensor to the analogue pin of thenodemcu

    View Instructable »
  • diy_bloke commented on TheCircuit's instructable Moisture Control Unit - MCU4 months ago
    Moisture Control Unit - MCU

    Very good but the modulevis superfluous. You connect your Arduino to the analogue output of your module, but the analogue out is directly connected to the sensor itself, bijpassing the competitor on the module. The module is only necessary if you want to get a high low signal but in your car can also directly connect the sensor to an analogue pin of the arduino

    View Instructable »
  • Make Geneva Wheels of Any Size in a Easier Way

    Pretty nifty and actually exactly what I need

    View Instructable »
  • The Artificial Plant Emotion Expressor (A.P.E.X.)

    I fully agree with that, apart even from the fact they are rather overpriced.I have worked with capacitive sensors and I found the swing they have a bit of a nuisance, though I am sure with proper cables that can be minimized.Really, for amateur use the best and cheapest might just be two galvanized nails and then, if you would interrupt the current to those nails for the moment you are not taking a reading (you really only need a few readings per day), they will last years

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable AC PWM Dimmer for Arduino4 months ago
    AC PWM Dimmer for Arduino

    Ali,As I understand, the effective voltage is some 207 Volts UxU/R then gives 429mW. But I could be wrong.It won' t harm to use a 1 Watt resistor. Always better to have some space in the specs

    Though I know 'hot' can be very different for various people, you could take a 1 Watt resistor... if you are sure all the connections were made right.Thanks for sharing your photos

    View Instructable »
  • Automatic Chicken Coop Door - Arduino Controlled.

    interesting.A simple approximation of sunrise and sunset can be found here: https://arduinodiy.wordpress.com/2017/03/07/calculating-sunrise-and-sunset-on-arduino-or-other-microcontroller/

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable AC PWM Dimmer for Arduino5 months ago
    AC PWM Dimmer for Arduino

    @John123456, I received your question in my mail, but I do not see it appear anywhere here.Anyway, the max current of the bridge depends on how big a load you want to use it for. So if you have a 1 amp bridge, a 220 Watt lamp is the max Hi diy_bloke!To view all your comments in one place please visit your Comment Tracker:https://www.instructables.com/member/diy_bloke/comments/From: jon123456Date: May 17, 2018. 5:01 AMSubject: https://...

    see more »

    @John123456, I received your question in my mail, but I do not see it appear anywhere here.Anyway, the max current of the bridge depends on how big a load you want to use it for. So if you have a 1 amp bridge, a 220 Watt lamp is the max Hi diy_bloke!To view all your comments in one place please visit your Comment Tracker:https://www.instructables.com/member/diy_bloke/comments/From: jon123456Date: May 17, 2018. 5:01 AMSubject: https://www.instructables.com/id/AC-PWM-Dimmer-for-Arduino/I have an even question about the components of the system whether you used a capacitor for 400V or 0.5W zener diode is enough, I used the db107 rectifier bridge has it max 1A or is it a bit not too little?

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Arduino Controlled Light Dimmer5 months ago
    Arduino Controlled Light Dimmer

    yes, you may need to adapt the gate resistor a bit as the TIC is a bit more sensitive than the BT136

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Arduino Controlled Light Dimmer5 months ago
    Arduino Controlled Light Dimmer

    Thank you for your kind words.the module from aliexpress has a Z-C pin, that goes to your interrupt pin on the UNO (pin 2). It also has a PWM pin that goes to the output pin (pin 3) of the UNO (it is not really a PWM signal, the Chinese just labelled it that way)

    I thought I replied already but suddenly I cant see my reply anymore.The pin is set for interrupt in the program and then the zerocross circuit triggers it.yes you can have a single UNO control multiple dimmers, but even then you only need one zerocross detection as all the dimmers are referenced from there.If you would use multiple zerocross detections they all would trigger at the same time

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Simple and Cheap Fuse Doctor for Attiny5 months ago
    Simple and Cheap Fuse Doctor for Attiny

    Great. Not sure if the diode is necessary but it wont hurt. Thanks for sharing

    View Instructable »
  • diy_bloke commented on yhtomitsy's instructable WS2812 and WS2811 Comparison5 months ago
    WS2812 and WS2811 Comparison

    Is it just me or is your title saying WS2812 vs WS2811, while your text is only talking abt WS2812 vs WS2812B?

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Simple and Cheap Fuse Doctor for Attiny5 months ago
    Simple and Cheap Fuse Doctor for Attiny

    interesting, you are in fact the 2nd one to approach me about chips not working straight from the factory. Asian Webstore??Not sure if the attiny doctor can help as the chip apparently isn't found but with 15 it might be worth a try

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable AC PWM Dimmer for Arduino5 months ago
    AC PWM Dimmer for Arduino

    Though I am sure I replied, I cant see my reply anywhere anymore,Anyway, you need to put the optocoupler in series with the 100k resistor

    View Instructable »
  • Building a Simple and Cheap Egg Incubator

    The hot days are not really an issue, it is more the cold days :-)But you are right, frequent switching will wear out the lamp. The answer though is simple: Using the WS1209 is simple as it is integrated with a relay. However, I also made one with an Arduino in which I used a TRIAC. As it switches on zerocrossing, the lamp is spared much more.The reason that I didn't use the AC PWM dimmer is because I had not made that by then.Using the dimmer would only be beneficial over a zerocross optotriac if I would add some form of PID, which until now I havent

    View Instructable »
  • Capacitive Soil Moisture Measuring (with I2C)

    Sure the "Siemens" is conductivity which is 1/ohm, but if after reading the title and the description, plus seeing the RC oscillator and seeing the formula in which the outcome is in microseconds and I also express those microseconds in a frequency, plus describe the Leyden jar, I am surprised it took you to 'pulseIn' to understand what I have been saying and describing from the start: that it is capacitive

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Arduino Controlled Light Dimmer5 months ago
    Arduino Controlled Light Dimmer

    looking great, thanks for sharing

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Simple and Cheap Fuse Doctor for Attiny5 months ago
    Simple and Cheap Fuse Doctor for Attiny

    I am not too familiar with the 84a. but it seems indeed yours is bricked

    View Instructable »
  • Building a Simple and Cheap Egg Incubator

    yes i did. I found it the most reliable

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable AC PWM Dimmer for Arduino5 months ago
    AC PWM Dimmer for Arduino

    Oddly I cannot see my reply anymore, though I am fairly sure I did reply.Yes you can use one bridge rectifier

    your circuit is too dark, I cannot see it

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Adding the BMP180 to the ESP82665 months ago
    Adding the BMP180 to the ESP8266

    usually a WDT reset is a powersource problem. Having said that, a few months ago I suddenly also had a similar problem with my BMP180. Couldn't figure out why as it seemed broken. Got a BME280 and that worked again.So, lets see, just a few questions:Are you using a BMP180 or a BMP085?Which ESP8266 are you usingWhich BMP library are you using?What are you using as PSU?

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Arduino Controlled Light Dimmer5 months ago
    Arduino Controlled Light Dimmer

    great, thank you for sharing

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Arduino Controlled Light Dimmer5 months ago
    Arduino Controlled Light Dimmer

    stil looking at it, I think you did fantastic job

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Arduino Controlled Light Dimmer5 months ago
    Arduino Controlled Light Dimmer

    I never used Blynk so i do not know what kind of info it sends to the ESP8266, but if it is a number you have to use that number as your dimming variable. The basic workings of the dimmer program is:Establish zero crosswait a certain amount of timeignite the TRIAC.The time you wait determines the dimming level: the longer you wait, the less intense the lamp will burn.So can basically use program number 1, or the one with the timer and then use the info from Blynk as your dimming level.in th program that is the integer ' dimtime'. to make it have 128 steps, i use the variable 'dimming' I presume the slider from Blynk goes from 0-100, so you best multiply that with 100 to get your 100 steps (from 0-10.000usec).The way this works is all explained in the text

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Arduino Controlled Light Dimmer5 months ago
    Arduino Controlled Light Dimmer

    I see no reason why it would not work on an E SP.With all due respect, you more or less demand that I make a connection diagram and write full code to 'make it work' with a service (Blynk) that I do not even use, for your final project and to hurry with it?Thats not how it works but I can give you some pointers.You say you used my first program but it doesnt work from Blynk.That is not surprising as that program doesnt have any webconnectivity.So you would have to set that up and from then on the only thing you need to do is to select an interrupt pin on your nodemcu for the zerocrossing signal and another pin for the output.Practically any pin of the nodeMCU (with exception of pin 16) can be used as an external interrupt and here you will find a description of how to do that: https:/...

    see more »

    I see no reason why it would not work on an E SP.With all due respect, you more or less demand that I make a connection diagram and write full code to 'make it work' with a service (Blynk) that I do not even use, for your final project and to hurry with it?Thats not how it works but I can give you some pointers.You say you used my first program but it doesnt work from Blynk.That is not surprising as that program doesnt have any webconnectivity.So you would have to set that up and from then on the only thing you need to do is to select an interrupt pin on your nodemcu for the zerocrossing signal and another pin for the output.Practically any pin of the nodeMCU (with exception of pin 16) can be used as an external interrupt and here you will find a description of how to do that: https://techtutorialsx.com/2016/12/11/esp8266-exte...remember to keep interrupt variables that you would use outside the interrupt volatile.Should you have any further questions I' d be happy to answer thos

    one additional remark, sometimes with the ESP8266 it works better to keep the interrupt routine in memory all the time, like this:void ICACHE_RAM_ATTR zerodtectISR() { // ISR code}

    View Instructable »
  • diy_bloke commented on Astaff's instructable Python and Raspberry Pi Temperature Sensor5 months ago
    Python and Raspberry Pi Temperature Sensor

    Nice projectOne thing with the DS18B20 and the raspberry still eludes me, but that is not your fault. Why is it necessary that the values be written to a file that then needs to be parsed. In contrast, an Arduino can just read the values directly.Now people will say: that is "because the Arduino is faster". Well yes, no doubt, but the raspberry CAN read the DS18B20 and if it can put the results in a file, why cant it assign the value directly to a variable. at least it would prevent SD card wear.Anyway, that is just an axe I have to grind and obviously it is not your doing :-)

    View Instructable »
  • diy_bloke commented on IOT_123's instructable IOT123 - HV ATTINY85 Fuse Resetter5 months ago
    IOT123 - HV ATTINY85 Fuse Resetter

    Well done. The one in my blog that you refer to is mainly meant for those who incidentally need to unbrick an attiny13/25/45/85 or reset P1.If one plans to do it on a regular base, a build with a dedicated Arduino such as in your project might be a more suitable option

    View Instructable »
  • Working With the Funduino W5100 Ethernet Module.

    I am happy I could be of help. Quite an undertaking you plan. Are you sure about the W5100? did you consider the W5500? that last one is a bit more modern

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Arduino Controlled Light Dimmer6 months ago
    Arduino Controlled Light Dimmer

    no sure what library you are referring to.perhaps you were using the millis() timer wrong. Can either reset the assigned variable when it reaches 1000 or check if the modulo 1000 equals 0,but for now I would just leave it as is

    View Instructable »
  • diy_bloke commented on AntMan232's instructable Raspberry Pi I2C (Python)6 months ago
    Raspberry Pi I2C (Python)

    the i2cdetect -y 0 command didn't do it for me.I2c-detect -y 1 however did

    I see you beat me to it with 4 years ;-)

    View Instructable »
  • diy_bloke commented on diy_bloke's instructable Arduino Controlled Light Dimmer6 months ago
    Arduino Controlled Light Dimmer

    Let me two more thing on top of my earlier advise to use the 'volatile' keyword.1-the use of 'delay' is always a bit tricky, especially if you use interrupts as well.I understand why you use delay(1000), so your screen will not be swamped with output, but consider the use of the millis() statement: use that in a counter that you let count to 1000.2-i am not sure what routine is behind 'interrupt()' and 'nointerrupt' but the shortest way to disable interrupts seems to be using the ATOMIC_BLOCK macro: https://www.arduino.cc/reference/en/language/varia...I however do not have experience with that myself

    View Instructable »
  • More Activities