{"action":"created","issue":{"url":"https://api.github.com/repos/shawnu/UUGear/issues/11","labels_url":"https://api.github.com/repos/shawnu/UUGear/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/shawnu/UUGear/issues/11/comments","events_url":"https://api.github.com/repos/shawnu/UUGear/issues/11/events","html_url":"https://github.com/shawnu/UUGear/issues/11","id":104130665,"number":11,"title":"ReadDHT Sample does not work","user":{"login":"sctn4elk","id":8302924,"avatar_url":"https://avatars.githubusercontent.com/u/8302924?v=3","gravatar_id":"","url":"https://api.github.com/users/sctn4elk","html_url":"https://github.com/sctn4elk","followers_url":"https://api.github.com/users/sctn4elk/followers","following_url":"https://api.github.com/users/sctn4elk/following{/other_user}","gists_url":"https://api.github.com/users/sctn4elk/gists{/gist_id}","starred_url":"https://api.github.com/users/sctn4elk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sctn4elk/subscriptions","organizations_url":"https://api.github.com/users/sctn4elk/orgs","repos_url":"https://api.github.com/users/sctn4elk/repos","events_url":"https://api.github.com/users/sctn4elk/events{/privacy}","received_events_url":"https://api.github.com/users/sctn4elk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-08-31T20:43:02Z","updated_at":"2015-11-24T20:44:12Z","closed_at":null,"body":"In following the case presented at http://www.uugear.com/portfolio/rasberrry-pi-reads-dht11-via-arduino/, it is very unclear as to how we are supposed to actually get the project working. Here is what I have surmised so far:\r\n\r\nHardware:\r\nRPi B+\r\nNano mini\r\nDHT11\r\n\r\nEnvironment:\r\nDevelopment: Windows 10\r\nRPi: Raspbian\r\n\r\nSoftware:\r\nArduino 1.0.5-r2 (https://www.arduino.cc/en/Main/Software)\r\nPython Eric6 (http://eric-ide.python-projects.org/index.html)\r\n\r\nSet Up Nano:\r\n- Access the repository at: https://github.com/shawnu/UUGear and download the project.\r\n- Extract the files and open the Arduino/UUGear folder.\r\n- You will need to put the EEPROM.h and Servo.h files into this folder. You can get them from here: https://github.com/arduino/Arduino\r\n- Open the UUGear.ino file into a Sketch IDE.\r\n- Verify the file compiles.\r\n- Plug in Nano to USB port.\r\n- Set IDE  Tools | Board -> Arduino Nano w/ATmega328.\r\n- Set IDE Tools | Serial Port -> whatever is listed (not COM1 or COM2) Mine was COM5.\r\n- Upload the Sketch to the Nano\r\n- Launch Serial Monitor from Tools | Serial Monitor\r\n- Set Baud rate 115500\r\n- Set Line feed to Both NL & CR\r\n- Enter \"U01\" and hit send, should return \"1UUGear-Arduino-####-####:)\", where ####-#### is your nano ID.\r\n- Copy the number returned by the Serial Monitor.\r\n\r\nSet Up RPi:\r\n- Plug the Nano into the Pi and power on the Pi.\r\n- Open the local UUGear folder and copy the RaspberryPi folder to the Pi. I used FileZilla.\r\n- Change to the RaspberryPi folder.\r\n- Enter \"sh build.sh\". This should create the bin folder.\r\n- Change to the bin folder.\r\n- Enter \"./lsuu\"\r\n- You should see the same Nano ID produced by the Serial Monitor.\r\n- Create a new folder for your project somewhere on the Pi.\r\n- Change to the RaspberryPi/example/python folder.\r\n- Copy the ReadDHT.py file to your project folder.\r\n- Change to the RaspberryPi/bin folder.\r\n- Copy the files UUGear.py, libUUGear.so and UUGearDaemon to your project folder.\r\n- Change to your project folder.\r\n- Edit the ReadDHT.py file and change the Nano ID, to the one you copied from above, in the line: \"device = UUGearDevice('UUGear-Arduino-####-####')\"\r\n- Enter \"sudo python ReadDHT.py\".\r\n- You should see the Humidity and Temperature displayed every second for 200 seconds.\r\n\r\nHowever, this is where I stop as my output looks like this:\r\n\r\nClient queue name=/uugear_response_queue_1\r\nUUGear device found. fd=8\r\nTime: 20:25:10\r\nH: -1 %  T: -3276 C\r\nTime: 20:25:11\r\nH: -1 %  T: -3276 C\r\nTime: 20:25:12\r\nH: -1 %  T: -3276 C\r\n\r\nNano is wired with a pullup resistor of 10k ohms across D4 and 5v.\r\n\r\nOutput of my /var/log/syslog\r\n\r\nAug 31 20:25:10 raspberrypi uugear_daemon[3781]: Received: 1]=[1]=[-1]=[UUGear-Arduino-8502-8764\r\nAug 31 20:25:10 raspberrypi uugear_daemon[3781]: Try to open device as client=1 by id=UUGear-Arduino-8502-8764\r\nAug 31 20:25:10 raspberrypi uugear_daemon[3781]: Opened serial deive: ttyUSB0 (fd=8)\r\nAug 31 20:25:10 raspberrypi uugear_daemon[3781]: Started device opener for: UUGear-Arduino-8502-8764 (ttyUSB0)\r\nAug 31 20:25:10 raspberrypi uugear_daemon[3781]: Receive device id: UUGear-Arduino-8502-8764\r\nAug 31 20:25:10 raspberrypi uugear_daemon[3781]: Device found, send fd=8 to clientId=1\r\nAug 31 20:25:10 raspberrypi uugear_daemon[3781]: Received: 41]=[1]=[8]=[4\r\nAug 31 20:25:10 raspberrypi uugear_daemon[3781]: Send command: cmd=0x50, clientId=1, fd=8, pin=4\r\nAug 31 20:25:10 raspberrypi uugear_daemon[3781]: Received response from ttyUSB0(fd=8): -1\r\nAug 31 20:25:11 raspberrypi uugear_daemon[3781]: Received: 41]=[1]=[8]=[4\r\n"},"comment":{"url":"https://api.github.com/repos/shawnu/UUGear/issues/comments/159399667","html_url":"https://github.com/shawnu/UUGear/issues/11#issuecomment-159399667","issue_url":"https://api.github.com/repos/shawnu/UUGear/issues/11","id":159399667,"user":{"login":"istruttoresp","id":16006004,"avatar_url":"https://avatars.githubusercontent.com/u/16006004?v=3","gravatar_id":"","url":"https://api.github.com/users/istruttoresp","html_url":"https://github.com/istruttoresp","followers_url":"https://api.github.com/users/istruttoresp/followers","following_url":"https://api.github.com/users/istruttoresp/following{/other_user}","gists_url":"https://api.github.com/users/istruttoresp/gists{/gist_id}","starred_url":"https://api.github.com/users/istruttoresp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/istruttoresp/subscriptions","organizations_url":"https://api.github.com/users/istruttoresp/orgs","repos_url":"https://api.github.com/users/istruttoresp/repos","events_url":"https://api.github.com/users/istruttoresp/events{/privacy}","received_events_url":"https://api.github.com/users/istruttoresp/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T20:44:12Z","updated_at":"2015-11-24T20:44:12Z","body":"hello, why i can compile the build.sh? something missing?\r\nthe errors:\r\n\r\n #sh build.sh \r\n: not found: build.sh: \r\nCURRENT_DIR =  /home/pi/Documents/project/RaspberryPi\r\n: not found: build.sh: \r\n: not found: build.sh: \r\n: not found: build.sh: \r\nmkdir: impossibile creare la directory \"/home/pi/Documents/project/RaspberryPi\\r/bin\\r\\r\": File o directory non esistente\r\n: not found0: build.sh: \r\n/binET_DIR =  /home/pi/Documents/project/RaspberryPi\r\n: not found2: build.sh: \r\nbuild.sh: 13: cd: can't cd to src\r\n: not found4: build.sh: \r\nBuilding src...\r\n: not found6: build.sh: \r\ncc: error: UUGearDaemon.c: File o directory non esistente\r\ncc: error: serial.c: File o directory non esistente\r\n: File o directory non esistente\r\ncc: fatal error: no input files\r\ncompilation terminated.\r\n/UUGear.o: File o directory non esistentepberryPi\r\ncc: error: SocketBroker.c: File o directory non esistente\r\ncc: error: UUGear.c: File o directory non esistente\r\n: not found1: build.sh: \r\ncc: error: lsuu.c: File o directory non esistente\r\n: File o directory non esistente\r\ncc: fatal error: no input files\r\ncompilation terminated.\r\n: not found3: build.sh: \r\ncp: impossibile eseguire stat di \"UUGear.py\": File o directory non esistente\r\n: not found5: build.sh: \r\nCopying shared object file to /usr/lib/...\r\n: not found7: build.sh: \r\ncp: impossibile eseguire stat di \"/home/pi/Documents/project/RaspberryPi\\r/bin\\r/libUUGear.so\": File o directory non esistente\r\n: not found9: build.sh: \r\nBuilding examples in C...\r\n: not found1: build.sh: \r\n: not found3: build.sh: \r\n/example/c34: cd: can't cd to /home/pi/Documents/project/RaspberryPi\r\n: not found5: build.sh: \r\ncc: error: DigitalReadWrite.c: File o directory non esistente\r\n: not found7: build.sh: \r\ncc: error: AnalogWrite.c: File o directory non esistente\r\n: not found9: build.sh: \r\ncc: error: VoltageMeasurement.c: File o directory non esistente\r\n: not found1: build.sh: \r\ncc: error: ReadSpeed.c: File o directory non esistente\r\n: not found3: build.sh: \r\ncc: error: ReadDHT.c: File o directory non esistente\r\n: not found5: build.sh: \r\ncc: error: ReadSR04.c: File o directory non esistente\r\n: not found7: build.sh: \r\ncc: error: ControlServo.c: File o directory non esistente\r\n: not found9: build.sh: \r\nbuild.sh: 50: cd: can't cd to /home/pi/Documents/project/RaspberryPi\r\n: not found1: build.sh: \r\nCopying examples in Python...\r\n: not found3: build.sh: \r\ncp: impossibile eseguire stat di \"/home/pi/Documents/project/RaspberryPi\\r/example/python/*.py\": File o directory non esistente\r\n: not found5: build.sh: \r\nBuild End\r\n\r\n\r\n"}}