Well I solved the problem... I had a power supply tied to the board and should not have while communicating via USB! https://ketturi.kapsi.fi/2014/04/how-to-fix-moody-arduino-nano/
GRB
@GRB
Best posts made by GRB
-
RE: Device driver
-
Device driver
Hello,
I am new to mysensors and trying to get started... However, I am having a lot of trouble getting the device drivers to load for my Nano. I have read a number of posts regarding this and tried many different things.. Please help -
The Nano is using a FTDI 1441-c chip, I am not sure if that is a real or fake FTDI chip? I am using Win 7 with an HP 6360t laptop. I can get as far as it accepting the bus driver file date 9/9/2014, however it still has a code 10 error and the device is stopped. When I try to load the port driver on the device showing under COM ports it is not successful .- I have downloaded the most current driver from FTDI website - ver 2.12 I believe.
- I have followed the process of loading the Bus driver and then port driver.
- I tried loading the driver listed in win../system32/driverstore. I have also tried the drivers within the arduino dir
- I have tried to change the ftdibus.inf & port.inf file - PID_ version on the driver to 0000
- I have also tried shutting down the PC, removing the battery and then restarting
I have been successful with being able to communicate to a UNO. However, I would like to use the Nano for my gateway because it is verified with Vera controller. At this time I am just trying to get started with the gateway. Any help would be appreciated
Latest posts made by GRB
-
RE: UI5 to UI7 update
Hello
The checksum results look good..
f9875310ea581c6384046dfd733dc5c9e436ef20 /etc/cmh-ludl/D_Arduino1.json.lzo
e3c4493c7dff216c152b8a4d50c169acf636b1fc /etc/cmh-ludl/D_Arduino1.xml.lzo
8f0186c85c9a6ef6e0e8ba0755f88cbb5d326e30 /etc/cmh-ludl/D_ArduinoNode1.json.lzo
7d66187bb75beb01606f607ad1e82a6fa6b2a552 /etc/cmh-ludl/D_ArduinoNode1.xml.lzo
722b702937db7aedcb03346229fcc38363b2c378 /etc/cmh-ludl/D_ArduinoRelay1.json.lzo
05ea89a8d904f436c60bd326315724e79c5c47de /etc/cmh-ludl/D_ArduinoRelay1.xml.lzo
ed15bfde68e6615b7615bd6230ca8040a50f5f28 /etc/cmh-ludl/I_Arduino1.xml.lzo
2f0603b6192006f88e3582788a13a168391ceee4 /etc/cmh-ludl/L_Arduino.lua.lzo
dc1e8a26833890f2d1f412c9b2e915724576cbd4 /etc/cmh-ludl/S_Arduino.xml.lzo
64f886de376e2d932cd55bdf8a6367ed7a394d55 /etc/cmh-ludl/S_ArduinoNode.xml.lzoIt does not look like there are any errors on the arduino plugin.. I need to dig ot one of my sensors and see if it is working correctly - thank you for your help
-
RE: UI5 to UI7 update
Hello,
Thank you for your patience with this... It looks like the files match but some of the checksums do not. Below is what I found on my vera..
6cde9f3c5f8d5eae74500ef237296e535344ee99 /etc/cmh-ludl/D_Arduino1.json.lzo
e3c4493c7dff216c152b8a4d50c169acf636b1fc /etc/cmh-ludl/D_Arduino1.xml.lzo
b5b5dac4e0441c889fae60ef0db00f5b8b5ebf9e /etc/cmh-ludl/D_ArduinoNode1.json.lzo
7d66187bb75beb01606f607ad1e82a6fa6b2a552 /etc/cmh-ludl/D_ArduinoNode1.xml.lzo
722b702937db7aedcb03346229fcc38363b2c378 /etc/cmh-ludl/D_ArduinoRelay1.json.lzo
05ea89a8d904f436c60bd326315724e79c5c47de /etc/cmh-ludl/D_ArduinoRelay1.xml.lzo
ed15bfde68e6615b7615bd6230ca8040a50f5f28 /etc/cmh-ludl/I_Arduino1.xml.lzo
ddc609fc75936e6ed586f25b880cee560250ab6b /etc/cmh-ludl/L_Arduino.lua.lzo
daba9c401302734735bdddeacd312f47ddcbabcd /etc/cmh-ludl/S_Arduino.xml.lzo
64f886de376e2d932cd55bdf8a6367ed7a394d55 /etc/cmh-ludl/S_ArduinoNode.xml.lzo -
RE: UI5 to UI7 update
Hello
So I was still unable to tell if the gateway is using a true FTDI chip, using the command lsusb -v -s 002:003.. I went through the process of setting up the gateway and reloaded the zwave engine - Below is the log for the Arduino gateway - There are a few areas that look significant but I pasted all the entries so nothing go missed.09 11/26/16 20:44:45.594 UserData::ParseRooms 13 Arduino <0x2ab7a000>
10 11/26/16 20:44:45.672 Device 150 Description: Arduino Plugin <0x2ab7a000>
10 11/26/16 20:44:45.904 Device_LuaUPnP::LoadDeviceDoc 150 file D_Arduino1.xml size 1034 result 0 <0x2ab7a000>
10 11/26/16 20:44:45.905 Device_LuaUPnP::LoadDeviceDoc 150 file /etc/cmh-ludl//D_Arduino1.xml finished <0x2ab7a000>
25 11/26/16 20:44:47.338 JobHandler_LuaUPnP::ParseAllImplementations parsed I_Arduino1.xml <0x2ab7a000>
10 11/26/16 20:44:47.346 Device_LuaUPnP::MatchupImplementations device 150 using implementation: I_Arduino1.xml with 10 services <0x2ab7a000>
25 11/26/16 20:44:49.894 LuaInterface::LuaInterface 0xc6ae20 device 150 Arduino Plugin <0x2ab7a000>
25 11/26/16 20:44:49.921 LuaInterface::LuaInterface build device id's 0xc6ae20 device 150 Arduino Plugin <0x2ab7a000>
25 11/26/16 20:44:49.922 LuaInterface::LuaInterface done 0xc6ae20 device 150 Arduino Plugin <0x2ab7a000>
luup.log("Arduino plugin: loading library L_Arduino ...")
package.loaded.L_Arduino = nil
p = require("L_Arduino")
if (package.loaded.L_Arduino == nil)
luup.log("Arduino plugin: plugin is not installed correctly. Library L_Arduino cannot be loaded.", 1)
luup.task("Plugin not correctly installed", 2, "Arduino plugin", -1)
luup.log("Arduino plugin: library L_Arduino loaded")
function SArduino_arduino1_SendCommand_job(lul_device,lul_settings,lul_job)
function SArduino_arduino1_SetUnit_job(lul_device,lul_settings,lul_job)
function SArduino_arduino1_StartInclusion_job(lul_device,lul_settings,lul_job)
function SArduino_arduino1_StopInclusion_job(lul_device,lul_settings,lul_job)
09 11/26/16 20:44:51.528 JobHandler_LuaUPnP::Run device 150 Arduino Plugin room 13 type urn:schemas-arduino-cc:device:arduino:1 cat 0:-1 id parent 0/0xaaefa0 upnp: 0 plugin:0 pnp:0 mac: ip: <0x2ab7a000>
50 11/26/16 20:44:55.247 luup_log:69: device # 150: supports Dimming1; set watch on variable 'LoadLevelTarget' for Arduino Plugin <0x2b4ca680>
50 11/26/16 20:44:55.248 luup_log:69: device # 150: supports HVAC_UserOperatingMode1; set watch on variable 'ModeTarget' for Arduino Plugin <0x2b4ca680>
50 11/26/16 20:44:55.250 luup_log:69: device # 150: supports HVAC_UserOperatingMode1; set watch on variable 'ModeStatus' for Arduino Plugin <0x2b4ca680>
50 11/26/16 20:44:55.251 luup_log:69: device # 150: supports HVAC_UserOperatingMode1; set watch on variable 'EnergyModeTarget' for Arduino Plugin <0x2b4ca680>
50 11/26/16 20:44:55.253 luup_log:69: device # 150: supports HVAC_UserOperatingMode1; set watch on variable 'EnergyModeStatus' for Arduino Plugin <0x2b4ca680>
50 11/26/16 20:44:55.254 luup_log:69: device # 150: supports HVAC_FanOperatingMode1; set watch on variable 'Mode' for Arduino Plugin <0x2b4ca680>
50 11/26/16 20:44:55.256 luup_log:69: device # 150: supports HVAC_FanOperatingMode1; set watch on variable 'FanStatus' for Arduino Plugin <0x2b4ca680>
50 11/26/16 20:44:55.257 luup_log:69: device # 150: supports TemperatureSetpoint1_Heat; set watch on variable 'CurrentSetpoint' for Arduino Plugin <0x2b4ca680>
50 11/26/16 20:44:55.259 luup_log:69: device # 150: supports TemperatureSetpoint1_Heat; set watch on variable 'SetpointTarget' for Arduino Plugin <0x2b4ca680>
50 11/26/16 20:44:55.260 luup_log:69: device # 150: supports TemperatureSetpoint1_Cool; set watch on variable 'CurrentSetpoint' for Arduino Plugin <0x2b4ca680>
50 11/26/16 20:44:55.262 luup_log:69: device # 150: supports TemperatureSetpoint1_Cool; set watch on variable 'SetpointTarget' for Arduino Plugin <0x2b4ca680>
25 11/26/16 20:44:55.399 LuImplementation::StartLua device: 150 file:I_Arduino1.xml startup:startup pLuaInterface: 0xc6ae20 ip: 127.0.0.1 port 3481 protocol: (null) <0x2b4ca680>
10 11/26/16 20:44:55.407 XXX-UpdateSystemMessagesTasks now 1=Arduino Plugin[150]: Opening IO Port timeout 0 (-1480221895) count: 6pend:Opening IO Port/err:(null)/done:(null) <0x2b2ca680>
10 11/26/16 20:44:55.411 XXX-UpdateSystemMessagesTasks now 1=Arduino Plugin[150]: Opening IO Port timeout 0 (-1480221895) count: 6pend:Opening IO Port/err:(null)/done:(null) <0x2b2ca680>
10 11/26/16 20:44:55.416 XXX-UpdateSystemMessagesTasks now 1=Arduino Plugin[150]: Opening IO Port timeout 0 (-1480221895) count: 6pend:Opening IO Port/err:(null)/done:(null) <0x2b2ca680>
25 11/26/16 20:44:59.522 LuImplementation::StartLua running startup code for 150 I_Arduino1.xml <0x2b4ca680>
50 11/26/16 20:44:59.523 luup_log:150: Arduino plugin: loading library L_Arduino ... <0x2b4ca680>
10 11/26/16 20:44:59.529 XXX-UpdateSystemMessagesTasks now 1=Arduino Plugin[150]: Running Lua Startup timeout 0 (-1480221899) count: 6pend:Running Lua Startup/err:(null)/done:(null) <0x2b2ca680>
50 11/26/16 20:44:59.564 luup_log:150: Arduino plugin: library L_Arduino loaded <0x2b4ca680>
50 11/26/16 20:44:59.565 luup_log:150: Arduino: urn:upnp-arduino-cc:serviceId:arduino1,PluginVersion, 1.5, 150 <0x2b4ca680>
50 11/26/16 20:44:59.566 luup_log:150: Arduino: Trying for a serial connection <0x2b4ca680>
50 11/26/16 20:44:59.566 luup_log:150: Arduino: Serial port is connected <0x2b4ca680>
50 11/26/16 20:44:59.567 luup_log:150: Arduino: Baud is 115200 <0x2b4ca680>
50 11/26/16 20:44:59.570 luup_log:150: Arduino: Sending: 0;0;3;0;2;Get Version <0x2b4ca680>
10 11/26/16 20:44:59.579 XXX-UpdateSystemMessagesTasks now 1=Arduino Plugin[150]: Running Lua Startup timeout 0 (-1480221899) count: 6pend:Running Lua Startup/err:(null)/done:(null) <0x2b2ca680>
10 11/26/16 20:44:59.589 XXX-UpdateSystemMessagesTasks StartupTask #5 = 4 OK / Arduino Plugin[150] <0x2b2ca680>
02 11/26/16 20:44:59.597 luup_log:150: Arduino: Incoming internal command '0;0;3;0;2;1.4.1' discarded for child: nil <0x2e0ca680>
10 11/26/16 20:44:59.609 XXX-UpdateSystemMessagesTasks StartupTask #5 = 4 OK / Arduino Plugin[150] <0x2b2ca680>
10 11/26/16 20:44:59.661 XXX-UpdateSystemMessagesTasks StartupTask #5 = 4 OK / Arduino Plugin[150] <0x2b2ca680>
10 11/26/16 20:44:59.667 XXX-UpdateSystemMessagesTasks StartupTask #5 = 4 OK / Arduino Plugin[150] <0x2b2ca680>
10 11/26/16 20:45:27.112 XXX-UpdateSystemMessagesTasks StartupTask #5 = 4 OK / Arduino Plugin[150] <0x2b2ca680>
00 11/26/16 20:45:27.385 luup_log:69: EchoEnergyManager::ERROR: ergy_pollDevices: FAILED to retrieve 'LoadLevelStatus' for Arduino Plugin device # 150 <0x2c2ca680>
00 11/26/16 20:45:27.387 luup_log:69: EchoEnergyManager::ERROR: ergy_pollDevices: FAILED to retrieve 'LoadLevelTarget' for Arduino Plugin device # 150 <0x2c2ca680>
00 11/26/16 20:45:27.389 luup_log:69: EchoEnergyManager::ERROR: ergy_pollDevices: FAILED to retrieve 'ModeTarget' for Arduino Plugin device # 150 <0x2c2ca680>
00 11/26/16 20:45:27.390 luup_log:69: EchoEnergyManager::ERROR: ergy_pollDevices: FAILED to retrieve 'ModeStatus' for Arduino Plugin device # 150 <0x2c2ca680>
00 11/26/16 20:45:27.392 luup_log:69: EchoEnergyManager::ERROR: ergy_pollDevices: FAILED to retrieve 'EnergyModeTarget' for Arduino Plugin device # 150 <0x2c2ca680>
00 11/26/16 20:45:27.394 luup_log:69: EchoEnergyManager::ERROR: ergy_pollDevices: FAILED to retrieve 'EnergyModeStatus' for Arduino Plugin device # 150 <0x2c2ca680>
00 11/26/16 20:45:27.396 luup_log:69: EchoEnergyManager::ERROR: ergy_pollDevices: FAILED to retrieve 'Mode' for Arduino Plugin device # 150 <0x2c2ca680>
00 11/26/16 20:45:27.398 luup_log:69: EchoEnergyManager::ERROR: ergy_pollDevices: FAILED to retrieve 'FanStatus' for Arduino Plugin device # 150 <0x2c2ca680>
00 11/26/16 20:45:27.400 luup_log:69: EchoEnergyManager::ERROR: ergy_pollDevices: FAILED to retrieve 'CurrentSetpoint' for Arduino Plugin device # 150 <0x2c2ca680>
00 11/26/16 20:45:27.402 luup_log:69: EchoEnergyManager::ERROR: ergy_pollDevices: FAILED to retrieve 'SetpointTarget' for Arduino Plugin device # 150 <0x2c2ca680>
00 11/26/16 20:45:27.404 luup_log:69: EchoEnergyManager::ERROR: ergy_pollDevices: FAILED to retrieve 'CurrentSetpoint' for Arduino Plugin device # 150 <0x2c2ca680>
00 11/26/16 20:45:27.405 luup_log:69: EchoEnergyManager::ERROR: ergy_pollDevices: FAILED to retrieve 'SetpointTarget' for Arduino Plugin device # 150 <0x2c2ca680>
10 11/26/16 20:45:38.184 XXX-UpdateSystemMessagesTasks StartupTask #5 = 4 OK / Arduino Plugin[150] <0x2b2ca680>
10 11/26/16 20:46:03.321 XXX-UpdateSystemMessagesTasks StartupTask #5 = 4 OK / Arduino Plugin[150] <0x2b2ca680> -
RE: UI5 to UI7 update
@blacey
I will go through the steps to connect the gateway and then get the logs..When I send the command lsusb -v -3 002:003 It just returns the list of the 3 devices..
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 002 Device 003: ID 0403:6001 -
RE: UI5 to UI7 update
Hello Blacey,
Sorry for all the replys.. I got as far as listing the devices, I couldnt't get the details.. This is what I show for connect devices..Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 002 Device 003: ID 0403:6001when I try the -v -s commands it returns the same list.
-
RE: UI5 to UI7 update
Hello,
I am fairly sure it's a Nano clone for my gateway.. Within the serial port settings in vera it sees the device and the light is flashing on the vera as if it's communicating with gateway. How do I view the port settings / USB devices as you have detailed? I want to check and see if the gateway shows up as a FTDI device. -
RE: UI5 to UI7 update
Hello,
Yes used the zip file in the UI7 branch, looks like the file dates are 3/16/2016.. The version on the plugin is v1.5 -
UI5 to UI7 update
Hello,
It's been a while since I have worked with my vera & arduinos, moved to a new home. So I set up vera and decided to update to UI7.758. Everything transferred ok, however my arduino plugin did not recoginze the gateway - I have updated the plugin to v1.5, removed the device and created it again, configured the serial port. It gives me the can't detect device, I try to start the device an nothing happens. The gateway I am using is a Nano serial gateway. Any help would be appreciated -
RE: Soil Moisture analog input question
Here is the sketch if anyone can help out.
#include <SPI.h>
#include <MySensor.h>#define CHILD_ID_LIGHT 0
#define LIGHT_SENSOR_ANALOG_PIN 1#define NODE_ID 9
int BATTERY_SENSE_PIN = A2; // select the input pin for the battery sense point
unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds)
MySensor gw;
MyMessage msg(CHILD_ID_LIGHT, V_LIGHT_LEVEL);
int lastLightLevel;
int oldBatteryPcnt = 0;void setup()
{
// use the 1.1 V internal reference
//analogReference(INTERNAL);
gw.begin(NULL, NODE_ID, false);// Send the sketch version information to the gateway and Controller
gw.sendSketchInfo("Soil_Moist_Sensor_grb", "1.15");// Register all sensors to gateway (they will be created as child devices)
gw.present(CHILD_ID_LIGHT, S_LIGHT_LEVEL);
}void loop()
{
int lightLevel = (1023-analogRead(LIGHT_SENSOR_ANALOG_PIN))/10.23;
Serial.println(lightLevel);
if (lightLevel != lastLightLevel) {
gw.send(msg.set(lightLevel));
lastLightLevel = lightLevel;
}// get the battery Voltage
int sensorValue = analogRead(BATTERY_SENSE_PIN);
Serial.println(sensorValue);// 1M, 470K divider across battery and using internal ADC ref of 1.1V
// Sense point is bypassed with 0.1 uF cap to reduce noise at that point
// ((1e6+470e3)/470e3)*1.1 = Vmax = 3.44 Volts
// 3.44/1023 = Volts per bit = 0.003363075 - changed without ref volt
float batteryV = sensorValue * 0.00305734;
int batteryPcnt = sensorValue / 10;Serial.print("Battery Voltage: ");
Serial.print(batteryV);
Serial.println(" V");Serial.print("Battery percent: ");
Serial.print(batteryPcnt);
Serial.println(" %");if (oldBatteryPcnt != batteryPcnt) {
// Power up radio after sleep
gw.sendBatteryLevel(batteryPcnt);
oldBatteryPcnt = batteryPcnt;
}gw.sleep(SLEEP_TIME);
} -
Soil Moisture analog input question
Hello,
I have created a sketch based on the analog light sensor sketch for a soil moisture sensor. It incorporates voltage monitor because I am using a 9v battery as a source, using Arduino Nano, sensor is connected to 5vdc regulated.This is connected via a serial gateway to vera. I am having trouble with the sketch if I include the analog ref voltage code from the voltage monitoring code, I do not see a change in the analog value from the soil moisture sensor.// use the 1.1 V internal reference
analogReference(INTERNAL);I have verified that that the voltage output is changing on the sensor. If I omit this code I am able to see the value of the moisture sensor change, however as the sensor detects more moisture and changes the value in Vera I notice that the battery level indicator changes. I do not have the 0.1uf cap connected from voltage tap to analog input, could this create the issue? I believe since I am not using the 1.1v reference code, I need to recalculate the ADCmax and also V/bit ratio in order to get an accurate percentage battery voltage. How does setting the analog reference impact other analog inputs? At this moment I don't have the sketch with me but will upload it later.