0

Another day, another, erm, display

Posted by Chris on Tuesday, June 30, 2009 in ,
RS are good.
Seriously. Their customer service is excellent. I ordered a new display on a whim last night at about 4.30pm. By 10am this morning, DHL were knocking on the door with a parcel. There were no silly delivery charges or anything like that - £9+VAT and the next day, you've got yourself a GLCD display!

This one has just 18-pins, and a load of onboard capacitors, resistors and stuff, so although there are cheaper displays available, they all seem to need a load of capacitors, external negative voltage and so on. This one - according to the datasheet - is nice and easy to interface with.

It's all theoretical at the minute as I've spent most of today trying to get the display connected up to my breadboard. The pads on the left-hand side are arranged in two rows of nine, rather than a nice, easy, single row of 18 pins.
I've added some header pins and the spacing is perfect for attaching a ribbon cable, just like the ones you find on the back of a floppy disk drive, or an old hard drive.
The ribbon cable fits snugly and after testing for continuity between each pin and the end of the cable, it seems that all my dry joints have been fixed and we're ready to go!



Except once again my soldering skills have let me down. I'm really struggling getting the other end of the ribbon cable onto any kind of connector that I can use with my breadboard. So in theory, my lovely new GLCD display is perfect for my ScoreSure Golf Pro device, but in practice, I've no idea!


0

It's not gone away you know

Posted by Chris on Sunday, June 28, 2009 in , ,
Latest update on the Game Scoring Device now know as ScoreSure.

After making the decision to create a device for each individual game, here's the latest progress on SureScore Golf Pro:

After spending ages looking for cheap GLCD displays for the device and having spent days trying (and failing) to get the 122x32 displays to work, they were abandoned. They need negative voltages just to get something to appear on the screen and are very fiddly to solder. In the end, although they are cheap, they're just too much hassle to bother with.
Having made this decision, the next big decision was to swallow the extra cost and go for a 128x64 GLCD display. These are pretty common but prices are around £10 each for a ready-to-use easy-to-solder version. At least coding could resume, and the best thing is that the 128x64 GLCD display can be simulated using Oshonsoft PIC18 simulator.
Awesome.

Here are some screenshots of the latest development:



Select the game type (Match Play, Stableford etc.) Golfers know what this is all about - different game types use different rules to decide who has won! Some favour better players (lower handicaps) whereas others - such as Stableford - favour less consistent players and are more forgiving of having a few bad holes in a round. Or so I'm told!
The device supports the following tournament types:
  • Match Play
  • Stroke Play
  • Par Play
  • Stableford Rules

The device allows for the following player combinations:
  • Single/solo play
  • Head-to-head (two players)
  • Three individuals
  • Foursome (2 x teams of partners)
  • Fourball



ScoreSure Golf Pro (as it is now called) allows you to download course details from the internet - this includes information for each hole yardage and the par for the hole. This screen shows which course has been selected and the user can decide to play 9 or a full 18 hole round.



Player details can be downloaded from your PC onto the ScoreSure Golf Pro or entered on-the-fly. Press the up/down arrows to select a pre-loaded players details, or press the edit button to enter their name, handicap and the type of tees that they play off manually.



The course details for each hole are displayed, showing the distance to the flag from each of the tee-off positions and the par for the hole depending on the type of tees you are playing from. If you are playing off red tees, for example, the par for this hole may be different to someone who is playing the same hole but off white tees.



At each hole the user can press the "edit" button to review or enter scores for the hole. This allows the user to scroll through previous holes played and view the score sheet for each hole if required.
ScoreSure Golf Pro automatically calculates how many shots each player is awarded for each hole, based on their handicap, the type of tees they are playing off (which determines the stroke index for the hole) and the game type (for example, Four-ball play usually reduces each players handicap to 3/4).



In edit mode, the user highlights the statistic values that they wish to edit and uses the up/down buttons to increase/decrease the score.
As a score is entered for each hole, ScoreSure Golf Pro calculates the nett score for the hole for each player and updates the electronic score card accordingly. For each player, at each hole, you can record "up/down" and "sand-saver" results. After saving the hole results, the device moves on to the next hole, displaying the distance, par details etc.

Still to do
A summary screen, available at any time, showing the points for each player and who is winning the round. Also, a scrollable version of a digital score card, so that each player's progress at each hole can be seen quickly and easily. For detailed analysis of each hole, simply move the arrow to alongside the hole you wish to view (in the same way the arrow alongside each player is moved to select a player) and press a button to see the "hole results" screen.

Obviously the whole upload/download thing needs coding (although a lot of this has already been done in the early game score device prototype). And a complete website for hosting the results needs building too. But as far as the actual scoring device goes, it's probably about 2/3 of the way there.....

0

TAKEPART Brighton

Posted by Chris on Sunday, June 28, 2009 in , , , ,
We've just got back from a tiring but thoroughly enjoyable weekend at Prston Park, Brighton where the park played host to the Brighton and Hove TAKEPART Festival.

As well as a weekend of come-and-try-me sports events, there was loads of cool stuff going on as well, including the awesome STOMP who put on some drumming and dance workshops. There was a world-record jive dancing attempt and loads of live music. There was also a brilliant artificial rock climbing wall, just the like the one off Gladiators, and there was even an outdoor icerink! In the middle of summer!

Of course the Brighton and Hove Petanque Club were there with a temporary terrain for people to have a try. On one day alone over 270 people stopped by to throw some boules around, so it was quite a success. It was also really tiring for everyone involved, as it meant we had to shift over 2 tonnes of gravel - not just taking it up to Preston Park the day before and setting up the terrain, but bagging it all up into about 100 sacks and transporting it back to the seafront. It was quite a feat and the task that started at around 6pm was finally finished and we all went home around 9.30pm.
A lovely day - but I personally wouldn't be upset if the next one wasn't for a while yet! ;-)

0

If you can't build it, simulate it

Posted by Chris on Tuesday, June 23, 2009 in , , ,
Despite the lack of news recently, it doesn't means things have gone quiet up here in Nerd Towers. In fact, it's the very opposite - beavering away making clever things means less time to write and tell you about them. But here's something that we're really quite proud of: a servo simulator.

In collaboration with botbuilder.co.uk we're making a USB/serial servo controller which uses EEPROM to store a sequence of commands to control the servo(s). The idea is that you can plug the robot into your USB port, download a "servo script" and sit back as your robot puppet performs it's sequence of tasks.

Using these excellent 360 degree servos the simulator allows you to set the min/max bands for each servo in a list, and to set the centre point. Servo movement over time is defined by plotting points on a graph. The editor also lets you play back (i.e. simulate) your servos movement so you can fine-tune your graph(s).

Here's an early version of the Flash-based online interface (in time it's hoped that users will be able to share servo scripts through the website, hence the online editor):



In this example, servos 1 and 3 have been hacked for continuous 360 degree rotation. Servo 2 is a "traditional" servo, moving through 0-180 degrees.

0

Never judge a book by its cover

Posted by Chris on Sunday, June 21, 2009 in , , ,
But it's ok to judge a device by its enclosure.
Thanks to Robot Steve it's already time to think about packaging and how to house what could very well become a commercial product. Already a couple of domains have been bought, and the game scoring device has a spanky new name: ScoreSure.

The domain www.scoreresults.co.uk has been reserved as a place for displaying results and league tables once they've been uploaded. Results will be arranged according to the game type - e.g. http://golf.scoreresults.co.uk and so on.

0

Not gone. And not forgotten.

Posted by Chris on Wednesday, June 17, 2009 in , , ,
With all this talk of golf and visits to Whitefields Golf Course it'd be easy to lose sight of why the game scoring device idea came about - to provide a device for keeping score during games played at the Brighton and Hove Petanque Club. When not working on the GLCD interface (details to be posted here soon, when it's finally working properly and not just outputting garbage to the screen) and while waiting for some more etchant to build a breakout board, yet more exciting ideas have been spewing forth - particularly with regards a dedicated Petanque scoring device.

By removing all golf-related code, the microcontroller has enough free program memory to fit a digital distance measuring module. Like most search results for "measure distance microcontroller" on The Big G the most obvious solution is ultrasound.

I've investigated this quite a bit. The problem with using the speed of sound to measure distance is that it's not constant. It changes with temperature. And with Petanque being an outdoor game, this could be quite an issue, as the accuracy of the measurements would drift. The other issue is that the ultrasound receiver is quite bulky and not very accurate because of the wide response angle, so after much umming and ahhing, ultrasound was eventually ruled out.

Laser/radio measuring was quickly ruled out, as I couldn't get a microcontroller to run anywhere near fast enough to measure responses at the speed of light.

So it was back to more traditional methods of measuring distance - namely a tape measure. Now that's not very 21st century is it?
Thanks once again to Robot Steve and some rotary encoders from Farnell, a solution is on the way: a motorised tape measure - using the device interface buttons, a tape measure can extend/retract over a 1m distance, while the rotary encoders measure the distance and display it on the GLCD screen. Pretty cool huh?

And all made possible thanks to a hacked micro servo, similar to the 360 degree continuous rotation servo from botBuilder.co.uk



Simply put, the servo controls the top of a pair of rollers, while the encoder is attached to the bottom roller. As the servo turns, a tape measure is squeezed between the two, and extends/retracts accordingly. The rotary encoder keeps track of how many revolutions (or fractions of a revolution) have taken place, and this can be used to calculate and display the distance travelled on the screen.

It sounds pretty cool in theory. Pictures and videos will be posted here to show it working (or not) in practice....

0

They're here....

Posted by Chris on Monday, June 15, 2009 in
No, not Gremlins.
Fantastic little graphical LCD displays.
And they are little. Much smaller than the photo from eBay suggested they would be. Perhaps it was just taken at a funny angle. They're longer and slimmer than they appear in photo. But just as cool!

I've been searching for a connector for them with no luck.
Because part of the wires are exposed, it's quite possible to make up a PCB with exposed traces and just solder them straight on. Or perhaps use a through-the-board approach to make a neat, secure connection.

Until then, here's a photo of the LCD with it's backlight lit up (from 2xAAA batteries) - showing the position of pins 17 & 18.


whos.amung.us

Copyright © 2009 .Nerd Club All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive Supported by Blogger Templates.