Has anyone written code for the Canaduino PLC Mega 328 which uses the Arduino Nano?
I have developed code that executes:
On Delay and Off Delay Timers using Real Time Clock
Up and Down Counters
PID control and simulator functions
Boolean Logic functions.
If interested, I can share.
I haven't used that one specifically, but I picked up a couple of the Zanhorduino modules.
I wrote a post here with some demo code about my experiences.
I plan to write a few more short example programs for it.
In short: it's worth the price. Simplifies assembly of a lot of small controllers and so far the hardware hasn't given out. I was pleasantly surprised that the 24V power supply actually accepted 24V with no issues, and works down to about 10V.
Hi Len, I am also a retired Electrical Engineer and new to Arduino world and was looking for some code for the mini to try out my Canaduino PLC Mega 328. Could you upload your code here:
Thanks, JD
Hi JD
I created a Github page with description and code.
The URL is:
https://github.com/lrklochek/arduino-plc-tutorial
there you will find the code in the file PLC_2_IR.ino as well as a description of the system.
Len
Thanks Len, I'll check it out today.
JD
Hi Len, I downloaded the PLC program and tried to compile it but it needs the file "LiquidCrystal_I2C.h" and I can't find it in the Arduino library. Do you know where I can download it?
JD
JD,
You can get it from the Arduino IDE by clicking on Sketch, Include Library, and then Manage Libraries. Then enter Liquid Crystal. It is slow so you may have to wait . The library is Liquid Crystal Arduino 1.0.7. You then click install.
Incidentally, I am creating a few programs that are simplified version of the PLC program that don't include the Display and IR Remote. that I will be posting to:
https://github.com/lrklochek/arduino-plc-tutorial
Len
I have posted my latest updates to the github website. There is a very interesting and unusual timer posted. The timing parameters are set with an inexpensive IR Remote. The parameters are displayed on an LCD display. The Github website link is:
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.