View previous topic :: View next topic |
Author |
Message |
mark
Joined: 25 Apr 2008 Posts: 6 Location: Devon UK
|
Posted: Fri Apr 25, 2008 9:12 pm Post subject: NO HELP HERE |
|
|
I am looking to make a timer to run some lights for a short time like
5 sec to 5 mins with a 16*2 LCD or segment leds to set time and
countdown time with push buttons to set time.
it will need a button to stop it at any time and one to start it once
the tine as been set. and as this is my frist projuct I do not know
where to start.
if some has the code to do this it will help me a lot.
Thank you all for takeing the time to read this.
all the best to all Mark
Last edited by mark on Mon Apr 28, 2008 5:48 pm; edited 1 time in total |
|
Back to top |
|
|
DToolan
Joined: 14 Aug 2004 Posts: 1384 Location: Dallas / Fort Worth, Texas (USA)
|
Posted: Fri Apr 25, 2008 9:15 pm Post subject: |
|
|
Quote: | if some has the code to do this it will help me a lot. |
You'd learn a bunch copying and pasting some complete code. Good luck to you with that project. |
|
Back to top |
|
|
mark
Joined: 25 Apr 2008 Posts: 6 Location: Devon UK
|
Posted: Fri Apr 25, 2008 9:19 pm Post subject: |
|
|
Yes I would. |
|
Back to top |
|
|
mark
Joined: 25 Apr 2008 Posts: 6 Location: Devon UK
|
Posted: Mon Apr 28, 2008 5:42 pm Post subject: No help here |
|
|
This is not a very good forum for helping members.
all you get sarcastic remarks !!!!!!!!!!!!!!!!!!!!!!
I will not be buying bascom as there is no help |
|
Back to top |
|
|
Luciano
Joined: 29 Nov 2004 Posts: 3149 Location: Italy
|
Posted: Mon Apr 28, 2008 6:37 pm Post subject: Re: No help here |
|
|
mark wrote: | I will not be buying bascom as there is no help |
Hi Mark,
Where is your program?
We can help you if you have questions while you write the program.
Best regards,
Luciano |
|
Back to top |
|
|
rileyesi
Joined: 19 Dec 2006 Posts: 398
|
Posted: Mon Apr 28, 2008 6:52 pm Post subject: |
|
|
Mark,
Did you look through the sample programs that came with BASCOM? There is a great deal of information there.
Also, look at the application notes at the BASCOM website.
http://www.mcselec.com/index.php?option=com_content&task=category§ionid=7&id=79&Itemid=57
Also, this forum has a search feature. Try searching the history of this forum to see if there is something close to your project.
Also, before this forum was established, there was an e-mail ring. There was a site that had all the e-mails in a searchable database.
http://www.grote.net/bascom/
Last, the best way to learn is to try. Not to have someone else do it for you. You are wrong if you think this is a bad forum, in my opinion. There are many, many helpful people here that are patient and willing to help.
Hope this helps.
Pete |
|
Back to top |
|
|
mark
Joined: 25 Apr 2008 Posts: 6 Location: Devon UK
|
Posted: Mon Apr 28, 2008 7:02 pm Post subject: |
|
|
If I could write the programe I would not need any help ??? |
|
Back to top |
|
|
rileyesi
Joined: 19 Dec 2006 Posts: 398
|
Posted: Mon Apr 28, 2008 7:13 pm Post subject: |
|
|
Hi,
There is a big difference between asking for help and telling us to do your work for you.
Good luck. |
|
Back to top |
|
|
mattcro
Joined: 03 Oct 2007 Posts: 327 Location: Scotland
|
Posted: Mon Apr 28, 2008 7:37 pm Post subject: |
|
|
OK, let's start with the basics. Have you programmed with AVR (or other like PIC) microcontrollers before? If not, Bascom and AVRs is a good way to get started, but you need to start simple and try some of the included examples to get the hang of compiling a program, writing it to a chip and modifying the program.
Making a timer (I'm thinking kitchen timer type thing here) with buttons and an LCD isn't a trivial project for a beginner, so you need to take it in stages - build up from a simple program that writes some text messages to the LCD, and then you can add buttons and get input form them. Then there's the timer itself, which will take some experimenting with to get right. I'm not saying it's difficult, but there's a reasonable amount of thought and programming involved.
The reason that the experienced forum members are reluctant to simply give chunks of working or complete code is to encourage people to think projects out for themselves and really learn how the language and processors work. Besides, there's lots of adaptable example code and other projects that might be similar enough to get useful bits from.
Don't be discouraged - get stuck in! _________________ If all else fails, read the manual. Even better: read the manual before something fails. If you can't find it in the manual, search the forum.
BascomAVR 2.0.8.5 |
|
Back to top |
|
|
Luciano
Joined: 29 Nov 2004 Posts: 3149 Location: Italy
|
Posted: Mon Apr 28, 2008 7:56 pm Post subject: |
|
|
Hi Mark,
What do you know about software development and electronics?
Do you know any programming language? (C, Basic, ...).
What hardware are you using? (AVR development board, AVR chip, AVR programmer).
Best regards,
Luciano |
|
Back to top |
|
|
PaulC
Joined: 09 Jan 2008 Posts: 122 Location: Ireland
|
Posted: Mon Apr 28, 2008 7:59 pm Post subject: Hi Mark |
|
|
Hi Mark
I am quite new to this avr/pic programming myself
i tried various demo programs ,different boards to post on..
I must say i didn't get much help ..
this is the last board & programing software i tried..
i have had a great deal of response & info from here..
the search button at the top of your screen, you will no doubt find everything
you will likely need from this ,as i did i got to this stage at the moment with
my progam ,thanks to the lads on this great site...
i am also a newbie to this programming world..
http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=5722
you will also find info at mscselec.com site...
As far as i know this forum was made for the users of bascom to
talk & help each other..
help with the bascom basic language program is from mcselec site..
any help from this board i think is from the goodness from the users on it..
i am sure they will help you out..
try and give them as much info on what you have & what you would like to do with it..
PaulC _________________ Bascom Avr 2.0.7.3
Works for me
|
|
Back to top |
|
|
kimmi
Joined: 24 Feb 2006 Posts: 1922 Location: Denmark
|
Posted: Mon Apr 28, 2008 8:47 pm Post subject: |
|
|
Only 25 sec search on google gave me this link
http://www.embedds.com/countdown-timer-for-uv-pcb-exposure/
PCB , schematic , source code all you need...
this is easy to edit for your use , if you dont like to make all the code
But you need to read the Helpfile to lern more about Timers ports ect |
|
Back to top |
|
|
Antony(uk)
Joined: 26 Jun 2006 Posts: 275 Location: Devon UK
|
Posted: Mon Apr 28, 2008 10:13 pm Post subject: |
|
|
Hi Mark
I also live in Devon near Plymouth.
I am willing to help.
Not that I am a tutor of any sort but I get through
The offer is there.
Regards Antony(UK) |
|
Back to top |
|
|
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Mon Apr 28, 2008 11:09 pm Post subject: |
|
|
I will chime in here too.
If you do any engineering at all, you would know that to solve a problem, you break it down into smaller pieces, the proceed to solve each piece. If you cant see how to do a piece, break it down again, and solve those bits. That way the problem always gets smaller, not bigger.
So to get closer to your application you need to learn:
How to switch a LED on and off ( look up OUTPUT to a PORT )
How to put stuff on a display ( look up LCD )
How to use a timer ( look up TIMER )
How to use variables ( look up DIM and VARIABLE )
All those things are well covered in the help file, and examples.
When you cant understand how to use these simpler sub-sections, post what you have tried, and maybe we can help. _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
mark
Joined: 25 Apr 2008 Posts: 6 Location: Devon UK
|
Posted: Mon Apr 28, 2008 11:34 pm Post subject: |
|
|
First of all thank's to you all for your replys.
Antony(uk) thank you for your offer I live in Sidmouth so some distance
but prahaps we will meet one day.
kimmi thank you for the link. will look at it and use it to help me but will not just use the code.
hear is my frist program
Config Lcdpin = Pin , Db4 = Portd.3 , Db5 = Portd.2 , Db6 = Portd.1 , Db7 = Portd.0 , E = Portd.6 , Rs = Portd.7
Dim A As Word
A = 0
Config Lcd = 16 * 2
Cls
Cursor Off
Lcd "Start"
Do
'For A = A + 1
Lowerline
Lcd A
A = A + 1
'Waitms 20
If A = 51 Then
Lcd " Half Way "
End If
Wait 1
If A = 101 Then
Cls
End If
If A = 101 Then
Upperline
Lcd "Finished"
End If
If A = 101 Then Stop
Loop
End
need to find out how to add buttons and make it count indefinate not just a word long.
will work on it over the next week or so.
but if anyone can find anything wrong with it so far can you let me know.
and thank you all so far. |
|
Back to top |
|
|
|