Door sensor make USB disconnect while reading serial output?
-
@guilou - should work just fine..!
But still the behaviour smells like a power issue if you use the standard sketch... did you try another radio and or nano? -
@guilou - should work just fine..!
But still the behaviour smells like a power issue if you use the standard sketch... did you try another radio and or nano?@sundberg84 I swapped Nano between the gateway and the sensor and this bug always occurs with the sensor sketch. I have spare radio modules, so I will try with another one, thank you for this suggestion ;)
-
@hek said in Door sensor make USB disconnect while reading serial output?:
Did you try adding a larger capacitor on the radio?
Yes, but still the same.
I grab another Arduino Nano (not sure it's a guenuine one) and the serial output is correct! The sensor can not find the gateway, but this is another story :)
Do you know why some Arduino Nano V3 "compatible" will not work?
-
Hey there,
How can I know which Arduino Nano are good for MySensors?
Mine are from Banggood and the serial output seems to be chaotic.I have one from Gravitech and it seems to be ok…
How to choose? In the MySensors store, this is clone form Asia like mine from Banggood…
-
So far, most of the cheap clones I use (or used) seemed to work fine on USB side, so most likely there is no real "rule".
In case your problem is related to powering, you may replace the nano by a combination of CP2102 USB-to-serial converter and a pro mini or use a Pro Micro. The CP2102 also provides more current@3.3V (up to 100mA) and (similar to original FTDI's) allows programming of serial numbers and Product ID's to uniquely identify them in /dev/serial/by-id.Your problem report also reminds me to problems other users had with their LAN-GW's. For them afaik downgrading the board definition for the nanos (not the IDE) to version <=1.6.11 helped a lot. You might give that a try...
-
So far, most of the cheap clones I use (or used) seemed to work fine on USB side, so most likely there is no real "rule".
In case your problem is related to powering, you may replace the nano by a combination of CP2102 USB-to-serial converter and a pro mini or use a Pro Micro. The CP2102 also provides more current@3.3V (up to 100mA) and (similar to original FTDI's) allows programming of serial numbers and Product ID's to uniquely identify them in /dev/serial/by-id.Your problem report also reminds me to problems other users had with their LAN-GW's. For them afaik downgrading the board definition for the nanos (not the IDE) to version <=1.6.11 helped a lot. You might give that a try...
@rejoe2 said in Door sensor make USB disconnect while reading serial output?:
Your problem report also reminds me to problems other users had with their LAN-GW's. For them afaik downgrading the board definition for the nanos (not the IDE) to version <=1.6.11 helped a lot. You might give that a try...
Ok, I don't really understand yet what is the board definition version, but I will try. Thank you :)
-
@rejoe2 said in Door sensor make USB disconnect while reading serial output?:
Your problem report also reminds me to problems other users had with their LAN-GW's. For them afaik downgrading the board definition for the nanos (not the IDE) to version <=1.6.11 helped a lot. You might give that a try...
Ok, I don't really understand yet what is the board definition version, but I will try. Thank you :)
@guilou said in Door sensor make USB disconnect while reading serial output?:
Ok, I don't really understand yet what is the board definition version, but I will try. Thank you :)
See Tools - Board - Boards Manager. If you click on the Board Definitions listed (here: for Arduino Nano), a dropdown with all the versions available will appear - the function is similar to the Library Manager.