Go to advanced search

by Johnny5C
Sun Apr 03, 2016 12:29 pm
Forum: Python
Topic: Parsing NMEA strings with pynmea2
Replies: 3
Views: 2106

Re: Parsing NMEA strings with pynmea2

Thanks for the quick replies. I have a few things to try now. For info I'm running a fresh install of Jessie on a B+ And, when launching the python script it with sudo python script.py it cant import serial. I tried with python3 and it gets as far as the error above, and it then i got stuck. **On ed...
by Johnny5C
Sat Apr 02, 2016 9:24 pm
Forum: Python
Topic: Parsing NMEA strings with pynmea2
Replies: 3
Views: 2106

Parsing NMEA strings with pynmea2

Hi forum folk. I have hooked up a microstack GPS receiver to my B+, and can see the NMEA data using cat /dev/ttyAMA0, so the connections are OK . I found the parsing example below and the next step was to adapt it to my means, but it does not run. import serial import pynmea2 def parseGPS(str): if s...
by Johnny5C
Mon Jul 06, 2015 7:29 pm
Forum: Astro Pi
Topic: Joystick and Push Buttons
Replies: 15
Views: 2284

Re: Joystick and Push Buttons

Well done!
by Johnny5C
Mon Jul 06, 2015 6:56 pm
Forum: Astro Pi
Topic: Did everyone make the deadline?
Replies: 2
Views: 750

Re: Did everyone make the deadline?

Ditto Dave. I'm really looking forward to the next two days!
by Johnny5C
Thu Jul 02, 2015 8:38 pm
Forum: Astro Pi
Topic: Joystick and Push Buttons
Replies: 15
Views: 2284

Re: Joystick and Push Buttons

I'm really looking forward to seeing your entry zeta!
by Johnny5C
Thu Jun 25, 2015 9:27 pm
Forum: Astro Pi
Topic: pi Noir camera not detected but normal pi camera is.
Replies: 19
Views: 2765

Re: pi Noir camera not detected but normal pi camera is.

I had this problem. The sunny connector had popped out!

Image
by Johnny5C
Thu Jun 25, 2015 1:09 pm
Forum: Astro Pi
Topic: Example Astro Pi code
Replies: 13
Views: 4114

Re: Example Astro Pi code

Bump - for you know who you are.
by Johnny5C
Tue Jun 23, 2015 8:50 pm
Forum: Astro Pi
Topic: pi Noir camera not detected but normal pi camera is.
Replies: 19
Views: 2765

Re: pi Noir camera not detected but normal pi camera is.

As Dougie said, check the sunny connector on the camera itself. It's prone to not being seated properly.

Simple check too.

Caught me out many times.
by Johnny5C
Thu Jun 18, 2015 3:40 pm
Forum: Astro Pi
Topic: Astro Pi Temperature Sensor Reading
Replies: 63
Views: 40290

Re: Astro Pi Temperature Sensor Reading

I did a -10 to +40 run in our test lab yesterday. Astro Pi returned a nice linear response on both of the temperature sensors. Granted, there was a delta between the sensors themselves, and the thermocouple probe, but nothing major. I will remove the RTC board and re-run it tomorrow, to see what eff...
by Johnny5C
Tue Jun 16, 2015 12:51 pm
Forum: Astro Pi
Topic: Astro Pi Temperature Sensor Reading
Replies: 63
Views: 40290

Re: Astro Pi Temperature Sensor Reading

Rotation? If it can be proven, through analysis perhaps, that the RTC board gives sufficient air gap then the OP's experiment will be valid. My astro pi is one of the few with the RTC board in between the Pi and The HAT. It's the exact same configuration as the flight unit, and has shown that the se...
by Johnny5C
Thu Jun 04, 2015 9:37 pm
Forum: Astro Pi
Topic: Astro Pi Temperature Sensor Reading
Replies: 63
Views: 40290

Re: Astro Pi Temperature Sensor Reading

I posted some code recently to log temperature, humidity and pressure. It yielded good results for me. I left my Astro Pi outside overnight and saw a 15 ish degree swing in the temperature reading using ap.get_temperature() https://pbs.twimg.com/media/CFM80d6WYAA41LZ.jpg How come some people are not...
by Johnny5C
Thu Jun 04, 2015 9:27 pm
Forum: Astro Pi
Topic: Astro-Pi as handheld sensor
Replies: 1
Views: 858

Re: Astro-Pi as handheld sensor

Good work. I like this!
by Johnny5C
Sat May 30, 2015 8:14 pm
Forum: Astro Pi
Topic: Got The pi and pi noir cameras, not being detected
Replies: 9
Views: 1700

Re: Got The pi and pi noir cameras, not being detected

Try this.

Code: Select all

wget https://www.raspberrypi.org/files/astro-pi/kinstall.tar.gz
sudo tar -C / -xvpf kinstall.tar.gz
sudo reboot
by Johnny5C
Mon May 25, 2015 9:31 pm
Forum: Astro Pi
Topic: Example Astro Pi code
Replies: 13
Views: 4114

Re: Example Astro Pi code

Some people have asked for the code I have been using to take-time-lapse videos. Time-lapse photography could be an exciting use for an Astro Pi when on the ISS, looking out of the Cupola? My simple code: import time import picamera from astro_pi import AstroPi ap = AstroPi() with picamera.PiCamera(...
by Johnny5C
Sat May 16, 2015 1:56 pm
Forum: Astro Pi
Topic: Get directional vector from Yaw, Pitch & Roll
Replies: 18
Views: 11778

Re: Get directional vector from Yaw, Pitch & Roll

This is heavy stuff guys.

Does anyone know what x, y and z are in relation to the HAT?

I'm writing a script to use the raw accelerometer values, but my astro pi is doing some data logging, so I cant check...
by Johnny5C
Sat May 16, 2015 1:20 pm
Forum: Astro Pi
Topic: Example Astro Pi code
Replies: 13
Views: 4114

Re: Example Astro Pi code

This code will read figures of temperature, humidity and pressure and write them to a .csv file. There are a few things you can easily change like maxcount, to adjust the length of time for the experiment, and the sleep time to adjust the time between samples in seconds. It also displays the count n...
by Johnny5C
Sat May 16, 2015 9:22 am
Forum: Astro Pi
Topic: Testing the pressure sensor
Replies: 6
Views: 1696

Re: Testing the pressure sensor

1027.34 Millibars this morning in sunny Gosport. Could use this to make a neat little graphical barometer..
by Johnny5C
Sat May 16, 2015 7:18 am
Forum: Astro Pi
Topic: Testing the pressure sensor
Replies: 6
Views: 1696

Re: Testing the pressure sensor

Thanks Dave! Going to try this with the kids later!
by Johnny5C
Fri May 15, 2015 5:51 pm
Forum: Astro Pi
Topic: Reading orientation data in a loop
Replies: 8
Views: 3982

Re: Reading orientation data in a loop

Yeah, just tinkering with yaw, I can see that is plays catchup after you stop moving.

But, pitch and roll take big jumps to the new position.
by Johnny5C
Fri May 15, 2015 4:54 pm
Forum: Astro Pi
Topic: Reading orientation data in a loop
Replies: 8
Views: 3982

Re: Reading orientation data in a loop

I have run your code on my pi, and it look OK on first glance. Watching your video were you only changing the yaw to test it?
by Johnny5C
Wed May 13, 2015 8:01 pm
Forum: Astro Pi
Topic: Astro Pi set up help!
Replies: 7
Views: 2180

Re: Astro Pi set up help!

Really good to see some Astro Pi user comments!

The project is getting its legs!
by Johnny5C
Mon May 11, 2015 9:15 pm
Forum: Astro Pi
Topic: Example Astro Pi code
Replies: 13
Views: 4114

Re: Example Astro Pi code

Got a camera connected to your Astro Pi? This little script will count down from 5 on the LED display and then take an image with the camera. import time import picamera from astro_pi import AstroPi ap = AstroPi() ap.clear() for i in reversed(range(1,6)): ap.show_letter(str(i), text_colour=[128, 0, ...
by Johnny5C
Sat May 02, 2015 10:48 am
Forum: Astro Pi
Topic: How to calibrate the Magnetometer
Replies: 20
Views: 26238

Re: How to calibrate the Magnetometer

Thanks Dave. Worked like a charm.

Had to do the full version, but it's not difficult if you follow the well written steps!

Cheers
by Johnny5C
Sun Apr 26, 2015 1:40 pm
Forum: Astro Pi
Topic: Example Astro Pi code
Replies: 13
Views: 4114

Re: Example Astro Pi code

I'm lucky enough to have some hardware, because I'm part of the Astro Pi team. I'm putting these example here to record my tinkering, and when hardware gets into the hands of people, schools or other, they can get going quickly. These two just scratch the surface of the capability of the Astro Pi HA...
by Johnny5C
Sat Apr 25, 2015 7:53 pm
Forum: Astro Pi
Topic: Example Astro Pi code
Replies: 13
Views: 4114

Re: Example Astro Pi code

The code below will display the IP address of network port eth0 on the LED matrix. I find this useful, as I work my Astro Pi headless over SSH, and often move between networks. (It's another example of how to display variables on the LED matrix) It's also useful to have it run on boot, so.......... ...

Go to advanced search