Jump to content

Banner.jpg.b89429c566825f6ab32bcafbada449c9.jpg

Nexstar Raspberry Pi Controller


tekkydave

Recommended Posts

We are both getting the same error with the Astroberry driver yet you are using Raspbian and I'm using Ubuntu MATE with different sources so I feel sure the problem has to be with the Astroberry driver .deb file.

Link to comment
Share on other sites

I haven't compiled the bcm2835 - just installed the INDIbleeding library from a repository in Ubuntu MATE.  This includes everything in one go.  Well, except the Astroberry driver.  This quote from the INDI Library on Raspberry PI

Quote

Furthermore, if you install Ubuntu Mate for Raspberry PI 2, you can get all the bleeding edge INDI and KStars directly from the Ubuntu INDI PPA, no need to download and install packages manually!

I'll see if I can find the details again.  For one thing I want to start again and install everything on an 8GB micro SD card - anything bigger seems totally unnecessary.

Edited by Gina
Link to comment
Share on other sites

I replied to this but my post has disappeared - again!!  This seems to be happening quite often recently :(

Answer :- I have no idea but maybe not so that may be why Astroberry isn't working.  I would have expected a different error though.

Link to comment
Share on other sites

That post that had disappeared has come back!!  Weird.

I'm pretty sure INDI-full does not contain the bcm2835 library but could be wrong.  I found the archive containing the bcm2835 library.  There was no mention of INDI so I reckon they're separate things.  Tomorrow I'm expecting to receive some 8GB micro SD cards and proposing to install Ubuntu MATE followed by the bcm2835 library, INDI-full and Astroberry on one of them.  I shall not be installing KStars/Ekos because I see no reason to run those on the local RPi 3 server - they are on my client Linux Mint laptop.

May install TeamViewer for testing and I plan to remove unwanted software such as Libre Office, Thunderbird and a few other things I'm certain I won't want on the server.  I see no point in cluttering up the card with unwanted stuff and also a compressed archive of the card contents will be smaller and take up less room on a backup drive plus better for distributing to friends once I get it all working.

Link to comment
Share on other sites

Decided to order the HomePlug LAN with WIFi Access Point as I would like faster data transfer than I can get with my present system.  Plus a WiFi access point in my observatory warm room would provide much better reliability.  Higher speed WiFi from the RPi might be achieved with separate dongle as I have n type dongles whereas I think the RPi is only 11b - it certainly only has a miniature aerial.

Link to comment
Share on other sites

7 hours ago, Gina said:

That post that had disappeared has come back!!  Weird.

I'm pretty sure INDI-full does not contain the bcm2835 library but could be wrong.  I found the archive containing the bcm2835 library.  There was no mention of INDI so I reckon they're separate things.  Tomorrow I'm expecting to receive some 8GB micro SD cards and proposing to install Ubuntu MATE followed by the bcm2835 library, INDI-full and Astroberry on one of them.  I shall not be installing KStars/Ekos because I see no reason to run those on the local RPi 3 server - they are on my client Linux Mint laptop.

May install TeamViewer for testing and I plan to remove unwanted software such as Libre Office, Thunderbird and a few other things I'm certain I won't want on the server.  I see no point in cluttering up the card with unwanted stuff and also a compressed archive of the card contents will be smaller and take up less room on a backup drive plus better for distributing to friends once I get it all working.

Once I have a working system for mount, focuser and my ZWO ASI120MC I mayl try rebuilding using Raspbian lite which has none of the X stuff and apps.

  • Like 1
Link to comment
Share on other sites

8 hours ago, Gina said:

Decided to order the HomePlug LAN with WIFi Access Point as I would like faster data transfer than I can get with my present system.  Plus a WiFi access point in my observatory warm room would provide much better reliability.  Higher speed WiFi from the RPi might be achieved with separate dongle as I have n type dongles whereas I think the RPi is only 11b - it certainly only has a miniature aerial.

According to raspberrypi.org it is 11n. I'll see if I can find out what speed I'm getting.

  • Like 1
Link to comment
Share on other sites

Getting this on my RPi3 using internal wifi

$ iwconfig 
wlan0     IEEE 802.11bgn  ESSID:"<removed>"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: "<removed>"   
          Bit Rate=43.3 Mb/s   Tx-Power=31 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=39/70  Signal level=-71 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:26  Invalid misc:0   Missed beacon:0

 

  • Like 1
Link to comment
Share on other sites

I have checked the bcm2835 library and it appears to be installed & working. I had V1.42 installed so I have installed the latest (V1.50)

wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.50.tar.gz
tar xvfz bcm2835-1.50.tar.gz
cd bcm2835-1.50
./configure
make
sudo make install

To test it I hooked up my DVM to pin 11 and used the blink program in the examples folder

cd examples/blink
gcc -o blink blink.c -l bcm2835
sudo ./blink

The voltage on pin 11 should swing from 0V to 3.3V and back every 0.5s. I had to slow it down a bit so I edited blink.c and changed the 2 lines containing

bcm2835_delay(500);

to

bcm2835_delay(3000);

recompile as above and run again. It's a bit easier to see on the DVM now.

So that rules out the bcm2835 library. Back to Astroberry. I will download and recompile from source to see if that improves things.

  • Like 1
Link to comment
Share on other sites

Very interesting - thanks Dave :)  I'll try that - when I've woken up :D  Another late night last night so had a lie-in this morning - just had breakfast :D

Edited by Gina
Link to comment
Share on other sites

Here's my LAN speed for RPi 3.  Distance RPi 3 to router about 5m :-

Quote

gina@Rpi3-UM1:~$ iwconfig
enxb827eb135828  no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"<removed>"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: <removed>  
          Bit Rate=72 Mb/s   Tx-Power=1496 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=67/70  Signal level=-43 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

lo        no wireless extensions.

gina@Rpi3-UM1:~$

 

 

Edited by Gina
Link to comment
Share on other sites

I installed Astroberry from source as follows and now it starts with no errors - not tested with the stepper driver yet

I needed these dependencies installing on Raspbian. Ubuntu may already have them and the installation method is different but no harm done if you reinstall them. They should be in your standard repositories

sudo apt-get install subversion cmake libgps-dev

Then download source and build:

svn checkout svn://svn.code.sf.net/p/astroberry/svn/trunk/ astroberry-svn
mkdir indi-astroberry
cd indi-astroberry
cmake -DCMAKE_INSTALL_PREFIX=/usr ../astroberry-svn
make
sudo make install

Now to connect up the stepper...

  • Like 1
Link to comment
Share on other sites

3 minutes ago, tekkydave said:

I installed Astroberry from source as follows and now it starts with no errors - not tested with the stepper driver yet

I needed these dependencies installing on Raspbian. Ubuntu may already have them and the installation method is different but no harm done if you reinstall them. They should be in your standard repositories


sudo apt-get install subversion cmake libgps-dev

Then download source and build:


svn checkout svn://svn.code.sf.net/p/astroberry/svn/trunk/ astroberry-svn
mkdir indi-astroberry
cd indi-astroberry
cmake -DCMAKE_INSTALL_PREFIX=/usr ../astroberry-svn
make
sudo make install

Now to connect up the stepper...

That's great Dave :)  You seem to be getting there :)  I'll follow your track shortly :)

Edited by Gina
Link to comment
Share on other sites

Is the blink pin 11 on the connector or GPIO11?  I've ordered one of those HATs but meanwhile  I have the narrow ribbon cable I can use to connect and the DSO138 oscilloscope for testing.

Link to comment
Share on other sites

The stepper is moving :hello2::hello2::headbang:

I still need to work out what all the Ekos options mean and do but it moves when you press the "Focus In" and "Focus Out" buttons here:

Screenshot from 2016-10-07 10-50-42.png

Its doing full stepping at the moment as I haven't connected up the M0, M1 pins yet

 

Edited by tekkydave
  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.