I recently purchased an Industrino D21G, and I am experiencing a few problems.
The first issue I've been having is when I power the device through the green supply input, all of the digital pins are automatically written to high, regardless of the program loaded on to the device, and with nothing besides the supply power connected. However, if I plug in the usb power, and reseat the supply input, the issue goes away until the device is powered off again (both usb and supply power off).
The second issue I have encountered is that any program written to the device does not begin to execute again if there was a periodic power loss from the supply power (if usb power was not on). The device needs to be re-written with the program before it will execute again. This is not as bad as the other issue could just be the intended function of the device that im not aware of.
Any help would be greatly appreciated.
I think this question has already been asked some months ago. If I remember well, you just have to write a "false" to all IndIO digital outputs during setup, right after you declared them (but have a look at the question to be sure).
It is quite normal if the outputs do not activate when you power up your Industruino through the USB : in that case, the lower board is not powered up, so no I/O read or wite will work, and no comms on your RS485 either.
For your program not executing, I tend to consider it a sofware problem. I never had this happen to me. Could it be the zero value of one of your variables that would prevent your program from executing (values are nor remanent in values unless you store them in EEPROM and read them back at startup).
Hope this helps
I found a work around for the automatic writing of all the digital I/O as high:
- Declare all the digital channels as outputs.
- Explicitly write them all as low.
- Re-declare the digital I/O as you would normally and use for whatever you were intending.
Still seems to me like this should be unnecciary, so I would still be curious in an explaination as to why the device behaves this way.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!