Arduino Mega 2560 R3 And RTC MCP794N
Moderator: Benj
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
Arduino Mega 2560 R3 And RTC MCP794N
HI everyone
Can Arduino Mega 2560 R3 use Clock RTC MCP794N ?
Original: Clock RTC MCP794N with dsPIC: Want to use Clock RTC MCP794N with Arduino Mega 2560 R3, can this work?
Attached work file: Do you have a suggestion for codes?
Or would you like to help correct Clock RTC MCP794N for use with the Arduino Mega 2560 R3?
For example, how to direct the codes to use for Mega 2560 Macro DrawCursor.
Can Arduino Mega 2560 R3 use Clock RTC MCP794N ?
Original: Clock RTC MCP794N with dsPIC: Want to use Clock RTC MCP794N with Arduino Mega 2560 R3, can this work?
Attached work file: Do you have a suggestion for codes?
Or would you like to help correct Clock RTC MCP794N for use with the Arduino Mega 2560 R3?
For example, how to direct the codes to use for Mega 2560 Macro DrawCursor.
Best Regard
Monie
Monie
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
Re: Arduino Mega 2560 R3 And RTC MCP794N
Hi Monie
There might be some issues running these two devices on the same I2C pins.
Could you try moving one of the devices to some different pins and use the Software channel?
There might be some issues running these two devices on the same I2C pins.
Could you try moving one of the devices to some different pins and use the Software channel?
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
Re: Arduino Mega 2560 R3 And RTC MCP794N
Hi LeighM
I really tried the whole weekend but without luck;-)
Really tried a lot and got stuck....
I really tried the whole weekend but without luck;-)
Really tried a lot and got stuck....
Best Regard
Monie
Monie
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
Re: Arduino Mega 2560 R3 And RTC MCP794N
HI LeighM
I use your user Blocks EB-002-00-1. Screw Terminal on all Arduino Mega 2560 R3
Using all ports is this a problem?
I use your user Blocks EB-002-00-1. Screw Terminal on all Arduino Mega 2560 R3
Using all ports is this a problem?
Best Regard
Monie
Monie
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
Re: Arduino Mega 2560 R3 And RTC MCP794N
Yes, the EB002 series resistors might cause an issue with the RTC chip too, try shorting them out as you did for the display.
What is your circuit to the RTC MCP7940N chip device?
Do you have the pull-up resistors required for I2C?
What is your circuit to the RTC MCP7940N chip device?
Do you have the pull-up resistors required for I2C?
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
Re: Arduino Mega 2560 R3 And RTC MCP794N
HI LeighM
I have pull-up resistors required for I2C?
I use LCD I2C units below! Yes, EB002 resistors may cause a problem with the RTC chip, so try shorting them as you did on the screen. Have done what you describe.
What is your circuit to the RTC MCP7940N chip device? Believe that pull-up resistors are built-in. RTC MCP7940N is component in Flocode 8
Attached file:
I have pull-up resistors required for I2C?
I use LCD I2C units below! Yes, EB002 resistors may cause a problem with the RTC chip, so try shorting them as you did on the screen. Have done what you describe.
What is your circuit to the RTC MCP7940N chip device? Believe that pull-up resistors are built-in. RTC MCP7940N is component in Flocode 8
Attached file:
Best Regard
Monie
Monie
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
Re: Arduino Mega 2560 R3 And RTC MCP794N
Hi Monie!
The picture you attach, is for the display, serial to parallel, as far I know your display work?. I think that Leigh, mean if you use the same adapter as you used for the displaydriver to your RTC, you have to short the resistors on this board also. I think
Concerning the RTC, why don´t you use DS3231 like this https://www.ebay.com/itm/Arduino-DS3231 ... SwuMZZL4eH. Ready to use. Here is lot of examble here in fora, Medelec, Martin made one here: viewtopic.php?f=26&t=16392 and John Crow has also made one you can use.
If I have misunderstood, please forget this,,,,,
Br Jorgen
The picture you attach, is for the display, serial to parallel, as far I know your display work?. I think that Leigh, mean if you use the same adapter as you used for the displaydriver to your RTC, you have to short the resistors on this board also. I think

Concerning the RTC, why don´t you use DS3231 like this https://www.ebay.com/itm/Arduino-DS3231 ... SwuMZZL4eH. Ready to use. Here is lot of examble here in fora, Medelec, Martin made one here: viewtopic.php?f=26&t=16392 and John Crow has also made one you can use.
If I have misunderstood, please forget this,,,,,

Br Jorgen
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
Re: Arduino Mega 2560 R3 And RTC MCP794N
HI LeighM
The Schematic diagram shows pull-up resistors.
But as I understand it, the component is built into Flowcode;-) As for Windspeed, I find it very difficult to find a Port that can be used!
And here I know with the outside unit that there must be pull-up resistors.
Attach file: Uses Arduino Mega 2560 R3 with EB092
The Schematic diagram shows pull-up resistors.
But as I understand it, the component is built into Flowcode;-) As for Windspeed, I find it very difficult to find a Port that can be used!
And here I know with the outside unit that there must be pull-up resistors.
Attach file: Uses Arduino Mega 2560 R3 with EB092
Best Regard
Monie
Monie
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
Re: Arduino Mega 2560 R3 And RTC MCP794N
HI everyone
It will be helpful to show a connection between PWM and DC motor (Full Bridge).
Like an example in flow code! See attached files:
It will be helpful to show a connection between PWM and DC motor (Full Bridge).
Like an example in flow code! See attached files:
Best Regard
Monie
Monie
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
Re: Arduino Mega 2560 R3 And RTC MCP794N
HI LeighM
'How do I get PWM and motor reversible to work together?
With a PWM signal for a motor ..
PWM Pin E3
Motor output Port E.3
Did not check on how to pair the devices!
Hope very much you will come up with a suggestion
Attached files:
'How do I get PWM and motor reversible to work together?
With a PWM signal for a motor ..
PWM Pin E3
Motor output Port E.3
Did not check on how to pair the devices!
Hope very much you will come up with a suggestion

Attached files:
Best Regard
Monie
Monie
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
Re: Arduino Mega 2560 R3 And RTC MCP794N
Hi Monie,
I don't think you can use the components together like that.
Depends what your driver circuit looks like,
but you could drive one pin/side with the PWM and the other with high/low for forward/reverse.
Or, use the PWM as a driver enable, and then use the motor reversible component to drive the two sides of the bridge.
Leigh
I don't think you can use the components together like that.
Depends what your driver circuit looks like,
but you could drive one pin/side with the PWM and the other with high/low for forward/reverse.
Or, use the PWM as a driver enable, and then use the motor reversible component to drive the two sides of the bridge.
Leigh
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
Re: Arduino Mega 2560 R3 And RTC MCP794N
Hi LeighM
I will now use PWM to send signal to an H-bridge controller;-)
But thank you very much for your suggestion.
I've made this PCB layout below..
I will now use PWM to send signal to an H-bridge controller;-)
But thank you very much for your suggestion.
I've made this PCB layout below..
Best Regard
Monie
Monie
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
Re: Arduino Mega 2560 R3 And RTC MCP794N
HI LeighM
Can Opto isolator board EB035 E-blocks be connected with Inductive PNP sensor (24V) and with input for the Arduino Mega 2560?
Can you give a sketch / diagram of a coupling example between EB035 E-blocks and Inductive sensor?
I do not want to destroy EB035 E-blocks!
Can Opto isolator board EB035 E-blocks be connected with Inductive PNP sensor (24V) and with input for the Arduino Mega 2560?
Can you give a sketch / diagram of a coupling example between EB035 E-blocks and Inductive sensor?
I do not want to destroy EB035 E-blocks!
Best Regard
Monie
Monie
-
- Posts: 484
- Joined: Mon Jul 30, 2012 3:39 pm
- Has thanked: 17 times
- Been thanked: 46 times
Re: Arduino Mega 2560 R3 And RTC MCP794N
Hi LeighM
Thank you very much. It was just what I could use;-)
Good weekend
Thank you very much. It was just what I could use;-)
Good weekend
Best Regard
Monie
Monie