f-log

just another web log

23 Mar 2015:
Alexs 3DS Claymation animations
Alex got a rainbow of model clays and using just a standard Nintendo 3DS made the following stop motion videos(in one weekend).














These were the best ones we deleted a load!
23 Mar 2015:
Time lapse Lego arctic base build
When uploading that video I found a load of images time lapse style that we had taken at Christmas of the kids building the big Lego arctic set.


Think I need to work on my ffmpeg foo regarding the frame timing.
more videos later,but not mine or Joseph's...
23 Mar 2015:
6yr old teach you how to install talking xloborg
This weekend has been all about videos.

First off Joseph(who's 6) teaches you how to use the XLoBorg that he got in his Pass the Parcel bag from the Raspberry Pi Birthday party. Thanks PiBorg for donating that.

In this video he teaches you how to prepare the Pi, install the board, set it up, get it working and then make it talk!



18 Mar 2015:
drawdio and OSHW RGB badge solder kits make kids very happy
More more more party maker fun.

In our "Pass the Parcel" bags we got some soldering kits from watterott electronic (massive site, could get lost for days).

Drawdio Noisy electronic pencil (sharpener supplied)
and
OSHW-RGB-Badge (that's Open Source HardWare)

First up I had the kids watch some of the cool videos showing what the drawdio could do.
Sylvia's Super-Awesome Maker Show: Episode 01, Drawdio
Once they were hooked, we had a quick safety lesson and the free bright orange kids safety glasses from stand become indispensable.

There are quite a few components and it was a bit daunting, what with the printed instructions being in German. We used Adafruits guide, but I have since found the official one. I would either holder the iron or the solder and the kids would take turns to attach the components. We all learned a lot about the different components and which ones can be attached in what orientation.
Completed drawdio kit

The Drawdio did not quite work. First off it just did not seem to work at all but the more handling it got the more sensitive it got. But the user had to touch the graphite directly it did/does not work through a drawn line. Which is odd because if you put a piece of wire down to take the place of the pencil line it does work. Not really a problem, the kids love it.

I wished we had started with the OSHW-RGB-Badge it has only four components to solder and a large area to do it in.

Having got our hands dirty earlier in the week with the Drawdio both kids found it very easy to complete the badge.

Completed OSHW-RGB-Badge kit, showing LED on front and layout on reverse

The badges worked brilliantly. Just turn them on and the large and very bright LED starts pulsing and cycling colours. Very proud both my eight year old and six year old's to a badge to school to show off. Which was great until Alex tried to remove the battery in the car and it has disappeared into the seats :(

Alex and Joseph showing off there newly completed Drawdio and OSHW RGB badges while sporting ragworm safety glasses

And believe it or not there is still MORE stuff in our swag collection to investigate, soon.
17 Mar 2015:
oreilly raspberry pi ebook give away is big DRM free success
More party related fun.

This time it was an obscure looking leaflet at the bottom of each of our party bags. It was a free eBook from O'Reilly books. So we each got a very nice DRM free Raspberry Pi eBook.

Thanks O'Reilly books. Out of the many choices we choose;

Raspberry Pi Cookbook

Raspberry Pi Hacks

Make a Raspberry Pi-Controlled Robot

Really impressed that everything is DRM free so we can load these onto our Kindle Fires!
17 Mar 2015:
Baby boogie scratch book fun
Last time it was Alex using "Adventures in Raspberry Pi" book from the Raspberry Pi 3rd Birthday but what does Joesph think of it?

Knowing that his brother had had fun in Scratch was enough(more than enough) to get him excited. Instead of a robot disco he was much more interested in Baby boogie. This time we managed the loop of loops pattern and selection of instruments instead of music loops.

One very happy six year old.

So is that the end of the continued value we have had from the party? not yet!
17 Mar 2015:
mad scratch robot disco saves book
Even more Raspberry Pi 3rd Birthday updates.

I mentioned the "Adventures in Raspberry Pi book"(signed by Carrie Anne), well it has sat on Alex s shelf and I wanted to make a point of how accessible the information was in it.

Gave him the book and asked him to look through it. "mumble mumble" and a half arsed flick through the book skipping 50 pages at a time and not looking any way. Tried a few encouraging words but no, to an eight year old a book is a book and that means work.

I pointed out that there was Scratch programming in it. "mumble, I know it all, mumble". There were some screen shots of using Scratch to do turtle style programming and one in particular shows a colourful repeating loop pattern. The moment I showed him that, it was "Can we try that? right now?"

Ha! Hooked!

The instructions were detailing drawing lines with the pen mode and looping the results. We quickly made a basic polygon and then swapped the "boring" values for Random ones. The drawing character (an imported robot) ran around in a crazy way. Then we made the pen size and colour random and that's when it got a bit surreal. The point of the exercise is to make ordered repeatable patterns. We ended up with the robot disco. You see the robot was rotating a random amount each frame and the pen size was randomly bigger than the entire screen, it did look like a disco. so we added some of the loop-able samples that come with Scratch.

One very happy eight year old.

Now what about the six year old?...
15 Mar 2015:
firefox leak is now fireflop
I have a massive list of stuff relating the further exploits of my FireFox memory leak but

TLDR;

It works now and I have no idea why.


So first up, I did manage to repeatedly show/hide the issue by commenting out the changes in
js/src/jit/MIR.cpp

Leaking function
bool
MMod::fallible() const
{
    return !isTruncated() &&
        (isUnsigned() || canBeDivideByZero() || canBeNegativeDividend());
}

Non leaking function
bool
MMod::fallible() const
{
    return !isTruncated();
}


The fact that the leaky one has more checks is not lost on me.
So I contacted the author of this commit and got back a rather logical "allocate slightly less memory, if anything". I resolved to manually try all possible permutations of the additional checks until a culprit could be found...

Now its 4 months since I raised the bug and over 6 months since I started looking at the problem. This machine needs regular updates and it was one of those messy updates last week that I reckon fixed the leak. It involved a large number of packages, not least the Kernel and the ATI binary graphics card drivers.

Bottom line is simply, this issue I wished would go away by itself, has gone away by itself. Strangely I am not happy, would have loved to get the bottom of this. Still I can finally finish my home page animation widget.
09 Mar 2015:
bluetooth fake madness address change failure
continued Bluetooth-ing
bdaddr built

There is one blog entry that all links regarding "bdaddr" go
http://blog.petrilopia.net/linux/change-your-bluetooth-device-mac-address/

and based on that it should be as easy as

sudo ./bdaddr DE:AD:BE:EF:FF:FF
it certainly comes back with the right results
Manufacturer: Cambridge Silicon Radio (10)
Device address: 00:15:83:0C:BF:EB
New BD address: DE:AD:BE:EF:FF:FF

Address changed - Reset device now


But nothing is ever easy. And so started my decent into madness...

I tried
/etc/init.d/bluetooth restart
Unplugging the USB dongle and re-plugging it. Restarting the Pi. Nothing worked the Bluetooth address stayed the same.

sudo ./bdaddr -ri hci0 DE:AD:BE:EF:FF:FF
Manufacturer: Cambridge Silicon Radio (10)
Manufacturer: Cambridge Silicon Radio (10)
Device address: 00:15:83:0C:BF:EB
New BD address: DE:AD:BE:EF:FF:FF

Address changed - Device reset successfully

Looked hopeful but

hciconfig -a
still showed the old address.
hci0:    Type: BR/EDR Bus: USB
    BD Address: 00:15:83:0C:BF:EB ACL MTU: 339:8 SCO MTU: 128:2
    UP RUNNING PSCAN
    RX bytes:1414 acl:0 sco:0 events:52 errors:0
    TX bytes:446 acl:0 sco:0 commands:45 errors:0
    Features: 0xff 0x3e 0x85 0x30 0x18 0x18 0x00 0x00
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
    Link policy: RSWITCH HOLD SNIFF
    Link mode: SLAVE ACCEPT
    Name: 'rpibpluspowertest-0'
    Class: 0x000104
    Service Classes: Unspecified
    Device Class: Computer, Desktop workstation
    HCI Version: 2.0 (0x3) Revision: 0xc5c
    LMP Version: 2.0 (0x3) Subversion: 0xc5c
    Manufacturer: Cambridge Silicon Radio (10)


Everything I read said Cambridge Silicon Radio (CSR) based USB Bluetooth dongles should work.

I even tried sending commands directly to the device as per
http://blog.tremend.ro/2007/08/10/change-your-bluetooth-address-of-your-linux-machine/

which I modified to
sudo bccmd -d hci0 psset -s 4 bdaddr 044 000 066 055 033 000 022 011

but still no address change

I quick Google of BD Address: 00:15:83:0C:BF:EB shows many many people have the same address :(

It appears this maybe a fake CSR device
https://www.google.co.uk/search?q=csr+detect+fake+blueooth+device

sudo hciconfig hci0 revision
hci0:    Type: BR/EDR Bus: USB
    BD Address: 00:15:83:0C:BF:EB ACL MTU: 339:8 SCO MTU: 128:2
    Build 0
    Chip version: BlueCore01a
    Max key size: 0 bit
    SCO mapping: PCM


shows the chip version is only 01a and as v4 was out in 2010 I do not think I can go much further.
http://www.bluetooth.com/Pages/History-of-Bluetooth.aspx
http://wistao.blogspot.co.uk/2012/09/comparison-of-bluetooth-different.html

Oh well, it was cheap.


Just so no one can say I did not try everything I also followed
http://www.raspberrypi.org/forums/viewtopic.php?p=283851&sid=ceb09f210473c3204e1d2644e807861f#p283851

"For Cambridge Silicon Radio Bluetooth Dongle work properly, you should make following:
add line "blacklist hci_usb" into /etc/modprobe.d/raspi-blacklist.conf and line "hci_usb reset=1" into /etc/modules. After reboot dongle work stably well."
to no avail.

There is more I would like to try with Bluetooth, but just not today/week/month/(year?)

wiimote as input controller
command line ssh from phone
09 Mar 2015:
it cannot be difficult to change a bluetooth address
continued Bluetooth-ing

I tried plugging both Bluetooth adaptors in and they both worked, sort of. The Bluetooth address was the same on both devices so I could not ask one to connect to the other. Not to worry it must be easy to change the address?

nope. The tool needed "bdaddr" is not included in any packages and must be built by the user.

git clone git://git.kernel.org/pub/scm/bluetooth/bluez.git
cd bluez


then it says just run ./configure
no such file or directory

sudo apt-get install autoconf make automake cmake libtool libglib2.0 libdbus-1-dev libudev-dev libical-dev libreadline-dev
libtoolize --force
aclocal
autoheader
automake --force-missing --add-missing
autoconf


I had to rerun the ./configure about 20 times to work out what dependencies needed to the apt-get'd line right

then I hit

checking systemd system unit dir... configure: error: systemd system unit directory is required
and found the magic incantation, that anyone should be able to work out on their own...

./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var --enable-experimental --with-systemdsystemunitdir=/lib/systemd/system --with-systemduserunitdir=/usr/lib/systemd

make ....

FAILED!

CCLD tools/mcaptest
/usr/bin/ld: profiles/health/mcap.o: undefined reference to symbol 'clock_getres@@GLIBC_2.4'
//lib/arm-linux-gnueabihf/librt.so.1: error adding symbols: DSO missing from command line
collect2: ld returned 1 exit status
Makefile:4210: recipe for target 'tools/mcaptest' failed
make[1]: *** [tools/mcaptest] Error 1
Makefile:2668: recipe for target 'all' failed
make: *** [all] Error 2


but not to worry "bdaddr" was built, success!
09 Mar 2015:
basic bluetooth on the raspberry pi
One of the things I have never had but has been cheap enough to buy on a whim is a Bluetooth USB adaptor. I order one a couple of months ago and stored it unopened in a draw. On opening it I found it was two wedged together, time to play.


After an update
sudo apt-get update -y
sudo apt-get upgrade -y

plus a quick clean up
sudo apt-get autoremove

Following the instructions from http://www.modmypi.com/blog/installing-the-raspberry-pi-nano-bluetooth-dongle

now get the Bluetooth software

sudo apt-get install bluetooth bluez-utils blueman

(blueman is the GUI and not needed for command line only Bluetooth-ing, so then uninstalled it)

/etc/init.d/bluetooth status
shows that a reboot is not required

hcitool scan
scanning...
nothing, turn Bluetooth on on phone
scanning...
nothing, hmmm ah I need to set my phone "visible" and now it appears in the scan

I can name my Pi then ping my phone
sudo hciconfig hci0 name mepi
sudo hciconfig hci0 piscan
sudo l2ping -c 1 60:BE:B5:59:65:72


But what to do with two adaptors ...
09 Mar 2015:
Naughtiest adult from the raspberry pi birthday party announced
I mentioned the Space Invaders and Tetris party games that I scored highly on at the Raspberry Pi 3rd Birthday party. It seems I did not get the highest score on those but rather remarkably I did score the highest on another party game.

Yes I am the "Naughtiest" at the party (in the adult section).

No idea what I won but the game was a random number generator based on your hand size. When I child put their hand in the scanner they got a low "Naughty" value and when a larger hand was presented a large "Naughty" value. Maybe I just have the largest hands of anyone who tried the game.

https://learn.adafruit.com/naughty-or-nice-machine/overview
02 Mar 2015:
Raspberry Pi 3rd Birthday party Cambridge
WOW! The kids and I are still reeling from the awesome that was the Raspberry Pi 3rd birthday party, if you use the "last day in February" rather February 29th.
It started well with the organisers making a huge effort to provide (well in advance) as much detail as possible, not to mention the low cost.
There is so much to share this is just going to sound like a keyword trap but, here we go(in no particular order;

3D printer - with demos of interlocking pieces,
Tetris - Raspberry Pi powering 64x64 LED screen, I had the top score for most of the evening,
Hampster cam,
Naughty/Nice detector,
Pizza(more than enough),
Robots - I liked the "Big Trak"™ based ones,
Chocolate pooping rabbit - kids kept sneaking back to this when I was not looking,
Space Invaders - had to show of my mad skilz,
BBS micro(not Pi powered) - had SD card with 100s of games,
Thermal printer - kids got banners printed with their names,
Pass the Parcel - madness/chaos/fun and free stuff(see below),
Cake - perhaps unsurprisingly it was a giant Raspberry Pi(very tasty),
Minecraft - interactive game, with hardware interface,
Game of Life - this was on the same 64x64 LED setup as Tetris,
Scratch - we created a two player game with a blue Pacman™ chasing an apple,
ISS detector - chatted with designer,
Swag -(see below),
Free drinks - to go with the pizza and cake,
Scratch - this time connecting to GPIO pins to control traffic lights,
Jazz played via a lava lamp web cam - colours changed the instruments etc,
More robots,
Party bags -(see below)
The really useless machine - it is just a switch that activates a "finger" that switches it off again(kids could not leave it alone),
Presentations - Kids did great job of presenting their two scratch projects,
Announcement chair - Not Pi powered but great fun, select for title, type and location and it would set off a fan-fair followed by speaking your selection,
not to mention all the great staff, sponsors and volunteers.
Thanks to everyone for making it such a great day!!

So what did we walk away with?
First up I bought a CamJam EduKit #2 tinfor each of them, which was funny because we then used similar kits to connect LEDs to the Scratch environment.

Then there was the Swag just walking around between the stalls. Some were shops like Pi Hut and ModMyPi, other companies like RealVNC and Ragworm but also individuals showing off their projects(of which I have failed to list many, above). From the swag we ended up with bags, badges, pens, hats, key rings, licence keys, stickers and even safety glasses(for soldering).

The Party bags we got on leaving were good as well. Balloons, cables, stickers, USB key, stickers, water bottles and more stickers, plus money off, free ebook downloads and a printed copy of the MagPi magazine(old copies, but we love 'em) each.

Finally we have the pista resistance the Pass the Parcel prizes. This game was madness as no one knew what was going on and the PA operator was not understandable. It started off with about 100 people all standing around the main tables expecting to play classic "pass the parcel" and when a number of prize bags were given out it was not to surprising. But then more and more bags were given out and we were told to keep passing the down. This went on for what seemed half an hour before I heard someone remark that if the bag you had had something you wanted you could just step away from the tables. We could see into the bags to a small degree, some where large or heavy others light and small. Finally the music started and the chaos ensued. There were back logs where slow people were causing presents to build up and then the music stopped and everyone started at the bag in their hands. Of course by this point some people were sans bag. Unsure if that was it and we should open out bags the music started again! This time some people had left the tables with bags. Was this what we were supposed to do? When the music stopped we cut out loses and took what ever we had.

What a mixed selection we got. I got a LED badge soldering kit and a Drawdio, Joseph got a collection of stickers, some sew on patches and a Pi Borg - xloborg . Alex got the Adventures in Raspberry Pi book. Then someone handed Joseph a conductive ink pen(unopened) and later when were "helping" finish the pizzas someone else gave us another copy of Adventures in Raspberry Pi book(which he later got signed by Carrie Anne), we did not know the first book was in the original bag.

Here is most, but not quite all we came home with. I did not put out some of the worksheets or spread out all the stickers!

bags and bags of swag from the Raspberry Pi 3rd birthday party weekend Cambridge 20150229


thank you from Alex, Joseph and me(dad).

(sorry to anyone or anything I missed out, but it we were there for over 10hrs!)

Of course, now the real fun starts. The kids are desperate to start hacking!
loading results, please wait loading animateloading animateloading animate
[More tags]
rss feed

email

root

flog archives


Disclaimer: This page is by me for me, if you are not me then please be aware of the following
I am not responsible for anything that works or does not work including files and pages made available at www.jumpstation.co.uk I am also not responsible for any information(or what you or others do with it) available at www.jumpstation.co.uk In fact I'm not responsible for anything ever, so there!

[Pay4Foss banner long]