piracy makes everything better
categories: Hardware Hacks, Software Hacks
tags:

Code here!

These are some demos for working with some of the cool components I’ve worked with in the past.

I’ve decided to try an actually add some stuff to GitHub. Bit troublesome since most of my code is work related. But hopefully something can be done about that soon.

Anyways enjoy! Hopefully someone finds this stuff useful.

arduino-de_dp001_demo.c :

This is for working with the Sure Electronics DP-001 Large(ish) numeric LED display.

arduino-hdsp2111-sn74LS595N-demo.c :

This is for working with the Hewlett Packard hdsp211x small matrix LED displays. These are parallel loading. In fact I am almost certain this design and code set will work for most parallel loading displays.

arduino-max-6952-demo.c :

This is for the Maxim ( I think ) max6952 5 x 7 LED array driver. It’s not a very useful chip, except that it can drive an entire 4 char array off a single chip and includes it’s own character library. It was particularly effective in the LED array jacket. Not sure it’s useful anywhere else. It does use SPI though so, there’s some example SPI code in there.

arduino-numitrons_sn74hc595_demo.c :

This was using some 74hc595 high current shift registers to drive numitron display tubes. Which works really well. But probably isn’t a good idea… alone. For long term use you want to keep the segments of the display at a voltage level just below the threshold necessary to light them. The idea is to keep them warm while they are not lit, this avoids thermal shock… which generally precipitates the segments breaking. This is why light bulbs tend to go dead when being turned on rather than at random.

arduino-sure-6432-demo.c :

And this is some demo code for the sure 6432 display. This display uses a multiplexed shift registers and led arrays. Works pretty well. The display is BEAUTIFUL. But very hard to find these days. Also very hard to run entirely off a single atmega168 or even 328.

There are some extra animations up a level in the arduino code repot.

category: openstack
tags:

DevStack

So Vishy’s old novascript and later nova.sh script has sort of forked off into it’s own amazing little project.

Check out devstack.org . Especially do so, if you are interested in getting involved with OpenStack.

DevStack is basically your one stop shopping point for doing development work with OpenStack. It will deploy a working demo environment from git for you. And that gives you the chance to keep current in your development and testing.

Tips

I’ve been testing on Ubuntu Oneiric ( 11.10 ) with the latest git pull of devstack.

One.

You MUST run the stack.sh script as the stack user. It will attempt to run under root and jump to stack, but I assure you the end results are never positive.

Two.

To clean up the supporting environment packages for the install… in case you need to reinstall…

Try this query:

apt-get purge libdbd-mysql-perl libmysqlclient16 mysql-client-5.1 mysql-client-core-5.1 mysql-common mysql-server mysql-server-5.1 mysql-server-core-5.1 python-mysqldb rabbitmq-server rabbitmq-erlang-client rabbitmq-plugins-common librabbitmq0 apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapache2-mod-wsgi

That will clear out mysql, apache, and rabbitmq. Old databases and configs will disappear and that will minimize the likelihood of clobbering ( fine for the hulk bad for shell scripts ).

Three.

Place your stack user’s $HOME in /opt/stack. And get the perms right.

Four.

Edit stack.sh.

Inside you can set configuration parameters.  Such as which images to grab and automatically install when running the installation procedure.

Of course a lot of these params will break the install, but hey… it’s worth knowing what it’s doing if you intend to fix it when it breaks.  And it will.