Skip to content

Hardware

Talk about fun sensor hardware, MCUs, PCBs and how to power your sensors here.
1.8k Topics 18.3k Posts
  • Newb trying to build a 3 unit dimmer with control

    1
    0 Votes
    1 Posts
    876 Views
    No one has replied
  • Motion and lux meters combined in a single device

    23
    3 Votes
    23 Posts
    15k Views
    jeylitesJ
    With the help from @korttoma & @AWI , I put together this sketch. I've tested it and it works. Have fun! #include <MySensor.h> #include <SPI.h> unsigned long SLEEP_TIME = 120000; // Sleep time between reports (in milliseconds) #define DIGITAL_INPUT_SENSOR 3 // The digital input you attached your motion sensor. (Only 2 and 3 generates interrupt!) #define INTERRUPT DIGITAL_INPUT_SENSOR-2 // Usually the interrupt = pin -2 (on uno/nano anyway) #define CHILD_ID 1 // Id of the sensor child #define LED_PIN 5 MySensor gw; // Initialize motion message MyMessage msg(CHILD_ID, V_TRIPPED); void setup() { gw.begin(); // Send the sketch version information to the gateway and Controller gw.sendSketchInfo("Motion Sensor", "1.0"); pinMode(DIGITAL_INPUT_SENSOR, INPUT); // sets the motion sensor digital pin as input pinMode(LED_PIN, OUTPUT); // Register all sensors to gw (they will be created as child devices) gw.present(CHILD_ID, S_MOTION); } void loop() { // Read digital motion value boolean tripped = digitalRead(DIGITAL_INPUT_SENSOR) == HIGH; Serial.println(tripped); gw.send(msg.set(tripped?"1":"0")); // Send tripped value to gw { if (tripped){ // from the "Blink" example sketch :-) digitalWrite(LED_PIN, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(LED_PIN, LOW); // turn the LED off by making the voltage LOW delay(1000); } // Sleep until interrupt comes in on motion sensor. Send update every two minute. gw.sleep(INTERRUPT,CHANGE, SLEEP_TIME); } }
  • ArduinoProMini to nRF24L patch PCB with battery holder and Switch

    3
    2 Votes
    3 Posts
    3k Views
    G
    You can do it ! Tweezers and magnifying goggles ( from Harbor Fright ) and you are in business. Don't forget to set the Arduino to internal clock 8 mhz via fuse settings when rinning at 3V -- Most of them run without it but some might not be happy running 16mhz of the xtal at 3V .Gary
  • Custom made ethernet gateway based on atmega128

    39
    3 Votes
    39 Posts
    22k Views
    D
    @axillent Okay, I will try :) The sketch of the Plug, I will see that do many challenges, but let's go. I was reading the code the Ethernet getway, but i learn how i sync it with another sensor. Thx for your help
  • Real world estimation of NRF24L range

    1
    0 Votes
    1 Posts
    897 Views
    No one has replied
  • Programming the Arduino Pro Mini 3.3V

    14
    0 Votes
    14 Posts
    11k Views
    tejoT
    I understood that you can not make new uploads at 3.3V Arduino with your converter. the fact that the pre-loaded program work does not mean much because you only this feeding the Arduino. if the question is about having bought Arduino defective, and recording using another Arduino as ISP, this will show for you. if record, the problem is the pair converter / Arduino 3.3v. use another Arduino as a recorder. look in the Arduino sketch the ISP and you will understand the interconnection pins. if I get it wrong, forgive me, it is the difficulty with the language.
  • Using interrupts with an LDR (pro min)

    3
    0 Votes
    3 Posts
    2k Views
    S
    @maltimus Because on a dark day I was concerned this would not be enough to trigger. I intend to test it though!
  • strange behavior with receiving

    1
    0 Votes
    1 Posts
    689 Views
    No one has replied
  • 433 / 868 MHz common temperature sensors

    3
    0 Votes
    3 Posts
    2k Views
    DwaltD
    @MSchmidke Take a look at what Ray ( at rayshobby.net) has documented on this subject.
  • Repeaters in domoticz

    6
    0 Votes
    6 Posts
    3k Views
    S
    Go this going by playing with the ordering. I wiped sensors from domoticz and turned on repeater node. Then I restarted domoticz - then opened my reed switch (outside electric gate) - this caused the gate to be registered. I then had to reset the repeater (it is a buzzer and led actuator) for that to be seen in domoitcz also. A bit convoluted but got there. Guess this could trip many up. Thanks all.
  • Checking if the air conditioning is on

    19
    0 Votes
    19 Posts
    7k Views
    Moshe LivneM
    @Chester That is actually a great idea.... From what I read elsewhere it seems that the cheap hall sensors are not that sensitive so your idea should be the bestest... Thanks!!!
  • ICSP Programmer Adapter

    5
    0 Votes
    5 Posts
    2k Views
    Roberto BrunialtiR
    The adapter itself does'nt hold a pcb. You have to use ... your hands or a table clamp. Neverthless it is really usefull...
  • Version mismatch

    4
    0 Votes
    4 Posts
    2k Views
    D
    Yes of course...anyway "version mismatch" should not appear due to wire issue :-)
  • PIR sensor unreliable

    2
    0 Votes
    2 Posts
    1k Views
    SweebeeS
    I just found out that my gateway is not working great. I made a new one but i don't know why the other is not working good? Solved it, it was not the gateway, it was a repeater node that couldn't pass the messages all the time.
  • How to read from atmega328p with raspberrypi

    1
    0 Votes
    1 Posts
    681 Views
    No one has replied
  • Motion/Humidity on Pro Mini ?

    3
    0 Votes
    3 Posts
    1k Views
    petoulachiP
    I know about the step-down yes, that's why I'm guessing that the VCC for the radio cannot be used for the sensors as they use 5V (using thoses ) I'm not sure I've understood the part about capacitors. Are you suggesting me to add capacitors for every sensors ? I have thoses, do they fit my needs ? The pro-mini will be powered using this . I hope everything's fine ! regards,
  • IR Sensor

    6
    0 Votes
    6 Posts
    2k Views
    korttomaK
    @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.
  • Bridging to remote location, only 2 conductors available.

    3
    0 Votes
    3 Posts
    1k Views
    tbowmoT
    @bob543 you could probably use rs485 (isolated) for this..
  • atmega328 tqfp pcb design

    4
    0 Votes
    4 Posts
    2k Views
    tbowmoT
    @Mickey No, you need one 100nF on each supply pin. (don't have datasheet at hand, so can't remember how many supply pins there are). Place it as close as possible to the supply pins.
  • Multi Button Relay switch

    43
    0 Votes
    43 Posts
    26k Views
    jeylitesJ
    @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

9

Online

11.7k

Users

11.2k

Topics

113.0k

Posts