Navigation

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

    Topics created by Terence Faul

    • Terence Faul

      Understanding the Serial Monitor?
      Troubleshooting • • Terence Faul  

      2
      0
      Votes
      2
      Posts
      364
      Views

      rejoe2

      Imo all these messages are addressed to the GW. See https://www.mysensors.org/build/parser. Destination "0" stands for the gateway. The log parser may also help to understand what is behind your other post here. The repeater node imo just acts as kind of sniffer and puts everything that's received to serial out, regardless if repeater functionality is necessay or not.
    • Terence Faul

      Repeater node
      Troubleshooting • • Terence Faul  

      1
      0
      Votes
      1
      Posts
      298
      Views

      No one has replied

    • Terence Faul

      bootloaders
      General Discussion • • Terence Faul  

      4
      0
      Votes
      4
      Posts
      632
      Views

      dirkc

      @terence-faul any solution so far? I found this: create a file, e.g. mysensors_bootloader_130_8Mhz.json and save it to ~/.platformio/boards/ { "build": { "core": "arduino", "extra_flags": "-DARDUINO_ARCH_AVR -DARDUINO_AVR_PRO", "f_cpu": "8000000L", "mcu": "atmega328p", "variant": "standard" }, "frameworks": [ "arduino" ], "fuses": { "efuse": "0xFE", "hfuse": "0xD2", "lfuse": "0xE2", "lock": "0x0F", "unlock": "0x3F" }, "name": "MySensorsBootloader 1.3.0 (Atmega328P@8M,3.3V)", "upload": { "maximum_ram_size": 2048, "maximum_size": 30720, "protocol": "arduino", "require_upload_port": true, "speed": 57600 }, "url": "http://www.mysensors.org", "vendor": "MySensors" } the platformio.ini should look like this: [env:mysensors_bootloader_130_8Mhz] platform = atmelavr framework = arduino board = MYSBootloader_8MHz.hex src_build_flags = -I/Users/dirk/Arduino/libraries/MySensors lib_deps = # Using a library name but I do not know where to store the MYSBootloader_8MHz.hex
    • Terence Faul

      Interupt not waking sensor
      My Project • • Terence Faul  

      10
      0
      Votes
      10
      Posts
      956
      Views

      scalz

      @terence-faul said in Interupt not waking sensor: when the Interupt is called does that invoke the loop from the beginning?``` No, it resumes. But in your case, as sleep is your last function in Loop(), loop is relaunched. I just quick looked at your code (no time). Have you tried to remove others sensors code, and run a reedswitch only code. It should be the first step in your debugging. Better do step by step to check what's the culprit. If your reedswitch code is working ok, if there is any interference with other sensors/libraries, the logic order/algo etc. Are you using sleep() for saving energy (so a batt powered device)?? then imho I would have choosen a better sensor. I don't get why people still uses these dht.. Eg. cheap si7021, Bosch BMEs : better power consumption, voltage range. DHT libs has lot of delays, yuk! eg. minimum 10ms just for a read start signal (more for the complete reading), imho it needs refactoring to be used in non blocking way. So, you can: disable your DHT code and try reedswitch code only. if it works. then you have a problem with 1) your code logics 2) external lib (but imho it's a bad sensor choice) Check 1) by maybe changing a bit your code logics(order of functions calls like testing your reedswith right after your sleep call). if it doesn't fix, rewrite sensor lib in non blocking way to be used with your sketch if you don't feel enough good for rewriting lib, then change sensor brand/model, and you may fix this problem As a rule of thumb, libs are not all well optimized even if their examples works, but sometimes it needs tinkering so it can work in larger projects like a mysensors multisensors sketch. So before using a lib, I often check&fix if there are any delays/loops/blocking stuff and others details which could bring some problems and slow down my dev. Edit: ahah I didn't notice, you beat me @mfalkvidd
    • Terence Faul

      Multiple Gateways
      General Discussion • • Terence Faul  

      5
      0
      Votes
      5
      Posts
      1159
      Views

      alexsh1

      @terence-faul this is not a fail prove design. Nodes are not typically moved even within one GW. Each GW must have each one channel and the same goes for nodes. Otherwise, in theory you may have a situation that the same node is reporting to one GW and then to the other GW. For controller this is going to be a chaos. A lot of data will be shared between two similar child IDs, i.e. for example two similar temperature child IDs for one node will have one measurement assigned through the first GW to the first temperature child ID and another measurement assigned to another child ID through another GW.
    • Terence Faul

      Ethernet gateway
      My Project • • Terence Faul  

      2
      0
      Votes
      2
      Posts
      795
      Views

      Homer

      @terence-faul I'm only new to this myself, so I can't help with anything specific, but I did a search and found another thread where someone was having issues with a similar setup to you. Maybe you might find some info there that helps you. The thread is here : https://forum.mysensors.org/topic/5059/ethernet-gateway-with-w5100
    • Terence Faul

      DHT and DOOR sensor
      My Project • • Terence Faul  

      20
      0
      Votes
      20
      Posts
      2177
      Views

      Homer

      How much power are you feeding the sensor? I've had issues when I've fed too little power and it's resolved once I use more power.
    • Terence Faul

      Battery reporting
      General Discussion • • Terence Faul  

      3
      1
      Votes
      3
      Posts
      622
      Views

      JenniferT

      @terence-faul said in Battery reporting: is it possible to implement battery reporting as in Battery status report is probably doable though work is ongoing in GNOME to have this systemwide and integrated into the proper config panels. Likewise with notifications, I'd rather have gnome send this in a generic manner for all battery-powered devices.
    • Terence Faul

      MQTT Gateway
      Hardware • • Terence Faul  

      4
      0
      Votes
      4
      Posts
      2233
      Views

      tripy

      @Terence-Faul not that I know of. And domoticz MQTT support is less than stellar. You cannot configure the topic(s) it listen to, and you need to go through node-red (a node.js app) to transform what the gateway sends. I honestly couldn't be bothered to install it, and went straight to mycontroller.org. I might try it out though, as I have a couple of lifx led bulbs that domoticz supports. Or (probably) I'll wait for openhab 2.0 to reach stable.
    • Terence Faul

      Nani/mini shields
      Hardware • • Terence Faul  

      2
      0
      Votes
      2
      Posts
      1081
      Views

      TimO

      I lately ordered some of these boards: https://www.itead.cc/itead-arduino-nano-io-shield.html They didn't arrive yet, so I have no expierience.
    • Terence Faul

      Nano vs uno
      Troubleshooting • • Terence Faul  

      6
      0
      Votes
      6
      Posts
      2078
      Views

      Heinz

      Sometimes clearing the EEPROM helps: http://www.mysensors.org/build/debug
    • Terence Faul

      Monitor a irrigation status
      My Project • • Terence Faul  

      2
      0
      Votes
      2
      Posts
      1584
      Views

      TD22057

      Yes - but you have to protect the arduino from that high voltage. Best way is with a small optocoupler chip (I use EL817 chips which you can get for practically nothing). There is an excellent explanation in the first answer on this post on stackExchange. You may have to adjust the resistors because of the higher voltage. I've included the schematic below (it's a good idea to read the answer though).
    • Terence Faul

      Distance sensor with Display
      Hardware • • Terence Faul  

      2
      0
      Votes
      2
      Posts
      1273
      Views

      hek

      Absolutely
    • Terence Faul

      IR Sketch
      Hardware • • Terence Faul  

      6
      0
      Votes
      6
      Posts
      3633
      Views

      lunarok

      @Terence-Faul : did you still get this issue ? around that time (1 month ago) there was a beta release of the plugin creating such error of loops, nothing about IR (my fault) @hek : IRLib decode the message, so it's not so long, around 12 characters. I use it myself, the node send to the controler any code received and you can store them. I have a scenario in Jeedom that is storing all codes receive until I erase it, like this pressing multiples button, I get all of them. After that, you can create a V_IR_SEND and as the input use any of the codes you have received. But must be working only for a protocole decoded by IRLib (at that time, I have try only my Sony remote) If not decoded, yes RAW message is too long to be used. And of course better to know what type of protocol it is so (but it's possible to send this value in another sensor for exemple) My bigger problem with this library, it's the hardcoded Sender in PIN 3 (I don't understand why, and make me impossible to use a motion sensor at same time)
    • Terence Faul

      RF433MHZ sensor
      Hardware • • Terence Faul  

      6
      0
      Votes
      6
      Posts
      5181
      Views

      Terence Faul

      I am not sure, I bought some relays from Ebay. If I use the MySensors 433RF Sketch, the receiver recognises the remotes. /* * This sketch demonstrates how to use InterruptChain to receive and * decode remote switches (old and new) and remote sensors. * * Basically, this sketch combines the features of the ShowReceivedCode * and ShowReceivedCodeNewKaku examples of RemoteSwitch and the * ThermoHygroReceiver of RemoteSensor all at the same time! * * After uploading, enable the serial monitor at 115200 baud. * When you press buttons on a 433MHz remote control, as supported by * RemoteSwitch or NewRemoteSwitch, the code will be echoed. * At the same time, if data of a remote thermo/hygro-sensor is * received, as supported by RemoteSensor, it will be echoed as well. * * Setup: * - connect a 433MHz receiver on digital pin 2. * * * MySensor note: This example has not yet been adopted but can be used as an example * of receiving 433Mhz stuff. * * One idea could be to echo received 433 codes back to gateway to be able to pick up and * handle data over there. * */ #include <RemoteReceiver.h> #include <NewRemoteReceiver.h> #include <SensorReceiver.h> #include <InterruptChain.h> void setup() { Serial.begin(115200); // Interrupt -1 to indicate you will call the interrupt handler with InterruptChain RemoteReceiver::init(-1, 2, showOldCode); // Again, interrupt -1 to indicate you will call the interrupt handler with InterruptChain NewRemoteReceiver::init(-1, 2, showNewCode); // And once more, interrupt -1 to indicate you will call the interrupt handler with InterruptChain SensorReceiver::init(-1, showTempHumi); // On interrupt, call the interrupt handlers of remote and sensor receivers InterruptChain::addInterruptCallback(0, RemoteReceiver::interruptHandler); InterruptChain::addInterruptCallback(0, NewRemoteReceiver::interruptHandler); InterruptChain::addInterruptCallback(0, SensorReceiver::interruptHandler); } void loop() { // You can do other stuff here! } // shows the received code sent from an old-style remote switch void showOldCode(unsigned long receivedCode, unsigned int period) { // Print the received code. Serial.print("Code: "); Serial.print(receivedCode); Serial.print(", period: "); Serial.print(period); Serial.println("us."); } // Shows the received code sent from an new-style remote switch void showNewCode(NewRemoteCode receivedCode) { // Print the received code. Serial.print("Addr "); Serial.print(receivedCode.address); if (receivedCode.groupBit) { Serial.print(" group"); } else { Serial.print(" unit "); Serial.print(receivedCode.unit); } switch (receivedCode.switchType) { case NewRemoteCode::off: Serial.print(" off"); break; case NewRemoteCode::on: Serial.print(" on"); break; case NewRemoteCode::dim: Serial.print(" dim level "); Serial.print(receivedCode.dimLevel); break; case NewRemoteCode::on_with_dim: Serial.print(" on with dim level "); Serial.print(receivedCode.dimLevel); break; } Serial.print(", period: "); Serial.print(receivedCode.period); Serial.println("us."); } // Shows the received sensor data void showTempHumi(byte *data) { // is data a ThermoHygro-device? if ((data[3] & 0x1f) == 0x1e) { // Yes! byte channel, randomId; int temp; byte humidity; // Decode the data SensorReceiver::decodeThermoHygro(data, channel, randomId, temp, humidity); // Print temperature. Note: temp is 10x the actual temperature! Serial.print("Temperature: "); Serial.print(temp / 10); // units Serial.print('.'); Serial.println(temp % 10); // decimal } }
    • Terence Faul

      IR Sensor
      Hardware • • Terence Faul  

      6
      0
      Votes
      6
      Posts
      2269
      Views

      korttoma

      @jeylites Vera does support scene controller also and it is working great in UI5. I have no experience with UI7 but I bet it works.
    • Terence Faul

      FTDI Programer board
      Hardware • • Terence Faul  

      5
      0
      Votes
      5
      Posts
      2256
      Views

      tbowmo

      @dakky No, it can not set fuses.. You need a ISP programmer for that. There are lot's of "cheap" isp programmers around, even an arduino can be made into a ISP programmer.
    • Terence Faul

      Multi Button Relay switch
      Hardware • • Terence Faul  

      43
      0
      Votes
      43
      Posts
      25466
      Views

      jeylites

      @rvendrame Ever since I removed ACK & true, I have not been having any fails at all. Everything works and I have posted the final sketch in Array Relay Button Actuator as linked below... Hope it comes in handy. Thanks again MYS community! http://forum.mysensors.org/topic/1299/array-relay-button-actuator/12
    • Terence Faul

      Pro Mini Adjustable
      Hardware • • Terence Faul  

      5
      0
      Votes
      5
      Posts
      2795
      Views

      fred1234

      Works fine for me at 3.3V and 16Mhz. Have not had any problems whatsoever.
    • Terence Faul

      UNO3 with ATMEGA8A-PU
      Hardware • • Terence Faul  

      2
      0
      Votes
      2
      Posts
      1375
      Views

      tbowmo

      Unfortunately I think that the memory is to small on that device. It only has 8Kb of flash, whereas the 328 has 32Kb. Actually the 328 is (more or less) a atmega8 with 32Kb flash instead of 8 (same pinout, if my memory is correct) / Thomas
    • Terence Faul

      MySensors Controller
      Controllers • • Terence Faul  

      2
      0
      Votes
      2
      Posts
      1333
      Views

      hek

      The MySensors controller is currently just a proof of concept node.js program to test the OTA stuff. Currently relies on a serial or ethernet gateway.
    • Terence Faul

      Dimable Light relays
      Hardware • • Terence Faul  

      4
      0
      Votes
      4
      Posts
      1440
      Views

      hek

      I saw an example sketch on how to control the module the linked page. You can use the LED dimmer example on mysesnors to set/receive dim-level from controller. Yes, you could use your regular wall-switched as input to an arduino (disconnected from AC), but you would probably not be able to fit the electronics behind the switch. Working with AC is dangerous. You need to know what you are doing!
    • Terence Faul

      433Mhz devices
      Hardware • • Terence Faul  

      8
      0
      Votes
      8
      Posts
      7214
      Views

      humblehacker

      The Radiohead Library should have support for multiple types of RF modules BTW- http://www.airspayce.com/mikem/arduino/RadioHead/index.html