RTC ?

For MIAC users to discuss projects, applications, and any other issues related to the MIAC unit.

Moderators: Benj, Mods

Post Reply
User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

RTC ?

Post by acestu »

Does the MIAC unit have a real time clock in it, or does it require a non interuptable power supply to safeguard against power interuptions ?

thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: RTC ?

Post by JohnCrow »

Hi
The MIAC its self does not have a RTC.
RTC funcionality can be added by using the Advanced addon module.
This has a button cell inside the case to keep the time when power is removed.

http://www.matrixmultimedia.com/product ... PHPSESSID=

Alternatively, I have the serial expansion module, and I have used my DS1307 RTC board by connecting it to the I2C ports on this module.

http://www.matrixmultimedia.com/mmforum ... hilit=+rtc
1 in 10 people understand binary, the other one doesn't !

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: RTC ?

Post by acestu »

Thanks John,

Do you know if there are any plans to update the MIAC to have this functionality as it is a must really for professional commercial or industrial use, particularly where I am in the countryside as power cuts are a regular occurrence. A lot of my projects would involve replacing units and size matters, existing units all have small cell battery backup.

Thank you
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: RTC ?

Post by Enamul »

Hi,
The add-on modules giving the facility of using RTC with backup power but I think you are feeling a bit expensive. In that case you can make a cheaper CAN bus based RTC module to be connected to MIAC. As MIAC I feel developed mainly to give a feeling of PLC still using same FC, so it will need time to have complete support like commercial PLCs.
I am agreeing with you if SPI or I2C is kept free in MIAC design we could easily interface RTC with MIAC. But the problem is MIAC CAN is using hardware SPI..let's see what MM brings to us later on.
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: RTC ?

Post by acestu »

Hi Enamul, you are right as usual, thanks for your input...

cheers
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: RTC ?

Post by Enamul »

You are welcome :)
Have you received your copy of flowcode v5? I will help you to make RTC add on module if you want. I need that for one project as well. I am currently using without MIAC but may need to move to MIAC obviously depends on client.
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: RTC ?

Post by acestu »

Hi Enamul, Brilliant, yes I have ordered it on cd but I have downloaded a copy also, I have had a look at it and there is a lot more on it isn't there, I look forward to getting some E-blocks and having a play with it, building the RTC would be great, If you let me know what I need I will get the parts ordered...

Thanks again
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: RTC ?

Post by Enamul »

Great..Here is the link for RTC module which you need to buy..
http://proto-pic.co.uk/real-time-clock-module/
You need a CAN enabled PIC like PIC 18f458 or PIC 18f4580..
http://www.ebay.co.uk/itm/PIC18F458-Mic ... 2548wt_758
also a MCP 2551 CAN transceiver IC..
http://www.ebay.co.uk/itm/MCP2551-E-P-T ... _556wt_699
That's it..Probably better to buy one LCD as well so that you will be able to see time and date in add on RTC module for debugging..
http://www.ebay.co.uk/itm/HD44780-1602- ... 3347wt_932
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: RTC ?

Post by JohnCrow »

Hi Acestu

If you order the RTC suggested by Enamul, you should be able to program it with the flowchart in my link. Its basically the same board as my homemade one.

As I dont work for Matrix Im not at liberty to comment on what they may have in the pipeline, but I would not suspect a new version on the MIAC is on the cards anytime soon. The modules are superb but if all you need is the RTC buying is as you point out a bit expensive.

Will be interested in following Enamul's idea for linking the RTC via the CAN Bus myself.
1 in 10 people understand binary, the other one doesn't !

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: RTC ?

Post by acestu »

Thanks John,

I have had a look at your article and will probably have a go at building both yours and Enamuls as I have ordered parts for both...

cheers
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

Post Reply