Open Johnwr57 opened 7 years ago
Here is the sample sketch, PLC I am trying to run. It loads fine to the PLC and I can see the results of a count on the serial monitor correctly. Any help would be greatly appreciated by this newbee. PLC.pdf
Seems like you're missing the directory for that library. Go here and use the clone/download link to get the entire project directory. Open plduino_firmware.ino from its folder. You should be ok when compiling then.
I put it on my desktop extracted and ran the plduino_firmware and it still gives me the same error. Am I missing a library in Arduino? I am just learning coming from an AB ladder logic prospective so I am sure I am causing my own issues here. C:\Users\John Ragsdale\Documents\Arduino\PLDuino-master\Arduino\plduino_firmware\plduino_firmware.ino:1:28: fatal error: TMRpcm_PLDuino.h: No such file or directory
^
compilation terminated.
exit status 1 Error compiling for board Arduino/Genuino Mega or Mega 2560.
copy the libraries folder from the project C:\Users\USER NAME\Documents\Arduino\PLDuino-master\Arduino\libraries
to the libraries folder in the arduino program directory C:\Users\USER NAME\Documents\Arduino\libraries
Success, thank you. That makes a lot of sense now. The libraries for the project need to be in the main library. I also reset the preference setting to point to the same folder.
Thank you!!
Glad I could help. This is my first go with an Arduino device as well. There doesn't seem to be much info out there for this device specifically. I've found the Arduino forums to be very helpful. Here's a link to one of my posts regarding my first project. Programming is a bit intimidating at first (especially with zero c/c++ experience), but I can't wait to unlock the full potential of this device once I grasp the language.
Hi Johnwr57,
To use both LCD & ESP, you need to include PLDuino library and write in setup() function: PLDuino::init(); PLDuino::enableLCD(); PLDuino::enableESP(); and then you can use them as usual (see any Adafruit_ILI9341 examples and ESP is connected to Serial2). See pld_tftdraw and esp_flash_helper sketches.
Sorry for the delay.
Best regards, ddrd
Hello,
Attached is the file or sketch I am trying to run and have the PLC login to the internet so I can then develop an App to collect the data for monitoring purposes. I can see the Wifi with other devices but for some reason I can not get it connected to the internet. The whole purpose for purchasing your PLC was the built in WiFi, please help.
I did include the suggestion you made below but again, it is working but not connecting to the net.
While I have you, is there a Bluetooth device you would recommend if possible for the PLC?
Thank you,
John
On Wed, Dec 14, 2016 at 10:24 AM, ddrd notifications@github.com wrote:
Hi Johnwr57,
To use both LCD & ESP, you need to include PLDuino library and write in setup() function: PLDuino::init(); PLDuino::enableLCD(); PLDuino::enableESP(); and then you can use them as usual (see any Adafruit_ILI9341 examples and ESP is connected to Serial2). See pld_tftdraw and esp_flash_helper sketches.
Sorry for the delay.
Best regards, ddrd
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/digitalloggers/PLDuino/issues/4#issuecomment-267062164, or mute the thread https://github.com/notifications/unsubscribe-auth/AXEm6fyxmszt0pX-HUxMa0oFCgTTXQdrks5rIAoTgaJpZM4LKnr9 .
-- John
Hello,
I am having issues getting my LCD and WiFi working with some basic sketches. I tried going back to the originally installed sketch plduino-firmware, see attached.
It was installed on my digital-loggers PLC I am using for an industrial application that will monitor film usage on a stretch machine. The message; Error compiling for Arduino/Genunio Mega or Mega 2560 with C:\Program Files (x86)\Arduino\examples\plduino_firmware\plduino_firmware.ino:1:28: fatal error: TMRpcm_PLDuino.h: No such file or directory
include
Is there a simple sketch you would recommend for turning on the LCD and Wifi with any sketch. The sample sketch I am trying to run as a test is attached.
Thank you in advance,
John