Did someone use arduino nano 328 with ENC28J60
(with EtherCard.h) ?
im trying to do simple ethernet blynk relay on it.
Pleace some one help me with sketch or link to ness. libraries)))) Im failed to find it
What library should i use to run blynk on nano with that module?
Can you help me a little more please… I never used any arduino with arduino IDE.(only esps before)
so I
chmoded to 777 my /dev/ttyUSB0 with nano connected
and check sketch on errors
after i press “write sketch button” and my nano flashes with tx and rx
but there were no "."s written below in log.
Is it normal? did i flash my nano after tx and rx stops blink?
where were no mistakes in log below
One more question
Blynk.begin(auth, IPAddress(XXX,XXX,XXX,XXX), 8888); - what does 8888 mean?
Ohh suppose its a custom port number)))
i have found all my mistakes and problem are solved now)))
Thank you for your reply
Just IDE did not write a lot of “.” and “% of complete” than it fashes nano)))
I tried several releases of IDE but only 1.0.6 works perfectly without doubt of compiling with this setup.
The problem is the less program memory. When you use these libraries and Blynk stuffs (run Blynk and SimpleTimer), you have only a few bytes for your own code. (e.g. 27338 byte used of 30720 byte maximum) It is enough in most of cases (relay control, temp measure, etc.) but in case of combine different tasks you can run out of free memory easily.
@vshymanskyy, you mean ‘Minimizing footprint’ section of Blynk docs?
I tried add these lines to my sample code (my sample code contains only neccessary libraries and Blynk codes without any further user program lines):
#define BLYNK_NO_BUILTIN // Disable built-in analog & digital pin operations
#define BLYNK_NO_FLOAT // Disable float operations
and total bytes decreased to 26090 bytes from 27338 bytes.
BTW, Blynk is even smaller than MQTT (and uses far less bandwidth).
So, unfortunately I don’t think you have the right hardware for your project… if you run out of flash - just pick a bigger controller or change the hardware completely.
Thanks, but it is not a huge problem for me because I had an old ENC28J60 and I would utilize it. Now it works with 6 relays for switch LED lamps outside my house. I use ESP8266 standalone for all my other projects.
…and some Blynk features (e.g. setProperty) are not compatible with libraries for ENC28J60, so possibilities are less to use for this hardware instead of others…