Navigation

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

    Topics created by sundberg84

    • sundberg84

      CR2032 coin cells - expected life?
      Hardware • • sundberg84  

      15
      0
      Votes
      15
      Posts
      208
      Views

      canyouhearmenow

      @Michiel-van-der-Wulp using a megaohms pull-up resistor solves the problem with current consumption, but now you have an input that is more susceptible to interference, because it is high impedance.
    • sundberg84

      Handling NACKs
      Development • • sundberg84  

      44
      0
      Votes
      44
      Posts
      443
      Views

      sundberg84

      @evb - yes, that is correct, here is a complete sketch with a GW (Nrf24 - ethernet) // Enable debug prints to serial monitor #define MY_DEBUG // Enable and select radio type attached #define MY_RADIO_NRF24 #define MY_RF24_PA_LEVEL RF24_PA_MAX // Enable gateway ethernet module type #define MY_GATEWAY_W5100 // Enable Soft SPI for NRF radio (note different radio wiring is required) // The W5100 ethernet module seems to have a hard time co-operate with // radio on the same spi bus. #if !defined(MY_W5100_SPI_EN) && !defined(ARDUINO_ARCH_SAMD) #define MY_SOFTSPI #define MY_SOFT_SPI_SCK_PIN 14 #define MY_SOFT_SPI_MISO_PIN 16 #define MY_SOFT_SPI_MOSI_PIN 15 #endif // When W5100 is connected we have to move CE/CSN pins for NRF radio #ifndef MY_RF24_CE_PIN #define MY_RF24_CE_PIN 5 #endif #ifndef MY_RF24_CS_PIN #define MY_RF24_CS_PIN 6 #endif #define MY_IP_ADDRESS 192,168,1,8 // If this is disabled, DHCP is used to retrieve address // Renewal period if using DHCP //#define MY_IP_RENEWAL_INTERVAL 60000 // The port to keep open on node server mode / or port to contact in client mode #define MY_PORT 5003 // Controller ip address. Enables client mode (default is "server" mode). // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere. //#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 254 // The MAC address can be anything you want but should be unique on your network. // Newer boards have a MAC address printed on the underside of the PCB, which you can (optionally) use. // Note that most of the Ardunio examples use "DEAD BEEF FEED" for the MAC address. #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0x01, 0x08 //AF-A0-F2-15-3B-1C // Set blinking period #define MY_DEFAULT_LED_BLINK_PERIOD 300 // Enable inclusion mode //#define MY_INCLUSION_MODE_FEATURE // Enable Inclusion mode button on gateway //#define MY_INCLUSION_BUTTON_FEATURE // Set inclusion mode duration (in seconds) //#define MY_INCLUSION_MODE_DURATION 60 // Digital pin used for inclusion mode button //#define MY_INCLUSION_MODE_BUTTON_PIN 3 // Uncomment to override default HW configurations #define MY_DEFAULT_ERR_LED_PIN 7 // Error led pin #define MY_DEFAULT_RX_LED_PIN 9 // Receive led pin #define MY_DEFAULT_TX_LED_PIN 8 // the PCB, on board LED #define MY_INDICATION_HANDLER static uint32_t txOK = 0; static uint32_t txERR = 0; #define REPORT_INTERVAL 300000 // Report every 5 minutes #define CHILD_ID_TX_OK 0 #define CHILD_ID_TX_ERR 1 #include <SPI.h> #if defined(MY_USE_UDP) #include <EthernetUdp.h> #endif #include <Ethernet.h> #include <MySensors.h> MyMessage txOKmsg(CHILD_ID_TX_OK, V_CUSTOM); MyMessage txERRmsg(CHILD_ID_TX_ERR, V_CUSTOM); void indication(indication_t ind) { switch (ind) { case INDICATION_TX: txOK++; break; case INDICATION_ERR_TX: txERR++; break; } } void presentation() { //Send the sensor node sketch version information to the gateway sendSketchInfo("Gateway #1", "1.0"); present(CHILD_ID_TX_OK, S_CUSTOM); present(CHILD_ID_TX_ERR, S_CUSTOM); } void setup() { } void loop() { static unsigned long last_send = 0; if (millis() - last_send > REPORT_INTERVAL) { send(txOKmsg.set(txOK)); send(txERRmsg.set(txERR)); last_send = millis(); } } In Home Assistant you need to create a sensor that breaks down the incrementing number to each intervall you want. I use a utility_meter. utility_meter: hourly_ok_gw: source: sensor.gateway_1_0_0 cycle: hourly hourly_err_gw: source: sensor.gateway_1_0_1 cycle: hourly This sensors will be sent to Grafana each hour just like any other sensor and you can create a graph there:
    • sundberg84

      3d hubs alternative?
      Enclosures / 3D Printing • • sundberg84  

      11
      0
      Votes
      11
      Posts
      1452
      Views

      ejlane

      @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.
    • sundberg84

      Visual feedback (leds) @ error
      Feature Requests • • sundberg84  

      9
      0
      Votes
      9
      Posts
      1314
      Views

      Yveaux

      @sundberg84 said in Visual feedback (leds) @ error: This could btw be used in a tutorial on the website for others... just my thoughts. @sundberg84 @Anticimex Yeah, I know I should, but this alone already burned my spare time for tonight Anyway, now I have an extra excuse to meet you guys for a !
    • sundberg84

      CNC PCB milling
      General Discussion • • sundberg84  

      933
      1
      Votes
      933
      Posts
      133979
      Views

      NeverDie

      Of possible interest: Here's a guy who is building an inexpensive open source ethernet controller for stepper motors: What happend to Ethersweep? Project Update! – 12:36— Neumi If you listen to the end, it's revealed that there is now generous funding available which allows people to do this kind of open-source development as a full time job, which is what he is now doing. For that reason, I think there's a good chance he will complete his project within the allowed 6 months., and so by the deadline it will likely be nicely polished.
    • sundberg84

      What did you build today (Pictures) ?
      General Discussion • • sundberg84  

      1073
      7
      Votes
      1073
      Posts
      201827
      Views

      monte

      @TheoL that's not the dimmer's fault a far as I am concerned. It behaves the same way at full brightness. It's just a cheap chinese driver in it.
    • sundberg84

      Debug to a sd-card module?
      Development • • sundberg84  

      28
      0
      Votes
      28
      Posts
      6160
      Views

      sundberg84

      Please use this thread for further discussion: https://forum.mysensors.org/topic/8040/the-logger-machine-short-and-long-term-serial-logging
    • sundberg84

      Clearance, creepage and other safety aspects in "MySensors" PCBs.
      Hardware • pcb acdc ac power creepage clearance • • sundberg84  

      17
      16
      Votes
      17
      Posts
      22072
      Views

      sundberg84

      @JohanH - thanks for your reply! I also hope and think people who build commercial products have knowledge of this But as a hobbyist, there are two ways to go - either you dont have to care or go bare minimum, if something happens its your own fault, or you can try to make is as safe as possible. My idea was never to make this thread a information source for a commercial product. I wanted to try to make my own products as safe as possible since I have children around. With that in mind, i want to be on the safe side of things so some things i use from here might be exaggerated. But my PCB (HLK-PM01 breakout) is working great, and I feel safe. I have had it outdoors (under roof covered in IP5* box, -20 to +30 aprox) and its been working for me for a couple of years now. Better than I had before, when i just stripped an old fake samsung charger. /Andreas
    • sundberg84

      Robotic lawn mower supervisor
      My Project • • sundberg84  

      9
      6
      Votes
      9
      Posts
      9997
      Views

      Danielo Rodríguez

      Can you provide more details on wiring and more close ups of the circuit and the sensor itself? Thanks
    • sundberg84

      Debug flowchart - feedback wanted.
      Troubleshooting • • sundberg84  

      1
      5
      Votes
      1
      Posts
      1644
      Views

      No one has replied

    • sundberg84

      Split thread?
      Hardware • • sundberg84  

      3
      0
      Votes
      3
      Posts
      1086
      Views

      sundberg84

      Do you want me to sort the original thread out -> spitting them into OTA and Myscontroller thread?
    • sundberg84

      Relay controlling speakers in multiroom music system?
      General Discussion • • sundberg84  

      4
      0
      Votes
      4
      Posts
      1384
      Views

      sundberg84

      THanks for the replies... nah, i suspected it wasnt the best choise since all I could find on www wasn pretty much on raspberry client / speaker.
    • sundberg84

      Mark Zuckerberg joins MySensors soon?
      General Discussion • • sundberg84  

      5
      1
      Votes
      5
      Posts
      1950
      Views

      barduino

      probably not
    • sundberg84

      Receivetime and Request in 1.6
      Troubleshooting • • sundberg84  

      5
      0
      Votes
      5
      Posts
      1697
      Views

      sundberg84

      Ok, tried that but it doesnt work. Its like the recieve time variable doesnt empty and the first numbers is just overwritten: read: 0-0-105 s=255,c=3,t=1,pt=0,l=10,sg=0:1451249777 requesting time send: 105-105-0-0 s=8,c=2,t=47,pt=0,l=0,sg=0,st=ok: read: 0-0-105 s=8,c=2,t=47,pt=0,l=3,sg=0:5.5 Msg to Child: 8, Message: 5.51249777 So the variable with my time is 5.5 and 1249777 from time.
    • sundberg84

      Mega 2560 fails upload after first try.
      Hardware • • sundberg84  

      1
      0
      Votes
      1
      Posts
      766
      Views

      No one has replied

    • sundberg84

      In wall - PCB, (AC to DC 5v)
      Hardware • pcb inwall • • sundberg84  

      89
      9
      Votes
      89
      Posts
      66149
      Views

      sundberg84

      @Ddawme - Hi! I suggest you read all the links in the project for example: http://forum.mysensors.org/topic/1607/safe-in-wall-ac-to-dc-transformers https://forum.mysensors.org/topic/4175/clearance-creepage-and-other-safety-aspects-in-mysensors-pcbs
    • sundberg84

      Node with Interrupt, sleep and batteries
      Troubleshooting • interrupt sleep • • sundberg84  

      16
      0
      Votes
      16
      Posts
      10905
      Views

      sundberg84

      Yea, now I understand how to use that!! I will do that, thats probably the best... will try! Thanks alot everybody involved! @martinhjelmare @AWI @Yveaux
    • sundberg84

      Easy/Newbie PCB for MySensors
      Hardware • • sundberg84  

      257
      13
      Votes
      257
      Posts
      105130
      Views

      sundberg84

      Im locking this thread (due to multiple threads). Please use this to discuss. https://forum.mysensors.org/topic/2740/easy-newbie-pcb-for-mysensors
    • sundberg84

      Hard to grab time and value sent from controller
      Troubleshooting • • sundberg84  

      20
      0
      Votes
      20
      Posts
      7436
      Views

      hek

      DI you have a similar serial log for the gateway? Think you should try to upgrade to be aligned with 1.5. Don't remember what problems you had earlier...
    • sundberg84

      Hijack a motion detector - hardware?
      Hardware • • sundberg84  

      6
      0
      Votes
      6
      Posts
      2049
      Views

      sundberg84

      @johnr Cool! I will try and get back here with my findings Tnx!
    • sundberg84

      Domotiocz + Rain gauge
      Domoticz • • sundberg84  

      61
      0
      Votes
      61
      Posts
      31090
      Views

      JCH

      Ok thanks for the reply.... I was only wanting to use your sketch as my node is battery powered and the mysensors example uses a lot of power as it doesn't sleep. I will try and modify it.
    • sundberg84

      Insect night!
      General Discussion • • sundberg84  

      6
      0
      Votes
      6
      Posts
      2255
      Views

      Oitzu

      Ahh..That seems to be the "green it" everyone speaking of a few years ago.
    • sundberg84

      Repeater nood keeps looping... and doesnt reach gw.
      Bug Reports • • sundberg84  

      26
      0
      Votes
      26
      Posts
      10418
      Views

      sundberg84

      Hi @doblanch! This issue was resolved in 1.5 and if you are using 1.5 you should do fine! My repeaters use 1.5 and works great.
    • sundberg84

      Repeaternode keeps looping same message
      Homeseer • • sundberg84  

      2
      0
      Votes
      2
      Posts
      1204
      Views

      No one has replied

    • sundberg84

      ST=Fail = Add higher cap?
      Troubleshooting • • sundberg84  

      11
      0
      Votes
      11
      Posts
      4310
      Views

      sundberg84

      @hek @Sparkman Thank you for input. I came home, change back to original radio and attached usb/serial debug with exact the same setup as last night - and everything worked! A bit frustrating but I dont know what happened. I cant blame the hot day because it was in the celler with good temp when it quit... Well, ill let it run and see what happens...
    • sundberg84

      My outdoor weather-sensor (5v powered combined temp, hum, pressure, and light)
      My Project • • sundberg84  

      9
      2
      Votes
      9
      Posts
      8238
      Views

      sundberg84

      --- New question on this old post This node has started to behave strange. There is three sensors and lux is working 100% but DHT and LM393 stops working from time to time. It can suddenly stop sending these two values for 24 hours, and then they are back online again. Lux sensor works all the time. Havent bothered to do a serial log yet since its outside and working most of the time - but any thoughs anyone?
    • sundberg84

      5v on 3.3 pro mini?
      Development • • sundberg84  

      3
      0
      Votes
      3
      Posts
      1345
      Views

      Stric

      The raw connector can handle about 3.3-12v (or 5-12v for a 5v arduino), so 5V should be fine. If you have a wall plug that should give "12V", it might give a whole lot more under low loads (such as a measly arduino) - I've burnt more than one regulator with that.
    • sundberg84

      5v but run on 3.3 pro mini
      Homeseer • • sundberg84  

      1
      0
      Votes
      1
      Posts
      1154
      Views

      No one has replied

    • sundberg84

      Arduino Pro Mini (Deek robot) with power consumption and led.
      Hardware • • sundberg84  

      1
      0
      Votes
      1
      Posts
      1638
      Views

      No one has replied

    • sundberg84

      How to wire battery sensor with battery voltage reports...
      Hardware • • sundberg84  

      25
      0
      Votes
      25
      Posts
      17597
      Views

      sundberg84

      @ronnyandre - hehe! That was a while ago I even made a PCB for everyone to use (including full schematics)! Check it out here: https://www.openhardware.io/view/4/EasyNewbie-PCB-for-MySensors
    • sundberg84

      Datalogging sensors to Nimbits
      My Project • • sundberg84  

      4
      0
      Votes
      4
      Posts
      2287
      Views

      sundberg84

      Thanks all for yoruba replies! I also read about mysensors cloud, maybe this is something for me instead of Nimbits. Ill keep you posted here if I get some where whit the Nimbits question.