Wednesday, 9 March 2016

Telescope with Raspberry Pi

Notes and Info on using a Raspberry Pi with my telescope

Not going to say much about my scope other than it is using a Vixen GP mount which had an ra drive fitted when I bought it, and I am fitting a dec motor to it. Both motors are vixen MT1 and I have a hand controller DD-1.

I'm first of all planning to add an ST4 interface to the controller, which looks pretty simple, and then use a PiFace to drive the interface. I'll then use Linguider to give me an autoguide capability. I'll look at adding goto later.

(Well, adding an ST4 interface to the DD1 didn't go too well.... )

I'm using Raspberry Pi, 'cos I have a couple already doing other things and I like them, plus it's nice low power so I can run on batteries, and lots of people are using them as telescope controllers. The GPIO on the pi means I can drive various things direct, rather than through various adapters, although I will use a PiFace to protect the pi and give me a bit more drive (the built in output pins are only 3.3v and very limited current).

I'm using linguider 'cos I've read in many places that it works far better on pi than the other obvious alternative - openphd, plus I relatively easily added support for driving piface outputs to it.

This setup all works, although I need to tweak the settings of lin_guider and / or the scope alignment to get a nice tight tracking. lin_guider reports a swing on tracking of around 6 - 8 arc seconds on 1 axis (the other axis is < 1 arc second). This is a 2 minute exposure with a 560mm lens on a crop frame camera. If you open up this piccy (which is a big crop from the original) you will see all the smaller stars are slight stripes.

This setup looks like it will work well for tracking, but as I can't change the speed of the motors except by moving the switch on the DD-1, goto is not going to be seamless.

Friday, 8 January 2016

Lego Mindstorm EV3 motors - some performance info under EV3DEV

I'm getting ready to write some nice control software for my Lego motors and have done some initial tests to see how they perform.

This graph shows how rpm varies with duty cycle, no load and powered by a rechargeable battery at 7.4v (the battery was under charge as well)

For real use normally one would use rpm regulated mode of course.

Unless you need the ultimate rpm, the large motor is a more consistent performer.

Sunday, 3 January 2016

Mindstorming with Python

The motors that come with the Lego Mindstorms EV3 comes with motors with positional feedback and reasonably sophisticated controls. The 'brick' that interfaces with all the widgets can also easily be hacked to enable use of sensible programming languages rather than the visual language (which has some significant limitations) that Lego have developed.

The ev3dev update is especially good as it can easily be removed to revert back to the original state (it is installed on an SD card and no changes are made to the controller).

So here is a quick blog of what I have done to get up and riunning with python on the EV3. I did fall down a couple of bear pits along the way, so this describes how to get to a working solution.

Sunday, 25 October 2015

Running with multiple graphics cards for compute and gaming

I have a small but ostensibly conflicting set of requirements for my desktop computer:
  1. General use - keep the power low
  2. 3D modelling /  graphics - exploit GPU as much as practical for rendering in particular
  3. Video / gaming / live grahics - use my best GPU
The CPU is an i7 with intel 4000 series GPU, so more than adequate for general messing about. I have a GeForce 660-Ti and recently was donated a GeForce 670 as well. Happily my PSU can support both cards in use.

I also know from previous messing about with Blender that using the GPU for compute (rendering) that is also driving the screen is not a good plan, so the quest was on to find a way of using the Intel graphics to mostly drive the screen, while having the option of using the GeForce 670 for modest gaming, and with the ability to use Intel graphics to run Blender using both graphics cards for compete while rendering.

The current working method to achieve this is not perfect, but from my perspective quite usable.

Motherboard / bios settings

Motherboard set to allow both integrated and discrete graphics to be active. Without this setting either the Intel GPU or the GeForce GPUs will not be available to the OS. Also integrated (Intel) graphics is set the the default graphics option. This means that the bios and grub bootloader (I run dual boot linux / windows) run through the Motherboard graphics port.


PC / Monitor connections

My monitor (Dell U2713H) has multiple digital inputs - in particular 2 DisplayPort inputs and an HDMI input.

I use DisplayPort to connect the Motherboard to the monitor (I cannot run my monitor at native resolution from the integrated graphics over HDMI, it's fine over DisplayPort)

I connect the GeForce 670 to the monitor using HDMI.


Windows Settings

I have windows set to extend the desktop with the DisplayPort (HD4000) connection as the primary display, and HDMI (GeForce 670) as the second display positioned on the right.

Working method

Monitor set be default to use DisplayPort input. This setup is also set to use wide gamut colour and is colour calibrated.

To run games or other software that meeds to use the GeForce to drive the display, I set the game to run on the second screen (this only needs to be done once typically), and then immediately after launching the game, I switch the monitor input to the HDMI input.

Disadvantages

Windoze thinks that the second display (in normal mode) or the first display (in gaming mode) are really there and allows the mouse to roam onto that screen, which means it completely disappears. Really just a minor irritation once you are aware of what is happening.

Also the monitor has to be manually switched between the two modes, not really a problem, just a mild inconvenience.

Power

Adding the second GPU increases the idle load very slightly - around 10 watts or slightly less. Windows idling now runs at around 85 watts mains input.

Gaming (which uses the 670) increases this to around 180 watts (although a heavy game would probably use more).

Full on compute - such as ray trace rendering in blender takes power to around 320 to 330 watts.

Monday, 27 July 2015

Timelapse from a Raspberry Pi webcam

Just a few notes on taking very large numbers of photos with a view to making timelapse videos.

I've done a few timelapse videos using my DSLR, then processing them through Lightroom and LRTimeLapse. This work well, but is quite hard work, ties up my dslr and of course uses up a lot of shutter time (since I can't do electronic shutter with the dslr).

So I thought I'd have a go at making it happen with a webcam and a raspberry pi (I already had the webcam from other PC things I'd been doing, or else I might have used a picam).

I'm using a Logitech C920 webcam and planning to take full HD sized photos.

  1. Kit in use & setup
  2. Taking the photos - fswebcam
  3. And the answer is python and v4l2?
  4. First tests to check performance.

Sunday, 21 December 2014

Better display quality, printing and the quest for 10 bit colour support

Since I got a nice display (dell U2713H) and got it properly set up I have a good reliable photography workflow on Windows, and with a little work I have the monitor working nicely on Ubuntu as well (This particular monitor requires a pixelclock fix to enable Ubuntu to drive native resolution through the nVidia drivers - see below the break).

My hardware setup is:
  • Asus P8Z77-V LE motherboard
  • Intel i7-3770
  • nVidia GTX 660 Ti graphics card -> display port / hdmi
  • -or- 
  • sometimes Intel 4000 graphics -> display port
  • Dell U2713H monitor
I use D S Colour labs for all my colour printing and can get pretty well perfect match between print preview in Lightroom and the resulting print viewed in a viewing box. However even with Lightroom / Photoshop I still sometimes see banding while working on photos  and it is easy to show that this is often due to the 8 bits / colour / pixel that is normal for today's computers.

(To see this just make a new image in an image editor and fill it with a gradient with a fairly restricted range of grays, such as from 55 - 65. I was surprised when I first tried this just how obvious the effect is.)

So I started looking around to see if I could get at the 10 bits / channel that my monitor is capable of.

At first it appears that the only way to do this is to by a professional workstation graphics card, but these are dramatically more expensive than their consumer equivalents. Then I found that the nVidia Linux drivers are fully 10 bit capable (usually referred to as 30 bit color) on all relatively recent cards!

Monday, 17 November 2014

Just a quick build for a client to play nice music

Now that I have minimserver working well and have found sensible playback software, here's a quick note on a basic build for a client to act as a upnp renderer with optional control and chrome installed for netflix access.