Requirements

The primary functionality of the sensor board was to track the scissors movement and send it across to the server.

  1. The entire system will include 3 units
    • Sensor module
    • Gateway
    • Web server
  2. The sensor should sense the following:
  3. Track the movement of the scissors
  4. Any minute movement is to be tracked
  5. Number of cuts
  6. Transmit the data to a Gateway via a wireless interface
  7. The gateway communicates with the server and all the analytics like the number of the cuts per day, scissors
  8. The sensor to be included in a small sleeve which should easily be included on a scissors
  9. Overall dimensions of the board must not exceed 19×12.5×9.5mm
  10. The sensor unit should operate on the battery (rechargeable is preferred)
  11. Complete analytics to be developed at the server side.
  12. The sensor should have a wireless interface which can communicate up to a range of 155m.

Challenges

  1. The main challenge was the small size of the PCB that we as a strict requirement set by the client. The reason was the limited space inside the farm scissors where the PCB was to be located.
  2. The battery of the system had to be chosen and used in a way that it could provide the supply during the use of the scissor without any interruption.
  3. Distinguishing the cuts from other movements of the scissor’s blades.

Solution

Due to the complexity of the design, the details were worked out by the client and the final functionality of the board was confirmed to be the followings:

  1. The device operates on power from a battery pack which charges through a micro-USB connector.
  2. Once the device boots up it, checks for Wi-Fi configuration to connect to the MQTT server.
  3. The server then starts data capturing and transmitting to the Web page.
  4. The analytics was displayed on the webpage according to the followings:
    • The number of cuts per day per user;
    • Total cuts and grams;
    • Active time and break time;
    • Employee Master
  5. the following block diagram was made accordingly

block diagram

6. For the router, a design using Raspberry Pi was considered. The board was responsible to receive the signals and relay it to the web server. For this task, an MQQT server was installed on the RaspberryPi. MQTT is a simple and light-weighted messaging protocol, designed for constrained devices with low-bandwidth. So, it’s the perfect solution for Internet of Things applications. In this project, MQTT was used to receive the signal and send a short signal including the SSID of the mini-PCB in each scissor to the web server to be registered in the database. The overall function of the device is given below

overall function of Scissor Cut Counter7. For the Wi-Fi communication of the PCB, a TI CC3220 which is a Single-Chip Wireless MCU was selected. The main PCB included such components as USB for its charging, a small-sized antenna, a BMI160 which is a small low power inertial measurement unit. This component was used to sense the scissor cuts and send it to the MCU. The MCU would then send a signal to the RaspberryPi.

8. Some of the features that were included in the firmware were as follows:

  • The device will switch mode on boot up. If the device is not configured, then it will start with the access point mode and will go to station mode once the configuration is received from the web-page.
  • For the device, a file system was considered to store the network parameters so that in case of sudden reboot happens it won’t land to access point mode.
  • The watchdog has been implemented to take care of hangs if any happens in the future.

9. In order to resolve the problem of distinguishing cuts from other blade movements, a script was developed at the server side to do this task. The script included a weight number that was a measure of the effectiveness of a cut. This number was integrated with each cut and its time duration to calculate and attribute a number to each cut that could be used in the final analysis of the work. Having this feature it was easy to see the performance of each scissor during the day. The data was also saved in the database for future reference and analysis.

10....

Read more »