Search

Genteautoreggente

Sharing free ideas since it was born!

Category

Do It Yourself

Cassette player hidden iPhone dock

The perfect way to install a modern audio system on an old car

Spherical black board

A blackboard sphere to write on. Because sometimes a flat area is not enought! To make it, I covered a polystyrene sphere covered with special blackboard painting. I used a cd box to hold the sphere in place

QR-code clock

A desk clock that output the time with a qr-code. Hardware: arduino + nokia LCD + real-time clock computer. Software: lcd libraries + bitmap png of precomputed times. Minimal QR-code size (26characters): 25 x 25 bit = 625 bit = 79 byte (source). Chosen size: 130×130 pixel. Different time possibilities (every hour, every minutes): 24h x 60 m = 1440 combinations. Light version with 12 hours: 720 combinations. Estimation of minimal total bitmap size: 79 Byte x 720 combinations = 57 KB. With 130×130 png images is still less than 1 Mb.

A nice implementation with LEDs that can generate directly the qr-code via software.

Rubyrinth

A Rubik cube that consist has paths and forks on its faces instead of colors. The goal of the game is to connect the 2 gates with the longest path.

Roman clock alarm

IDEA

An alarm clock that display the time in roman numbers. 24h format should be used. Time range fromm 00:01 = ‘I’ (00:01 am) to 24:00 = ‘MMCD’ (12:00 pm). Since there is no way to convert the digit 0, we consider the time as a single number of 4 digits.

ARCHITECTURE

todo (arduino + lcd)

IMPLEMENTATION

C# code for the conversion from blackwasp.co.uk:

using System;
using System.Text;

namespace NumberToRoman
{
    class NumberToRomanConvertor
    {
        // Converts an integer value into Roman numerals
        public string NumberToRoman(int number)
        {
            // Validate
            if (number < 0 || number > 3999)
                throw new ArgumentException("Value must be in the range 0 - 3,999.");

            if (number == 0) return "N";

            // Set up key numerals and numeral pairs
            int[] values = new int[] { 1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1 };
            string[] numerals = new string[] { "M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I" };

            // Initialise the string builder
            StringBuilder result = new StringBuilder();

            // Loop through each of the values to diminish the number
            for (int i = 0; i < 13; i++)
            {
                // If the number being converted is less than the test value, append
                // the corresponding numeral or numeral pair to the resultant string
                while (number >= values[i])
                {
                    number -= values[i];
                    result.Append(numerals[i]);
                }
            }

            // Done
            return result.ToString();
        }
    }
}

TODO

Spherical snow globe

a snow globe without base. todo

Blog at WordPress.com.

Up ↑