Octoprint SIO control question

First Try at using Arduino for Octoprint BIG RED BUTTON 2.ino.zip (4.9 KB)
this is the current firmware I am using for the arduino

Are you sure that is right. You have 5 IO points set to OUTPut but you have said you have a button connected to IO1 / Pin 4

That seems off and pushing that seems like it might cause some issues.

Outside that the firmware looks to support the VC commands.

Remind me what board/chip you have? Also are you getting any warnings on memory usage when you flash the device ?

I was getting them, and that is why there are only 5 IO points set up, because I A. didn't need all of them, and B. needed to remove some to free up space so I could flash it.

how would this cause issues? and yes the button is connected to IO1/Pin4

the board is the Elegoo uno R3, with the ATMEGA328P-PU chip

I also have the official arduino R3 with the same chip, and the Sunfounder Mars with MEGA328PU-PH CHIP

Well you have an IO Point configured as an output but you are using it as an input.

You are likely sinking that output to ground or pulling it high when you push the button. And if you don't have anything other than a button, that is basically causing a short through your io point. But let's not worry about that for now. Just don't push the button while we test things please.

The number of IO points does not have much affect on the memory needs of the firmware at run time.
You should try using the Nano version of the firmware. I bet that will work better. It is optimized for small program memory.

This one:

that is much smaller, I will see how it reacts

the nano version has given me the proper response, thank you.

I have a resistor set there so it isnt just passing through the button.

OK.. well maybe we have it..

You really need to set the IO you are using as an input to an input. The Software will see that it is not configured correctly and will cause you more questions on why it is not working as expected.

Just set the ones you want as "INPUT" and and you should be all good.

Once that is done, try it out in OctoPrint.

IT WORKS! thank you so much

1 Like

Glad it is working for you. Have fun!

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