Show Posts
Pages: [1] 2 3
1  Forum 2005-2010 (read only) / Forum / Re: using big custom numbers for lcd clock display on: April 24, 2010, 07:28:03 pm
apologies for that, I have posted it in the appropriate place.

Thanks PaulS
 smiley
2  Forum 2005-2010 (read only) / Forum / using big custom numbers for lcd clock display on: April 24, 2010, 03:19:32 pm
I have seen a few sketch around which enables the generation of ig numbers for an lcd display (HD44780).

I want to implement this for the display of my digital clock. for example, using the big numbers for the seconds, minutes and hours and displaying them on the lcd in the form (00:00:00).I am finding it difficult maybe due to my low programming skills.

I will really appreciate any help from the forum

Thanks

 smiley
3  Forum 2005-2010 (read only) / Forum / using custom characters for digital clock display on: April 22, 2010, 05:32:51 am
hey,

I am trying to figure out how to use the custom characters created for the  HD44780 LCD display for a clock display, how do I go about this.

I will appreciate any help
 smiley
4  Forum 2005-2010 (read only) / Syntax & Programs / Re: using the big custom number for my digital clock on: April 28, 2010, 06:06:43 pm
Thanks for that mem,

I have sosrted that out now, advice was helpful

God bless

 smiley
5  Forum 2005-2010 (read only) / Syntax & Programs / using the big custom number for my digital clock on: April 24, 2010, 06:58:12 pm
I have seen a few sketch around which enables the generation of ig numbers for an lcd display (HD44780).

I want to implement this for the display of my digital clock. for example, using the big numbers for the seconds, minutes and hours and displaying them on the lcd in the form (00:00:00).I am finding it difficult maybe due to my low programming skills.

I will really appreciate any help from the forum

Thanks
 smiley
6  Forum 2005-2010 (read only) / Syntax & Programs / using large numbers for clock display on: April 12, 2010, 07:01:42 pm
anyone has an idea of how to use the LCD HD44780 Liquid Crystal custom numbers for a clock display in terms of the seconds increment, minutes and hours.

Thanks
 smiley
7  Forum 2005-2010 (read only) / Syntax & Programs / Re: digital clock generated from the 50Hz mains on: April 05, 2010, 10:35:41 am
sorry for the late reply paul,

from the analogReading i am getting about 937 max and lowest below 10, using the configuaration on;

http://www.ladyada.net/learn/sensors/cds.html

I have used 11kohms resistor with the LDR. the code i used is;

int photocell = 0;
int backlight = 13;
int val;

void setup(){
    pinMode(backlight, OUTPUT);
    pinMode(photocell, INPUT);
    Serial.begin(9600);
}

void loop(){

     Serial.print(val);

     val = analogRead(photocell);
      if (val < 200){
      digitalWrite(backlight, High);
}

 else{
       digitalWrite(backlight, LOW);
  }
}


when I used a multimeter to measure the resistance of the LDR in complete darkness its was 1.8Mohm and in light 0.3Kohm.

hope i have given you the info u requested.

Thanks   smiley
8  Forum 2005-2010 (read only) / Syntax & Programs / Re: digital clock generated from the 50Hz mains on: March 25, 2010, 10:03:57 pm
I am powering the backlight (pin15) connected to a resistor then directly to the 5v and that works ok without the ldr involved
9  Forum 2005-2010 (read only) / Syntax & Programs / Re: digital clock generated from the 50Hz mains on: March 25, 2010, 09:31:23 pm
the datasheet says the power supply current (Icc) is 0.6mA max
 smiley
10  Forum 2005-2010 (read only) / Syntax & Programs / Re: digital clock generated from the 50Hz mains on: March 25, 2010, 08:29:39 pm
the backlight (pin15) is powered through a 5v from the arduino board
11  Forum 2005-2010 (read only) / Syntax & Programs / Re: digital clock generated from the 50Hz mains on: March 25, 2010, 07:39:57 pm
sorry about the lack of complete information. I have wired the ldr with a leg connected to arduino 5v and the other leg connected to one end of a resistor to pin 0 and the other leg of the resistor to GND. the sketch i used is;

#define LED 9 // the pin for the lcd backlight +ve
int val = 0; // variable used to store the value
// coming from the sensor
void setup() {
pinMode(LED, OUTPUT); // LED is as an OUTPUT
// Note: Analogue pins are
// automatically set as inputs
}
void loop() {
val = analogRead(0); // read the value from
// the sensor
analogWrite(LED, val/4); // turn the LED on at
// the brightness set
// by the sensor
delay(10); // stop the program for
// some time
}

It works with a normal led but doesnt with the lcd display. what am i doing wrong?

thanks
12  Forum 2005-2010 (read only) / Syntax & Programs / controlling lcd backlight with LDR on: March 25, 2010, 11:54:54 am
I am trying to control my lcd backligt with an ldr, I have tried using the arduino example how to on ldr but it didnt work, but the example works ok with leds.

what am I doing wrong?
 smiley
13  Forum 2005-2010 (read only) / Syntax & Programs / Re: digital clock generated from the 50Hz mains on: March 05, 2010, 04:21:24 am
Yeh its a standard 16Mhz crystal (sorry for the  mis-information). I have implemented the millis() function but realised two things;

1) when I push a button to enter the my setTime() mode and  set the time, when I am exiting the mode the seconds suddenly increases from for example 10 to 30 and carries on counting

2) when the secs runs smoothly like tick-tack when using the arduino crystal but when I switch to the mains, it looks like its not in sync ( like tick-tack but faster and after some time it does run normally like the arduino crystal).

any help will do
Thanks  smiley
14  Forum 2005-2010 (read only) / Syntax & Programs / ATmega328 crystal prescaling to 50Hz on: March 04, 2010, 04:57:38 pm
thanks sp far guys

My idea is to switch from the time generated by the 50Hz mains pulse to a time generated by arduino crystal when the mains is switched off.

I need help converting or getting down the 32MHz crystal of my ATmega328 to around the 50Hz range. is that possible through the prescaler? and how do I go about it?

 smiley
15  Forum 2005-2010 (read only) / Syntax & Programs / Re: digital clock generated from the 50Hz mains on: February 25, 2010, 11:04:37 am
I am going to use it as a backup time for my mains 50Hz generated clock. I would want it to update the previous time before the mains supply was unplugged.
Pages: [1] 2 3