Skip to content

General Discussion

A place to talk about whateeeever you want
1.5k Topics 14.2k Posts
  • 0 Votes
    9 Posts
    328 Views
    skywatchS
    Nomorobo.
  • Site down?

    10
    0 Votes
    10 Posts
    355 Views
    A
    Useful information
  • Some"ting" interesting...

    15
    1 Votes
    15 Posts
    1k Views
    NeverDieN
    @OldSurferDude said in Some"ting" interesting...: @NeverDie Non-internet connected networks still need NTP. I built an NTP server from a $5 gps module, a $3 Arduino nano, a $6 ethernet shield, network cable and a USB cable. A neighbor 3D printed an enclosure for me in exchange for 4 home baked cookies (they're awesome). Just for fun, I put in software for an under $2 display to make a clock. Should we re-title this thread, "Be Afraid, and here's how to ameliorate your fear. " In the scenario I was referring to, the IOT devices are still internet connected. They're just on their own dedicated local LAN (which could be a virtual LAN), that's all. Now, shutting them off from the internet entirely.... maybe that's another step one could take, depending on what it is. I have some lights/switches that were cheap but which have to run through the cloud in order to connect with Alexa. They wouldn't work properly if they were cut off from the internet.
  • Zigbee gateway with support for multiple vendors?

    25
    1 Votes
    25 Posts
    2k Views
    H
    What is also most interesting with zigbee is a very important number of devices, and low price of them compared to zwave for instance.
  • Tips/Tricks for placing sensors above doors?

    3
    0 Votes
    3 Posts
    156 Views
    NeverDieN
    In a previous house I had a wireless sensor that was cylindrical. I drilled a roughly 3/4" - 7/8" diameter hole in the doorframe and slide it in, so it wasn't at all visible when the door was closed. Because of the packaging and form factor, some exotic things, like that, are far easier to buy than build, though I suppose it would be within the grasp of someone with skills who was determined to make their own. Less exotic: if you made your sensor flat enough, you could hollow out the door molding and hide it inside of that. A properly designed door sensor could run off of a CR2032 coincell battery for 10+ years, so it's not such a wild idea.
  • 0 Votes
    2 Posts
    226 Views
    OldSurferDudeO
    @nrf24_is_hard When I sent data between an Aduino and the RPi I discovered that I have to make the the receiving and the sending structs the same size AND the variables be on 4 byte boundaries. Change your char name[15] to char name[16] Another challenge is that the number of bytes of type int are different. If I remember correctly, Arduino Uno is 2 bytes and RPi is 4 bytes. To make matters worse, some compilers make the least significant byte the first byte of a word and others make it the last byte of a word. eg, sending the value 1 would be received as 16777216 (0x00000001 vs 0x01000000) There are a lot more gotcha's ;) OSD
  • Bootloading a barebones arduino

    43
    0 Votes
    43 Posts
    1k Views
    L
    @NeverDie said in Bootloading a barebones arduino: You and a group of friends could sit around a table and pass bits and bytes to each other using an SPI communication protocol. Passing bits and bytes is probably more fun that sitting around a table and passing digs and barbs! I don't know: maybe my friends ARE binary!:angel: [Edit: I forgot to say anything about the content of your SPI protocol story. That was a great story; I feel badly for not thinking about the SPI connection at all. Now it is ingrained. ]
  • long-term usage of nRF24L01+ with PA: no reliable transmission

    7
    0 Votes
    7 Posts
    521 Views
    OldSurferDudeO
    I just remembered the key technique to getting the communications working smoothly. I do all my communication synchronously. That is as follows: The master device sends a message to a node. The send command returns a success or fail, but fail does not mean the message was not received, it means that an ACK was not received. The master waits a timeout period for a response. If there is no response, a second attempt is made. If there is a response, the data with the response is processed. If not, the node is ignored. After that transaction, the master repeats this process with the next node and for each node there after. A round-robin. If a node does not get a request from the master within a certain interval, it reboots itself. If the system power cycles, the nodes inundate the the master with DHCP requests. Because of so many requests, requests can be ignored or two nodes might receive the same network address (different from NodeID). Eventually, one node will get a valid network address and begin to communicate as expected. This reduces the network traffic and the probability of another node receiving a unique network address improves. Eventually, all nodes connect. "Eventually" can be many, many minutes. The tree structure of the network means that some nodes send data through other nodes. In asynchronous communication, a node may be trying to send data while another node is sending data through it. I may not be correct in this, but I think that it is possible that this will corrupt one or both data packets. This is why I do the round-robin communication. The master only has 5 (4?) usable addresses to receive data. Like computer DHCP, addresses can be reserved for specific NodeID's. For example, address 3 an be reserved for NodeID 31, then NodeID 22 can have a reserved address of 43, thus NodeID 22 will always send data through NodeID 31. (addresses are octal). The address 4444 is reserved; this is the address a node requesting an address uses. To increase the chance of getting a valid address, I put a delay in the first DHCP request based upon the NodeID. I put the NodeID in EEPROM address 0, as does MySensors. I have one program that sets the NodeID and then my program for all of my nodes is the same. Nodes that sleep must have the flag set (in the node software) that indicates no data can be passed through it from another node. All of these hoops are handled by the MySensors libraries, though I force the NodeID. This my impetus to use MySensors. I must wonder though, "How much overhead is there? Do I have enough memory for my code?" So far I haven't had a problem. OSD
  • homeassistant/smartsleep stops even trying after a few iterations

    11
    1
    0 Votes
    11 Posts
    374 Views
    CrankyCoderC
    Small update. I switched to a radio from different batch and seemed like that fixed it. Saw the smart sleep message in mqtt until I went to bed. But around 4:30am it stopped again. Im going to go pull it again and see what it's outputting. I feel like I need to hook up a bluetooth hc-05 or something so i can just connect over bluetooth at this point to get the serial data lol
  • Mecrisp BLE on Micro:bit V2

    3
    0 Votes
    3 Posts
    119 Views
    skveryS
    Yip Mecrisp Forth. I will also need to add software interrupt routines for the BLE SoC interface. c-:
  • How to make sense of received Struct from Arduino via NRF24?

    1
    0 Votes
    1 Posts
    122 Views
    No one has replied
  • Which is the "best" ESP-32?

    8
    1 Votes
    8 Posts
    380 Views
    E
    @NeverDie Oh, sorry, I wasn't trying to get proof or anything. I just was asking for your personal experience. Not doubting, just looking at them now and wondering how it had been for you. Do you mind saying which one you have that you are so happy with? I've been looking at different 'best' lists, and getting some conflicting info on them. I'd just like a little more input before buying one, but with seeing all the improvements, and how many devices we have that could use it, now I'm wanting to do it sooner rather than later. Thanks!
  • MySensors forum search feature is not working?

    4
    1
    1 Votes
    4 Posts
    244 Views
    J
    @hek I see that MySensors logo is missing in the forum [image: mysensors-forum.png]
  • A more convenient Arduino Uno

    5
    0 Votes
    5 Posts
    245 Views
    Michiel van der WulpM
    I even managed to solder a nRF24L01+ to the board so everything works on 3.3Volt, and this node works fine. This took a lot of scratching copper from the board... [image: 1651654060736-uno3vnrfs.jpg]
  • Help with bar project....

    12
    1
    0 Votes
    12 Posts
    463 Views
    P
    i'm to stupid for this
  • MySensors SI7021 Library

    1
    1 Votes
    1 Posts
    110 Views
    No one has replied
  • Polish your crystal ball: best mcu/radio successor chips?

    13
    2
    1 Votes
    13 Posts
    602 Views
    nagelcN
    @ejlane Yeah. I did this a while ago and I will have to dig into my notes to figure it out. I don't recall how I combined the STM code with tekka's multiple transport (which i think was in the development branch already), but it was not much more than cut and paste. I have an NRF24 and an RFM69 running on one and an RFM95 on another. I can figure out the details when I get back home in May.
  • Where did everyone go?

    69
    5 Votes
    69 Posts
    3k Views
    TheoLT
    It would be great to see some improvements added to MySensors lib. Like a good message Queue and stuff like that. Ways to get more state out of the lib so you can provide a bit more user feedback. Right now I have some of those in my own lib. When I have time I'll post some on this forum. So others might benefit. But I'm currently hooked up to modular synths. Learning a lot of analog technology. Which broadens my Arduino horizon.
  • Anyone Tried SEEED LORA-E5 Module?

    1
    1 Votes
    1 Posts
    120 Views
    No one has replied
  • 0 Votes
    3 Posts
    2k Views
    S
    Hi there! Reading the Watermark sensor is no easy task indeed. Took us a while to get accurate and reliable data out of these sensors. First of all, take a look at the official documentation provided by Irrometer: https://www.irrometer.com/200ss.html Especially the pseudo-AC excitation is very important and make sure you calibrate the readings using the soil temperature. There's quite some off-the-shelf hardware on the market already. Look for a device that has a low power consumption so you can measure throughout the year, for example: https://www.crodeon.com/blogs/news/connecting-a-watermark-sensor-to-the-cloud Let me know if you have any more questions!

16

Online

11.8k

Users

11.2k

Topics

113.2k

Posts