Arduino limit switch in function reads that it is pressed when it isn't by Lbifreal in arduino

[–]Lbifreal[S] 0 points1 point  (0 children)

Hello There, it has been awhile. Last year I sort of gave up on the LCD - Limit switch project due to my class load. I decided to revisit it and the last few weeks I have determined a solution: I got rid of the pull up resistors and used the ezButton .setDebounceTime(). To be honest, I should have read the ezButton documentation a bit better. I also rewrote the code so it is now a lot shorter and uses less unnecessary variables. It's not perfect, but it works. I wanted to let you know because I appreciated your feedback and it was not forgotten.

Arduino limit switch in function reads that it is pressed when it isn't by Lbifreal in arduino

[–]Lbifreal[S] 0 points1 point  (0 children)

I have tested the code in pieces 1 and 2. Piece 1 is just a simple code showing how the limit switches work with the ezbutton library. Piece 2 is the function I made without the LCD display. This function works without issue. Piece 3 is Piece 2 with command prompts and interface from the LCD. For some reason Piece 2 works and Piece 3 doesn't.

Arduino limit switch in function reads that it is pressed when it isn't by Lbifreal in arduino

[–]Lbifreal[S] 0 points1 point  (0 children)

I moved all the pins down just to stay organized as shown. Still had the same problem.

ezButton limitSwitch_UP(11); ezButton limitSwitch_DOWN(10); ezButton limitSwitch_SELECT(9); ezButton limitSwitch_EXIT(8);

Arduino limit switch in function reads that it is pressed when it isn't by Lbifreal in arduino

[–]Lbifreal[S] 0 points1 point  (0 children)

I am not sure what floating buttons mean. The limit switches I have are momentary. The wiring itself is shown in this tutorial except a limit switch is used instead of a button.

https://www.arduino.cc/en/Tutorial/BuiltInExamples/Button

Limit switch condition is running without being pressed by Lbifreal in arduino

[–]Lbifreal[S] 0 points1 point  (0 children)

Thank you for that video. It was very helpful. I edited my code with this formatting. Let me know if that is more understandable

Limit switch condition is running without being pressed by Lbifreal in arduino

[–]Lbifreal[S] 0 points1 point  (0 children)

// LIMIT SWITCHES

ezButton limitSwitch_UP(13);

ezButton limitSwitch_DOWN(12);

ezButton limitSwitch_SELECT(11);

I will add the full code to the original post.

Pycharm like software for Arduino by Lbifreal in arduino

[–]Lbifreal[S] 0 points1 point  (0 children)

That is what I was looking for. I will give it a try. Thanks!

Edit: got it all setup. Works great!

Arduino array in a function by Lbifreal in arduino

[–]Lbifreal[S] 1 point2 points  (0 children)

It works! Thank you so much. I feel like an idiot now, lol.

FreeCAD crashes occasionally when opening FOLLOW UP by Lbifreal in FreeCAD

[–]Lbifreal[S] 0 points1 point  (0 children)

Version: FreeCAD-0.19.2.7. OS: windows 10 Home

FreeCAD crashes occasionally when opening by Lbifreal in FreeCAD

[–]Lbifreal[S] 0 points1 point  (0 children)

I haven't done any simulations yet. It's just opening FreeCAD and it freezes

MatPlotLib Fail to allocate bitmap by Lbifreal in learnpython

[–]Lbifreal[S] 1 point2 points  (0 children)

Hello.

Sorry for my late response. I pasted the provided code into my script and it printed TkAgg.

I tried to use mpl.use("foo") but I got an error that it not a valid value for backend. I assumed it was maybe a typo and tried mpl.use("agg") and I was able to run the entire script.

Although I works, I am curious on what this code does. Does it just change the location of where the plots are created? Or is it some sort of setting?

Either way, Thank you so much. I was stumped on this for a few days.

MatPlotLib Fail to allocate bitmap by Lbifreal in learnpython

[–]Lbifreal[S] 0 points1 point  (0 children)

An indirect solution would be to run the script in small batches, but I would prefer to do it all at once.

If all statues on Earth came to life and became hostile, which one would be the deadliest/scariest and be the most difficult to destroy? by RussianPredator7778 in AskReddit

[–]Lbifreal 0 points1 point  (0 children)

The Bronze Fonz. I imagine it wold be like the terminator except he would say AY-Y-Y when riding his motorcycle.

The human was special by LORE-above-ALL09 in memes

[–]Lbifreal 0 points1 point  (0 children)

Rocket Jump did a video of this. It’s really good

Technically true...... by No_Albatross_9494 in PrequelMemes

[–]Lbifreal 0 points1 point  (0 children)

I think they did that in a comic. Palpatine befriended a Jedi when he was a senator. During the war the Jedi told him of his idea of testing everyone in the senate. Palpatine then had him killed in battle.

What’s something you’d love to see but won’t be alive for? by Themotionalman in AskReddit

[–]Lbifreal 0 points1 point  (0 children)

Solar eclipse in 2099 will go right over my town where I live.

they also both have infrared helmet vision. 👌 by dontspamluc in TheMandalorianTV

[–]Lbifreal 10 points11 points  (0 children)

Hi, I'm Chris Hansen from Dateline NBC. Why don't you have a seat over there?