Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Nuubi
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Nuubi

    @Nuubi

    13
    Reputation
    61
    Posts
    940
    Profile views
    1
    Followers
    0
    Following
    Joined Last Online
    Location Finlandia

    Nuubi Follow

    Best posts made by Nuubi

    • Flickering problem with RGB leds and a simple solution

      I've noticed with some of the RGB nodes around the house an annoying flickering problem. It occurs when none of the R G B channels is driven at full brightness. This is especially disturbing when a lower light level is desired.

      Tried to find out a reason for this. It was not related to the Arduino used, whether it being a Nano, Uno, official or not. Also not related to using gw.wait or delay in the main loop. Or adding resistors to the fet data pins.

      Turns out it is related to the Arduino PWM not being very optimal. Tried to solve the problem by using a different approach, softPWM [e.g. https://github.com/Palatis/arduino-softpwm] but they conflicted with servo library (that uses various timers also, as soft pwms do).

      Jeelabs brought a solution; tweaking the frequency of some timers. Just tested it, and seems that the flickering is totally gone AND still the servos AND the MySensor communication works. Very happy with the result.

      This is the blog post describing the issue, the solution I used is in the comments http://jeelabs.org/wp-content/uploads/2011/11/8/fixing-the-arduinos-pwm/index.html.

      So, flickering fixed by adding TCCR2A = _BV(COM2A1) | _BV(COM2B1) | _BV(WGM21) | _BV(WGM20) to the setup. Will need to update a few nodes now!

      posted in Troubleshooting
      Nuubi
      Nuubi
    • RE: mysensors relay stops working after few hours

      "Classic" way to rule out the power source + relay related issues is to replace the relay with a led.
      Noise in power lines may stop the NRF module, but also Arduino can get messed up due to spikes in power supply.

      posted in Troubleshooting
      Nuubi
      Nuubi
    • RE: [contest] Yet another servo blind control project

      Excellent project report, Thanks!
      It made soo easy to order the required parts 🙂
      I suppose I should post my project, once it's been done, too... these things just tend to take their time (ofter years---to infinity).

      posted in My Project
      Nuubi
      Nuubi
    • RE: 9+A 5V power supply?

      @hek said:

      Hard to say anything about quality, but the following is at least in proper casing.

      https://www.aliexpress.com/item/AC-DC-LED-Switching-Power-Supply-5V-10A-Adapter-AC100-240V-to-DC5V-50W-Transformer-for/32754255352.html?spm=2114.30010308.3.25.I0CMK2&s=p&ws_ab_test=searchweb0_0,searchweb201602_2_10091_10090_10088_10089,searchweb201603_1&btsid=c1de7d92-589e-459d-8ef8-7be21d5efe40

      Have bought couple of similar ones. They are veeery noisy.... just something (depending on the use case) that might require extra components to compensate.

      posted in Hardware
      Nuubi
      Nuubi
    • RE: Has anyone made a 2 or 4 channel relay , and is that worked correct ?

      Maybe using increment operator causes your problem [https://www.arduino.cc/en/Reference/Increment]
      Replacing pin++ with pin=pin+1 in your code should fix it.

      posted in Troubleshooting
      Nuubi
      Nuubi
    • RE: Example of V_CUSTOM

      Out of curiosity....what is your use case for this? [just thinking new ways to expand my system]

      posted in Troubleshooting
      Nuubi
      Nuubi
    • RE: mysensors relay stops working after few hours

      These are most often related to noise of the power supply or other transient noise/spikes in the circuit (due to a relay for example).

      To be more specific, I'd first remove the relay from the circuit and just use a led instead. If the node works then without problems for longer time, the reason indicates it's a noise issue from the relay section.

      Similar examples can be found, e.g. http://forum.arduino.cc/index.php?topic=186879.15

      Generally these are solved by separating the power supplies, or 'de-coupling'. A good read illustrating the situation, please read it through: http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

      I have bunch of nodes that are troublesome. So fat it's been due to noisy somewhere in the circuit. Also, noticed that some nodes start to malfunction after few years due to low quality capacitors. And that is painful to cure...

      posted in Troubleshooting
      Nuubi
      Nuubi
    • RE: mysensors relay stops working after few hours

      To give a definite answer would require investigating the signals with an oscilloscope! Noisy signals can be seen quite easily, and also the effects of adding caps.

      Note, that often a combination of a larger and smaller cap is needed to solve these issues. Think that larger one smooths out the slower changes (in the power line) while smaller ones smooth out higher frequency components.

      I've ended up in some cases, depending on the power supply and the rest of the circuit, having a number of caps all over the circuit. Not pretty, not pro, but needed to stabilize the node sometimes..

      posted in Troubleshooting
      Nuubi
      Nuubi

    Latest posts made by Nuubi

    • RE: Mysensors 2.0 + Relay, DHT, and PIR - No Relay

      Isn't it so, that this code block makes the node unresponsive for UPDATE_INTERVAL 60 s? The only exception would be the digital input 3 (PIR pin).

      // Sleep for a while to save energy
        sleep(digitalPinToInterrupt(DIGITAL_INPUT_SENSOR), CHANGE, UPDATE_INTERVAL); nsert Code Here
      
      posted in Hardware
      Nuubi
      Nuubi
    • RE: 9+A 5V power supply?

      @hek said:

      Hard to say anything about quality, but the following is at least in proper casing.

      https://www.aliexpress.com/item/AC-DC-LED-Switching-Power-Supply-5V-10A-Adapter-AC100-240V-to-DC5V-50W-Transformer-for/32754255352.html?spm=2114.30010308.3.25.I0CMK2&s=p&ws_ab_test=searchweb0_0,searchweb201602_2_10091_10090_10088_10089,searchweb201603_1&btsid=c1de7d92-589e-459d-8ef8-7be21d5efe40

      Have bought couple of similar ones. They are veeery noisy.... just something (depending on the use case) that might require extra components to compensate.

      posted in Hardware
      Nuubi
      Nuubi
    • RE: 💬 Insulated Whole House Fan

      Excellent project. However, have you considered any possibility of condensation of humid air in the attic? At least where I live, that would become a problem.

      posted in OpenHardware.io
      Nuubi
      Nuubi
    • RE: mysensors relay stops working after few hours

      To give a definite answer would require investigating the signals with an oscilloscope! Noisy signals can be seen quite easily, and also the effects of adding caps.

      Note, that often a combination of a larger and smaller cap is needed to solve these issues. Think that larger one smooths out the slower changes (in the power line) while smaller ones smooth out higher frequency components.

      I've ended up in some cases, depending on the power supply and the rest of the circuit, having a number of caps all over the circuit. Not pretty, not pro, but needed to stabilize the node sometimes..

      posted in Troubleshooting
      Nuubi
      Nuubi
    • RE: mysensors relay stops working after few hours

      These are most often related to noise of the power supply or other transient noise/spikes in the circuit (due to a relay for example).

      To be more specific, I'd first remove the relay from the circuit and just use a led instead. If the node works then without problems for longer time, the reason indicates it's a noise issue from the relay section.

      Similar examples can be found, e.g. http://forum.arduino.cc/index.php?topic=186879.15

      Generally these are solved by separating the power supplies, or 'de-coupling'. A good read illustrating the situation, please read it through: http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

      I have bunch of nodes that are troublesome. So fat it's been due to noisy somewhere in the circuit. Also, noticed that some nodes start to malfunction after few years due to low quality capacitors. And that is painful to cure...

      posted in Troubleshooting
      Nuubi
      Nuubi
    • RE: Repeaters and Fixed Parents on sensors... [SOLVED]

      In some cases it is also useful to force the NodeId of the repeater to be the parent (obvious, still took some time to understand it)

      posted in Troubleshooting
      Nuubi
      Nuubi
    • RE: Reporting Battery Level

      @Fat-Fly Nice, interested to try this also.
      Any idea how long the batteries will last? Electricity meters tend to blink quite often, so not that much sleep..

      posted in General Discussion
      Nuubi
      Nuubi
    • RE: Example of V_CUSTOM

      Out of curiosity....what is your use case for this? [just thinking new ways to expand my system]

      posted in Troubleshooting
      Nuubi
      Nuubi
    • RE: [v1.5 API] parentNodeId AUTO?

      Ahh, thanks!

      I have ack set to false (the last installed sensor version), so this rules out the search function, I assume!

      posted in Development
      Nuubi
      Nuubi
    • [v1.5 API] parentNodeId AUTO?

      Hi there!

      Been struggling with my mailbox sensor radio coverage for a while (tried various radios, antenna modifications etc the normal route to insanity while having lots of fun).

      Now wondering how the radio initialization routine works: if parentNodeId setting is AUTO (the default), does the node find the 'best' parent every time the node is reset/rebooted, or is it merely a one time process?

      posted in Development
      Nuubi
      Nuubi