The reason I was getting errors was because I happen to purchase some really bad Chinese junk radios. If you cannot see the square chip on your radios and it has sort of a black glob of hard mat looking substance where the chip should be chances are the radio is just not compatible. This is mentioned in the troubleshooting area of the site. It is best to make sure you buy on eBay from sellers that my sensors sort of approves of.
Posts made by toddsantoro
-
RE: !TSM:FPAR: FAIL !TSM: FAILURE TSM:PDT
-
RE: MQ 135 will not send data
@flopp would I do that by adding this line:
#define MY_NODE_ID 3
-
MQ 135 will not send data
I am having trouble getting the MQ 135 to send data. I have checked out everything 3-4 times and it appears to be hooked up right and when I force butane from a lighter into it the red light comes on on the sensor board. I am getting this output on the serial monitor
Starting sensor (RNNNA-, 2.0.0) TSM:INIT TSM:RADIO:OK TSM:FPAR TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: !TSM:FPAR:FAIL !TSM:FAILURE TSM:PDT
Any help would be greatly appreciated...
-
RE: 💬 Temperature Sensor
@mfalkvidd Thank you!!! I get this output in the serial monitor
TSM:INIT TSM:RADIO:OK TSP:ASSIGNID:OK (ID=2) TSM:FPAR TSP:MSG:SEND 2-2-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 2-2-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSP:MSG:READ 0-0-2 s=255,c=3,t=8,pt=1,l=1,sg=0:0 TSP:MSG:FPAR RES (ID=0, dist=0) TSP:MSG:PAR OK (ID=0, dist=1) TSM:FPAR:OK TSM:ID TSM:CHKID:OK (ID=2) TSM:UPL TSP:PING:SEND (dest=0) TSP:MSG:SEND 2-2-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1 TSP:MSG:READ 0-0-2 s=255,c=3,t=25,pt=1,l=1,sg=0:1 TSP:MSG:PONG RECV (hops=1) TSP:CHKUPL:OK TSM:UPL:OK TSM:READY TSP:MSG:SEND 2-2-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100 TSP:MSG:SEND 2-2-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=ok:2.0.0 TSP:MSG:SEND 2-2-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=ok:0 TSP:MSG:READ 0-0-2 s=255,c=3,t=6,pt=0,l=1,sg=0:I TSP:MSG:SEND 2-2-0-0 s=255,c=3,t=11,pt=0,l=18,sg=0,ft=0,st=ok:Temperature Sensor TSP:MSG:SEND 2-2-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=ok:1.1 Request registration... TSP:MSG:SEND 2-2-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=ok:2 TSP:MSG:READ 0-0-2 s=255,c=3,t=27,pt=1,l=1,sg=0:1 Node registration=1 Init complete, id=2, parent=0, distance=1, registration=1
Does this look OK? If so I will ask my previous question on the Home Assistant forum. You have been a great help and once I get one of these things down I will be able to help others:)
-
RE: 💬 Temperature Sensor
@mfalkvidd OK. I have it compiling and uploaded to the nano. My config file looks like this now:
sensor 6: -platform: onewire names: some_id: outside mount_dir: "/mnt/1wire"
I get an error when I restart HASS on the Pi.
ERROR (Thread-6) [homeassistant.components.sensor.onewire] No onewire sensor found. Check if dtoverlay=w1-gpio is in your /boot/config.txt. Check the mount_dir parameter if it's defined.
I guess my question is do I need to define the mount_dir variable and if so is the one I have correct? And if it is correct do I need to create that directory on my Pi?
I also do not get any output in the Arduino Serial Monitor window. Not sure if I even should...
Thanks in advance for any help...
-
RE: 💬 Temperature Sensor
Does this example compile for anyone??? I get this error:
In file included from /Users/Documents/Arduino/tas_temp/tas_temp.ino:37:0:
/Users/Documents/Arduino/libraries/DallasTemperature/DallasTemperature.h: In function 'void loop()':
/Users/Documents/Arduino/libraries/DallasTemperature/DallasTemperature.h:252:13: error: 'int16_t DallasTemperature::millisToWaitForConversion(uint8_t)' is private
int16_t millisToWaitForConversion(uint8_t);^
tas_temp:85: error: within this context
int16_t conversionTime = sensors.millisToWaitForConversion(sensors.getResolution());
^
exit status 1
within this context -
RE: Basic project setup from start to finish
@toddsantoro Actually I have read that and I am still in the dark. From the Arduino GUI I go FILE > NEW. COMMAND + S and save it where? It defaults to the Arduino folder on my machine with just Libraries directory in it. Do I create a SKETCHES folder and save the project there? I just don't know what to do???
-
RE: Basic project setup from start to finish
@mfalkvidd OK. I will give it a try. Thanks for your help and patience. I hope to automate my whole 417 sqft home and then help others to do the same.
-
RE: Basic project setup from start to finish
@mfalkvidd I removed everything I have done and started new so that is why you do not see that in the library's folder. I would like to know the exact steps no matter how trivial they are to setting up the sensors project. I am a web programmer and that may be my issue because I know how I would set things up but that does not mean thaty are correct in this situation.
-
RE: Basic project setup from start to finish
Should I create another folder in there called sketches? Here is my sketch copy and pasted from the example on this page: https://www.mysensors.org/build/motion
/** * The MySensors Arduino library handles the wireless radio link and protocol * between your home built sensors/actuators and HA controller of choice. * The sensors forms a self healing radio network with optional repeaters. Each * repeater and gateway builds a routing tables in EEPROM which keeps track of the * network topology allowing messages to be routed to nodes. * * Created by Henrik Ekblad <henrik.ekblad@mysensors.org> * Copyright (C) 2013-2015 Sensnology AB * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors * * Documentation: http://www.mysensors.org * Support Forum: http://forum.mysensors.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * ******************************* * * REVISION HISTORY * Version 1.0 - Henrik Ekblad * * DESCRIPTION * Motion Sensor example using HC-SR501 * http://www.mysensors.org/build/motion * */ // Enable debug prints // #define MY_DEBUG // Enable and select radio type attached #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 #include <MySensors.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 CHILD_ID 1 // Id of the sensor child // Initialize motion message MyMessage msg(CHILD_ID, V_TRIPPED); void setup() { pinMode(DIGITAL_INPUT_SENSOR, INPUT); // sets the motion sensor digital pin as input } void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo("Motion Sensor", "1.0"); // Register all sensors to gw (they will be created as child devices) present(CHILD_ID, S_MOTION); } void loop() { // Read digital motion value bool tripped = digitalRead(DIGITAL_INPUT_SENSOR) == HIGH; Serial.println(tripped); send(msg.set(tripped?"1":"0")); // Send tripped value to gw // Sleep until interrupt comes in on motion sensor. Send update every two minute. sleep(digitalPinToInterrupt(DIGITAL_INPUT_SENSOR), CHANGE, SLEEP_TIME); }```
-
RE: Basic project setup from start to finish
Here is what my Arduino folder looks like: https://www.dropbox.com/s/hfsg3d1xkcoydqq/Screenshot 2016-10-21 16.36.51.png?dl=0
-
RE: Basic project setup from start to finish
@mfalkvidd I'm stuck again... I wired up the motion sensor and compiled the code on the motion sensor page. It pushed everything to the Nano but I get this: Sketch uses 7,500 bytes (24%) of program storage space. Maximum is 30,720 bytes.
Global variables use 371 bytes (18%) of dynamic memory, leaving 1,677 bytes for local variables. Maximum is 2,048 bytes.
Invalid library found in /Users/xyz/Documents/Arduino/libraries/TAS_motion_sensor: /Users/xyz/Documents/Arduino/libraries/TAS_motion_sensor
Invalid library found in /Users/xyz/Documents/Arduino/libraries/TAS_motion_sensor: /Users/xyz/Documents/Arduino/libraries/TAS_motion_sensorTAS_motion_sensor is my project folder and the ino file is also named that. WHat am I missing??? DO I need to add the serial gateway stuff to the Nano that has the motion sensor attached to it? I am also using the 3.3v for the radio and the 5v for the motion sensor and I am also using the 2 different grounds provided on the board too. Any help would get me past this first sensor and then I think I will be off to the races.
-
RE: Basic project setup from start to finish
Thank you this was just what I was looking for. Cheers!!!
-
Basic project setup from start to finish
Is there a place that explains how to set up a project from start to finish? I am a complete newbie to IOT. I am looking for instructions on how to start a project like the temperature sensor. What are the first steps? Do I create a directory in the examples folder and clone the library I need into that directory then add the dependencies? I need complete hand holding and I have not been able to find it. Thanks in advance!!!
-
RE: 💬 Temperature Sensor
Can anyone tell me what these errors say?
DallasTemperature.cpp:433: error: no 'int16_t DallasTemperature::calculateTemperature(const uint8_t*, uint8_t*)' member function declared in class 'DallasTemperature'
int16_t DallasTemperature::calculateTemperature(const uint8_t* deviceAddress, uint8_t* scratchPad){^
sketch/DallasTemperature.cpp: In member function 'int16_t DallasTemperature::getTemp(const uint8_t*)':
DallasTemperature.cpp:484: error: 'calculateTemperature' was not declared in this scope
if (isConnected(deviceAddress, scratchPad)) return calculateTemperature(deviceAddress, scratchPad);^
sketch/DallasTemperature.cpp: In member function 'bool DallasTemperature::hasAlarm(const uint8_t*)':
DallasTemperature.cpp:764: error: 'calculateTemperature' was not declared in this scope
char temp = calculateTemperature(deviceAddress, scratchPad) >> 7;^
exit status 1
no 'int16_t DallasTemperature::calculateTemperature(const uint8_t*, uint8_t*)' member function declared in class 'DallasTemperature'