The background is simple.
I came across a robot without software, without a native USB-flash, with a hard drive with sharply growing bad blocks (black 0xc000000e error and then "black-death-screen" with dead OS).
This is the used robot, but mechanically in excellent condition. And I saw him for the first time. But I am an old and experienced kamikaz... sorry, hacker. I restored the hard drive, emulated a virtual flash drive and uploaded the basic 8.3.5 software.
The robot works in T1 and T2 modes w/o problems (AUTO needs some fixes). Hacking was successful, although I had to sweat
And now about the problem itself.
I need to connect the simplest sensors to the robot directly, both binary, digital and analog.
I would ideally need to fasten the LMS400-1000 to the robot, but for now I need to deal with the general possibility of communication between the sensor and the robot KRL-program.
a/ For example, let it be a simple sensor that outputs a logical 0 or 1 (0 ... 5 volts) with three pins (V+, GND, Signal).
b/ And let it be some simple classic Sharp rangefinder, which is used by children with Arduino. With corresponding pins and analog output.
There are several questions:
1. How can I directly connect both sensors directly to the connector of the KRC4 unit itself? X12? Which pin can I plug into, how to bind a physical contact with a variable in the KRL language, and, for example, write a code for moving forward on some axis if signal = 1, and backward if signal = 0.
2. How to do the same with the Sharp analog sensor? I also want to connect this sensor directly. I do not believe that such a sophisticated technique does not allow you to make quick test connections.
3. How can the same be done through Arduino? That is, the sensor is connected to Arduino, then Arduino via USB transfers data to the system unit of KRC4 (USB at Arduino emulate the classic COM/UART). How to bind a variable in the KRL-code with data (integer) on USB-COM from Arduino?
4. Has anyone installed LMS400? I know that this must done through EthernetKRL, but how exactly?
Since the fourth question cannot be solved in a couple of hours, so first at all I want to know a simple solution to the first three questions. I just need to make sure that the robot is fully in perfect order, before I get next headpain with the WVS-project and additional software for LMS400
Please, I need help I carried out system hacking masterly, but now it’s better to do everything correctly, and not with the help of virtual hardware substitution :)))