how to debug, isnt this a software mistake?

cernanoha

New Member
Hi all,

I am new to picaxe, I made a flowchart and that is attached. I have got three switches and want three different task to run after clicking on them. When I simulate the flowchart everything runs well. The troubles appear after uploading it on the real device using 20M2+ chip. While it works in picaxe IDE in the real world it just keeps running in cycles the first branch and doesnt react to pushing any other buttons.

It seems like the buttons would be just in one state even when pushed. Or I don't know. I am running out of ideas.

Thank you. View attachment flow chart.plf
 
Last edited:

Buzby

Senior Member
Hi cernanoha,

Welcome to the forum !.

I'm not a flowchart programmer, but your chart is simple enough for me to follow, and it does seem to work as you expect.

This means there must be a problem with your hardware circuit.

Have you fitted resistors to pull down the pins when the button is not pushed ? ( See here : http://www.picaxe.com/Circuit-Creator/Switches/Push-Switch/ )

Other than that, please post a picture of your setup. That will give us a bit more to go on.

Cheers,

Buzby
 
Top