Skip to content

Hardware

Talk about fun sensor hardware, MCUs, PCBs and how to power your sensors here.
1.8k Topics 18.3k Posts
  • How to get sensors to report when sleeping -- other systems seem to do it

    2
    0 Votes
    2 Posts
    954 Views
    YveauxY
    @linus72982 For a door sensor there is little use in 'polling' the door state from the base station; it's much more efficient to only send the state changes from the sensor to the base station. That's probably what the SimpliSafe does, so the sensors can powerdown their radios until a door's state changes. You can achieve the same thing using an nRF24 radio and wire the door contact to an interrupt pin of the AVR. The AVR and radio will be asleep at very low power until woken by the interrupt. Once an interrupt occurs the sensor will send the new state to the gateway+controller ('base station'). This scenario is very energy efficient and can easily run for a long time without replacing batteries. See e.g. this example sketch on how to achieve this with MySensors.
  • NRF24L01+PA+LNA SMD: anyone tried it?

    2
    0 Votes
    2 Posts
    953 Views
    YveauxY
    @vga said: looking for a better range Did you consider switching to RFM69 (sub-Ghz)?
  • Arduino Pro mini 3,3V + NRF24L01+: Can i change Pins?

    3
    0 Votes
    3 Posts
    1k Views
    vgaV
    ah, thanks mfalkvidd, thats what i´m looking for!
  • This topic is deleted!

    2
    0 Votes
    2 Posts
    44 Views
  • Weight sensor node

    9
    0 Votes
    9 Posts
    4k Views
    Sefi NinioS
    This looks great! Thanks a lot @dbemowsk !
  • Windspeed sensor

    1
    0 Votes
    1 Posts
    853 Views
    No one has replied
  • W25X40CLSNIG as flash for OTA

    7
    0 Votes
    7 Posts
    2k Views
    F
    Edit : It works. Just add #define MY_OTA_FLASH_JDECID 0xEF30
  • New tiny (cheap) GSM module

    4
    1 Votes
    4 Posts
    2k Views
    M
    @mfalkvidd said: Interesting find! AT&T (and probably others) are in process of shutting down their 2G networks though - so anyone planning to use this module should check if they will still have 2G coverage in a year (or whatever time is applicable to your project). Has anyone seen if it is possible to use the ESP8266 as a NAT device? ESP8266 + this module would be a super-compact mobile internet router. I think they all are.. 2G will be no more in the next 12 months. (may not be an issue in countries outside the USA)
  • ESP-12E as pulse sensor with Eastron SDM120

    5
    0 Votes
    5 Posts
    3k Views
    E
    If you have TL light in the room where the meter is located will cause false pulses when you turn on/off the light. Try adding caps on both ends (near the kwh meter and your arduino)
  • Self Powered Inline AC Double Relay Module

    lighting relay ac power
    8
    2 Votes
    8 Posts
    4k Views
    S
    The updates have been applied to Rev 2, below we have a list of everything that has been added/modified; Modification footprint for 3 items to make it easier to mount (Slow blow fuse, Thermal Fuse and Voltage Regulator) when hand soldering. Modification to nRF24L01+ Module to remove the short to ground on VCC line. Added the additional silkscreen labeling that was missed off by accident. This should be all that is needed for Rev 2 to be a successor to the Rev 1. We still have the issue with having to use pogo pins to program through the ISP connection, or to temporarily solder jumper wire into the 6 pin connection while uploading, then everything else can be programmed through the on-board FTDI connection. Will get the gerber files generated ASAP and then get them sent off for testing production runs.
  • Mini NFR24L01 SMD

    15
    0 Votes
    15 Posts
    3k Views
    YveauxY
    @Lars65 Nice work!
  • Ceech board upgrade

    4
    5 Votes
    4 Posts
    2k Views
    C
    New boards are ready and are being tested. Here is one connected to a Bluetooth module charging a battery: [image: 1469517443838-img_0051_mala.jpg] This is the code used in battery voltage and charge current monitoring: float readVcc() { signed long resultVcc; float resultVccFloat; // Read 1.1V reference against AVcc ADMUX = _BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1); delay(10); // Wait for Vref to settle ADCSRA |= _BV(ADSC); // Convert while (bit_is_set(ADCSRA,ADSC)); resultVcc = ADCL; resultVcc |= ADCH<<8; resultVcc = 1126400L / resultVcc; // Back-calculate AVcc in mV resultVccFloat = (float) resultVcc / 1000.0; // Convert to Float return resultVccFloat; } const int current = A6; const int lipo = A7; float vout = 0.0; float vin = 0.0; int value = 0; void setup() { Serial.begin(9600); } void loop() { float napetost = readVcc(); float tok = ((analogRead(current) * napetost / 1024 ) * 1200) / 3; // convert the ADC value of charge current to miliamps float baterija = ( analogRead(lipo) * napetost / 1024 ) * 2; // measuring battery voltage Serial.print("Vcc = "); Serial.print(napetost); Serial.println("V"); delay(400); Serial.print("Charge current = "); Serial.print(tok); Serial.println("mA"); delay(400); Serial.print("Battery voltage = "); Serial.print(baterija); Serial.println("V"); delay(400); Serial.println("----------------------------"); delay(2000); } /* Improving accuracy: To do so, simply measure your Vcc with a voltmeter and with our readVcc() function. Then, replace the constant 1107035L with a new constant: scale_constant = internal1.1Ref * 1024 * 1000 where internal1.1Ref = 1,1 * Vcc1 (per voltmeter) / Vcc2 (per readVcc() function) Example: For instance, I measure 3,43V from my FTDI, the calculated value of Vref is 1,081V. So (1,081 x 1000 x 1024) = 1107034,95 or 1107035L rounded up. Use smoothing example from IDE to smooth the data from ADC. */ Charge current is limited to 400mA and can be easily changed to another value by changing just one resistor.
  • Where do I cut the pro-mini's LED?

    8
    0 Votes
    8 Posts
    2k Views
    mfalkviddM
    The regulator is directly to the left of the led. It has 3 legs on one side and 2 on the other. I use a small side cutter to cut the 2 legs and then i wiggle the regulator up and down until the 3 legs break.
  • Voltage divider for radio

    power voltage divider voltage
    4
    0 Votes
    4 Posts
    2k Views
    AWIA
    @Jason-Brunk small value resistors can do the trick but you better try two silicon diodes 1N4001 or similar in series with the power line. Each diode give you around.0.7 volt drop.
  • Repeater in Domoticz (Another one)

    6
    0 Votes
    6 Posts
    2k Views
    F
    @popunonkok If you want to change location of your devices, plug in Gateway fist, then repeater and last your nodes. If you don't see your node in your Controller it can be that there is no con crib between node and GW/Repeater.
  • Display info from nodes directly on Gateway?

    4
    0 Votes
    4 Posts
    1k Views
    AWIA
    @bartaspoz I don't have experience with HA but can't see how the compatibility list of Domoticz can grow much further. My suggestion would be to determine what you need and go from there. Quality can and will outlive quantity. :sparkles:
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • selection of proximity sensor

    14
    0 Votes
    14 Posts
    3k Views
    AWIA
    @mcamiea I started with This tutorial. If it is still not clear let me know and dig the setup from the bottom of my drawer.
  • 0 Votes
    1 Posts
    656 Views
    No one has replied
  • irlz44n not fully open using 3.3V Arduino

    5
    0 Votes
    5 Posts
    5k Views
    L
    I think I was using some of these for my rgbw controller and they seem to work just fine for me. As I switched to smd parts I can't really help you though :( My only idea would be to control them via some (smaller) transistor(s) that can be fully opened with 3.3V (or just redesign).

28

Online

11.7k

Users

11.2k

Topics

113.1k

Posts