Skip to main content

Basic Guide

This is created by the previous developer of the 901 counter code. Alan provided this for our reference.

  1. Program and language we are using.

    Software part: QT, Microsoft visual studio 2017, Netbeans IDE, for Netbeans, just keep those setting unchanged can be fine

    Hardware design: Solidworks 2014 (for machine part), may be need Eagle in the future for PCB board, the free version is limit with some of function, but enough to handle to job.

  2. How to get into the programming screen of raspberry pi we already coded.

    1. Find out the IP of the raspberry Pi board you want to use. (That one with the entire machine is 192.168.110.184 as default, you can find out used the find ip function in the setting or other way)
    2. connect to the board with Putty ( you can try VNC viewer first to see if connection is right). User name and password are all default (Pi, raspberry)
    3. command: htop
    4. Find out main program, normally is 901c, record the UID of it.
    5. command: sudo kill -9 UID
    6. Done, program is shut down and you can access the desktop of raspberry through the VNC viewer.
  3. Build the program and run it in raspberry

    1. Use Netbeans 'Run' - 'Clean and build project', Before running, set Project Configuration -Customize, Connect to the raspberry use its IP address.
    2. After build successful, there may be 'connect to X server failed' error when running page shows up, ignore it.
    3. Go to the raspberry through VNC, go to .netbeans folder, all the way down from the folder with the latest IP address to the project folder, check if there is an executable file in the folder 'dist'.
    4. Double click to run it, sometime it need to wait a while.
  4. Update the software with new executable file. In the Pi, there is an file called 901C, simply overwritten it with the same name and reboot (it works on the machine.

  5. Move file from one raspberry to another. make sure both of them are online, then Command:

    SCP filename pi@ip
  6. For motor shaking problem after close down and turn on.

    That one I am not quite for sure because I didn't test each port with multimeter yet, but I think the problem can be solved in both hardware or software way. Here are few possibility. Hardware: C6, discharge after turned off the main circuit, so lead the current still infect the system, so fix it in hardware may solve the problem. Software: Check the motor manual, write a program (or fix current one) boot with the control GPIO boot with high or low may solve the problem.

  7. Things need to notice while with the software update.

    First, if you start the program not from the boot, but from the file, wifi connection may lost (Due to program, Wired connection is still fine, so suggest use wire or modify the program), or maybe just boot can give the highest interface level. So after all, you can only test it will WiFi is gone, to further modify it, reboot and start from guide 2 again.