@dbemowsk that looks interesting! Then I would just map the percentage in the declarations?
Posts made by scottdube
-
RE: control 12 V fan via Vera/Arduino
-
RE: control 12 V fan via Vera/Arduino
@dbemowsk ya mofset is the way to go on this very small fan under .5 amp. I'm just having trouble how to present it to vera so I can change the speed of the fan.
-
RE: control 12 V fan via Vera/Arduino
@dbemowsk Thanks Dan... It's not critical to vary the speed but it seems like a good feature.
-
RE: control 12 V fan via Vera/Arduino
@dbemowsk Thanks, I think I get that part. How would I present it (the fan) to the vera so that I could have variable speed? So that it would show up as a dimmer rather than an on off switch?
-
control 12 V fan via Vera/Arduino
I want to control a 12 V fan using a scene on my vera. When temp or humidity exceed X I want to be able to turn the fan on and vary it's speed based on the those variables. I have been thinking about this for a while looked at a lot of posts and youtube vids. I can't seem to get my head around the way to do it. Any ideas would be appreciated. I have built several sensors and relay controls for mysensors so I have a rough idea of how his stuff works.
Thanks!
-
RE: Mysensors Sensebender GW delivery from China?
@alexsh1 Wow that's great... It gives me confidence that it will eventually show up. I did contact them and they gave me no real answer. Thanks again.
-
Mysensors Sensebender GW delivery from China?
When I first started playing with my sensors I had trouble with the GW setup. I decided to order the Sensebender gateway (37 days ago) I have since solved my gateway problems but have not received the item from China. Does anyone have experience getting this gateway from Itead the vendor used for this? I have gotten a lot of other stuff I ordered later much quicker. Just curious.
Thanks
-
RE: Extract sensor values in Node-red
@tbowmo Thank you! I am needing the inspiration!
-
RE: Extract sensor values in Node-red
@tbowmo Thank you, would it be possible to get that flow? I have not been successful building it myself.
Thanks for your work on this!
-
RE: 💬 Building a MQTT Gateway
@gohan Maybe that is the answer, I'll research that a bit... That was what I was hoping to do over time with my strategy...
-
RE: 💬 Building a MQTT Gateway
@mfalkvidd I am missing something, the reason I want it to do both is that I want the flexibility to use Node Red and my Vera controller. I was thinking that as I built new sensors they would run through node red but be available to vera as well. I'm sure I just don't yet understand how people are designing their hybrid systems yet. My solution was to have the mysensors gateway also put the sensors values out to the mqtt broker and vice versa but there must be another way I am not seeing yet...
Thanks!
-
RE: 💬 Building a MQTT Gateway
I am wondering why you cannot built the ethernet gateway and combine the mqtt client sketch into it? I am trying to shift towards mqtt (experiment) while still having sensors available in Vera. I have the MQTT plugin on vera but have not yet figured out how to use the child device to control devices via MQTT. It seems like a waste to control the MQTT device only through Vera and I would never be able to shift away from vera that way. I'm new to this so I am still trying to understand the entire picture.
Thanks!
-
RE: 💬 Vera Controller
@korttoma thanks for the reply, All I know is that using port 5003 I got !ETH Fail errors. I did a google search for what port Vera uses and everything I found said 80, and 3480 for API. I changed it to 3480 and no longer have the ETH Fail errors.
Yes inclusion mode is enabled, I believe b default but I confirmed and it is uncommented.
Thank you!
-
RE: 💬 Building a MQTT Gateway
Is it possible to have a single device acting as a ethernet gateway and an mqtt gateway?
-
RE: 💬 Vera Controller
Hi there it might help to mention that Vera uses port 3480 for the API comms. I spent a while troubleshooting my first ethernet set up because I blindly (my fault) the port config 5003. I don't think port 5003 is used at all by vera but as a noob I fell right into the trap. I still don't have the ethernet gateway working correctly but I'm getting closer. I can't get the "include" function to work from the vera software. Tomorrow I will add a button and put into inclusion mode that way and see if it behaves as expected.
-
RE: 💬 Air Humidity Sensor - DHT
@gohan Thank you I was able to resolve that issue and get it communication with the gateway, the vera and now mqtt. Thanks again!
-
RE: Extract sensor values in Node-red
@tbowmo Hi there I have your nodes installed but having a little trouble getting started. Is there any documentation I could follow? I want to build a flow just like the one you have in this post. Thank for your help and your work on this!
-
RE: 💬 Air Humidity Sensor - DHT
@gohan I got it past that point... Now I can't tell what the humidity or temp is? I cannot seem to find where (what file) controls what is being output. See below this is from my serial gateway, I can't figure out what these values represent. :READ,255-255-0,s=36,c=3,t=3,pt=0,l=0,sg=0:
255;36;3;0;3;0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RNNGA---,VER=2.2.0
0;255;3;0;9;4 TSM:INIT
0;255;3;0;9;6 TSF:WUR:MS=0
0;255;3;0;9;14 TSM:INIT:TSP OK
0;255;3;0;9;17 TSM:INIT:GW MODE
0;255;3;0;9;20 TSM:READY:ID=0,PAR=0,DIS=0
0;255;3;0;9;23 MCO:REG:NOT NEEDED
0;255;3;0;14;Gateway startup complete.
0;255;0;0;18;2.2.0
0;255;3;0;9;28 MCO:BGN:STP
0;255;3;0;9;34 MCO:BGN:INIT OK,TSP=1
0;255;3;0;9;30224 TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
0;255;3;0;9;30231 TSF:MSG:BC
0;255;3;0;9;30233 TSF:MSG:FPAR REQ,ID=255
0;255;3;0;9;30237 TSF:PNG:SEND,TO=0
0;255;3;0;9;30240 TSF:CKU:OK
0;255;3;0;9;30243 TSF:MSG:GWL OK
0;255;3;0;9;30832 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
0;255;3;0;9;32237 TSF:MSG:READ,255-255-0,s=36,c=3,t=3,pt=0,l=0,sg=0:
255;36;3;0;3;
0;255;3;0;9;34249 TSF:MSG:READ,255-255-0,s=1,c=3,t=3,pt=0,l=0,sg=0:
255;1;3;0;3;
0;255;3;0;9;36260 TSF:MSG:READ,255-255-0,s=220,c=3,t=3,pt=0,l=0,sg=0:
255;220;3;0;3;
0;255;3;0;9;38270 TSF:MSG:READ,255-255-0,s=183,c=3,t=3,pt=0,l=0,sg=0:
255;183;3;0;3; -
RE: 💬 Air Humidity Sensor - DHT
NEWBIE ALERT -- Has anyone else had trouble getting the code above to compile? I'm getting the following error.
ysensors_Humidity:91: error: 'class DHT' has no member named 'setup'
dht.setup(DHT_DATA_PIN); // set data pin of DHT sensor
^
Mysensors_Humidity:92: error: 'class DHT' has no member named 'getMinimumSamplingPeriod'
if (UPDATE_INTERVAL <= dht.getMinimumSamplingPeriod()) {
^
Mysensors_Humidity:97: error: 'class DHT' has no member named 'getMinimumSamplingPeriod'
sleep(dht.getMinimumSamplingPeriod());
^
/Users/scottdube/Documents/Arduino/Mysensors_Humidity/Mysensors_Humidity.ino: In function 'void loop()':
Mysensors_Humidity:104: error: 'class DHT' has no member named 'readSensor'
dht.readSensor(true);
^
Mysensors_Humidity:107: error: 'class DHT' has no member named 'getTemperature'
float temperature = dht.getTemperature();
^
Mysensors_Humidity:114: error: 'class DHT' has no member named 'toFahrenheit'
temperature = dht.toFahrenheit(temperature);
^
Mysensors_Humidity:131: error: 'class DHT' has no member named 'getHumidity'
float humidity = dht.getHumidity();
^
exit status 1
no matching function for call to 'DHT::DHT()'Thanks
-
Newbie timer question
I'm new at arduino programming and I'm sure this will be obvious to most of you. I am trying to create a sketch that will control 2 relays based on the pin state of pin 2 for example.
So when pin 2 is HIGH relay 1 should turn on x seconds later relay 2 should turn on.
When pin 2 goes LOW I want relay 1 to turn off and x seconds later I want relay 2 to turn off.
So far I have no problem getting relay 1 to turn on and after x seconds relay 2 to turn on.
My confusion begins here. Right now both relays turn off when pin 2 goes low because both were turned on by an if then else under the condition pin 2 is HIGH.
Can you give me ideas conceptually how to approach this? I'm not asking you to code it just to give me some ideas on how to approach the problem.
Thanks!
const int ZwavePin = 2; // controlled by zwave relay to turn fireplace on or off const int FirePin = 7; // turns on gas const int FanPin = 8; // turns on fan float val; //float voltage; long previousMillis = 0; long currentMillis; void setup(){ Serial.begin(9600); //initialize the fan and fire pins as an output: pinMode(FirePin, OUTPUT); pinMode(FanPin, OUTPUT); pinMode(ZwavePin, INPUT); digitalWrite(FirePin, LOW); digitalWrite(FanPin, LOW); // digitalWrite(ZwavePin, LOW); } void loop(){ val=digitalRead(ZwavePin); // read the input pin if (val == HIGH){ digitalWrite(FirePin, LOW); // sets the firepin to low to turn on gas unsigned long currentMillis = millis(); Serial.print("Fire has been on for "); Serial.println(currentMillis); if (currentMillis > 5000) digitalWrite(FanPin, LOW); // sets the fanpin to low to turn on fan } else { digitalWrite(FirePin, HIGH); digitalWrite(FanPin, HIGH); }