Propeller Clock with Arduino Nano

Hi everyone,
I’m working on 8 leds propeller clock with arduino Nano. I wrote a code but it’s not completed. Please help for rest of the code.

Code that I wrote :

unsigned int digits [8] = {
{ 0xC1,0xBE,0xBE,0xBE,0xC1} ,// “0”
{0xFF,0xDE,0x80,0xFE,0xFF},// “1”
{0xDE,0xBC,0xBA,0xB6,0xCE}, // “2”
{0xBD,0xBE,0xAE,0x96,0xB9}, // “3”
{0xF3,0xEB,0xDB,0x80,0xFB}, // “4”
{0x8D,0xAE,0xAE,0xAE,0xB1}, // “5”
{0xE1,0xD6,0xB6,0xB6,0xF9}, // “6”
{0xBF,0xB8,0xB7,0xAF,0x9F}, // “7”
{0xC9,0xB6,0xB6,0xB6,0xC9}, // “8”
{0xCF,0xB6,0xB6,0xB5,0xC3},// “9”
{0xFF,0xC9,0xC9,0xFF,0xFF}, // “:”
};
int numberSpace;
int dotTime = 100;

void setup()
{
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
}
int k=0;
void loop()
{
for(int i = 0; i<8 ; i++)
{
digits[k];

  • delay(dotTime);*
  • }*
  • k++;*
  • if(k==8){*
  • k=0;*
  • }*
    }

I'm working on 8 leds propeller clock with arduino uno.

Define what a propeller clock is, please.

I wrote a code but it's not completed. Please help for rest of the code.

When is our homework due?

Code that I wrote :

The code AS YOU POSTED IT won't even compile. Not that posting properly (using the # icon) would have helped.

digits[k][i];

is about as useful as

0xBE;

which, of course, accomplishes nothing.

Firstly, I am not professional sorry for my faults,
I'm working on digital propeller clock with 8 leds like this : Propeller clock .wmv - YouTube;
Homework due to 05.28.2012;
Code is compiling. ------->> ImageShack - Best place for all of your image hosting and image sharing needs
I took digits from here -------->> http://www.bobblick.com/techref/projects/propclock/mclock8.asm

It might help to structure your code so you can see better what you are doing. For example if you convert you hex to binary you could betters see your digits.

unsigned int digits [][8] = {/*0*/  { 0B11000001,      //  ..#####.
                                      0B10111110,      //  .#.....#
                                      0B10111110,      //  .#.....#
                                      0B10111110,      //  .#.....#
                                      0B11000001},     //  ..#####.
                             /*1*/  { 0B11111111,      //  ........
                                      0B11011110,      //  ..#....#
                                      0B10000000,      //  .#######
                                      0B11111110,      //  .......#
                                      0B11111111},     //  ........
                             /*2*/  { 0B11011110,      //  ..#....#
                                      0B10111100,      //  .#....##
                                      0B10111010,      //  .#...#.#
                                      0B10110110,      //  .#..#..#
                                      0B11001110},     //  ..##...#
                             /*3*/  { 0B10111101,      //  .#....#.
                                      0B10111110,      //  .#.....#
                                      0B10101110,      //  .#.#...#
                                      0B10010110,      //  .##.#..#
                                      0B10111001},     //  .#...##.
                             /*4*/  { 0B11110011,      //  ....##..
                                      0B11101011,      //  ...#.#..
                                      0B11011011,      //  ..#..#..
                                      0B10000000,      //  .#######
                                      0B11111011},     //  .....#..
                             /*5*/  { 0B10001101,      //  .###..#.
                                      0B10101110,      //  .#.#...#
                                      0B10101110,      //  .#.#...#
                                      0B10101110,      //  .#.#...#
                                      0B10110001},     //  .#..###.
                             /*6*/  { 0B11100001,      //  ...####.
                                      0B11010110,      //  ..#.#..#
                                      0B10110110,      //  .#..#..#
                                      0B10110110,      //  .#..#..#
                                      0B11111001},     //  .....##.
                             /*7*/  { 0B10111111,      //  .#......
                                      0B10111000,      //  .#...###
                                      0B10110111,      //  .#..#...
                                      0B10101111,      //  .#.#....
                                      0B10011111},     //  .##.....
                             /*8*/  { 0B11001001,      //  ..##.##.
                                      0B10110110,      //  .#..#..#
                                      0B10110110,      //  .#..#..#
                                      0B10110110,      //  .#..#..#
                                      0B11001001},     //  ..##.##.
                             /*9*/  { 0B11001111,      //  ..##....
                                      0B10110110,      //  .#..#..#
                                      0B10110110,      //  .#..#..#
                                      0B10110101,      //  .#..#.#.
                                      0B11000011},     //  ..####..
                             /*:*/  { 0B11111111,      //  ........
                                      0B11001001,      //  ..##.##.
                                      0B11001001,      //  ..##.##.
                                      0B11111111,      //  ........
                                      0B11111111},     //  ........
};

It is more lines of code but it is more readable.

You set up all your output pins but you are not outputting anything.

You also don't have a sync source. A Propeller Clock will only work if you have a place in your rotation where you can start your display.
Some people use and IR sensor, some use a Hall Effect sensor, but you need something.

These kind of projects are also known as POV: persistence of vision.

RandallR:
You set up all your output pins but you are not outputting anything.

You also don’t have a sync source. A Propeller Clock will only work if you have a place in your rotation where you can start your display.
Some people use and IR sensor, some use a Hall Effect sensor, but you need something.

We tried to use Hall Effect sensor (HAL505) but it has low sensitivity, it did not work properly.
Thanks for your response, it was useful for us.