Lets link this topic: https://forum.mysensors.org/topic/9012/anyone-tried-the-creality-cr-10-3d-printer
Best posts made by pjr
-
RE: Read this first - it could SAVE YOU A LOT OF TIME
"Error sending command, check device/hardware"
I had oxidized dupont wires between radio and arduino. Good thing to check if your sensors lives outside!
-
RE: Anyone tried the Creality CR-10 3D printer?
I bought Anet A2+ about an year ago and can recommend it only if you have too much time and want to learn how 3d printer exactly works.
The basic assembling took around 5.5hours. Of course it was cheap ~160€ delivered on flash sale at GearBest and was delivered from Europe so no import taxes. But so far I've spent some 50-80€ and X hours for upgrades..
- part cooler
- belt tensioners for X and Y axis
- V6 clone print head
- mosfet for heated bed
- 2mm glass plate
- marlin firmware
- dual z, single motor
- bed leveling sensor
With these upgrades the print quality is now quite ok now.
Btw. Octoprint is quite nice tool to have with 3d printer. -
RE: domoticz auto add device (mysensors) even if disable "Accept new Hardware Devices"
If I'm reading the domoticz codebase correctly there is two problems:
- It will add the node in MySensors node/child listing even if the "Accept new hardware device" flag is disabled. But it wont create domoticz core/ui/..-devices from those.
- I_INCLUSION_MODE message is not supported by domoticz.
@Reza can you update title of this topic also
For reference: https://www.domoticz.com/forum/viewtopic.php?f=6&t=13481&start=20#p97600
Please correct if I've provided misleading information. -
RE: Request: New Sensor Type ? Thermostatically controlled switch
@hek some new ideas for this:
There is now new switch type(SELECTOR) presented in Domoticz. With that its now possible to handle with V_HVAC enum switches.
I was thinking this functionality and new functionality of MySensors for presenting (enum)switch values would be more than nice. With this the controller could build the switch dynamically with values the HVAC device really has.
For example:
- gw.presentcaps(childId, listOfValues) (user could give names for these in the controller)
- or even better: gw.presentcaps(childId, listOfKeys) (in this case values would be from 0 to count of list but names are provided automatically)
- or the best: gw.presentcaps(childId, listOfValues, listOfKeys). The contoller could buid up the switch from this info.
It would be alternative for gw.present(...) or called after?
Keys would be used in UI of contoller and values(list of 8 bit int?) are what is transferred in messages.
For example my air source heat pump has only V_HVAC_MODE modes "Off", "HeatOn", "CoolOn". Values for these could be 0, 1 and 2. -
RE: [solved] RS485 nodes stop sending data after some hours or days
Those 20K resistors are so small factor that removing them might not be necessary but removing extra termination is. I'm also using 600ohm pull-ups and pull-downs in the middle of the bus but I think 1k might also be ok and it needs little less juice from vcc.
This might be helpfull: http://alciro.org/tools/RS-485/RS485-resistor-termination-calculator.jsp@gohan said in Serial RS485 Gateway stops receiving after some hours or days:
I remember there was a suggestion to modify the rs485 library to send 3 times the header message before sending the payload in order to avoid collisions.
For the library code i did this modification to MyTransportRS485.cpp
Added this to beginning of the lib file:
#if !defined(MY_RS485_SOH_COUNT) #define MY_RS485_SOH_COUNT 3 #endif
And in the sending code:
// Start of header by writing multiple SOH for(byte w=0; w<1; w++) { _dev.write(SOH); }
Changed to this:
// Start of header by writing multiple SOH for(byte w=0; w<MY_RS485_SOH_COUNT; w++) { _dev.write(SOH); }
-
RE: domoticz auto add device (mysensors) even if disable "Accept new Hardware Devices"
@Reza said:
but i think signing is not useful ! until that domoticz have this bug , the theif just need my frequency for add and control my device ! so i must dont use my sensors(relay) for door lock and security!!
No the "domoticz bug" is not a problem since it dont affect your sensor network or the way theif can use your mysensors network.
Domoticz doesnt have anything to do with signing or encrypting. Its just listening and sending readable serial messages to your gateway.With signing you make thief not able to use(send messages to) your doorlock.
With encryption you make it almost impossible for the thief read RF messages your nodes/gw are transmitting.There is good reading for you:
https://www.mysensors.org/about/signing
https://forum.mysensors.org/topic/1021/security-introducing-signing-support-to-mysensors -
RE: [solved] RS485 nodes stop sending data after some hours or days
I had quite strange problem with my smaller network. There is a nano with enc28j60 shield as gateway and there was 2 relay/fet-nodes for controlling lights. Everything was fine until now I added one light switch node to the network. After that only the light switch was working. Strange...
Disconnected all the nodes from network and checked what is causing the problem. It was the GW. Measured the bus between A and B was ~2.5V. So it was pulling the bus to logical one all the time.
Changed the RS485 module.. no help. Then measured the "MY_RS485_DE_PIN" what I was using pin 2. The enc28j60 shield was pulling the pin to 0.6V and that was causing the RS485 shield to drive bus to ~2.5V. I changed the pin to 3 and now everything is working like a dream. Of course none of these nodes are sending all the time so most likely there wont be any collisions.
So when some node/bus is hanging next time measure the voltage of DE-pin
-
RE: Water tank instant volume
I think V_LEVEL works in domoticz the way you want. You can change the axis label and icon from UI edit button afterwards.
You can use are S_DUST are S_VIBRATION as sensor type.. not the most describing ones for water but both are creating a "custom counter" that can be used to present the "current/instant level".More info can be found from the source code of domoticz
https://github.com/domoticz/domoticz/blob/master/hardware/MySensorsBase.cpp#L861Perhaps someone could add handling for pair S_WATER and V_LEVEL to MySensorsBase.cpp. Should be easy
-
RE: Is my project possible with MySensors?
@frazzle said:
Now my questions:
- Can send and receive messages without a controller? How would I go about that?
- How secure is the NRF24 connection? To be clear, I don't mind anybody reading what's being sent, but I don't want someone sending commands to my stations and thus triggering the relays (it's very unlikely, but you never know )
- Is there a way to report signal strength between the gateway and the wireless station?
- Any other tips you can give me?
Thanks for reading
- Yes you can. Take a look at serial api documentation. You need to implement "controller" software by yourself.
- Use signing. You can find more information from here
- Not really. nRF24 library support only check if signal => -64dBm or not.. see this
- It might be easier to use arduino as gw. See ACK functionality from documentation for resending the lost packages.
-
RE: Domoticz cannot see devices from my sensors
@bbrowaros Have you enabled: "Accept new devices" from settings?
-
RE: Domoticz data timeout
I think with domoticz its might be enough to call sendHeartbeat() from your gateway every 30 seconds.
It should update the m_LastHeartbeatReceive of the HW and thats what mainworker uses when it defines if the HW should be "rebooted".Here is a example(NOT TESTED):
#define HEARTBEAT_SEND_FREQUENCY 30000 unsigned long lastHeartBeatSend; .... void setup() { lastHeartBeatSend = 0; } ... void loop() { unsigned long now = millis(); if(now - lastHeartBeatSend > HEARTBEAT_SEND_FREQUENCY) { sendHeartbeat(); lastHeartBeatSend = now; } }
See:
https://github.com/domoticz/domoticz/blob/8bb0420c3ba4a10bbacd6f2e2f9b40b06ff0c7ac/main/mainworker.cpp#L12864
https://github.com/domoticz/domoticz/blob/8bb0420c3ba4a10bbacd6f2e2f9b40b06ff0c7ac/hardware/MySensorsBase.cpp#L487
https://www.mysensors.org/download/sensor_api_20 -
RE: Browser-based firmware generator
Feature request: support for RS485 network!
-
RE: MQTT Ethernet Gateway with Wired RS485 Network
Back then when I built my RS485 network with normal ethernet GW and domoticz I had to define static node id's for all the nodes(except GW) to get RS485 network working. Not sure if thats the case anymore.
#define MY_NODE_ID 123
-
RE: Presenting and controlling variables in domoticz
Cannot get the point what you exactly mean but I think you should check for what child the message is for:
if(message.sensor == CHILD_ID_aeg2 && message.type == ...) { ..do suff.. } -
RE: Browser-based firmware generator
@user2684 wow, that was fast! Thanks!
@rakeshpai I can understand that. Not sure about the amount of rs485 users but one at least
-
RE: 💬 Building a wired RS485 sensor network
Currently there is no "hw" ack functionlity like the radio has.
You can check out the rs485 transmit code from here.But you can of course use the ack functionality between controller software and node to make sure message will get to destination.
-
RE: How can I include MyMessage object in my own class?
@gryzli133 said in How can I include MyMessage object in my own class?:
MyMessage msg(child_id, V_LIGHT);
IMO you are trying to initialize MyMessage object before your class has any value for child_id. Can be resolved using object reference.
https://www.embedded.com/electronics-blogs/programming-pointers/4024641/An-Introduction-to-ReferencesSo you wont initialize msg variable until when constructing instance of your class..
Declare MyMessage &msg; in your class
and set value for it in your class constructor: msg = MyMessage(child_id, V_LIGHT);ps. I'm natively writing C# and C++ isnt my strongest language so this might not be right
edit: did read bit more.. you need to init msg before entering inside constructor logic:
class Switch { public: Switch(........ int &child_id ......... ) : msg(child_id, V_LIGHT) { .................. } MyMessage &msg; };
I hope this works
-
RE: 💬 Building a wired RS485 sensor network
@Reza have you tried to use terminating resistors?
And perhaps it could be good to try 1k pull-up and pull-downs at the gateway end. The left diagram:
With these two tricks I got my setup stable.
And a little tweak to transport class could help also..