Digitalize legacy machine

RE: How to set GPIO as a input and output

I got the same task from my company. Digitalize legacy machine. Now im stuck at define and receive gpio as input. Can you show me how you do that.

Please do not hijack. Threads split.

Can you describe the legacy machine's interface (inputs/outputs)?

The microcontroller-world is not super-standardised like USB-devices.

In the microcontroller-world you have to take care of more details than just
.
"does the plug fit into the socket?"
.
and this is the reason why you must post detailed information about this machine.

If you don't know which details just start with a general description. This will guide the users to ask you additional questions.

How many inputs?
How many outputs?
what kind of interfacetype has your machine?
serial? RS232? , RS422?, RS485?,
plain 24V? signals?
Profibus?

best regards Stefan

Hello salazar27

Take a peace of paper, a pencil and design based on the IPO model a program structure plan before start coding.
Identify functions and their depencies. Now start with coding and testing, function by function.
At the end merge all tested function together to get the final sketch.
The basics for coding the project are to be found in the IDE as examples.

Have a nice day and enjoy coding in C++.

1 Like

Dont draw a schematic

but use the suggestions to draw a block diagram with as much detail as you can provide of inputs and outputs

Thx

Thanks

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.