Let's Make Robots!

QSM - Quarter Square Multiplication, 8 x 8 -> 16 Speed Record on Extended Baseline PIC!

QSM - Quarter Square Multiplication, Speed Record on Extended Baseline PIC!

I'm a great fan of PIC10F / PIC12F / PIC16F controllers. They are inexpensive, they offer verstalie peripherals, and they are absoulely energy efficient which is becoming extremely important in the era of IoT. However, they don't provide mulitplication hardware. There are several code snippets for software multiplication around, but there is still the challenge of doing it better. I've taken it! And here we go with the fastest 8 x 8 -> 16 multiplication I know on extended baseline PIC.

4x4to8MTL - 4 x 4 -> 8 Multiplication by Table Lookup

The challenge

On piclist.com we find lots of basic arithmetic routines including multiplication of two 4 bit numbers giving an 8 bit result [1]. It gives detailed derivation of his code which is small and fast, indeed.

But we can do better! Since this article was published Microchip has brought the enhanced baseline PIC to market which has competitive price, larger instruction set, and more special function registers with increased functionality. This gives the option of simple and fast table lookup in program memory.

CSVPOVD - Charlieplexing Saccadic Valentine's Persostence of Vision Display

Happy Valentine with this strangely named new device!

CSVPOVD in action

LDO current regulator for power LED
Challenge You've got a power LED? Great! Build a flash light! Read more
3D printing
Using a
Recently I ordered a MakerBot Thing-O-Matic. On Thursday I've got mail: "Your order # ...... has been Complete - Packed and Shipped." Deep breath. From experience I … Read more

TSWLhexaPOC

Okay, I broke the rules. Yes, I'm ashamed. But I don't give up. Hopefully this is the right place for this article...

TSWLhexaPOC? Well, Two Servo Watt's Linkage hexapod Proof Of Concept would have been a bit too long for a name, wouldn't it? I stumbled over a few hexapods controlled by three servos. Well, it should be possible to walk over a plane with only two of them. If this is possible using some simple gear it would save money when building small robots. How did I find a solution?