Limit Switches are not working


#1

Hi MakeBlock! I recently bought a xy plotter v2.0 but I don’t know how to check if all the components are correctly connected! Using mDraw just to see if stepper motors are working caused my pen to continue to move over the limit switch - how can I check if the limit switches are correctly recognised?


#2

Just write a debug method which is using serial write in case a switch got pressed. I can sent you an example in around 24h Please ping me again.


#3

Hi hetzandreas! I don’t understand how to write a program for XY Plotter. It’s basically an Arduino, on which a firmware is uploaded (I still don’t know where it comes from) and I need mDraw or similar software to use it.
How can I get rid of mDraw and write my own .ino method?
Thank you so much


#4
  1. Start the Standard Arduino Development Environment
  2. Go to Tools/Board/Arduino/Genouino
  3. upload the lineSwitchesTest file lineSwitchesTest.zip (544 Bytes)
  4. Tools/SerialMonitor

Press switches

So your line switches needs to be in Port 3 and Port 6 as described in the user manual.


#6

When I try to use mDraw and I put the pen in the middle of the area, all the switches are open and this is the result of the settings:

I have also used the example LimitSwitchTest.ino with a small implementation of the 4 ports and it works!LimitSwitchTest_Mio.zip (1.0 KB)


#7