Rules | Recent posts | topic RSS | Search | Register  | Log in

100 points for good idea
Goto page Previous  1, 2, 3  Next
 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers
Author Message
mmdgmljcr



Joined: 14 Oct 2007
Posts: 2


Post15 Oct 2007 14:36   100 points for good idea

you can use 89c2051(very simple /very low cost) to design it.
hardware:89c2051(11.0592M HZ)+max232
software :use vb com
Back to top
khepelesibilo



Joined: 23 Aug 2007
Posts: 5


Post15 Oct 2007 21:18   Re: 100 points for good idea

use AVR
in BASCOM (basic compiler for AVR from www.mcselec.com it is free for up to 4Kbyte HEX which is enough for this projct):


$regfile = "m16def.dat" ' or any other AVR
$crystal = 4000000 ' for Example 4Mhz internal RC
$baud = 9600 ' use baud rate

Enable Interrupts

Config Date = Mdy , Separator = /
Config Clock = Soft 'this is how simple it is


Date$ = "10/15/07" 'set default DATE
Time$ = "12:00:00" 'set default TIME

'config your LCD pins if you want any LCD on your board
config pina.0 = input

Cls
Do

10:
if pina.0=0 then goto 10
20:
if pina.0=1 then goto 20
waitms 200
Home
Lcd Date$ ; " " ; Time$
print Date$ ; " " ; Time$

Loop

End








use internal RC @ 4MHz and a 32768Hz RTC crystal and your signal to porta.0 pin also MAX232 level convertor for RS232
open HYPERTERMINAL,open COMx,BAUD at 9600bit,DATA Bits 8,Parity none,Stop Bit 1,Flow Control none


you can see time and date in PC each time there is any signal from switch
Back to top
rachid77



Joined: 24 Jun 2006
Posts: 11
Helped: 2


Post16 Oct 2007 16:48   Re: 100 points for good idea

amiralib wrote:
whit AVR or PIC or ...?
you need idea or you need all the circuit?!
you can use INT0 and Timer1 four counting and you can use Matlab to get report az text
AVR is good for you

hello
yes AVR very good .
Back to top
pouchito



Joined: 29 May 2006
Posts: 162
Helped: 22


Post17 Oct 2007 14:19   100 points for good idea

There are several projects (with software and hardware) on the net. You have to know how to search.
As all said you can do it with a microcontroller or just PC.
For PC Look controling home appliances from PC
Look for books containing projects
make a search and let me know if you need help.
You have to decide which way to go. I have experiance in both
Back to top
sn_burki



Joined: 18 Feb 2003
Posts: 152
Helped: 3


Post17 Oct 2007 23:55   Re: 100 points for good idea

hi
its better if you use simply atmel 2051 with max. it is low cost and easy to build.
Back to top
CHELBBAY



Joined: 19 Oct 2007
Posts: 3


Post19 Oct 2007 17:52   Re: 100 points for good idea

It is simple
if you are use the atmel at89c2051 chip
1'st read from senser by cpu port and then tx to PC by RS232 port.

the time count use by cpu interrupt.
Back to top
alih_ee



Joined: 20 Oct 2007
Posts: 4


Post21 Oct 2007 13:15   100 points for good idea

you can use plc software and write simple program.
Back to top
funnynypd



Joined: 09 May 2007
Posts: 641
Helped: 15
Location: USA


Post24 Oct 2007 22:28   100 points for good idea

8051 and AVRs are not easy to get here in the USA, so PICs might be a good bet.
Back to top
blueroomelectronics



Joined: 17 Sep 2006
Posts: 1166
Helped: 58
Location: Toronto, Canada


Post02 Nov 2007 18:47   Re: 100 points for good idea

funnynypd wrote:
8051 and AVRs are not easy to get here in the USA, so PICs might be a good bet.


They're popular in India it seems.
Back to top
funnynypd



Joined: 09 May 2007
Posts: 641
Helped: 15
Location: USA


Post02 Nov 2007 19:09   100 points for good idea

About 5 years ago, cyganal try to sell their high performance 8051 to us, very good design & performance. However their price is high comparing with PICs, samples are hard to get, and no +5V parts available for automotive market made us decide not using their staff.

Now they are sil-lab. Seems got better service than before. Still think it is a Very good platform.

Don't know much about AVR. Got the development tools, never get any sample.
Back to top
ehsanelahimirza



Joined: 24 Feb 2006
Posts: 433
Helped: 33


Post05 Nov 2007 18:18   Re: 100 points for good idea

paralle port is the best option
hardware ==>one digital logical input for port.

and rest is programming in assembly or c++
1)port programming to read data
2)filing (making files) programming

filing will let u store tha data in .txt file along with the system time

u can program to monitot the port and when it gives signal, program will write a new line to predefined file adding time to it.
Back to top
e_eja



Joined: 15 Nov 2003
Posts: 150
Helped: 4


Post14 Nov 2007 4:21   Re: 100 points for good idea

use hall effect to detect current flowing throug rele, used RTC to maintine time and some micros
Back to top
hulahula



Joined: 15 Jul 2006
Posts: 33


Post14 Nov 2007 5:35   Re: 100 points for good idea

http://www.c51c51.com/
Back to top
heifu1747



Joined: 17 Apr 2007
Posts: 8


Post19 Nov 2007 9:39   100 points for good idea

en , i don't understand
Back to top
badboy2007



Joined: 05 Feb 2007
Posts: 185
Helped: 9
Location: http://cambo2engineer.8.forumer.com


Post19 Nov 2007 11:22   Re: 100 points for good idea

hi
i think u should use the serial port to communicate from VB(visual basic) to PIC
i mean u can use VB read data from PIC ..... cos PIC have serial communication it ....

i hope u understand.....
Back to top
akljhN73



Joined: 16 Nov 2007
Posts: 3


Post20 Nov 2007 11:01   Re: 100 points for good idea

i did a project like that in the last several months

51 MCU wih keilc IDE ,easy program

RTC DS1687-5, ALSO easy to use,only use the 51 MCU instruction

MOVX A,@DPTR to read the time and date you need,also can use
C language.

the enclosure i upload is the project chip code write by keil c.

u can use a serial port assistant on PC to debug it.

i have done it,can use



Sorry, but you need login in to view this attachment

Back to top
khrboosh



Joined: 21 Nov 2007
Posts: 1


Post21 Nov 2007 12:18   100 points for good idea

Yes, you can use COM port via serial port. Use VB to capture data, and thats it!
Thanks!
Back to top
blueroomelectronics



Joined: 17 Sep 2006
Posts: 1166
Helped: 58
Location: Toronto, Canada


Post22 Nov 2007 17:06   100 points for good idea

When's the cutoff date? When will the OP announce the winner I wonder?
Back to top
anilshrirao



Joined: 08 Sep 2007
Posts: 7


Post22 Nov 2007 20:39   Re: 100 points for good idea

what u want relay driver or entire interface
Back to top
chrismicro



Joined: 25 Jul 2006
Posts: 49
Helped: 3
Location: South Africa


Post13 Dec 2007 12:38   Re: 100 points for good idea

Where is the parallel port on your PC? new PC's come without it! the easiest is to use a small PIC even a 10F to monitor the relay, when it's triggered it send a signal serial to a VB program running on a PC, the VB program take the system time and date and write a simple text log file to the HD, that's it
Cool
VB code snippet to write the file
Code:
Open FileName for append as #1
Print #1,Time, Date
close #1

PICBasic code to monitor the relay
Code:

Main:
IF GPIO.0 = 0 THEN GOTO Main         'monitor pin if it go high then send data
SEROUT GPIO.1,N2400,["Q", "Relay triggered"]
GOTO Main                                    'loop to label Main forever
END


Added after 1 hours 17 minutes:

And here is the VB code I'm using on one of my projects to read the code of a Dallas iButton that is send by a PIC16F627
Code:
Private Sub MSComm1_OnComm()
   Select Case MSComm1.CommEvent
   ' Handle each event or error by placing
   ' code below each case statement

   ' Errors
      Case comEventBreak   ' A Break was received.
      Case comEventFrame   ' Framing Error
      Case comEventOverrun   ' Data Lost.
      Case comEventRxOver   ' Receive buffer overflow.
      Case comEventRxParity   ' Parity Error.
      Case comEventTxFull   ' Transmit buffer full.
      Case comEventDCB   ' Unexpected error retrieving DCB]

   ' Events
      Case comEvCD   ' Change in the CD line.
      Case comEvCTS   ' Change in the CTS line.
      Case comEvDSR   ' Change in the DSR line.
      Case comEvRing   ' Change in the Ring Indicator.
      Case comEvReceive   ' Received RThreshold # of
                        ' chars.
    Dim Chain  As String
    Dim ChainASCII As String
    Dim Character As String
    Dim CodeCharacter As Integer
    Dim Dummy As String
    Dim Letter  As String
    Dim Counter As Integer
   
    'Form1.MSComm1.Output = "SSA"              'stuur Acn
    If (Form1.MSComm1.InBufferCount > 0) Then
       Chain = Form1.MSComm1.Input       ' +
   
       Text1.Text = Chain
       Text1.SelStart = Len(Chain)
       
        ChainASCII = ""
        For Counter = 1 To Len(Chain)
            Character = Mid(Chain, Counter, 1)
            CodeCharacter = Asc(Character)
            Letter = Hex(CodeCharacter)
            ChainASCII = ChainASCII + Letter
        Next Counter
       
        KeyCode = Right(ChainASCII, 11)
        Gate = Left(ChainASCII, 1)
        If Left(KeyCode, 1) > 0 Then KeyCode = 0 & Right(KeyCode, 10)
       
       
        End If
       
        Form1.MSComm1.Output = "SSA"
       If (Form1.MSComm1.InBufferCount <> 8) Then
    Form1.MSComm1.InputLen = 0
    Dummy = Form1.MSComm1.Input
   
    Form1.MSComm1.InputLen = 8
    End If
      Case comEvSend   ' There are SThreshold number of
                     ' characters in the transmit
                     ' buffer.
      Case comEvEOF   ' An EOF charater was found in
                     ' the input stream
   End Select
End Sub
Back to top
hpzjw



Joined: 08 Mar 2006
Posts: 4
Location: china


Post05 Jan 2008 8:25   Re: 100 points for good idea

pasicr wrote:
Hi for all,
Anybody has idea for this,
one relay is activated with some signal for electronic door,
I need hardware + software for counting (in real time) any click on rele, with report like date and time of activation,
with possibility to connect on PC and get report in any format, txt, excel...
regards

That is easy!avr is enough for you!
Back to top
sooramanil



Joined: 04 Jan 2008
Posts: 0
Location: Hyderabad, India


Post07 Jan 2008 11:41   Re: 100 points for good idea

i think RTC is better for calculating date and time, matlab is better for this
Back to top
dic_cosmin



Joined: 31 May 2006
Posts: 2


Post06 Feb 2008 15:47   Re: 100 points for good idea

Use a PIC microcontroller, make a clock software (time and date), and use external interrupt (INT pin ) for counting any click of relay. When a click of relay generate an interrupt you read the time and date and send to PC. You can increment a count register four counting the click of relay. Use serial port (rs232) and hyper terminal to connect with PC. In hyper terminal you can capture all data in *.txt format.
Back to top
armardu



Joined: 06 Oct 2007
Posts: 35


Post27 Feb 2008 7:07   100 points for good idea

you can use RTC(real time clock) for date and time
but you can use matlab for controling all the events (recomended!)
Back to top
tcamargo



Joined: 18 Feb 2008
Posts: 4


Post27 Feb 2008 23:29   100 points for good idea

its a good ideia
Back to top
asokacolambage



Joined: 28 Feb 2008
Posts: 2


Post12 Mar 2008 18:14   Re: 100 points for good idea

HI,

I am finding good electronic design idea for under graduate program. plese let me know suble idea for this

asoka
Back to top
muralicrl



Joined: 06 Feb 2008
Posts: 281
Helped: 30


Post20 Mar 2008 11:54   Re: 100 points for good idea

Hi,

You can have a low end CPLD, Real Time Clock, Relay (5V preferrable), and additional small circuits. You can have a small piece of VHDL code for serial port, counting the clocks for relay ON and OFF. Serial port can be used to monitor and change the configuration of the CPLD settings.

I implemented this technique in one of our applications successfully.

If you need more details on this kindly contact me.

Regards,

N. Muralidhara
Back to top
Abdul Manan



Joined: 10 Nov 2007
Posts: 63
Helped: 6


Post22 Mar 2008 19:36   100 points for good idea

choose pic 16f877
use all protocals available in it
in other words optimize the pic 16f877

semi semester project proposal

interface "tmp 124" temperature sensor using spi master protocol many other digital spi and i2c temperature sensors are easily available u can also request free sample from yi.com

then use pwm protocol and control the pwm of a fan based on temperature

design a techometric harware to calculate rpm of the fan or use a laptop or processor fan which has an inbuilt hardware of providing techometric signal
use counter module for rpm

now interface an alphanumeric lcd for displaying rpm pwm and temperature of the area using psp module of pic


u can also interface a humidity sensor using adc module
Back to top
makri



Joined: 01 Jan 2004
Posts: 113
Location: India, Kerala


Post24 Mar 2008 18:14   Re: 100 points for good idea

hello

you told samples from yi.com it is not an electronics site

pl give correct address

makri
Back to top
Abdul Manan



Joined: 10 Nov 2007
Posts: 63
Helped: 6


Post25 Mar 2008 5:54   100 points for good idea

sorry its ti.com
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers
Page 2 of 3 All times are GMT + 2 Hours
Goto page Previous  1, 2, 3  Next


Abuse
Administrator
Moderators
topic RSS 
sitemap