Navigation

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

    ejlane

    @ejlane

    63
    Reputation
    120
    Posts
    63
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    ejlane Follow

    Best posts made by ejlane

    • RE: My rPi gateway suddenly stopped working, no idea what else to try...

      Just a warning upfront - I'm an engineer, but not an RF engineer, so I do see some things, but I'm almost guaranteed to miss others.

      As far as your highlighted line, it is a trace, but not a via. A via connects the trace on one plane of copper with a trace on another plane.

      That trace should really be as short and direct as possible. Wrapping around the back of the module and along other signal lines is not a good idea. I see that the closest line to it is 3.3V power, so that acts basically as ground for small signal, but any power spike is bound to couple into the antenna line as well, at least some. If possible, it would be best to have ground on both sides of the antenna trace on that side of the board, as well as the whole surface on the other side of the board from it. Might also want to guard it by having vias connect the ground planes on either side of it to make kind of a 3d cage around it.

      Additionally, you should try for 50 ohm trace impedance on the antenna line. However, there is no one-size-fits-all answer for the width of this line. It depends on the exact board parameters, and even to a small amount on the frequency of the signal. There are trace width impedance calculators that you can use to get this answer. https://resources.pcb.cadence.com/blog/2019-just-how-wide-should-a-pcb-50-ohm-trace-width-be

      Almost guaranteed that it's correct to ground those 4 outer pins of the antenna connector. View the datasheet of the specific connector you are using to be 100% sure.

      posted in Troubleshooting
      ejlane
      ejlane
    • RE: Zigbee gateway with support for multiple vendors?

      I have a Nortek GoControl USBZB-1 zwave/zigbee hub. I've been very happy with it. I've mostly used cheap devices with it, and only maybe 2 more mainstream things, like a Philips light. Other than lights, I think I only have a bunch of these plugs around: https://smile.amazon.com/gp/product/B08L3K5KPB

      Anything branded Zigbee is supposed to be certified to work with any Zigbee network, but I have no idea what the big names do on top of the protocol. I've also never used a name-brand bridge device, so I've never really looked into what it might need. Home Assistant knows that it's a Philips light connected to it, but that's because it asks the devices for their info, and things like brand and serial id get returned to it. Probably other stuff - it's been a while since I looked. Anyway, even though it knows all that about the light, it's just using the basic Zigbee driver for it through the USBZB-1 gateway, and it has full control and it all works fine. I'm pretty sure it's not sending out custom Philips commands to the light, but just standard stuff.

      Hope that helped a little! 🙂

      posted in General Discussion
      ejlane
      ejlane
    • RE: 3d hubs alternative?

      @NeverDie Yeah, but when I priced out domestic places, they all wanted enough that the client just decided to go a different way. This was only going to be for a prototype, but even so, I got prices ranging from I think $10-50 per pin holder, and it was less than 2 grams of plastic each. I just checked again, and JLCPCB would do them for $1 each, and then $20 for quick shipping, and as low as $4 for the slow boat that takes a month. None of those options were very appealing at the time.

      Digikey wants $13.66 each for this when I pick qty 10, so still not worth it for this project. Shipping with them is free, but I have no idea how quick they would be.

      I also checked PCBWay, just for fun, and they quoted 1.24 at qty 10, for $12.45 total. Interestingly, the quote for 1 was $12.45 also. 🙂 They wouldn't show an estimate for shipping without clicking the 'Submit' button and having a human engineer review the file for printability. Since I'm not actually going to do this now, I don't want to waste their time, so I don't have a total price from them for comparison.

      As far as OP, this is a very old thread from 3.5 years ago, so I doubt that they still need help.

      posted in Enclosures / 3D Printing
      ejlane
      ejlane
    • RE: Microwave oven (no kidding :D)

      Yes on the flyback diodes.

      However, the upper transistors look like they're NPN, not PNP. The lower transistor would be PNP.

      Otherwise, it looks like it would work, as long as all of the transistors are sized correctly for the current on the relay coils.

      But I would be really hesitant to try to control that kind of power with an arduino. What happens if your code has an error and locks up? What if you have the magnetron running but not one of the heaters? I don't have answers, as I don't understand the working of them that well, but code errors running a high voltage radiator device like that make me a bit nervous.

      I like being able to turn on the microwave and then ignore it and do other things while it's running, but it would take me a lot of watching it before I would feel comfortable with something like this.

      On the other side, you're only controlling 3 relays, and it's not a nuclear reactor or anything, so I'm likely being overly cautious. But I am an engineer, and worrying about "what-if" is kind of my job, so I lean that way anyway... 🙂

      posted in Hardware
      ejlane
      ejlane
    • RE: My rPi gateway suddenly stopped working, no idea what else to try...

      I think your numbers look good. Nice job getting the trace much shorter - that should help a bunch.

      posted in Troubleshooting
      ejlane
      ejlane
    • RE: Which vector network analyzer should we buy?

      @NeverDie said in Which vector network analyzer should we buy?:

      It said version 2 was due in January.

      It looks to me like it's available now. After where it mentions the 2.0, there's a link where it says 'authorized dealer.'

      That link goes here: https://www.tindie.com/products/hcxqsgroup/nanovna-v2/

      And it says you can buy it now for a little under $60 US.

      I don't know anything else about it, but I'm also considering getting one, now that I've read about it in this thread. I like the idea.

      posted in General Discussion
      ejlane
      ejlane
    • RE: Completely lost about multiple door switches/lights/sensors

      I wouldn't even bother with an Arduino/microcontroller at all for this. Just some diodes on each circuit and maybe some transistors for powering the large LED strips, or could also use tiny relays.

      But I don't see where it has anything nearly complicated enough to have code running on a chip to run anything on it. @itjobhunter if this is not helpful and you need more specific details and/or a quick napkin sketch I can throw something together to show what I'm trying to say.

      posted in General Discussion
      ejlane
      ejlane
    • RE: Some"ting" interesting...

      At least here where I am - West coast of US - they're allowed +/- 10% and still be counted as within spec. So those numbers are fine.

      The thing is, they have voltage transformers with multiple contacts inside, and they will step the voltage up or down on the neighborhood feeders as necessary to account for varying voltages on the higher voltage lines. Actually, I think the switching happens going from high to medium voltage, and there aren't really that many of the switching transformers in the system. All of your local transformers for the houses wouldn't have them - that would be far too spendy. They do it on a large scale.

      But as the residential power demands change over the day, they use the switchers to keep everything balanced. They could keep the voltage variance smaller, but at the cost of more frequent switching, and every switch of the contacts creates some wear, so more maintenance eventually. Every switch also creates some ripples in the rest of the system, I'm pretty sure. But those are probably pretty minor - it's a very stiff system. Also having higher resolution on the switchers would be more complicated and have more parts/windings inside every one of them. They keep the frequency very tightly regulated, but allow the voltage to float a bit. The frequency variances they have to make up for throughout the day so that over the course of a whole day there's practically no net change at all. (For the sake of clocks that literally count cycles and therefore don't need a crystal.)

      Actually, allowing the voltage to vary also has another nice benefit to the system - it allows for a natural damping of disturbances. When the voltage dips a bit because of increased demand, the power used by many resistive appliances will also dip, so that can help the system in recovering as potentially more generation is brought online. I don't think something like AC that has a spinning motor helps much, as the frequency won't vary much.

      Sorry if you're aware of most of this. I worked for the power company for a while, though that has been some years ago now.

      posted in General Discussion
      ejlane
      ejlane
    • RE: Where did everyone go?

      @kasparsd Yes, this is a very disheartening thing to see.

      I would rather not have to maintain a local version with some of the fixes that I see talked about on the forums, but since there's no movement on the code, at least from looking at github, I'm left with doing a bunch of it myself if I want to incorporate the changes.

      Especially bad when the changes are in a pull request and just languishing there. It's discouraging when I want to go work on something but I need to deal with the core mysensors code before I can even get to that step.

      I mean, I'll deal with it cause I still appreciate mysensors and find it a net benefit, but I can certainly understand why some people either give up on it or maybe never pick it up in the first place, seeing stuff like that.

      posted in General Discussion
      ejlane
      ejlane
    • RE: Most reliable "best" radio

      @NeverDie My personal preference is the Tag-Connect. It costs a bit upfront to get into it, but then there's zero ongoing BOM cost per board, and the connectors are very sturdy, so I don't get bad connections, even while doing extended troubleshooting.

      Of course, if I hadn't needed them for a customer project, I might never have sprung for the upfront cost, as the cables are somewhat spendy for the what they are. But they are very well made, and have been great for me. The board footprint is pretty tiny, so that has yet to have ever been an issue in my projects. The footprint is also keyed, so you can't put the cable on backwards. Always a good thing. Also, since the connection points are not through-holes, you still have the back and interior of the board for routing traces. Of course the alignment pins are still through-hole. I prefer the type without the locking pins, and then there's a little board that you slide on the alignment pins from the back to hold everything together.

      If I were to go with a standard, I wouldn't be excited about his ESP Flash one, simply because I don't see a need for it. Yet another 'standard' just fragments things worse. I would use the ESP-Prog one if needed, and use the .05" pins if I needed tiny.

      posted in General Discussion
      ejlane
      ejlane

    Latest posts made by ejlane

    • RE: Relay Node with Fallback feature, if network is lost or controller is failing...

      @monics To know whether the controller was online and working, you could do something simple like request a variable from it, or just check on/request the time every so often. If it responds then things are good, and if it times out then you've got a problem and you can act on it.

      posted in Development
      ejlane
      ejlane
    • RE: NRF24 nodes failing to connect on channels below ~100

      @GaryStofer Okay, then sounds like you're doing what I would.

      Are you able to turn on debug and connect serial to it to troubleshoot that way? Without getting more info on it, I'm out of ideas at the moment.

      posted in Troubleshooting
      ejlane
      ejlane
    • RE: NRF24 nodes failing to connect on channels below ~100

      @GaryStofer Every time it starts up? That really removes the usefulness of using EEPROM in the first place.

      Maybe you're having problems getting a response to the assignment of a child ID, and until it gets that it doesn't work???

      posted in Troubleshooting
      ejlane
      ejlane
    • RE: NRF24 nodes failing to connect on channels below ~100

      @GaryStofer Did you erase the EEPROM? Maybe they stored the child ID number, and since it's a brand new network, they don't connect to it until some kind of timeout when they give up on the old ID? These are just guesses, and not based on any kind of deep familiarity with the code.

      I just know that the ID would be stored for quicker connections on the next times it connects to the system, so that would make sense with what you describe.

      posted in Troubleshooting
      ejlane
      ejlane
    • RE: RSSI affects Sleep Timer??

      I don't have a good answer, but since it's still a multiple of 5, I would assume that it's simply missing the other packets, and your sensor really is waking up and attempting? Maybe set it to require a response from the gateway before going back to sleep?

      Just a guess.

      posted in Troubleshooting
      ejlane
      ejlane
    • RE: multiple definition of `premain()' - PlatformIO

      Well, search seems to be broken again on the site. Hopefully a dev will see this come across their screen and know how to fix it.

      I searched the site for "multiple definition" and 'premain' but neither one got ANY hits, even this topic itself!

      So if you tried to search the site to see if anyone else had had this problem before, it wouldn't have much chance of success. Anyway, all that is to say that we've run into this before. I'll link below here the thread where I managed to get around it. I'm not sure if there were other threads, but this one should give you some info on how to fix it for yourself. I could find this by going into the history of posts I had made, since search was failing me.... 🙂

      https://forum.mysensors.org/topic/10193/stm32f103c8-problem-at-compilation

      posted in Troubleshooting
      ejlane
      ejlane
    • RE: My HW gives me wrong battery voltage

      @igo But in your code you have the wrong calculation. You have (R1+R2)/R2. Whether the names are right or wrong, that calculation is wrong.

      But yes, I agree that it is not the root problem, that's why I also talked about trying to find it by checking pin definitions and putting voltage right on the pin.

      But what @JeeLet said looks like it's worth checking. Maybe you need to try a loop of a bunch more reads to see if it improves after a bit.

      posted in Hardware
      ejlane
      ejlane
    • RE: My HW gives me wrong battery voltage

      Your voltage divider math is wrong. It should be of the form

      R1/(R1+R2)

      However, why even bother with a voltage divider? The analog inputs on the atmega328 can handle the full battery voltage from either of your scenarios.

      Although, maybe you have the pin wrong? Or your setting of which board you are using is linking in a different connection? I don't know if the PDIP package would cause it to be a different pin. (I find that hard to believe, but I don't know what else to say.) Cause the reading should obviously change if you're really changing the voltage at the pin that you're reading... Maybe if you can feed direct voltage to the pin temporarily and see if it does anything?

      posted in Hardware
      ejlane
      ejlane
    • RE: GatewayESP32MQTT with local sensor crashes

      It looks like that's the proper way to use the library - the couple of little snippets you added looked like they matched the library on github. But I would use the definition provided in the header:

      BME280_REGISTER_STATUS = 0XF3,
      

      Just to make your code easier to read.

      Maybe you need to provide the rest of your code to let us see that?

      How are you 'combining' the code for the gateway and the BME280 library? It sounds like the NRF52832 is running mysensors, so it should be running the BME280 code, but the ESP32 is running the gateway code. So I don't see how they could be combined? Really, we would need to see code for both boards, I think. I can't think of other things right now to help.

      posted in Development
      ejlane
      ejlane
    • RE: MySensors in a NERF gun - a question about capacitors

      Sure, a resistor could, but then it's always burning power. There are current-limiting circuits that use semiconductors, but I'm not sure how efficient they are.

      I'm not sure how pros would do it. There must be good ways to go about it without losing much/any power. Again it comes down to how much power it will burn vs. the practically $0 cost of a resistor vs. other choices.

      posted in Troubleshooting
      ejlane
      ejlane