Troubleshoot Issues with Quarky Settings

Description
Quarky Settings is a powerful tool that allows you to troubleshoot issues related to motors, servos, touch sensors, Bluetooth, and more. Learn how to do it in this lesson.

Introduction

In cases where your motors are moving opposite to the intended direction (motors move forward when commanded to move backward), your push buttons are unresponsive, or you want to change your device’s Bluetooth name, etc. You can use Quarky Settings to correct these issues.

Opening Quarky Setting Popups

Follow the process to open the Quarky Setting:

  1. Make sure you have PictoBlox installed in Windows, macOS, or Linux.
  2. Open the PictoBlox software by clicking on the PictoBlox icon.
  3. Select the coding environment as Block Coding.
  4. Connect your Quarky to your computer using a USB cable.
    USB-Attach
  5. Then, click the Board button from the toolbar, and select board: Quarky.
  6. Select the appropriate serial port from Serial Ports and click connect. Quarky is now connected to PictoBlox.
    COM Port
  7. Click on the setting button available on the Quarky Extension.
  8. A pop-up will open with the heading – Quarky Settings.
Alert:  Before moving ahead you need to check the firmware version. The firmware version should be a number on clicking the CHECK button; if the version is shown as ‘-’ even after clicking the check button, then the board doesn’t have firmware uploaded on it and Quarky settings won’t work. You can check the firmware guide here: https://ai.thestempedia.com/docs/quarky/quarky-toubleshooting/updating-quarky-firmaware-with-pictoblox/

Motor Calibration

The motor calibration helps you to configure the motor direction, synchronize motor speed and test the motor.

  1. Test Motor: The following option makes the motors of the quarky perform the selected options. This is useful to understand if the motor’s rotation direction is correct. There are two options and 1 action in it:
    1. Motor Selection: You have to select the appropriate motor you want to test. Options are – Left Motor, Right Motor, and Both Motors.
    2. Direction: You have to select the appropriate direction. Options are Forward and Backward.
      Once selected, you need to click on Run. If the motor is running in the specified direction then it is correct, otherwise, you have to see the Change Default Motor Direction.
  2. Change Default Motor Direction: Now to change the direction of the incorrectly configured motor, you have to use this option. You need to select the motor in the dropdown and click the swap button. Now you can again run the motor using the Test Motor option and you will find the direction to be corrected.
  3. Synchronize Motor Speed: When you run both the motors in the forward direction, and observe that the robot is curving in one direction, then you have to use this option to change the speed of the motor.
    1. If the robot is turning left, then you have to select the right motor from the dropdown and edit the Max speed to 95. Click on Set and check if the robot is moving straight. If not change the Max number.
    2. If the robot is turning right, then you have to select the left motor from the dropdown and edit the Max speed to 95. Click on Set and check if the robot is moving straight. If not change the Max number.
Note:  Quarky will remember this configuration even after power is turned off and will be forgotten only on erasing the flash.

Servo Pulse Calibration

Servos are adjusted to the desired angle using PWM signals. The signals generally have 50Hz frequency and the angle of the servo is set by the width of the pulses, i.e. 0° corresponds to 500ms pulse width whereas the maximum angle (180° in our case) corresponds to around 2500ms pulse width.

These pulse width values are given just as an example and they may vary according to the servo used. So to calibrate your servo’s minimum and maximum position, you can set their values in the Min and Max field and click on the Set button. You can check the calibration result by running the set servo to [] angle from the robot palette.

Touch Calibration

Quarky has five touch sensors.

Touch-Numbers

For configuring the touch sensors, you have the following options:

  1. Touch Sensor Values: You can check if the touch pads on Quarky are working properly using this option. Click on the Get button, this will start filling the T1, T2, etc. fields with the analog values of the touch pins that are being communicated to PictoBlox by Quarky. Try touching the pads and notice the drop in the readings. 
  2. Calibrate Touch Sensor:  You can then set the touchpad threshold accordingly using this option. Select the Touch sensor, write the value and click on Set Threshold.

Push Button Calibration

Quarky has two switches or pushes buttons. Pressing the left and right push buttons on Quarky sends analog values to PictoBlox. Pictoblox checks the range in which this value falls and based on that it declares if the left or right push button is pressed. If push buttons are not working on Quarky, users can check the same using the analog values fetching option and pressing the buttons, and observing the values.

Fruit-Catcher-Game

For configuring the pushbutton, you have the following options:

  1. Push Botton Analog Values: You can check if the pushbutton on Quarky is working properly using this option. Click on the Get button, this will start filling the box with the analog values of the pushbutton. If the value is shown as just -, it means the board is not responding (check if the firmware is uploaded on Quarky properly), if the value is stuck at 0, it may suggest a problem with the hardware.
  2. Push Button L & R-Value: The analog values may differ between boards and the user may wish to change this range for L and R push buttons. You can do the same using this option. Add the min and the max analog reading and click on Set Range.

Bluetooth Settings

For configuring the Bluetooth, you have the following options:

  1. Bluetooth Indication LED: On powering ON, Quarky shows its Bluetooth connectivity status through blue/green color on the bottom right LED of the display (BLUE: Bluetooth disconnected, GREEN: Bluetooth connected). Users can turn off the indicator using the toggle button to the right of the Bluetooth Indication LED option.
  2. Set Bluetooth Name: The default Bluetooth name of Quarky follows the format “Quarky wxyz” where the wxyz digits stand for the last four digits of the Bluetooth MAC address of the board. You can change the Bluetooth name to any 12-digit string including numbers and special characters.

Factory Reset

In case you wish to reset the configurations set through the Quarky settings, you can do so by clicking on the Factory Reset button which will delete all the saved Bluetooth names, pulse width, touch threshold, etc. from the board without having to erase the flash which achieves the same.

Conclusion

In conclusion, Quarky Settings can be used to troubleshoot issues related to motors, servos, touch sensors, Bluetooth, and more. It allows users to change the motor direction, synchronize motor speed, calibrate servo pulses, set touchpad thresholds, and set Bluetooth names. Additionally, Quarky Settings also provides a Factory Reset option to clear the configurations.

Table of Contents