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

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



Joined: 13 Aug 2005
Posts: 257
Helped: 7


Post26 Aug 2007 13:24   100 points for good idea

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
Back to top
amiralib



Joined: 06 Mar 2006
Posts: 113
Helped: 10
Location: Ian - Tabriz


Post26 Aug 2007 15:32   100 points for good idea

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
Back to top
pasicr



Joined: 13 Aug 2005
Posts: 257
Helped: 7


Post26 Aug 2007 16:32   Re: 100 points for good idea

I have experience with pic micro,
If you have all circuit for share with me OK,
I wait massage from you,
regards
Back to top
whatcall`



Joined: 26 Aug 2007
Posts: 8
Helped: 1


Post26 Aug 2007 16:38   Re: 100 points for good idea

PIC16 series MCU + one RTC chip for date and time + Max232 for seirial communication + PC master sw( developped with VS or Delphi or other IDE if run on Windows )
Back to top
amiralib



Joined: 06 Mar 2006
Posts: 113
Helped: 10
Location: Ian - Tabriz


Post26 Aug 2007 16:46   100 points for good idea

I dont have this circuit but.....
I have a project for controlling DC motor vath AVR
1st count the motor RPS(like count your rele)
2nd send the RPS to computer(you need this)
3rd in the Matlab we can see all the results(you need this)
4th matlab will send new RPS to micro (you can control the rele or other part whit this controller in matlab)
5th micro will make new pwm

if you whant I can upload this project I think it can helps you
but its AVR not PIC !!!!
Back to top
pasicr



Joined: 13 Aug 2005
Posts: 257
Helped: 7


Post26 Aug 2007 18:09   Re: 100 points for good idea

For Amiralib,
what is with date and time,
regards
Back to top
amiralib



Joined: 06 Mar 2006
Posts: 113
Helped: 10
Location: Ian - Tabriz


Post26 Aug 2007 18:57   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
pasicr



Joined: 13 Aug 2005
Posts: 257
Helped: 7


Post26 Aug 2007 20:20   Re: 100 points for good idea

May I recieve data and time for every click on relay in matlab with your sch?
regards
Back to top
amiralib



Joined: 06 Mar 2006
Posts: 113
Helped: 10
Location: Ian - Tabriz


Post26 Aug 2007 20:56   100 points for good idea

no
in my sch you cant do this
I give you some Ideas ...only this.
Back to top
pascal65



Joined: 27 Aug 2007
Posts: 2
Helped: 1


Post28 Aug 2007 11:06   Re: 100 points for good idea

hi . as the guys said u can use pic or avr & write ur program with external interrupt enabled.u can write a program in vb & send ur data in a data base for report.
Back to top
andre_teprom



Joined: 07 Nov 2006
Posts: 173
Helped: 11
Location: BRAZIL - Rio de Janeiro


Post28 Aug 2007 16:25   Re: 100 points for good idea

You can achieve it without need of use uControler.

The PC parallel port can enable a simple circuit containning a relay, and a software running at real-time in order to get timming of events.

+++
Back to top
leonardo0



Joined: 28 Aug 2004
Posts: 15


Post02 Sep 2007 9:51   Re: 100 points for good idea

Hi.

Hi to everyone.
I have implemented such a design with an 8051 MCU
Using one PC to monitor a switch is an overkill.Too much power
and trouble for something so small.
Use one mcu to store program code .
For RTC use philips I2C Rtc clock .Don't get into trouble designing RTC in software .Everything is ready for 1.5 euros (PCF8583 RTC) .For storage use I2C memory so you use same software pieces .
PC download can be done with two ways .One is standard RS232 .You have to write software to read and decode memory contents .Second is use a I2C eeprom reader to read contents of memory .
Such slutions also exist for PIC
Now if you want to experiment with a new controller a bit but have an almost ready solution . Use KEIL MCB 2300 development board or similar .
RTc is there plus secure digital card interface plus display +USb interface + RS232 interface +plus ethernet interface etc.
Most sofware in library form is ready so in few afternoons you have it done .
The possibilities with all those interfaces are enormous .
So it's up to you to decide
Back to top
mcs51mc



Joined: 19 Jul 2007
Posts: 73
Helped: 16
Location: Belgium


Post03 Sep 2007 20:19   Re: 100 points for good idea

andre_teprom wrote:
You can achieve it without need of use uControler.

The PC parallel port can enable a simple circuit containning a relay, and a software running at real-time in order to get timming of events.

+++

Absolutely, PC parallel port is what you need, no µC at all !!
Instead of MathLab I would suggest LabView because there's no math involved Very HappyVery Happy
You can find vi's at the NI website that access the parallel port.

That is of course if the PC can be used all the time for the job Very HappyVery Happy
Back to top
umar_alzoubi



Joined: 05 Feb 2007
Posts: 9


Post04 Sep 2007 11:13   100 points for good idea

It is a simple task in Labview you need : DAQ card from NI , Labview 7.1 or higher version , and a small software that will do the following :
1- recording ( logging ) any data you data you want in any format ( txt , exl ...etc )
2- control any hardware switching ....

for any help contact me
Back to top
austinindia007



Joined: 26 Aug 2007
Posts: 3


Post04 Sep 2007 19:24   100 points for good idea

why dont we try to make a project in recovering code from a locked micro-controller

Added after 1 minutes:

we can generate microcontrooler program through matlab

Added after 5 minutes:

can anyone help in making my project.Actually i want to make an automatic car control system using 8051 and i want to know any idea or senser which can measure the speed of car.
Back to top
suru



Joined: 31 Aug 2007
Posts: 161
Helped: 4


Post05 Sep 2007 7:59   100 points for good idea

make 89c2051 or 89c51 baased project . it will be very simple. very simple program.plz try .....
Back to top
jokosaja



Joined: 05 Sep 2007
Posts: 2


Post05 Sep 2007 15:00   Re: 100 points for good idea

agree with leonardo0,

use your favorite uC including the development,
add RTC for date&time,
add EEPROM to log the event, big enough for a given period.
you can use LCD to display current event or browse saved-events with some button for that purpose (software is getting more complex).
small size and low-power that suits for data logger.

---

if you want to download the saved-event from EEPROM just put it off and analize its content.

---

wanna do in convenient way? add RS-232 and add a button. connect your data-logger to the PC. when you press it, your uC will read the EEPROM and send via serial comm to your PC, use visual basic or other software to save it in a file.

converting RS-232 to Ethernet (buy the module for fast prototyping), and you can download your door-event over the world Smile

or maybe you can use RS-232 to bluetooth / WiFi so you can monitor it by your PDA or mobile phone while you have lunch...

just an idea.
Back to top
FSio



Joined: 27 Nov 2003
Posts: 29
Helped: 1


Post05 Sep 2007 19:31   Re: 100 points for good idea

pasicr,
How much money did you think spend?
A embedded solution is cheaper.
I think that your project should contain the following components:
- PIC microconroller (12Fxxx )
- RTC, real time counter I purpouse HT1381.
- Memory: Use serial memories in that case, If require huge amount of data you should choose an 24 series or 25 series. About prices, 93 series and 24 series have the same.

So, If you have interest in my design let me know it, and I'll post it.

Rgds
Back to top
dani



Joined: 08 Mar 2004
Posts: 158
Helped: 1
Location: UK


Post07 Sep 2007 8:59   Re: 100 points for good idea

Hi

In vb6 you can capture events on COM port also and can record the event time in any formate you want. You can connect RTS pin of your PC comport with the output of relay through a simple trasister resistor circuit.


bye
Back to top
andre_teprom



Joined: 07 Nov 2006
Posts: 173
Helped: 11
Location: BRAZIL - Rio de Janeiro


Post10 Sep 2007 21:40   Re: 100 points for good idea

Hi dani,

Paralel port also have a low-level hardware interrupt ( IRQ ) that can be used to capture the event.

+++
Back to top
gowthamn



Joined: 06 Apr 2006
Posts: 34
Helped: 1


Post14 Sep 2007 13:27   Re: 100 points for good idea

Hi,

I did a similar project few years back. Where i had to store the data in test file and plot the data.
I used the parallel port for interface and i used a logic circuitry to read the parallel data by using a shift register logic and it was slow as i used a logic in my code to read the particular bit as a reference clock and when clock is high then read the successive bit, the clock was set to the D1 of the paralle port input. and read the data from D3 and decoded it worked fine.
Hope u also can try this.
In case u want u also can refer to the book "Parallel port complete" which gives the complete details of the parallel port circuitry.

Cheers
Gowtham
Back to top
abdullahrafe



Joined: 15 Sep 2007
Posts: 3


Post15 Sep 2007 22:06   Re: 100 points for good idea

well friend try the www.parallax.com

ma boss got some parts and components from thereβχκω
Back to top
thisistausif



Joined: 03 Aug 2005
Posts: 57
Helped: 1
Location: india


Post20 Sep 2007 19:23   100 points for good idea

use NI labview that would be easy for data aquistaion and to integrate it with excel
Back to top
manish12



Joined: 21 Nov 2006
Posts: 918
Helped: 25


Post23 Sep 2007 16:10   Re: 100 points for good idea

just, do one think
make small matlab program
for acessing parallel port and time of pc and create file for database .

this is most can you do.
Back to top
PaulHolland



Joined: 15 Jan 2003
Posts: 624
Helped: 59
Location: Holland


Post23 Sep 2007 16:33   Re: 100 points for good idea

Buy a PICDEM FS USB board with a Pictail board for SD/MMC card and you have all the hardware you need to make a log file on SD card that you can read with your PC. The real time clock you can make based on the XTAL, do not think you need seconds accuratcy do you ?.
Back to top
mkiani



Joined: 11 Apr 2007
Posts: 107
Helped: 1


Post25 Sep 2007 11:41   100 points for good idea

you shold use of an microcontroller like 8051 or avr or pic and simply write software for it.
Back to top
lunar



Joined: 07 Mar 2006
Posts: 9
Helped: 1


Post26 Sep 2007 5:48   Re: 100 points for good idea

well
there are two approaches to this one is hitech and the other is for testing.
connect ur hardware directly to ur pc via parallel port using c or matlab.(if u have problem in this i can give u the sample code).
the other is to connect ur hardware to a microcontroller and connect ur microcontroller with ur pc. it will save ur power.
the microcontroller can log the data and when ever u require the data u can communicate with ur controller.

i can help u out in both approcahes if i have the information about ur hardware and software that u are uisng.
Back to top
micro4000



Joined: 23 Sep 2007
Posts: 7
Helped: 1


Post29 Sep 2007 9:10   100 points for good idea

hi
that is very simple
you can use the atmega16 for micro&intrnal INT0 for sens&timer for cunt &rtc(DS1307) for real time and data &USART for communication to pc&use vb or c++ or matlab or labview or even hyper terminal
to save your information
as you like
Back to top
hamdard



Joined: 09 Jun 2006
Posts: 188
Helped: 10


Post29 Sep 2007 9:22   Re: 100 points for good idea

if you have still not got idea, pl. contact me . I may give you the required hardware and software support.
Back to top
mr_anderson



Joined: 23 Jan 2007
Posts: 53


Post08 Oct 2007 19:27   100 points for good idea

hi
i can suggest u to use
IR or micro-switch or sensor---->parallel port of PC---> software to record the events such as Qbasic if u are not familiar with C or other languages.
if u are interested in my design i can help u
byez
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers
Page 1 of 3 All times are GMT + 2 Hours
Goto page 1, 2, 3  Next


Abuse
Administrator
Moderators
topic RSS 
sitemap