User avatar
JonnyAlpha
Raspberry Pi Certified Educator
Raspberry Pi Certified Educator
Posts: 570
Joined: Sat Nov 02, 2013 2:06 pm

PITS and Pi Zero Auto Start

Thu Apr 28, 2016 8:04 am

Probably a simple error on my part but I am having trouble getting the tracker software to auto start on my Pi Zero / PITS setup.
I followed the build guide here:
http://www.pi-in-the-sky.com/data/uploa ... manual.pdf

But when I disconnect and reconnect the power after rebooting the Pi (after the last step using sudo halt) my Pi just boots to the RPi login prompt?

The Pi is powered by a standard Pi PSU and I have no batteries connected to the PITS board (does the PITS need an extra power via the battery input as well?

The Red warn light is on (I am indoors), so the PITS is getting power.

Any pointers?
Raspberry Pi Certified Educator. Main Hardware - Raspberry Pi 1 model B revision 2, Raspberry Pi 2 model B, Pi Camera

User avatar
RaTTuS
Posts: 10558
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: PITS and Pi Zero Auto Start

Thu Apr 28, 2016 8:20 am

not having read any of that
sudo raspi-config
and select autologin boot to command line
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
JonnyAlpha
Raspberry Pi Certified Educator
Raspberry Pi Certified Educator
Posts: 570
Joined: Sat Nov 02, 2013 2:06 pm

Re: PITS and Pi Zero Auto Start

Thu Apr 28, 2016 10:14 am

Did that already now it just boots into the command prompt?
Raspberry Pi Certified Educator. Main Hardware - Raspberry Pi 1 model B revision 2, Raspberry Pi 2 model B, Pi Camera

edge0f17
Posts: 17
Joined: Sun Oct 25, 2015 6:55 am

Re: PITS and Pi Zero Auto Start

Thu Apr 28, 2016 11:04 am

The good news is that you can still login, so you can install the software again.

The part that installs the tracker software is:

cd
git clone https://github.com/PiInTheSky/pits.git
cd pits
./build

that part may have failed if one of the earlier steps failed.

User avatar
JonnyAlpha
Raspberry Pi Certified Educator
Raspberry Pi Certified Educator
Posts: 570
Joined: Sat Nov 02, 2013 2:06 pm

Re: PITS and Pi Zero Auto Start

Thu Apr 28, 2016 11:27 am

I already re-did the steps to install the tracker and the problem persists?
I may re-flash the card and start again?
Raspberry Pi Certified Educator. Main Hardware - Raspberry Pi 1 model B revision 2, Raspberry Pi 2 model B, Pi Camera

edge0f17
Posts: 17
Joined: Sun Oct 25, 2015 6:55 am

Re: PITS and Pi Zero Auto Start

Thu Apr 28, 2016 11:40 am

What does it say if you type "cd ~/pits && ./build", because that seems to be failing.

User avatar
JonnyAlpha
Raspberry Pi Certified Educator
Raspberry Pi Certified Educator
Posts: 570
Joined: Sat Nov 02, 2013 2:06 pm

Re: PITS and Pi Zero Auto Start

Thu Apr 28, 2016 2:14 pm

I'll give that a go and report back. I am in school at the moment prepping some questions for the Y6 after school club that are heading this project up:

1. What does HAB stand for
2. Visit UKHAS.org.co.uk
What does UKHAS stand for?
In the beginners guide (safety) why don’t we use Hydrogen?
3. Using tracker at HabHub.org what balloon call signs are currently in the air?
4. Using the predictor on the same site, if we launched from here today were would our balloon land?
5. Who is Dave Akerman and why is he relevant?
6. Have a look at our web site:
a. How high are we hoping to reach with our flight?
b. What 3 key electronic items do we need in the payload?
7. How will we stop our balloon from falling to fast?
8. How will we find our balloon when it lands?
Raspberry Pi Certified Educator. Main Hardware - Raspberry Pi 1 model B revision 2, Raspberry Pi 2 model B, Pi Camera

User avatar
daveake
Posts: 188
Joined: Thu Jul 12, 2012 12:07 am

Re: PITS and Pi Zero Auto Start

Thu Apr 28, 2016 2:53 pm

JonnyAlpha wrote:Probably a simple error on my part but I am having trouble getting the tracker software to auto start on my Pi Zero / PITS setup.
I followed the build guide here:
http://www.pi-in-the-sky.com/data/uploa ... manual.pdf

But when I disconnect and reconnect the power after rebooting the Pi (after the last step using sudo halt) my Pi just boots to the RPi login prompt?
This is correct. It used to be that the software appeared on the monitor but a change in Raspbian means that it does not appear. If you re-read the installation instructions you'll see that this is now mentioned. The software is running but the output isn't visible.

You can easily see the tracker output by killing it then restarting manually (again, see the installation instructions where this is covered).

We will probably change the startup script so that the tracker program output can be viewed via the screen command. I've tried this and it works; I just need to change the script and update the instructions.

Dave

User avatar
JonnyAlpha
Raspberry Pi Certified Educator
Raspberry Pi Certified Educator
Posts: 570
Joined: Sat Nov 02, 2013 2:06 pm

Re: PITS and Pi Zero Auto Start

Thu Apr 28, 2016 4:46 pm

daveake wrote:
JonnyAlpha wrote:Probably a simple error on my part but I am having trouble getting the tracker software to auto start on my Pi Zero / PITS setup.
I followed the build guide here:
http://www.pi-in-the-sky.com/data/uploa ... manual.pdf

But when I disconnect and reconnect the power after rebooting the Pi (after the last step using sudo halt) my Pi just boots to the RPi login prompt?
This is correct. It used to be that the software appeared on the monitor but a change in Raspbian means that it does not appear. If you re-read the installation instructions you'll see that this is now mentioned. The software is running but the output isn't visible.

You can easily see the tracker output by killing it then restarting manually (again, see the installation instructions where this is covered).

We will probably change the startup script so that the tracker program output can be viewed via the screen command. I've tried this and it works; I just need to change the script and update the instructions.

Dave
Dave I'm confused (happening a lot lately :-))

According to the pits-manual.pdf it says:

Code: Select all

Meanwhile, on your monitor screen you should be seeing plenty of activity. You should not
see any errors – if you do then read the message carefully and see where you went wrong
in following the instructions above; if you get stuck then please contact us for support. The
screen should look something like this:
RASPBERRY PI-IN-THE-SKY FLIGHT COMPUTER
=======================================
RPi Hardware : BCM2708
RPi Revision : 0010
RPi Model A+ or B+
PITS+ Board
etc...................
This is from the manual linked from http://www.pi-in-the-sky.com/
Raspberry Pi Certified Educator. Main Hardware - Raspberry Pi 1 model B revision 2, Raspberry Pi 2 model B, Pi Camera

User avatar
JonnyAlpha
Raspberry Pi Certified Educator
Raspberry Pi Certified Educator
Posts: 570
Joined: Sat Nov 02, 2013 2:06 pm

Re: PITS and Pi Zero Auto Start

Thu Apr 28, 2016 5:07 pm

Ah just found the slightly different manual / guide here: http://www.pi-in-the-sky.com/index.php? ... om-scratch

All working fine - many thanks for the help, I am now receiving a strong signal on 434.250Mhz

Question:
Is it ok to setup a payload document on habitat for ground testing? If so I will be able to demonstrate this to my Pi, Code and Chips club next week, walking around the school field whilst some of the chn track back in class?
Last edited by JonnyAlpha on Thu Apr 28, 2016 5:27 pm, edited 1 time in total.
Raspberry Pi Certified Educator. Main Hardware - Raspberry Pi 1 model B revision 2, Raspberry Pi 2 model B, Pi Camera

User avatar
JonnyAlpha
Raspberry Pi Certified Educator
Raspberry Pi Certified Educator
Posts: 570
Joined: Sat Nov 02, 2013 2:06 pm

Re: PITS and Pi Zero Auto Start

Thu Apr 28, 2016 5:24 pm

Couple of pictures:

gqrx output:

Image

dl-fldigi output:
Image
Raspberry Pi Certified Educator. Main Hardware - Raspberry Pi 1 model B revision 2, Raspberry Pi 2 model B, Pi Camera

User avatar
daveake
Posts: 188
Joined: Thu Jul 12, 2012 12:07 am

Re: PITS and Pi Zero Auto Start

Fri Apr 29, 2016 9:04 am

JonnyAlpha wrote:Is it ok to setup a payload document on habitat for ground testing?
Yes.

User avatar
JonnyAlpha
Raspberry Pi Certified Educator
Raspberry Pi Certified Educator
Posts: 570
Joined: Sat Nov 02, 2013 2:06 pm

Re: PITS and Pi Zero Auto Start

Fri Apr 29, 2016 9:53 am

Thanks Dave;

I suddenly realised anyway that I with dl-fldigi in online mode it automatically uploads to HabHub, so inadvertently I had a payload called 'CHANGEME' for the world to see, how embarrassing - school boy error.

Just need to raise the remaining £300 - £400 now and we will be on our way :-)
(Trying to fund this as a school project and not out of my own pocket - whatever happens it will go ahead though, to good an experience for the children)
Raspberry Pi Certified Educator. Main Hardware - Raspberry Pi 1 model B revision 2, Raspberry Pi 2 model B, Pi Camera

Return to “High Altitude Balloon”