Pages: [1]   Go Down
Author Topic: I2CKeypad with enc28j60  (Read 1116 times)
0 Members and 1 Guest are viewing this topic.
Netherlands
Offline Offline
Full Member
***
Karma: 0
Posts: 123
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi People!,

I have a seriously weird problem....

I have set up an arduino with the enc26j60 breakout (etherShield lib), a 16X2 LCD (PCFCrystal lib) and some less relevant
extensions.
The problem i'm facing is that when i trij to use the two together the arduino reboots  smiley-confuse
I have a running website that will have to be interrupted but that's not a big deal and everything runs until i give a input on
the i2c keypad. I've tried a lot of things but the only way is to delete the code from the loop with all the etherShield print and the etherShield respond.

I hope my explanation is clear enough  smiley

Any suggestions?

-Kenny-
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13705
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
and some less relevant extensions
might be more relevant than you thought  -  do you provide enough power to drive all those goodies smiley

Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Netherlands
Offline Offline
Full Member
***
Karma: 0
Posts: 123
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the quick reply,

I have it connected on my usb and than it all works fine, but to be sure i connected an external 450mA wall adapter, so i guess when it runs from usb than this extra should do
« Last Edit: March 04, 2012, 10:54:47 am by kenny_-_ » Logged

Netherlands
Offline Offline
Full Member
***
Karma: 0
Posts: 123
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I just measured and it takes up about 250mA in total
« Last Edit: March 04, 2012, 10:26:23 am by kenny_-_ » Logged

Netherlands
Offline Offline
Full Member
***
Karma: 0
Posts: 123
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm really stuck on this and guess that i have to try some different lib's perhaps, it's a shame because i liked these   smiley-sad

I will try some stuff next weekend but add the weirdest part.

I took everything from the loop in the ethershield example and placed it in a separate sub called EtherLoop(),
if i comment out the call of etherloop everything works (by that i mean that i also setup everything for the ethershield loop).
Now i can make a "if(some_bool = true)" and leave some_bool false and uncomment the EtherLoop(), now it's not called for sure
but still rebooting smiley-confuse (like, huh?) but if i comment it out and leave the loop but don't call it than it works....

Anyone have any other ideas?
Logged

Netherlands
Offline Offline
Full Member
***
Karma: 0
Posts: 123
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is there no one with any ideas at all?
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13705
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is there no one with any ideas at all?
Patience is a virtue smiley-wink

What is the voltage of the Wall wart? it should be 7 VOlt at least - see hardware specs.
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Netherlands
Offline Offline
Full Member
***
Karma: 0
Posts: 123
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's 5 volt but i connected the atmega on a breadboard without my uno pcb, so i guess that 5v is max?
Logged

Netherlands
Offline Offline
Full Member
***
Karma: 0
Posts: 123
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just for the sake of trying i took a 5v 1000mA power supply home from work yesterday, but the results where the same. There is also no voltage dip anywhere(also tried the 3,3 volt voltage regulator for the enc28j60).
Logged

Lisbon, Portugal
Offline Offline
Full Member
***
Karma: 0
Posts: 152
Bow before me for I am root.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Why are you blaming power ?
Arduino reboot loop() usually is bad programming leading to memory corruption or no free SRAM for runtime.
As you mentioned you have a LCD, are you storing all your string into PROGMEM ? If no, you should.
Logged


Netherlands
Offline Offline
Full Member
***
Karma: 0
Posts: 123
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I could try that thanks for the input!

But i've been trying some more and what i found out was that it actually hang at a Serial.print("something key pressed"); so i guess that it could be that i just have to use the progmem

I just had some small things with arduino and this is the first "a little big" so these are the things i run in to i guess  smiley-red

I really wan't to thank you guys for the input and i think i can almost say it's solved, i am going to really through test this one!  smiley

Did not expect this, but the better it feels when you see a solution  smiley
Logged

Netherlands
Offline Offline
Full Member
***
Karma: 0
Posts: 123
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Finally everything is up and running again!

Again thanks!  smiley
Logged

Lisbon, Portugal
Offline Offline
Full Member
***
Karma: 0
Posts: 152
Bow before me for I am root.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

So was it really SRAM ?
Logged


Netherlands
Offline Offline
Full Member
***
Karma: 0
Posts: 123
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

o sorry didn't come back for some time but yes it was! smiley

I got it working now with declaring all my strings first with progmem
Logged

Pages: [1]   Go Up
Jump to: