3D Printed Lawn Mower - Testing Your Build

Before installing the final Arduino code you should really run some test sketches.

The following test programs or "sketches" will help you get the Mower up and running.

ALWAYS TEST THE MOWER WITH THE BLADES REMOVED!

There are a lot of wires in the end and anyone can make a simple mistake switching a Pin on the Arduino or whatever.  

To debug wiring you will need some basic multi meter skills.  The basics can be found on many you tube videos.

1. know how to test if a wire is connected (continuity check)

2. Test voltage on the wire.

 

These setup exercises will help you identify what needs attention and whats working just fine.  It will save you a lot of headaches if you run each test at least once.

The test sketches use the exact same code as in the full mower program, just they are cut down to test out specific components.  If the components work in the test sketches they will absolutely work using the full code.

Follow the instructions and upload the code to the MEGA or NANO or both.

Remember to update the LCD address on each sketch before use!

  

LCD Screen Start Up.

Go to GITHUB, go to the Test Sketches folder and download the I2C_Address_Finder Sketch.  (This is not my original code).

Input the address found in the code where the LCD is referenced.  You need to update the red address shown here.

LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);

Sonar Array Test

Go to GITHUB, go to the Test Sketches folder and download the Test_Sonar_Array sketch.  Follow the instructions in the readme.txt file to test if your sonar modules are working correctly.  

A sonar module which is not working correctly will significantly increase the loop time of the Arduino.  This can result in slow responses to wire detection etc.  Make sure all the sonar modules are sensing correctly and have no loose wiring.

 

Perimeter Wire Tests

Go to GITHUB, go to the Test Sketches folder and download the Test_Wire_Function sketch.  Follow the instructions in the readme.txt file to test if your perimeter wire is working correctly.

 

Relay Test

Go to GITHUB, go to the Test Sketches folder and download the RELAY_TEST sketch.  Follow the instructions in the readme.txt file to test if your realy is switching on and off correctly.

 

Serial Communications Test

Go to GITHUB, go to the Test Sketches folder and download the Test Coms MEGA NANO sketch.  This will test the communications between the arduino MEGA and Arduion NANO.  Carefully follow the readme.txt file.

 

Mower Blade Motor Test

Make sure you remove all the mowing blades before performing this test!

Go to GITHUB, go to the Test Sketches folder and download the Mower_Blade_Test_Only sketch.  This will test the connection between the MEGA, mower motor controller and mower motor.

 

Wheel Motor Test

Make sure you remove all the mowing blades before performing this test!

Go to GITHUB, go to the Test Sketches folder and download the Wheel_Motor_Test sketch.  This will test the connection between the MEGA, drive wheel motor controller and wheel motors.