Install.sh error


#1

I am running install.sh as part of initial setup and it gives this error after going through some steps-

Making changes to Arduino . . .

–2014-06-22 05:47:06-- http://project-downloads.drogon.net/gertboard/avrdude_5.10-4_armhf.deb
Resolving project-downloads.drogon.net (project-downloads.drogon.net)… 195.10.226.169, 2a00:ce0:2:feed:beef:cafe:0:4
Connecting to project-downloads.drogon.net (project-downloads.drogon.net)|195.10.226.169|:80… failed: Connection timed out.

How can I avoid this error?


#2

And when I run Arduino IDE, it does not show Raspberry Pi GPIO option under Tools->Programmer.
How can I get it to work?


#3

Hi,
It seems like the Raspberry Pi is having difficulty connecting to the internet. You are getting that error because the Raspberry Pi is unable to connect to the internet and fetch that file. Try running the script again with a stable internet connection.

The “RaspberryPi GPIO” will only appear once you have the script has properly completed and all the packages are installed.

Thanks,
Karan


#4

I checked the connection to internet on pi and it was fine.
I tried to access these domains in browser from my PC and they also did not respond-

project-downloads.drogon.net
projects.drogon.net

Are these sites down? Can you make that content available on another site and change the script?


#5

Hi,
Sorry for the problems that you are facing. I just ran the scripts on my end and they do work pretty well. Can you just click on this link http://project-downloads.drogon.net/gertboard/avrdude_5.10-4_armhf.deb, something shoud start downloading. I even checked the link for http://projects.drogon.net/ and the site is alos up. Are you sure that this is not an issue with your internet connection.

If you are not able to find any solution to get this to work, I’ll try create a script tomorrow and send the package to you to you so that you can run it directly on your Arduberry.

Thanks,
Karan


#6

I solved the connectivity problem. That site was blocking my IP. Now the install.sh worked correctly. Now I was able to set the Tools->Programmer to RaspberryPi GPIO.

I’ve connected the diyode codeshield to arduberry. When I try to upload a sketch I get this error-

Binary sketch size: 1,042 bytes (of a 32,256 byte maximum)
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

How can I fix this error?


#7

Here’s the output from the troubleshooting script you mentioned in the other thread-

pi@raspberrypi /tmp $ cat error_log.txt
troubleshooting_script_v1
Check for dependencies

python 2.7.3-4+deb7u1 install ok installed
python-pip 1.1-3 install ok installed
git 1:1.7.10.4-1+wheezy1+rpi2 install ok installed
libi2c-dev 3.1.0-2 install ok installed
python-serial 2.5-2.1 install ok installed
python-rpi.gpio 0.5.5-1 install ok installed
i2c-tools 3.1.0-2 install ok installed
python-smbus 3.1.0-2 install ok installed
arduino 1:1.0.1+dfsg-7 install ok installed
minicom 2.6.1-1 install ok installed
scratch 1.4.20131203-2 install ok installed

wiringPi Found
wiringPi Found
I2C already removed from blacklist
SPI already removed from blacklist

Check for addition in /modules

I2C-dev already there
i2c-bcm2708 already there
spi-dev already there

Setup for Serial for BrickPi

Clock speed not Configured(ERR)
Serial Port Enabled
Serial Port Login Already Disabled

Hardware revision

gpio version: 2.14
Copyright © 2012-2014 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

This Raspberry Pi is a revision 1 board.

Read pins

±---------±Rev1-±-----±-------±-----±------+
| wiringPi | GPIO | Phys | Name | Mode | Value |
±---------±-----±-----±-------±-----±------+
| 0 | 17 | 11 | GPIO 0 | IN | Low |
| 1 | 18 | 12 | GPIO 1 | IN | Low |
| 2 | 21 | 13 | GPIO 2 | IN | Low |
| 3 | 22 | 15 | GPIO 3 | IN | Low |
| 4 | 23 | 16 | GPIO 4 | IN | Low |
| 5 | 24 | 18 | GPIO 5 | IN | Low |
| 6 | 25 | 22 | GPIO 6 | IN | Low |
| 7 | 4 | 7 | GPIO 7 | IN | Low |
| 8 | 0 | 3 | SDA | ALT0 | High |
| 9 | 1 | 5 | SCL | ALT0 | High |
| 10 | 8 | 24 | CE0 | OUT | High |
| 11 | 7 | 26 | CE1 | ALT0 | High |
| 12 | 10 | 19 | MOSI | OUT | Low |
| 13 | 9 | 21 | MISO | IN | High |
| 14 | 11 | 23 | SCLK | OUT | Low |
| 15 | 14 | 8 | TxD | ALT0 | High |
| 16 | 15 | 10 | RxD | ALT0 | High |
±---------±-----±-----±-------±-----±------+

Check I2C

 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --

Check the /dev folder

i2c-0
i2c-1
spidev0.0
spidev0.1
ttyAMA0

============
=USER STATS=

BrickPi Found
Arduberry Found
grovePi Found
GoPiGo Found

BrickPiStatus

BrickPi Not Found (ERR)
pi@raspberrypi /tmp $


#8

Hi,
The troubleshooting output does not show any apparent problem. Can you try running avrdude -c gpio -p m328p and post what you see. Also can you post some high resolution photographs of the your setup. It would be great if you could try out the Dexter Industries Flavor of Raspbian from here: http://sourceforge.net/projects/dexterindustriesraspbianflavor/files/latest/download?source=files .

Please let me know if that also does not work out for you.

Sorry for all the troubles.
-Karan


#9

pi@raspberrypi ~ $ avrdude -c gpio -p m328p

avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.


#10

Hi,
Everything looks pretty good in the pictures. I have a few more questions:

  • Are you seeing two green led’s lighting up when you power the Arduberry
  • On the bottom side can you visually verify that the notch on the ATMEGA chip is in the same direction as the white markings on the boards
  • It would be really great if you could try out the Dexter Industries flavor of Raspbian. That’ll rule out all the suspicion of problem with the software.

-Karan


#11

notch is in the correct direction.

I installed dexter raspbian. Now when I try to upload a sketch,I get this error-

Binary sketch size: 1,072 bytes (of a 32,256 byte maximum)
processing.app.SerialNotFoundException: Serial port ‘COM1’ not found. Did you select the right one from the Tools > Serial Port menu?
at processing.app.Serial.<init>(Serial.java:191)
at processing.app.Serial.<init>(Serial.java:77)
at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:77)

The port menu is grayed out under Tools and Raspberry PI GPIO is selected under Programmer.


#12

Try using “CTRL+SHIFT+U” or use “File->Upload using programmer” to upload the code to the Arduberry instead of using the normal upload button.