Arduino code to flowchart or algorithm

Guys is there some kind online or offline converter by which you can convert arduino code to a flowchart or algorithm.

I have almost 500 line code and no time to make a flowchart or algorithm that’s why I’m asking.

The code was a project and the flowchart or algorithm is for the project report.

I have attached my code.

Somebody please help…

Design_Project.ino (17.8 KB)

Surely you must have had the algorithm in order to write the code

If your program is broken down into well named logical functions called either order or as the result of tests then drawing a flowchart should not be too difficult

Not that I've seen.

It should only take 20 Minutes to do the flowchart & 'algorithm' (whatever that is) for the code.

PS did YOU write all this code?

missdrew:
Not that I've seen.

It should only take 20 Minutes to do the flowchart & 'algorithm' (whatever that is) for the code.

PS did YOU write all this code?

Yup I did

Are you sure, I'm going to ask this in different way.

Why have you not given attribution the the author (Chamal Liyange) you copied parts of the code from when you copied it from github - you didn't even change the variable names!!!!

           switch (DTMFdata)
            {
                case 0:   //D
                    continue;
                    break;
                case 1:   //1
                    continue;
                    break;
                case 2:   //2
                    continue;
                    break;
                case 3:   //3
                    continue;
                    break;
                case 4:   //4
                    continue;
                    break;
                case 5:   //5
                    continue;
                    break;
                case 6:   //6
                    continue;
                    break;
                case 7:   //7
                    continue;
                    break;
                case 8:   //8
                    continue;
                    break;
                case 9:   //9
                    continue;
                    break;
                case 10:  //0
                    continue;
                    break;
                case 11:  //*
                    continue; 
                    break;
                case 12:  //#
                    DTMFvalue2 = '#';      // Setting the value of the actual key pressed to DTMFvalue variable
                    break;
                case 13:  //A
                    continue;
                    break;
                case 14:  //B
                    continue;
                    break;
                case 15:  //C
                    continue;
                    break;    
            }

:o

Also, I see you didn’t take the advice offered about eliminating gotos

I have almost 500 line code

About 250 more than you should have.

Well done on working around Chamal Liyange’s pinMode mistake though.

Manually making a flow chart with MS Word shouldn’t take that long, if you wrote this code.

See this PDF:

Your duplicate post in Project Guidance has been deleted

Cross-posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting will result in a timeout from the forum.

In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum board. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

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