Need help to get it running

Hello everyone.
I'd like to make Enigma machine simulator based on Arduino Mega 2560 mini pro. Used as example Arduino Enigma project
There's a need to download and execute code as follows: Source code of Enigma on Gitlab
Seems my experience is not enough to do that. So lots of .ino files.
So, please help me to understand how to get it running.
Please any thoughts.

Welcome to the forum

Have you installed the Arduino IDE on your PC ?

I have just copied a folder with IDE inside from my father's PC, then moved it to my laptop and made a shortcut on Desktop.
Then it asked for installing some drivers. Done. Connection was succesfull.
Something like this.

@hb1 What version number of IDE did you install?

v2.1.0

I think that you will be in a world of pain trying to get this to work. How much experience with Arduino and programming do you have ?

The main sketch file appears to be picoenigma.ino as it has the setup() and loop() functions in it. Create a sketch with that name and copy the sketch from GitHub into it

It looks like the author put many functions in many separate .ino files, so you need to create each of these in the same folder as the main .ino file so that they are compiled into one sketch

However, one of the first things that picoenigma.ino does is to #include "GPIO.h" but that file is not in the GitHub repository so all bets are off

If none of this makes any sense to you then you are not ready for this project

1 Like

Thanks for explanation how to combine .io files. Anyway I will try to load it and execute.
Concerning GPIO.h library, I've already added it.

I see there are two HEX files available and Windows cmd files to do the uploading.
If you just want to make it work without knowing anything about the source code, then try uploading the HEX files.

1 Like

That's I am looking at what stand those v15,v16 for. Interesting... Thanks. I will try both variants. The code and Hex.
However, I really have no clue, a sequence of doings with .cmd files.
Perhaps someone shed the light on that? In other words how to do that?

Where did you get it from ?

Github

The command files (cmd) are for Windows only, if you have a Mac or are using Linux, then you need something different.
Just put the hex file and cmd file in a folder and run the cmd file. If it does not work it will say so.

Ok. What about PCB Mega and cable? Should be PCB connected and connection itself should have connected status?

Did you just pick a random file named GPIO.h or did something lead you to a specific one ?

That is such a commonplace filename that there are 71 files of that name in my Arduino installation of 6 different file sizes

Forget the cmd file, it may be difficult to use.
Use this program to upload the hex file

I know what you mean.
Added this one MEGA2560_GPIO

Ok, I will try that. Thanks.
I'll give a feedback soon.

You can try running the command file to see if it works.
You need to open a cmd window and run uploadPicoEnigma with the port number as an argument, for example if using COM1 then run uploadPicoEnigma 1.
It did not work on my computer because I have a non standard installation for my IDE and it could not find avrdude.

1 Like

Got it!

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