Posts made by StKilda
Using the relay actuator example to light LED directly off the digital outputs?
Hey. I've successfully set up an energy pulse sensor talking via a gateway to a Raspberry pi (running Domoticz) (Yay!). While I can see the Watts data on Domoticz - I want to display some elements in a basic format. For example when watts is zero to light an LED on a remote display and When watts is greater than x to light a different LED.
Looking at the relay actuator example - it seems I could pretty much use this code telling the arduino that it's controlling x "relays" and then running the led (and series resistor) off the digital output?
Does domoticz pick up the fact that the hardware has x relays and allow me to then use blocky to logic which "relays" (ie LED) are activated etc?
Thanks for the help!
RE: 💬 Power Meter Pulse Sensor
I have two meters I would like to measure: One that the LED is off most of the time and briefly pulses on per increment (at 3200 pulses per Kwh - so I adjusted the pulse factor accordingly). This works fine. The second meter, the LED pulses off (meaning the led it lit most of the time, and pulses off briefly). Do I need to adjust the code in any way to deal with this meter? Thanks. Really impressed it works virtually out of the box.
RE: Powering the nano with a battery
@mfalkvidd Thanks. The sensor (an LM393 light pulse sensor) and the radio seem to consume about 12mA each (at their respective voltages).
To test the sensor / gateway / controller combination I powered the sensor with a 9v battery. Looks like after about 12 hours it stopped transmitting (although the units lights are still lit) but guess it lost power to run.
Will have to think about long term power as thats clearly not sustainable. However, it all seems to be working so the major learning is going well!
Powering the nano with a battery
ok. Noob question. With a nano, I have at the radio wired to the 3.3v output and a ground pin, and the sensor tied to the 5v out and the other ground pin. If I want to power the three items from a 9v battery to the Vin pin - I presume I have to hack the battery to share a GND pin? Is there a well trodden path to do this? Thanks
RE: Total noob!
@wergeld thanks. While I do have a pi, it's currently managing my fish tank - so I will probably set things up on the laptop and if it works out will transfer things to another pi later on.
What brought me to here was a desire to set up two light pulse meter sensors. One on my import meter the other on my solar generating meter.
Currently I have a commercial hall effect display - but its pretty basic and it doesn't show direction, meaning if it shows 1Kwh - I have no idea if this is importing or exporting. I figure to show the direction with led initially (if its a net export import will be zero and export will be flashing). Anyway - thats my initial plan. if this works then I can think about pulse rate, Watts and then turning things on when exporting enough power.
RE: Total noob!
Thanks. I did also just find the very helpful video on building a gateway.
Does the hardware running the controller need to be always on? Which I guess makes a raspberry pi a lower power option compared to the laptop but does the raspberry pi have limitations for any heavy lifting or is the controller software fairly lightweight?
I'm a complete noobie to this and trying to get my head around the hardware required and confused myself! I've following the Getting Started guide and I get that each sensor "unit" needs the sensor itself connected to an arduino and a radio unit (NRF24L01). These connect to a gateway which in turn connects to a controller. I was planning to use an old laptop as the controller (which has windows 7 on it currently - but could wipe and install ubantu).
I'm not understanding the gateway segment. I have an Arduino Uno with an ethernet shield already. Can I attach another NRF24L01 to that and use it as the gateway?